Lines Matching refs:device
1 /* ofpath.c - calculate OpenFirmware path names given an OS device */
145 strcat(rpath, "/device");
171 const char *device, int devno)
179 digit_string = trailing_digits (device);
213 const char *device,
226 ret = __of_path_common(of_path, sysfs_path, device, devno);
234 const char *devname __attribute__((unused)), const char *device,
248 ret = __of_path_common(of_path, sysfs_path, device, 2 * chan + devno);
323 const char *devname __attribute__((unused)), const char *device,
342 ret = __of_path_common(of_path, sysfs_path, device, tgt);
360 digit_string = trailing_digits (device);
396 char *name_buf, *device, *devnode, *devicenode, *ofpath;
404 device = get_basename (name_buf);
406 devicenode = strip_trailing_digits (device);
410 if (device[0] == 'h' && device[1] == 'd')
411 ret = of_path_of_ide(ofpath, name_buf, device, devnode, devicenode);
412 else if (device[0] == 's'
413 && (device[1] == 'd' || device[1] == 'r'))
414 ret = of_path_of_scsi(ofpath, name_buf, device, devnode, devicenode);
415 else if (device[0] == 'v' && device[1] == 'd' && device[2] == 'i'
416 && device[3] == 's' && device[4] == 'k')
417 ret = of_path_of_vdisk(ofpath, name_buf, device, devnode, devicenode);
418 else if (device[0] == 'f' && device[1] == 'd'
419 && device[2] == '0' && device[3] == '\0')
428 grub_util_warn (_("unknown device type %s\n"), device);