Home
last modified time | relevance | path

Searched refs:_IOC_SIZE (Results 1 – 25 of 34) sorted by relevance

12

/linux/drivers/hid/
H A Dhidraw.c464 int len = _IOC_SIZE(cmd); in hidraw_ioctl()
469 int len = _IOC_SIZE(cmd); in hidraw_ioctl()
475 int len = _IOC_SIZE(cmd); in hidraw_ioctl()
480 int len = _IOC_SIZE(cmd); in hidraw_ioctl()
486 int len = _IOC_SIZE(cmd); in hidraw_ioctl()
491 int len = _IOC_SIZE(cmd); in hidraw_ioctl()
504 if (len > _IOC_SIZE(cmd)) in hidraw_ioctl()
505 len = _IOC_SIZE(cmd); in hidraw_ioctl()
513 if (len > _IOC_SIZE(cmd)) in hidraw_ioctl()
514 len = _IOC_SIZE(cmd); in hidraw_ioctl()
[all …]
/linux/drivers/dma-buf/
H A Ddma-heap.c143 drv_size = _IOC_SIZE(kcmd); in dma_heap_ioctl()
144 out_size = _IOC_SIZE(ucmd); in dma_heap_ioctl()
/linux/arch/alpha/include/uapi/asm/
H A Dioctl.h57 #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) macro
/linux/arch/sparc/include/uapi/asm/
H A Dioctl.h57 #define _IOC_SIZE(nr) \ macro
/linux/drivers/usb/class/
H A Dusblp.c536 _IOC_TYPE(cmd), _IOC_NR(cmd), _IOC_SIZE(cmd), _IOC_DIR(cmd)); in usblp_ioctl()
553 if (length > _IOC_SIZE(cmd)) in usblp_ioctl()
554 length = _IOC_SIZE(cmd); /* truncate */ in usblp_ioctl()
567 _IOC_SIZE(cmd) < sizeof(twoints)) { in usblp_ioctl()
636 _IOC_SIZE(cmd) < sizeof(twoints)) { in usblp_ioctl()
657 _IOC_SIZE(cmd) < sizeof(twoints)) { in usblp_ioctl()
/linux/rust/kernel/
H A Dioctl.rs70 pub const fn _IOC_SIZE(nr: u32) -> usize { in _IOC_SIZE() function
/linux/drivers/input/
H A Djoydev.c569 return joydev_handle_JSIOCSAXMAP(joydev, argp, _IOC_SIZE(cmd)); in joydev_ioctl_common()
572 len = min_t(size_t, _IOC_SIZE(cmd), sizeof(joydev->abspam)); in joydev_ioctl_common()
576 return joydev_handle_JSIOCSBTNMAP(joydev, argp, _IOC_SIZE(cmd)); in joydev_ioctl_common()
579 len = min_t(size_t, _IOC_SIZE(cmd), sizeof(joydev->keypam)); in joydev_ioctl_common()
587 len = min_t(size_t, _IOC_SIZE(cmd), strlen(name) + 1); in joydev_ioctl_common()
/linux/drivers/media/mc/
H A Dmc-device.c386 copy_from_user(karg, uarg, _IOC_SIZE(cmd))) in copy_arg_from_user()
395 copy_to_user(uarg, karg, _IOC_SIZE(cmd))) in copy_arg_to_user()
450 if (_IOC_SIZE(info->cmd) > sizeof(__karg)) { in media_device_ioctl()
451 karg = kmalloc(_IOC_SIZE(info->cmd), GFP_KERNEL); in media_device_ioctl()
/linux/fs/
H A Dnsfs.c248 size_t usize = _IOC_SIZE(ioctl); in ns_ioctl()
269 size_t usize = _IOC_SIZE(ioctl); in ns_ioctl()
/linux/drivers/hid/usbhid/
H A Dhiddev.c825 if (len > _IOC_SIZE(cmd)) in hiddev_ioctl()
826 len = _IOC_SIZE(cmd); in hiddev_ioctl()
834 if (len > _IOC_SIZE(cmd)) in hiddev_ioctl()
835 len = _IOC_SIZE(cmd); in hiddev_ioctl()
/linux/drivers/media/dvb-core/
H A Ddvbdev.c982 if (_IOC_SIZE(cmd) <= sizeof(sbuf)) { in dvb_usercopy()
986 mbuf = kmalloc(_IOC_SIZE(cmd), GFP_KERNEL); in dvb_usercopy()
993 if (copy_from_user(parg, (void __user *)arg, _IOC_SIZE(cmd))) in dvb_usercopy()
1010 if (copy_to_user((void __user *)arg, parg, _IOC_SIZE(cmd))) in dvb_usercopy()
/linux/drivers/virt/vboxguest/
H A Dvboxguest_linux.c126 if (_IOC_SIZE(req) && _IOC_SIZE(req) != size) in vbg_misc_device_ioctl()
/linux/drivers/infiniband/hw/hfi1/
H A Dfile_ops.c196 ret = assign_ctxt(fd, arg, _IOC_SIZE(cmd)); in hfi1_file_ioctl()
200 ret = get_ctxt_info(fd, arg, _IOC_SIZE(cmd)); in hfi1_file_ioctl()
204 ret = get_base_info(fd, arg, _IOC_SIZE(cmd)); in hfi1_file_ioctl()
213 ret = user_exp_rcv_setup(fd, arg, _IOC_SIZE(cmd)); in hfi1_file_ioctl()
217 ret = user_exp_rcv_clear(fd, arg, _IOC_SIZE(cmd)); in hfi1_file_ioctl()
221 ret = user_exp_rcv_invalid(fd, arg, _IOC_SIZE(cmd)); in hfi1_file_ioctl()
/linux/tools/perf/trace/beauty/
H A Dioctl.c132 sz = _IOC_SIZE(cmd); in ioctl__scnprintf_cmd()
/linux/drivers/s390/char/
H A Duvdevice.c485 if (_IOC_SIZE(cmd) != sizeof(*ioctl)) in uvio_copy_and_check_ioctl()
/linux/tools/testing/selftests/kvm/include/
H A Dkvm_util.h279 kvm_static_assert(!_IOC_SIZE(cmd) || sizeof(*arg) == _IOC_SIZE(cmd)); \
/linux/drivers/misc/
H A Dphantom.c203 if (_IOC_NR(cmd) <= 3 && _IOC_SIZE(cmd) == sizeof(compat_uptr_t)) { in phantom_compat_ioctl()
/linux/drivers/firewire/
H A Dcore-cdev.c1767 _IOC_SIZE(cmd) > sizeof(buffer)) in dispatch_ioctl()
1773 if (copy_from_user(&buffer, arg, _IOC_SIZE(cmd))) in dispatch_ioctl()
1781 if (copy_to_user(arg, &buffer, _IOC_SIZE(cmd))) in dispatch_ioctl()
/linux/drivers/virt/
H A Dfsl_hypervisor.c446 _IOC_SIZE(cmd)); in fsl_hv_ioctl()
/linux/drivers/accel/habanalabs/common/
H A Dhabanalabs_ioctl.c1250 hl_size = _IOC_SIZE(ioctl->cmd); in _hl_ioctl()
1251 usize = asize = _IOC_SIZE(cmd); in _hl_ioctl()
/linux/Documentation/dev-tools/
H A Dcheckuapi.rst417 The kernel can use the ``_IOC_SIZE`` macro to get the size encoded
427 ret = copy_struct_from_user(&my_cmd, arg, sizeof(struct foo), _IOC_SIZE(cmd));
/linux/drivers/media/v4l2-core/
H A Dv4l2-ioctl.c3264 unsigned int n = _IOC_SIZE(real_cmd); in video_get_user()
3330 if (!err && n < _IOC_SIZE(real_cmd)) in video_get_user()
3331 memset((u8 *)parg + n, 0, _IOC_SIZE(real_cmd) - n); in video_get_user()
3343 if (copy_to_user(arg, parg, _IOC_SIZE(cmd))) in video_put_user()
3420 const size_t ioc_size = _IOC_SIZE(cmd); in video_usercopy()
/linux/include/uapi/linux/
H A Dsoundcard.h91 #define _SIOC_SIZE _IOC_SIZE
/linux/drivers/spi/
H A Dspidev.c343 tmp = _IOC_SIZE(cmd); in spidev_get_ioc_message()
/linux/drivers/input/misc/
H A Duinput.c1063 size = _IOC_SIZE(cmd); in uinput_ioctl_handler()

12