Home
last modified time | relevance | path

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

/openbmc/linux/drivers/block/
H A 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()
H A Damiflop.c1540 static struct floppy_struct getprm; in fd_locked_ioctl() local
1581 memset((void *)&getprm, 0, sizeof (getprm)); in fd_locked_ioctl()
1582 getprm.track=p->type->tracks; in fd_locked_ioctl()
1583 getprm.head=p->type->heads; in fd_locked_ioctl()
1584 getprm.sect=p->dtype->sects * p->type->sect_mult; in fd_locked_ioctl()
1585 getprm.size=p->blocks; in fd_locked_ioctl()
1586 if (copy_to_user(argp, &getprm, sizeof(struct floppy_struct))) in fd_locked_ioctl()