Lines Matching defs:drive
605 static inline bool drive_no_geom(int drive) in drive_no_geom()
611 static inline int fd_eject(int drive) in fd_eject()
672 static void __reschedule_timeout(int drive, const char *message) in __reschedule_timeout()
688 static void reschedule_timeout(int drive, const char *message) in reschedule_timeout()
733 static int disk_change(int drive) in disk_change()
796 unsigned char drive; in set_dor() local
825 static void twaddle(int fdc, int drive) in twaddle()
841 int drive; in reset_fdc_info() local
857 static void set_fdc(int drive) in set_fdc()
889 static int lock_fdc(int drive) in lock_fdc()
933 static void floppy_off(unsigned int drive) in floppy_off()
963 int drive; in scandrives() local
1279 static void fdc_specify(int fdc, int drive) in fdc_specify()
1567 static void check_wp(int fdc, int drive) in check_wp()
2069 static int next_valid_format(int drive) in next_valid_format()
2107 static void set_floppy(int drive) in set_floppy()
2225 static int do_format(int drive, struct format_descr *tmp_format_req) in do_format()
2260 unsigned int drive = (unsigned long)req->q->disk->private_data; in floppy_end_request() local
2772 int drive; in redo_fd_request() local
2927 static int user_reset_fdc(int drive, int arg, bool interruptible) in user_reset_fdc()
2965 static const char *drive_name(int type, int drive) in drive_name()
3137 int drive; in raw_cmd_ioctl() local
3184 static int floppy_raw_cmd_ioctl(int type, int drive, int cmd, in floppy_raw_cmd_ioctl()
3205 static int floppy_raw_cmd_ioctl(int type, int drive, int cmd, in floppy_raw_cmd_ioctl()
3224 int drive, int type, struct block_device *bdev) in set_geometry()
3345 static int get_floppy_geometry(int drive, int type, struct floppy_struct **g) in get_floppy_geometry()
3364 int drive = (long)bdev->bd_disk->private_data; in fd_getgeo() local
3400 int drive = (long)bdev->bd_disk->private_data; in fd_locked_ioctl() local
3662 int drive, type; in compat_set_geometry() local
3684 static int compat_get_prm(int drive, in compat_get_prm()
3706 static int compat_setdrvprm(int drive, in compat_setdrvprm()
3742 static int compat_getdrvprm(int drive, in compat_getdrvprm()
3776 static int compat_getdrvstat(int drive, bool poll, in compat_getdrvstat()
3815 static int compat_getfdcstat(int drive, in compat_getfdcstat()
3844 static int compat_werrorget(int drive, in compat_werrorget()
3868 int drive = (long)bdev->bd_disk->private_data; in fd_compat_ioctl() local
3917 int drive; in config_types() local
3969 int drive = (long)disk->private_data; in floppy_release() local
3990 int drive = (long)disk->private_data; in floppy_open() local
4090 int drive = (long)disk->private_data; in floppy_check_events() local
4118 int drive; member
4125 int drive = cbdata->drive; in floppy_rb0_cb() local
4135 static int __floppy_read_block_0(struct block_device *bdev, int drive) in __floppy_read_block_0()
4176 int drive = (long)disk->private_data; in floppy_revalidate() local
4452 int drive; in floppy_cmos_show() local
4503 static bool floppy_available(int drive) in floppy_available()
4512 static int floppy_alloc_disk(unsigned int drive, unsigned int type) in floppy_alloc_disk()
4543 unsigned int drive = (MINOR(dev) & 3) | ((MINOR(dev) & 0x80) >> 5); in floppy_probe() local
4569 int i, unit, drive, err; in do_floppy_init() local
4897 int drive; in floppy_release_irq_and_dma() local
4972 int drive, i; in floppy_module_exit() local