Lines Matching refs:strncmp

81 	if (strncmp(path, PCIX_SLOT0, PCIX_COMP_NUM) == 0) {  in get_bus_type()
91 if (strncmp(path, PCIE_SLOT0, PCIE_COMP_NUM) == 0) { in get_slot_number()
94 } else if (strncmp(path, PCIE_SLOT1, PCIE_COMP_NUM) == 0) { in get_slot_number()
97 } else if (strncmp(path, PCIE_SLOT2, PCIE_COMP_NUM) == 0) { in get_slot_number()
100 } else if ((strncmp(path, PCIX_SLOT1, strlen(PCIX_SLOT1)) == 0) || in get_slot_number()
101 (strncmp(path, PCIX_SLOT0, strlen(PCIX_SLOT0)) == 0)) { in get_slot_number()
132 if (strncmp(path, NETWORK_1_PATH, strlen(NETWORK_1_PATH)) == 0) { in ontario_get_network_instance()
134 } else if (strncmp(path, NETWORK_3_PATH, strlen(NETWORK_3_PATH)) == 0) { in ontario_get_network_instance()
136 } else if (strncmp(path, NETWORK_0_PATH, strlen(NETWORK_0_PATH)) == 0) { in ontario_get_network_instance()
138 } else if (strncmp(path, NETWORK_2_PATH, strlen(NETWORK_2_PATH)) == 0) { in ontario_get_network_instance()
335 if ((strncmp(platbuf, ONTARIO_PLATFORM, in sun4v_display_pci()
337 (strncmp(platbuf, ONTARIO_PLATFORM2, in sun4v_display_pci()
343 } else if ((strncmp(platbuf, PELTON_PLATFORM, in sun4v_display_pci()
349 } else if ((strncmp(platbuf, STPAUL_PLATFORM, in sun4v_display_pci()
353 } else if ((strncmp(platbuf, HURON_1U_PLATFORM, in sun4v_display_pci()
354 strlen(HURON_1U_PLATFORM)) == 0) || (strncmp(platbuf, in sun4v_display_pci()
544 if ((strncmp(platbuf, ONTARIO_PLATFORM, in sun4v_display_hw_revisions()
554 } else if ((strncmp(platbuf, PELTON_PLATFORM, in sun4v_display_hw_revisions()
564 } else if ((strncmp(platbuf, STPAUL_PLATFORM, in sun4v_display_hw_revisions()
574 } else if ((strncmp(platbuf, HURON_1U_PLATFORM, in sun4v_display_hw_revisions()
575 strlen(HURON_1U_PLATFORM)) == 0) || (strncmp(platbuf, in sun4v_display_hw_revisions()