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

/linux-4.4.14/drivers/block/
H A Dataflop.c1518 struct floppy_struct getprm; fd_locked_ioctl() local
1542 memset((void *)&getprm, 0, sizeof(getprm)); fd_locked_ioctl()
1543 getprm.size = dtp->blocks; fd_locked_ioctl()
1544 getprm.sect = dtp->spt; fd_locked_ioctl()
1545 getprm.head = 2; fd_locked_ioctl()
1546 getprm.track = dtp->blocks/dtp->spt/2; fd_locked_ioctl()
1547 getprm.stretch = dtp->stretch; fd_locked_ioctl()
1548 if (copy_to_user(argp, &getprm, sizeof(getprm))) fd_locked_ioctl()
H A Damiflop.c1468 static struct floppy_struct getprm; fd_locked_ioctl() local
1510 memset((void *)&getprm, 0, sizeof (getprm)); fd_locked_ioctl()
1511 getprm.track=p->type->tracks; fd_locked_ioctl()
1512 getprm.head=p->type->heads; fd_locked_ioctl()
1513 getprm.sect=p->dtype->sects * p->type->sect_mult; fd_locked_ioctl()
1514 getprm.size=p->blocks; fd_locked_ioctl()
1515 if (copy_to_user(argp, &getprm, sizeof(struct floppy_struct))) fd_locked_ioctl()

Completed in 151 milliseconds