/linux/drivers/hid/ |
A D | hidraw.c | 421 int len = _IOC_SIZE(cmd); in hidraw_ioctl() 426 int len = _IOC_SIZE(cmd); in hidraw_ioctl() 432 int len = _IOC_SIZE(cmd); in hidraw_ioctl() 437 int len = _IOC_SIZE(cmd); in hidraw_ioctl() 443 int len = _IOC_SIZE(cmd); in hidraw_ioctl() 448 int len = _IOC_SIZE(cmd); in hidraw_ioctl() 461 if (len > _IOC_SIZE(cmd)) in hidraw_ioctl() 462 len = _IOC_SIZE(cmd); in hidraw_ioctl() 470 if (len > _IOC_SIZE(cmd)) in hidraw_ioctl() 471 len = _IOC_SIZE(cmd); in hidraw_ioctl() [all …]
|
/linux/drivers/dma-buf/ |
A D | dma-heap.c | 142 drv_size = _IOC_SIZE(kcmd); in dma_heap_ioctl() 143 out_size = _IOC_SIZE(ucmd); in dma_heap_ioctl()
|
/linux/drivers/usb/class/ |
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/arch/alpha/include/uapi/asm/ |
A D | ioctl.h | 57 #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) macro
|
/linux/arch/sparc/include/uapi/asm/ |
A D | ioctl.h | 57 #define _IOC_SIZE(nr) \ macro
|
/linux/drivers/input/ |
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/ |
A D | mc-device.c | 390 copy_from_user(karg, uarg, _IOC_SIZE(cmd))) in copy_arg_from_user() 399 copy_to_user(uarg, karg, _IOC_SIZE(cmd))) in copy_arg_to_user() 454 if (_IOC_SIZE(info->cmd) > sizeof(__karg)) { in media_device_ioctl() 455 karg = kmalloc(_IOC_SIZE(info->cmd), GFP_KERNEL); in media_device_ioctl()
|
/linux/drivers/media/dvb-core/ |
A D | dvbdev.c | 934 if (_IOC_SIZE(cmd) <= sizeof(sbuf)) { in dvb_usercopy() 938 mbuf = kmalloc(_IOC_SIZE(cmd), GFP_KERNEL); in dvb_usercopy() 945 if (copy_from_user(parg, (void __user *)arg, _IOC_SIZE(cmd))) in dvb_usercopy() 962 if (copy_to_user((void __user *)arg, parg, _IOC_SIZE(cmd))) in dvb_usercopy()
|
/linux/include/uapi/asm-generic/ |
A D | ioctl.h | 97 #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) macro
|
/linux/drivers/infiniband/hw/hfi1/ |
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/drivers/scsi/mpt3sas/ |
A D | mpt3sas_ctl.c | 2550 if (_IOC_SIZE(cmd) != sizeof(struct mpt3_ioctl_command32)) in _ctl_compat_mpt_command() 2632 if (_IOC_SIZE(cmd) == sizeof(struct mpt3_ioctl_iocinfo)) in _ctl_ioctl_main() 2660 if (_IOC_SIZE(cmd) == sizeof(struct mpt3_ioctl_command)) { in _ctl_ioctl_main() 2667 if (_IOC_SIZE(cmd) == sizeof(struct mpt3_ioctl_eventquery)) in _ctl_ioctl_main() 2678 if (_IOC_SIZE(cmd) == sizeof(struct mpt3_ioctl_diag_reset)) in _ctl_ioctl_main() 2686 if (_IOC_SIZE(cmd) == sizeof(struct mpt3_diag_register)) in _ctl_ioctl_main() 2690 if (_IOC_SIZE(cmd) == sizeof(struct mpt3_diag_unregister)) in _ctl_ioctl_main() 2694 if (_IOC_SIZE(cmd) == sizeof(struct mpt3_diag_query)) in _ctl_ioctl_main() 2698 if (_IOC_SIZE(cmd) == sizeof(struct mpt3_diag_release)) in _ctl_ioctl_main() 2702 if (_IOC_SIZE(cmd) == sizeof(struct mpt3_diag_read_buffer)) in _ctl_ioctl_main() [all …]
|
/linux/drivers/hid/usbhid/ |
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/virt/vboxguest/ |
A D | vboxguest_linux.c | 124 if (_IOC_SIZE(req) && _IOC_SIZE(req) != size) in vbg_misc_device_ioctl()
|
/linux/tools/perf/trace/beauty/ |
A D | ioctl.c | 132 sz = _IOC_SIZE(cmd); in ioctl__scnprintf_cmd()
|
/linux/drivers/gpu/drm/ |
A D | drm_ioctl.c | 845 drv_size = _IOC_SIZE(ioctl->cmd); in drm_ioctl() 846 out_size = in_size = _IOC_SIZE(cmd); in drm_ioctl()
|
/linux/drivers/misc/habanalabs/common/ |
A D | habanalabs_ioctl.c | 676 hl_size = _IOC_SIZE(ioctl->cmd); in _hl_ioctl() 677 usize = asize = _IOC_SIZE(cmd); in _hl_ioctl()
|
/linux/drivers/firewire/ |
A D | core-cdev.c | 1641 _IOC_SIZE(cmd) > sizeof(buffer)) in dispatch_ioctl() 1647 if (copy_from_user(&buffer, arg, _IOC_SIZE(cmd))) in dispatch_ioctl() 1655 if (copy_to_user(arg, &buffer, _IOC_SIZE(cmd))) in dispatch_ioctl()
|
/linux/fs/fuse/ |
A D | ioctl.c | 199 iov->iov_len = _IOC_SIZE(cmd); in fuse_do_ioctl()
|
/linux/drivers/s390/block/ |
A D | dasd_ioctl.c | 555 size_t size = _IOC_SIZE(cmd); in dasd_ioctl_readall_cmb()
|
/linux/drivers/misc/ |
A D | phantom.c | 200 if (_IOC_NR(cmd) <= 3 && _IOC_SIZE(cmd) == sizeof(compat_uptr_t)) { in phantom_compat_ioctl()
|
/linux/drivers/virt/ |
A D | fsl_hypervisor.c | 446 _IOC_SIZE(cmd)); in fsl_hv_ioctl()
|
/linux/drivers/media/v4l2-core/ |
A D | v4l2-ioctl.c | 3122 unsigned int n = _IOC_SIZE(real_cmd); in video_get_user() 3188 if (!err && n < _IOC_SIZE(real_cmd)) in video_get_user() 3189 memset((u8 *)parg + n, 0, _IOC_SIZE(real_cmd) - n); in video_get_user() 3201 if (copy_to_user(arg, parg, _IOC_SIZE(cmd))) in video_put_user() 3278 const size_t ioc_size = _IOC_SIZE(cmd); in video_usercopy()
|
/linux/drivers/spi/ |
A D | spidev.c | 332 tmp = _IOC_SIZE(cmd); in spidev_get_ioc_message()
|
/linux/include/uapi/linux/ |
A D | soundcard.h | 91 #define _SIOC_SIZE _IOC_SIZE
|
/linux/drivers/gpu/drm/amd/amdkfd/ |
A D | kfd_chardev.c | 1985 amdkfd_size = _IOC_SIZE(ioctl->cmd); in kfd_ioctl() 1986 usize = asize = _IOC_SIZE(cmd); in kfd_ioctl()
|