Lines Matching defs:device
0 /* device.c - Some helper functions for OS devices and BIOS drives */
47 # define HDIO_GETGEO 0x0301 /* get device geometry */
73 # define BLKGETSIZE _IO(0x12,96) /* return device size */
136 #include <device.h>
363 0 /* char device */
406 0 /* char device */
443 check_device (const char *device)
449 if (*device == 0)
452 fp = fopen (device, "r");
473 /* Error opening the device. */
492 /* If it is a block device and isn't a floppy, check if HDIO_GETGEO
542 /* If there is the device map file, use the data in it instead of
589 show_error (line_number, "Bad device number");
640 /* Initialize the device map MAP. *MAP will be allocated from the heap
658 /* Probe devices for creating the device map. */
666 /* Open the device map file. */
685 /* Try to open the device map file to write the probed data. */
727 /* If the device map file is opened, write the map. */
735 /* OK, close the device map file if opened. */
754 /* If the device map file is opened, write the map. */
774 /* If the device map file is opened, write the map. */
794 /* If the device map file is opened, write the map. */
823 /* If the device map file is opened, write the map. */
834 /* OK, close the device map file if opened. */