Lines Matching defs:device

30 # include <device.h>
49 /* TFTP should come first because others don't handle net device. */
1005 /* XX used for device completion in 'set_device' and 'print_completions' */
1017 set_device (char *device)
1020 /* In Stage 1.5, the first 4 bytes of FILENAME has a device number. */
1021 unsigned long dev = *((unsigned long *) device);
1034 return device + sizeof (unsigned long);
1046 if (*device == '(' && !*(device + 1))
1048 return device + 1;
1050 if (*device == '(' && *(++device))
1052 if (*device != ',' && *device != ')')
1054 char ch = *device;
1056 if (*device == 'f' || *device == 'h'
1057 || (*device == 'n' && network_ready)
1058 || (*device == 'c' && cdrom_drive != GRUB_INVALID_DRIVE))
1060 if (*device == 'f' || *device == 'h'
1061 || (*device == 'c' && cdrom_drive != GRUB_INVALID_DRIVE))
1066 if (!*(device + 1))
1068 device++;
1069 *device++ = 'd';
1070 *device = '\0';
1071 return device;
1073 else if (*(device + 1) == 'd' && !*(device + 2))
1074 return device + 2;
1077 if ((*device == 'f'
1078 || *device == 'h'
1080 || (*device == 'n' && network_ready)
1082 || (*device == 'c' && cdrom_drive != GRUB_INVALID_DRIVE))
1083 && (device += 2, (*(device - 1) != 'd')))
1096 safe_parse_maxint (&device, (int *) &current_drive);
1108 if (*device == ')')
1113 else if (*device == ',')
1118 device++;
1120 if (*device >= '0' && *device <= '9')
1126 || !safe_parse_maxint (&device, (int *) &current_partition)
1135 if (*device == ',')
1136 device++;
1138 if (*device >= 'a' && *device <= 'p')
1140 current_partition = (((*(device++) - 'a') << 8)
1144 else if (*device >= 'a' && *device <= 'p')
1147 current_partition = ((*(device++) - 'a') << 8) | 0xFF00FF;
1150 if (*device == ')')
1167 return device + 1;
1170 if (!*device)
1181 * This performs a "mount" on the current device, both drive and partition
1232 * Set BSD boot device.
1379 * This lists the possible completions of a device string, filename, or