/linux/drivers/hid/ |
H A D | hidraw.c | 464 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 D | dma-heap.c | 143 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 D | ioctl.h | 57 #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) macro
|
/linux/arch/sparc/include/uapi/asm/ |
H A D | ioctl.h | 57 #define _IOC_SIZE(nr) \ macro
|
/linux/drivers/usb/class/ |
H A D | usblp.c | 536 _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 D | ioctl.rs | 70 pub const fn _IOC_SIZE(nr: u32) -> usize { in _IOC_SIZE() function
|
/linux/drivers/input/ |
H A D | joydev.c | 569 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 D | mc-device.c | 386 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 D | nsfs.c | 248 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 D | hiddev.c | 825 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 D | dvbdev.c | 982 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 D | vboxguest_linux.c | 126 if (_IOC_SIZE(req) && _IOC_SIZE(req) != size) in vbg_misc_device_ioctl()
|
/linux/drivers/infiniband/hw/hfi1/ |
H A D | file_ops.c | 196 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 D | ioctl.c | 132 sz = _IOC_SIZE(cmd); in ioctl__scnprintf_cmd()
|
/linux/drivers/s390/char/ |
H A D | uvdevice.c | 485 if (_IOC_SIZE(cmd) != sizeof(*ioctl)) in uvio_copy_and_check_ioctl()
|
/linux/tools/testing/selftests/kvm/include/ |
H A D | kvm_util.h | 279 kvm_static_assert(!_IOC_SIZE(cmd) || sizeof(*arg) == _IOC_SIZE(cmd)); \
|
/linux/drivers/misc/ |
H A D | phantom.c | 203 if (_IOC_NR(cmd) <= 3 && _IOC_SIZE(cmd) == sizeof(compat_uptr_t)) { in phantom_compat_ioctl()
|
/linux/drivers/firewire/ |
H A D | core-cdev.c | 1767 _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 D | fsl_hypervisor.c | 446 _IOC_SIZE(cmd)); in fsl_hv_ioctl()
|
/linux/drivers/accel/habanalabs/common/ |
H A D | habanalabs_ioctl.c | 1250 hl_size = _IOC_SIZE(ioctl->cmd); in _hl_ioctl() 1251 usize = asize = _IOC_SIZE(cmd); in _hl_ioctl()
|
/linux/Documentation/dev-tools/ |
H A D | checkuapi.rst | 417 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 D | v4l2-ioctl.c | 3264 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 D | soundcard.h | 91 #define _SIOC_SIZE _IOC_SIZE
|
/linux/drivers/spi/ |
H A D | spidev.c | 343 tmp = _IOC_SIZE(cmd); in spidev_get_ioc_message()
|
/linux/drivers/input/misc/ |
H A D | uinput.c | 1063 size = _IOC_SIZE(cmd); in uinput_ioctl_handler()
|