Lines Matching defs:unit
161 get_floppy_disk_name (char *name, int unit)
165 sprintf (name, "/dev/rdiskette%d", unit);
169 sprintf (name, "/dev/floppy/%d", unit);
171 sprintf (name, "/dev/fd%d", unit);
174 sprintf (name, "/dev/fd%d", unit);
178 sprintf (name, "/dev/fd%d", unit);
180 sprintf (name, "/dev/rfd%d", unit);
184 sprintf (name, "/dev/rfd%da", unit);
187 sprintf (name, "/dev/rfd%dc", unit);
190 sprintf (name, "/dev/fd%d", unit);
193 sprintf (name, "/dev/fd%d", unit);
195 (void) unit;
206 get_ide_disk_name (char *name, int unit)
210 sprintf (name, "/dev/hd%c", unit + 'a');
213 sprintf (name, "/dev/hd%d", unit);
217 sprintf (name, "/dev/ad%d", unit);
219 sprintf (name, "/dev/rwd%d", unit);
225 sprintf (shortname, "wd%d", unit);
233 sprintf (name, "/dev/rwd%dc", unit);
238 sprintf (name, "/dev/hd%d", unit);
241 (void) unit;
244 sprintf (name, "//./PHYSICALDRIVE%d", unit);
253 get_scsi_disk_name (char *name, int unit)
257 sprintf (name, "/dev/sd%c", unit + 'a');
260 sprintf (name, "/dev/sd%d", unit);
264 sprintf (name, "/dev/da%d", unit);
266 sprintf (name, "/dev/rda%d", unit);
272 sprintf (shortname, "sd%d", unit);
280 sprintf (name, "/dev/rsd%dc", unit);
288 sprintf (name, "/dev/sd%c", unit + 'a');
290 (void) unit;
302 get_ada_disk_name (char *name, int unit)
304 sprintf (name, "/dev/ada%d", unit);
308 get_ataraid_disk_name (char *name, int unit)
310 sprintf (name, "/dev/ar%d", unit);
314 get_mfi_disk_name (char *name, int unit)
316 sprintf (name, "/dev/mfid%d", unit);
322 get_virtio_disk_name (char *name, int unit)
325 sprintf (name, "/dev/vdisk%c", unit + 'a');
327 sprintf (name, "/dev/vd%c", unit + 'a');
344 get_ataraid_disk_name (char *name, int unit)
346 sprintf (name, "/dev/ataraid/d%c", unit + '0');
350 get_i2o_disk_name (char *name, char unit)
352 sprintf (name, "/dev/i2o/hd%c", unit);
368 get_mmc_disk_name (char *name, int unit)
370 sprintf (name, "/dev/mmcblk%d", unit);
374 get_xvd_disk_name (char *name, int unit)
376 sprintf (name, "/dev/xvd%c", unit + 'a');
967 char unit;
969 for (unit = 'a'; unit < 'f'; unit++)
973 get_i2o_disk_name (name, unit);