Lines Matching refs:path

58 static void get_bus_type(char *path, struct io_card *card);
59 static void get_slot_number(char *path, struct io_card *card);
60 static int stpaul_get_network_instance(char *path);
61 static int stpaul_get_usb_instance(char *path);
62 static int stpaul_get_io_instance(char *path, char *type);
74 char path[MAXSTRLEN];
114 path, sizeof (path));
118 (void) strlcpy(pci_card.notes, path, sizeof (pci_card.notes));
120 get_bus_type(path, &pci_card);
122 get_slot_number(path, &pci_card);
134 instance = stpaul_get_network_instance(path);
161 instance = stpaul_get_usb_instance(path);
169 if ((instance = stpaul_get_io_instance(path, &pn_type)) != -1) {
251 char path[MAXSTRLEN];
260 err = picl_get_propval_by_name(pcih, PICL_PROP_DEVFS_PATH, path,
261 sizeof (path));
266 if (strcmp(path, SPL_PCIE2PCI) == 0) {
282 if ((strcmp(path, SPL_NETWORK_0_PATH) == 0) ||
283 (strcmp(path, SPL_NETWORK_1_PATH) == 0)) {
291 if ((strcmp(path, SPL_USB0_PATH) == 0) ||
292 (strcmp(path, SPL_USB1_PATH) == 0) ||
293 (strcmp(path, SPL_USB2_PATH) == 0)) {
301 if ((strcmp(path, FIRE_PATH0) == 0) ||
302 (strcmp(path, FIRE_PATH1) == 0)) {
310 if (strcmp(path, SWITCH_A_PATH) == 0) {
318 if (strcmp(path, SWITCH_B_PATH) == 0) {
326 if (strcmp(path, SPL_LSI_PATH) == 0) {
334 if (strcmp(path, SPL_PCIE2PCI) == 0) {
344 (void) strlcpy(device_path, path, sizeof (device_path));
369 get_bus_type(char *path, struct io_card *card)
371 if (strncmp(path, SPL_PCIE_PEM0, strlen(SPL_PCIE_PEM0)) == 0) {
373 } else if (strncmp(path, SPL_PCIE_PEM1, strlen(SPL_PCIE_PEM1)) == 0) {
375 } else if (strncmp(path, SPL_PCIE_NEM0, strlen(SPL_PCIE_NEM0)) == 0) {
377 } else if (strncmp(path, SPL_PCIE_NEM1, strlen(SPL_PCIE_NEM1)) == 0) {
379 } else if (strncmp(path, SWITCH_A_PATH, strlen(SWITCH_A_PATH)) == 0) {
381 } else if (strncmp(path, SWITCH_B_PATH, strlen(SWITCH_B_PATH)) == 0) {
389 get_slot_number(char *path, struct io_card *card)
391 if (strncmp(path, SPL_PCIE_PEM0, strlen(SPL_PCIE_PEM0)) == 0) {
394 } else if (strncmp(path, SPL_PCIE_NEM0, strlen(SPL_PCIE_NEM0)) == 0) {
397 } else if (strncmp(path, SPL_PCIE_PEM1, strlen(SPL_PCIE_PEM1)) == 0) {
400 } else if (strncmp(path, SPL_PCIE_NEM1, strlen(SPL_PCIE_NEM1)) == 0) {
411 stpaul_get_network_instance(char *path)
413 if (strncmp(path, SPL_NETWORK_1_PATH,
416 else if (strncmp(path, SPL_NETWORK_0_PATH,
424 stpaul_get_usb_instance(char *path)
426 if (strncmp(path, SPL_USB2_PATH, strlen(SPL_USB2_PATH)) == 0)
428 else if (strncmp(path, SPL_USB1_PATH, strlen(SPL_USB1_PATH)) == 0)
430 else if (strncmp(path, SPL_USB0_PATH, strlen(path)) == 0)
437 stpaul_get_io_instance(char *path, char *type)
439 if (strncmp(path, SPL_PCIE_PEM1, strlen(SPL_PCIE_PEM1)) == 0) {
442 } else if (strncmp(path, SPL_PCIE_PEM0, strlen(SPL_PCIE_PEM0)) == 0) {
445 } else if (strncmp(path, SPL_PCIE_NEM1, strlen(SPL_PCIE_NEM1)) == 0) {
448 } else if (strncmp(path, SPL_PCIE_NEM0, strlen(SPL_PCIE_NEM0)) == 0) {