Lines Matching refs:prom_path
130 static void options_override(char *prom_path, char *alias_name);
141 static int devfs_prom_to_dev_name(char *prom_path, char *dev_path);
142 static int devfs_dev_to_prom_names(char *dev_path, char *prom_path, size_t len);
165 char *prom_path = NULL; in devfs_get_prom_name_list() local
184 if ((prom_path = (char *)malloc(MAXVALSIZE)) == NULL) in devfs_get_prom_name_list()
189 ret = devfs_dev_to_prom_names((char *)dev_name, prom_path, MAXVALSIZE); in devfs_get_prom_name_list()
191 free(prom_path); in devfs_get_prom_name_list()
196 if (prom_path[i] == '\0') in devfs_get_prom_name_list()
200 free(prom_path); in devfs_get_prom_name_list()
204 ptr = prom_path; in devfs_get_prom_name_list()
208 free(prom_path); in devfs_get_prom_name_list()
216 free(prom_path); in devfs_get_prom_name_list()
234 char *prom_path = NULL; in devfs_get_prom_names() local
256 if ((prom_path = (char *)malloc(MAXPATHLEN)) == NULL) { in devfs_get_prom_names()
262 ret = devfs_dev_to_prom_name((char *)dev_name, prom_path); in devfs_get_prom_names()
264 free(prom_path); in devfs_get_prom_names()
268 if ((ret = prom_dev_to_alias(prom_path, options, &alias_list)) < 0) { in devfs_get_prom_names()
269 free(prom_path); in devfs_get_prom_names()
291 free(prom_path); in devfs_get_prom_names()
301 list[count] = prom_path; in devfs_get_prom_names()
321 char *ptr, *prom_path; in devfs_get_all_prom_names() local
326 if ((prom_path = (char *)malloc(MAXVALSIZE)) == NULL) in devfs_get_all_prom_names()
330 prom_path, MAXVALSIZE)) < 0) { in devfs_get_all_prom_names()
331 free(prom_path); in devfs_get_all_prom_names()
336 if (prom_path[i] == '\0') in devfs_get_all_prom_names()
340 ptr = prom_path; in devfs_get_all_prom_names()
344 free(prom_path); in devfs_get_all_prom_names()
357 free(prom_path); in devfs_get_all_prom_names()
366 free(prom_path); in devfs_get_all_prom_names()
372 free(prom_path); in devfs_get_all_prom_names()
414 char *prom_path; in devfs_bootdev_set_list() local
447 if ((prom_path = (char *)malloc(MAXVALSIZE)) == NULL) { in devfs_bootdev_set_list()
451 (void) strcpy(prom_path, dev_name); in devfs_bootdev_set_list()
456 free(prom_path); in devfs_bootdev_set_list()
462 ptr = prom_path; in devfs_bootdev_set_list()
468 free(prom_path); in devfs_bootdev_set_list()
499 new_bootdev = prom_path; in devfs_bootdev_set_list()
504 free(prom_path); in devfs_bootdev_set_list()
509 + strlen(prom_path) + 2); in devfs_bootdev_set_list()
511 free(prom_path); in devfs_bootdev_set_list()
514 (void) strcpy(new_bootdev, prom_path); in devfs_bootdev_set_list()
519 if (strcmp(prom_path, ptr) == 0) { in devfs_bootdev_set_list()
532 free(prom_path); in devfs_bootdev_set_list()
535 free(prom_path); in devfs_bootdev_set_list()
884 char prom_path[MAXPATHLEN]; in process_bootdev() local
931 if (alias_to_prom_dev(ptr, prom_path) < 0) { in process_bootdev()
935 (void) strcpy(prom_path, ptr); in process_bootdev()
939 if (devfs_prom_to_dev_name(prom_path, ret_buf) < 0) { in process_bootdev()
1318 devfs_dev_to_prom_names(char *dev_path, char *prom_path, size_t len) in devfs_dev_to_prom_names() argument
1326 if (prom_path == NULL) { in devfs_dev_to_prom_names()
1354 bcopy(opp->oprom_array, prom_path, len); in devfs_dev_to_prom_names()
1355 prom_path[len - 1] = '\0'; in devfs_dev_to_prom_names()
1358 bcopy(opp->oprom_array, prom_path, len); in devfs_dev_to_prom_names()
1386 devfs_dev_to_prom_name(char *dev_path, char *prom_path) in devfs_dev_to_prom_name() argument
1390 rval = devfs_dev_to_prom_names(dev_path, prom_path, MAXPATHLEN); in devfs_dev_to_prom_name()
1573 devfs_prom_to_dev_name(char *prom_path, char *dev_path) in devfs_prom_to_dev_name() argument
1583 if (prom_path == NULL) { in devfs_prom_to_dev_name()
1586 if (strlen(prom_path) >= MAXPATHLEN) in devfs_prom_to_dev_name()
1589 if (*prom_path != '/') { in devfs_prom_to_dev_name()
1598 (void) strcpy(opp->oprom_array, prom_path); in devfs_prom_to_dev_name()
1921 options_override(char *prom_path, char *alias_name) in options_override() argument
1934 if ((colon = strrchr(prom_path, ':')) != NULL) { in options_override()