Lines Matching refs:udata

80 static long privcmd_ioctl_hypercall(struct file *file, void __user *udata)  in privcmd_ioctl_hypercall()  argument
90 if (copy_from_user(&hypercall, udata, sizeof(hypercall))) in privcmd_ioctl_hypercall()
263 static long privcmd_ioctl_mmap(struct file *file, void __user *udata) in privcmd_ioctl_mmap() argument
277 if (copy_from_user(&mmapcmd, udata, sizeof(mmapcmd))) in privcmd_ioctl_mmap()
456 struct file *file, void __user *udata, int version) in privcmd_ioctl_mmap_batch() argument
469 if (copy_from_user(&m, udata, sizeof(struct privcmd_mmapbatch))) in privcmd_ioctl_mmap_batch()
477 if (copy_from_user(&m, udata, sizeof(struct privcmd_mmapbatch_v2))) in privcmd_ioctl_mmap_batch()
631 static long privcmd_ioctl_dm_op(struct file *file, void __user *udata) in privcmd_ioctl_dm_op() argument
643 if (copy_from_user(&kdata, udata, sizeof(kdata))) in privcmd_ioctl_dm_op()
717 static long privcmd_ioctl_restrict(struct file *file, void __user *udata) in privcmd_ioctl_restrict() argument
722 if (copy_from_user(&dom, udata, sizeof(dom))) in privcmd_ioctl_restrict()
735 struct privcmd_mmap_resource __user *udata) in privcmd_ioctl_mmap_resource() argument
745 if (copy_from_user(&kdata, udata, sizeof(kdata))) in privcmd_ioctl_mmap_resource()
765 return __put_user(xdata.nr_frames, &udata->num); in privcmd_ioctl_mmap_resource()
850 static long privcmd_ioctl_pcidev_get_gsi(struct file *file, void __user *udata) in privcmd_ioctl_pcidev_get_gsi() argument
856 if (copy_from_user(&kdata, udata, sizeof(kdata))) in privcmd_ioctl_pcidev_get_gsi()
864 if (copy_to_user(udata, &kdata, sizeof(kdata))) in privcmd_ioctl_pcidev_get_gsi()
1081 static long privcmd_ioctl_irqfd(struct file *file, void __user *udata) in privcmd_ioctl_irqfd() argument
1086 if (copy_from_user(&irqfd, udata, sizeof(irqfd))) in privcmd_ioctl_irqfd()
1464 static long privcmd_ioctl_ioeventfd(struct file *file, void __user *udata) in privcmd_ioctl_ioeventfd() argument
1469 if (copy_from_user(&ioeventfd, udata, sizeof(ioeventfd))) in privcmd_ioctl_ioeventfd()
1505 static inline long privcmd_ioctl_irqfd(struct file *file, void __user *udata) in privcmd_ioctl_irqfd() argument
1519 static inline long privcmd_ioctl_ioeventfd(struct file *file, void __user *udata) in privcmd_ioctl_ioeventfd() argument
1533 void __user *udata = (void __user *) data; in privcmd_ioctl() local
1537 ret = privcmd_ioctl_hypercall(file, udata); in privcmd_ioctl()
1541 ret = privcmd_ioctl_mmap(file, udata); in privcmd_ioctl()
1545 ret = privcmd_ioctl_mmap_batch(file, udata, 1); in privcmd_ioctl()
1549 ret = privcmd_ioctl_mmap_batch(file, udata, 2); in privcmd_ioctl()
1553 ret = privcmd_ioctl_dm_op(file, udata); in privcmd_ioctl()
1557 ret = privcmd_ioctl_restrict(file, udata); in privcmd_ioctl()
1561 ret = privcmd_ioctl_mmap_resource(file, udata); in privcmd_ioctl()
1565 ret = privcmd_ioctl_irqfd(file, udata); in privcmd_ioctl()
1569 ret = privcmd_ioctl_ioeventfd(file, udata); in privcmd_ioctl()
1573 ret = privcmd_ioctl_pcidev_get_gsi(file, udata); in privcmd_ioctl()