Lines Matching defs:unit

283  * default_params[].blocks > 0 - a bit in unit[].flags might be used for this?)
287 /* current info on each unit */
304 } unit[FD_MAX_UNITS];
306 #define UD unit[drive]
307 #define UDT unit[drive].disktype
308 #define SUD unit[SelectedDrive]
309 #define SUDT unit[SelectedDrive].disktype
726 struct request_queue *q = unit[drive].disk->queue;
1157 set_capacity(unit[SelectedDrive].disk,
1172 set_capacity(unit[SelectedDrive].disk,
1410 unsigned int drive = p - unit;
1432 unsigned int drive = p - unit;
1488 int drive = floppy - unit;
1564 int drive = floppy - unit;
1755 /* Initialize the 'unit' variable for drive 'drive' */
1972 return get_disk_and_module(unit[drive].disk);
1988 unit[i].disk = alloc_disk(1);
1989 if (!unit[i].disk) {
1994 unit[i].disk->queue = blk_mq_init_sq_queue(&unit[i].tag_set,
1997 if (IS_ERR(unit[i].disk->queue)) {
1998 put_disk(unit[i].disk);
1999 ret = PTR_ERR(unit[i].disk->queue);
2000 unit[i].disk->queue = NULL;
2028 unit[i].track = -1;
2029 unit[i].flags = 0;
2030 unit[i].disk->major = FLOPPY_MAJOR;
2031 unit[i].disk->first_minor = i;
2032 sprintf(unit[i].disk->disk_name, "fd%d", i);
2033 unit[i].disk->fops = &floppy_fops;
2034 unit[i].disk->events = DISK_EVENT_MEDIA_CHANGE;
2035 unit[i].disk->private_data = &unit[i];
2036 set_capacity(unit[i].disk, MAX_DISK_SIZE * 2);
2037 add_disk(unit[i].disk);
2052 struct gendisk *disk = unit[i].disk;
2055 blk_mq_free_tag_set(&unit[i].tag_set);
2056 put_disk(unit[i].disk);
2107 del_gendisk(unit[i].disk);
2108 blk_cleanup_queue(unit[i].disk->queue);
2109 blk_mq_free_tag_set(&unit[i].tag_set);
2110 put_disk(unit[i].disk);