Searched refs:gDeviceNames (Results 1 - 25 of 29) sorted by relevance

12

/haiku/src/add-ons/kernel/drivers/graphics/framebuffer/
H A Ddriver.cpp37 char* gDeviceNames[MAX_CARDS + 1]; variable
46 return (const char**)gDeviceNames;
75 gDeviceNames[0] = strdup("graphics/framebuffer");
76 if (gDeviceNames[0] == NULL) {
77 free(gDeviceNames[0]);
81 gDeviceNames[1] = NULL;
97 for (int32 index = 0; (name = gDeviceNames[index]) != NULL; index++) {
111 for (index = 0; gDeviceNames[index] != NULL; index++) {
112 if (!strcmp(name, gDeviceNames[index]))
H A Ddriver.h18 extern char* gDeviceNames[];
H A Ddevice.cpp46 for (id = 0; (thisName = gDeviceNames[id]) != NULL; id++) {
122 if (user_strlcpy((char*)buffer, gDeviceNames[info->id],
/haiku/src/add-ons/kernel/drivers/network/ether/pegasus/
H A Ddevlist.c23 char **gDeviceNames = NULL; variable
93 ASSERT(gDeviceNames == NULL);
94 gDeviceNames = malloc(sizeof(char *) * (sDeviceCount + 1));
101 if (gDeviceNames != NULL) {
103 for (i = 0; gDeviceNames [i] != NULL; i++) {
104 free(gDeviceNames[i]);
107 free(gDeviceNames);
108 gDeviceNames = NULL;
119 ASSERT(gDeviceNames != NULL);
122 gDeviceNames[
[all...]
/haiku/src/add-ons/kernel/drivers/graphics/vesa/
H A Ddriver.h17 extern char* gDeviceNames[];
H A Ddriver.cpp37 char* gDeviceNames[MAX_CARDS + 1]; variable
47 return (const char**)gDeviceNames;
85 gDeviceNames[0] = strdup("graphics/vesa");
86 if (gDeviceNames[0] == NULL) {
91 gDeviceNames[1] = NULL;
113 for (int32 index = 0; (name = gDeviceNames[index]) != NULL; index++) {
127 for (index = 0; gDeviceNames[index] != NULL; index++) {
128 if (!strcmp(name, gDeviceNames[index]))
H A Ddevice.cpp46 for (id = 0; (thisName = gDeviceNames[id]) != NULL; id++) {
122 if (user_strlcpy((char*)buffer, gDeviceNames[info->id],
/haiku/src/add-ons/kernel/drivers/audio/usb/
H A DDriver.cpp22 char* gDeviceNames[MAX_DEVICES + 1]; variable
130 gDeviceNames[0] = NULL;
161 for (int32 i = 0; gDeviceNames[i]; i++) {
162 free(gDeviceNames[i]);
163 gDeviceNames[i] = NULL;
181 if (strcmp(gDeviceNames[i], name) == 0) {
238 for (int32 i = 0; gDeviceNames[i]; i++) {
239 free(gDeviceNames[i]);
240 gDeviceNames[i] = NULL;
248 gDeviceNames[deviceCoun
[all...]
/haiku/src/add-ons/kernel/drivers/audio/ac97/sis7018/
H A DDriver.cpp22 char *gDeviceNames[MAX_DEVICES + 1] = { 0 }; variable
102 gDeviceNames[gNumCards] = strdup(name);
129 free(gDeviceNames[i]);
130 gDeviceNames[i] = NULL;
145 if (gDeviceNames[i] && !strcmp(gDeviceNames[i], name)) {
203 if (gDeviceNames[i])
204 TRACE("%s\n", gDeviceNames[i]);
207 return (const char **)&gDeviceNames[0];
/haiku/src/add-ons/kernel/drivers/network/ether/usb_davicom/
H A DDriver.cpp28 char *gDeviceNames[MAX_DEVICES + 1]; variable
187 gDeviceNames[0] = NULL;
222 for (int32 i = 0; gDeviceNames[i]; i++) {
223 free(gDeviceNames[i]);
224 gDeviceNames[i] = NULL;
310 for (int32 i = 0; gDeviceNames[i]; i++) {
311 free(gDeviceNames[i]);
312 gDeviceNames[i] = NULL;
322 gDeviceNames[deviceCount] = (char *)malloc(strlen(sDeviceBaseName) + 4);
323 if (gDeviceNames[deviceCoun
[all...]
/haiku/src/add-ons/kernel/drivers/network/ether/usb_rndis/
H A DDriver.cpp17 char *gDeviceNames[MAX_DEVICES + 1]; variable
117 gDeviceNames[0] = NULL;
151 for (int32 i = 0; gDeviceNames[i]; i++) {
152 free(gDeviceNames[i]);
153 gDeviceNames[i] = NULL;
244 for (int32 i = 0; gDeviceNames[i]; i++) {
245 free(gDeviceNames[i]);
246 gDeviceNames[i] = NULL;
255 gDeviceNames[deviceCount] = (char *)malloc(strlen(sDeviceBaseName) + 4);
256 if (gDeviceNames[deviceCoun
[all...]
/haiku/src/add-ons/kernel/drivers/network/ether/usb_asix/
H A DDriver.cpp30 char *gDeviceNames[MAX_DEVICES + 1]; variable
228 gDeviceNames[0] = NULL;
264 for (int32 i = 0; gDeviceNames[i]; i++) {
265 free(gDeviceNames[i]);
266 gDeviceNames[i] = NULL;
352 for (int32 i = 0; gDeviceNames[i]; i++) {
353 free(gDeviceNames[i]);
354 gDeviceNames[i] = NULL;
364 gDeviceNames[deviceCount] = (char *)malloc(strlen(sDeviceBaseName) + 4);
365 if (gDeviceNames[deviceCoun
[all...]
/haiku/src/add-ons/kernel/drivers/ports/usb_serial/
H A DDriver.cpp21 char *gDeviceNames[DEVICES_COUNT + 1]; variable
148 gDeviceNames[0] = NULL;
185 for (int32 i = 0; gDeviceNames[i]; i++)
186 free(gDeviceNames[i]);
345 for (int32 i = 0; gDeviceNames[i]; i++)
346 free(gDeviceNames[i]);
352 gDeviceNames[j] = (char *)malloc(strlen(sDeviceBaseName) + 4);
353 if (gDeviceNames[j]) {
354 sprintf(gDeviceNames[j], "%s%" B_PRId32, sDeviceBaseName, i);
361 gDeviceNames[
[all...]
/haiku/src/add-ons/kernel/drivers/pty/
H A Ddriver.cpp42 char *gDeviceNames[kNumTTYs * 2 + 3]; variable
70 memset(gDeviceNames, 0, sizeof(gDeviceNames));
90 gDeviceNames[i] = strdup(buffer);
93 gDeviceNames[i + kNumTTYs] = strdup(buffer);
98 if (!gDeviceNames[i] || !gDeviceNames[i + kNumTTYs]) {
104 gDeviceNames[2 * kNumTTYs] = (char *)"ptmx";
105 gDeviceNames[2 * kNumTTYs + 1] = (char *)"tty";
117 free(gDeviceNames[
[all...]
/haiku/src/add-ons/kernel/drivers/joystick/emuxkigameport/
H A Ddriver.cpp31 char *gDeviceNames[MAX_CARDS + 1]; variable
71 gDeviceNames[num_names++] = card->joy.name1;
72 gDeviceNames[num_names] = NULL;
186 return (const char **)gDeviceNames;
194 for (i = 0; gDeviceNames[i]; i++)
195 if (!strcmp (gDeviceNames[i], name))
/haiku/src/add-ons/kernel/drivers/graphics/3dfx/
H A Ddriver.cpp76 static char* gDeviceNames[MAX_DEVICES + 1]; variable
346 gDeviceNames[count] = di.name;
355 gDeviceNames[count] = NULL; // terminate list with null pointer
376 return (const char**)gDeviceNames; // return list of supported devices
384 while (gDeviceNames[i] != NULL) {
385 if (strcmp(name, gDeviceNames[i]) == 0)
408 while (gDeviceNames[i] != NULL && (strcmp(name, gDeviceNames[i]) != 0))
411 if (gDeviceNames[i] == NULL)
/haiku/src/add-ons/kernel/drivers/graphics/intel_extreme/
H A Ddriver.cpp199 char* gDeviceNames[MAX_CARDS + 1]; variable
321 return (const char**)gDeviceNames;
392 gDeviceNames[found] = strdup(name);
393 if (gDeviceNames[found] == NULL)
398 free(gDeviceNames[found]);
419 gDeviceNames[found] = NULL;
441 for (int32 index = 0; (name = gDeviceNames[index]) != NULL; index++) {
457 for (index = 0; gDeviceNames[index] != NULL; index++) {
458 if (!strcmp(name, gDeviceNames[index]))
H A Ddriver.h20 extern char* gDeviceNames[];
/haiku/src/add-ons/kernel/drivers/ports/pc_serial/
H A DDriver.cpp28 char *gDeviceNames[DEVICES_COUNT + 1]; variable
537 gDeviceNames[0] = NULL;
598 for (int32 i = 0; gDeviceNames[i]; i++)
599 free(gDeviceNames[i]);
784 for (int32 i = 0; gDeviceNames[i]; i++)
785 free(gDeviceNames[i]);
791 gDeviceNames[j] = (char *)malloc(strlen(sDeviceBaseName) + 4);
792 if (gDeviceNames[j]) {
793 sprintf(gDeviceNames[j], "%s%d", sDeviceBaseName, i);
800 gDeviceNames[
[all...]
/haiku/src/add-ons/kernel/drivers/bus/usb/
H A Dusb_raw.cpp53 static char **gDeviceNames = NULL; variable
975 if (gDeviceNames) {
976 for (int32 i = 1; gDeviceNames[i]; i++)
977 free(gDeviceNames[i]);
978 free(gDeviceNames);
979 gDeviceNames = NULL;
991 if (gDeviceNames) {
992 for (int32 i = 0; gDeviceNames[i]; i++)
993 free(gDeviceNames[i]);
994 free(gDeviceNames);
[all...]
/haiku/src/add-ons/kernel/drivers/graphics/radeon_hd/
H A Ddriver.h33 extern char* gDeviceNames[];
H A Ddevice.cpp114 for (id = 0; (thisName = gDeviceNames[id]) != NULL; id++) {
210 if (user_strlcpy((char*)buffer, gDeviceNames[info->id],
/haiku/src/add-ons/kernel/drivers/graphics/s3/
H A Ddriver.cpp108 static char* gDeviceNames[MAX_DEVICES + 1]; variable
646 gDeviceNames[count] = di.name;
654 gDeviceNames[count] = NULL; // terminate list with null pointer
675 return (const char**)gDeviceNames; // return list of supported devices
683 while (gDeviceNames[index] != NULL) {
684 if (strcmp(name, gDeviceNames[index]) == 0)
708 while (gDeviceNames[index] != NULL && (strcmp(name, gDeviceNames[index]) != 0))
711 if (gDeviceNames[index] == NULL)
/haiku/src/add-ons/kernel/drivers/graphics/intel_810/
H A Ddriver.cpp75 static char* gDeviceNames[MAX_DEVICES + 1]; variable
488 gDeviceNames[count] = di.name;
499 gDeviceNames[count] = NULL; // terminate list with null pointer
521 return (const char**)gDeviceNames; // return list of supported devices
529 while (gDeviceNames[i] != NULL) {
530 if (strcmp(name, gDeviceNames[i]) == 0)
553 while (gDeviceNames[i] != NULL && (strcmp(name, gDeviceNames[i]) != 0))
556 if (gDeviceNames[i] == NULL)
/haiku/src/add-ons/kernel/drivers/graphics/ati/
H A Ddriver.cpp170 static char* gDeviceNames[MAX_DEVICES + 1]; variable
979 gDeviceNames[count] = di.name;
988 gDeviceNames[count] = NULL; // terminate list with null pointer
1009 return (const char**)gDeviceNames; // return list of supported devices
1017 while (gDeviceNames[i] != NULL) {
1018 if (strcmp(name, gDeviceNames[i]) == 0)
1041 while (gDeviceNames[i] != NULL && (strcmp(name, gDeviceNames[i]) != 0))
1044 if (gDeviceNames[i] == NULL)

Completed in 220 milliseconds

12