Lines Matching defs: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;
184 if ((prom_path = (char *)malloc(MAXVALSIZE)) == NULL)
189 ret = devfs_dev_to_prom_names((char *)dev_name, prom_path, MAXVALSIZE);
191 free(prom_path);
196 if (prom_path[i] == '\0')
200 free(prom_path);
204 ptr = prom_path;
208 free(prom_path);
216 free(prom_path);
234 char *prom_path = NULL;
256 if ((prom_path = (char *)malloc(MAXPATHLEN)) == NULL) {
262 ret = devfs_dev_to_prom_name((char *)dev_name, prom_path);
264 free(prom_path);
268 if ((ret = prom_dev_to_alias(prom_path, options, &alias_list)) < 0) {
269 free(prom_path);
291 free(prom_path);
301 list[count] = prom_path;
321 char *ptr, *prom_path;
326 if ((prom_path = (char *)malloc(MAXVALSIZE)) == NULL)
330 prom_path, MAXVALSIZE)) < 0) {
331 free(prom_path);
336 if (prom_path[i] == '\0')
340 ptr = prom_path;
344 free(prom_path);
357 free(prom_path);
366 free(prom_path);
372 free(prom_path);
414 char *prom_path;
447 if ((prom_path = (char *)malloc(MAXVALSIZE)) == NULL) {
451 (void) strcpy(prom_path, dev_name);
456 free(prom_path);
462 ptr = prom_path;
468 free(prom_path);
499 new_bootdev = prom_path;
504 free(prom_path);
509 + strlen(prom_path) + 2);
511 free(prom_path);
514 (void) strcpy(new_bootdev, prom_path);
519 if (strcmp(prom_path, ptr) == 0) {
532 free(prom_path);
535 free(prom_path);
884 char prom_path[MAXPATHLEN];
931 if (alias_to_prom_dev(ptr, prom_path) < 0) {
935 (void) strcpy(prom_path, ptr);
939 if (devfs_prom_to_dev_name(prom_path, ret_buf) < 0) {
1318 devfs_dev_to_prom_names(char *dev_path, char *prom_path, size_t len)
1326 if (prom_path == NULL) {
1350 /* return the prom path in prom_path */
1354 bcopy(opp->oprom_array, prom_path, len);
1355 prom_path[len - 1] = NULL;
1358 bcopy(opp->oprom_array, prom_path, len);
1379 * prom_path is the prom version of the device name
1380 * prom_path must be large enough to contain the result and is
1386 devfs_dev_to_prom_name(char *dev_path, char *prom_path)
1390 rval = devfs_dev_to_prom_names(dev_path, prom_path, MAXPATHLEN);
1573 devfs_prom_to_dev_name(char *prom_path, char *dev_path)
1583 if (prom_path == NULL) {
1586 if (strlen(prom_path) >= MAXPATHLEN)
1589 if (*prom_path != '/') {
1598 (void) strcpy(opp->oprom_array, prom_path);
1605 * return the prom path in prom_path
1921 options_override(char *prom_path, char *alias_name)
1934 if ((colon = strrchr(prom_path, ':')) != NULL) {