Lines Matching refs:path

71 	char		path[MAXSTRLEN];
80 /* Get the parent node's path - used to determine bus type of child */
110 if ((err = erie_get_path(nodeh, path, sizeof (path)))
120 slot = erie_get_slot_number(path);
121 erie_get_nac(bus_type, path, slot, name, nac, sizeof (nac));
135 log_printf("%46s", path);
138 log_printf("%46s", path);
173 char path[MAXSTRLEN] = "";
178 /* Get path of this device */
179 err = picl_get_propval_by_name(pcih, PICL_PROP_DEVFS_PATH, path,
180 sizeof (path));
189 if ((strcmp(path, ERIE_NETWORK_0) == 0) ||
190 (strcmp(path, ERIE_NETWORK_1) == 0)) {
195 } else if ((strcmp(path, ERIE_NETWORK_2) == 0) ||
196 (strcmp(path, ERIE_NETWORK_3) == 0)) {
201 } else if ((strcmp(path, ERIE_LSI_PATH) == 0)) {
206 } else if ((strcmp(path, FIRE0) == 0) || (strcmp(path, FIRE1) == 0)) {
211 } else if ((strcmp(path, PCIE_PCIX) == 0) ||
212 (strcmp(path, PCIE_PCIE) == 0)) {
231 log_printf("%41s", path);
375 erie_get_bus_type(char path[], char bus_type[])
377 if (strncmp(path, PCIX_BUS, ERIE_PCIX_COMP) == 0) {
391 erie_get_slot_number(char path[])
393 if (strncmp(path, FIRE0, ERIE_PCIE_COMP) == 0)
399 * This function takes a path to one of the on-board
405 erie_get_network_instance(char path[])
408 if (strncmp(path, ERIE_NETWORK_1, strlen(ERIE_NETWORK_1)) == 0) {
410 } else if (strncmp(path, ERIE_NETWORK_3, strlen(ERIE_NETWORK_3)) == 0) {
412 } else if (strncmp(path, ERIE_NETWORK_0, strlen(ERIE_NETWORK_0)) == 0) {
414 } else if (strncmp(path, ERIE_NETWORK_2, strlen(ERIE_NETWORK_2)) == 0) {
422 * This function gets the path of a node and
427 erie_get_path(picl_nodehdl_t nodeh, char path[], int size)
431 /* hardware path of this node */
433 path, size);
493 erie_get_nac(char bus_type[], char path[], int slot, char name[], char nac[],
500 instance = erie_get_network_instance(path);