Home
last modified time | relevance | path

Searched refs:getprm (Results 1 – 2 of 2) sorted by relevance

/linux-5.19.10/drivers/block/
Dataflop.c1593 struct floppy_struct getprm; in fd_locked_ioctl() local
1617 memset((void *)&getprm, 0, sizeof(getprm)); in fd_locked_ioctl()
1618 getprm.size = dtp->blocks; in fd_locked_ioctl()
1619 getprm.sect = dtp->spt; in fd_locked_ioctl()
1620 getprm.head = 2; in fd_locked_ioctl()
1621 getprm.track = dtp->blocks/dtp->spt/2; in fd_locked_ioctl()
1622 getprm.stretch = dtp->stretch; in fd_locked_ioctl()
1623 if (copy_to_user(argp, &getprm, sizeof(getprm))) in fd_locked_ioctl()
Damiflop.c1540 static struct floppy_struct getprm; in fd_locked_ioctl() local
1582 memset((void *)&getprm, 0, sizeof (getprm)); in fd_locked_ioctl()
1583 getprm.track=p->type->tracks; in fd_locked_ioctl()
1584 getprm.head=p->type->heads; in fd_locked_ioctl()
1585 getprm.sect=p->dtype->sects * p->type->sect_mult; in fd_locked_ioctl()
1586 getprm.size=p->blocks; in fd_locked_ioctl()
1587 if (copy_to_user(argp, &getprm, sizeof(struct floppy_struct))) in fd_locked_ioctl()