Lines Matching refs:path

67 get_bus_type(char *path, struct io_card *card)
69 if (strncmp(path, PEL_PCIX_SLOT0, PCIX_COMP_NUM) == 0) {
71 } else if (strncmp(path, PEL_PCIX_SLOT1, PCIX_COMP_NUM) == 0) {
73 } else if (strncmp(path, PEL_PCIX_SLOT2, PCIX_COMP_NUM) == 0) {
75 } else if (strncmp(path, PEL_PCIX_ONBOARD0, PCIX_COMP_NUM) == 0) {
83 * 'path' is the device-path of the *parent* of the IO card ('card').
85 * Compare the prefix of the string representing the device-path with
90 * 'path', compare SLOT2 before comparing SLOT1.
93 get_slot_number(char *path, struct io_card *card)
95 if (strncmp(path, PEL_PCIE_SLOT0, PCIE_COMP_NUM) == 0) {
98 } else if (strncmp(path, PEL_PCIX_SLOT2, strlen(PEL_PCIX_SLOT2)) == 0) {
101 } else if (strncmp(path, PEL_PCIX_SLOT1, strlen(PEL_PCIX_SLOT1)) == 0) {
104 } else if (strncmp(path, PEL_PCIX_SLOT0, strlen(PEL_PCIX_SLOT0)) == 0) {
114 pelton_get_network_instance(char *path)
116 if (strncmp(path, PEL_NETWORK_1_PATH,
119 } else if (strncmp(path, PEL_NETWORK_3_PATH,
122 } else if (strncmp(path, PEL_NETWORK_0_PATH,
125 } else if (strncmp(path, PEL_NETWORK_2_PATH,
141 char path[MAXSTRLEN];
176 path, sizeof (path));
181 (void) strlcpy(pci_card.notes, path, sizeof (pci_card.notes));
198 instance = pelton_get_network_instance(path);
294 char path[MAXSTRLEN] = "";
303 err = picl_get_propval_by_name(pcih, PICL_PROP_DEVFS_PATH, path,
304 sizeof (path));
309 if ((strcmp(path, PEL_NETWORK_0_PATH) == 0) ||
310 (strcmp(path, PEL_NETWORK_1_PATH) == 0)) {
318 if ((strcmp(path, PEL_NETWORK_2_PATH) == 0) ||
319 (strcmp(path, PEL_NETWORK_3_PATH) == 0)) {
327 if ((strcmp(path, FIRE_PATH0) == 0) ||
328 (strcmp(path, FIRE_PATH1) == 0)) {
336 if ((strcmp(path, PEL_PCIX_SLOT0) == 0) ||
337 (strcmp(path, PEL_PCIX_SLOT1) == 0) ||
338 (strcmp(path, PEL_PCIX_SLOT2) == 0) ||
339 (strcmp(path, PEL_PCIX_ONBOARD0) == 0)) {
347 if (strcmp(path, SWITCH_A_PATH) == 0) {
354 if (strcmp(path, SWITCH_B_PATH) == 0) {
361 if (strcmp(path, PEL_LSI_PATH) == 0) {
369 (void) strcpy(device_path, path);