Lines Matching refs:floppy_struct
440 static struct floppy_struct floppy_type[32] = {
483 static struct floppy_struct *current_type[N_DRIVE];
489 static struct floppy_struct user_params[N_DRIVE];
588 static struct floppy_struct *_floppy = floppy_type;
2967 struct floppy_struct *floppy; in drive_name()
3223 static int set_geometry(unsigned int cmd, struct floppy_struct *g, in set_geometry()
3344 static int get_floppy_geometry(int drive, int type, struct floppy_struct **g) in get_floppy_geometry()
3365 struct floppy_struct *g; in fd_getgeo()
3404 struct floppy_struct g; /* geometry */ in fd_locked_ioctl()
3473 (struct floppy_struct **)&outparam); in fd_locked_ioctl()
3477 offsetof(struct floppy_struct, name)); in fd_locked_ioctl()
3659 struct floppy_struct v; in compat_set_geometry()
3663 BUILD_BUG_ON(offsetof(struct floppy_struct, name) != in compat_set_geometry()
3669 memset(&v, 0, sizeof(struct floppy_struct)); in compat_set_geometry()
3670 if (copy_from_user(&v, arg, offsetof(struct floppy_struct, name))) in compat_set_geometry()
3686 struct floppy_struct *p; in compat_get_prm()
3697 memcpy(&v, p, offsetof(struct floppy_struct, name)); in compat_get_prm()