Lines Matching defs:device

41 	usage : sadp [-th][-d device[-drive]] s [n]
71 #include <sys/scsi/conf/device.h>
96 "Invalid drive specified for device %s, valid drives are: "
97 #define ERR_NO_DEV "Please specify a device type, valid devices are: "
105 #define NAMESIZE 10 /* size of device names */
194 char device[NAMESIZE];
291 strncpy(device, optarg, devlen);
460 * Make sure device and drive specified is legitimate.
496 * Get the list of scsi device pointers from kernel space.
508 * the chosen device.
516 * Read the scsi_device struct for the device.
630 device, k);
652 device, k);
879 fprintf(stderr, "usage: sadp [-th][-d device[-drive]] s [n]\n");
1024 device, k);
1093 * No device specified, so default to the first
1097 strcpy(device, devnm[0]);
1098 *DRVNUM(device) = NULL;
1099 devlen = strlen(device);
1103 bad_device(device, ERR_NO_DEV);
1114 if (strcmp(device, tempdev) == 0)
1118 bad_device(device, ERR_BAD_DEV);
1130 * in the configured device list.
1138 * find the corresponding entry (j) in the device list.
1139 * If found, save the device list index in drvlist[].
1142 if (strncmp(device, devnm[j], devlen) != 0)
1165 bad_device(device, ERR_BAD_UNIT);
1176 * When the new device naming convention is in effect, switch to it
1185 sprintf(tempdev, "%s%s%da", DEV_PREFIX, device, i);
1211 * when the specified device/drive is insufficient.
1214 bad_device(device, errmsg)
1215 char *device;
1226 * Print usage statement if no device is specified.
1228 if (device[0] == NULL)
1232 * Compose a list of unique device controller types, or
1234 * the complete device list.
1245 if (strncmp(devnm[i], device, devlen))
1265 * Invalid device was specified. Compose message containing
1269 strlen(device) + unique*(NAMESIZE+1) + 1);
1270 sprintf(msg, errmsg, device);
1319 * The default device names: dk#