/openbmc/linux/drivers/hid/ |
H A D | hidraw.c | 433 int len = _IOC_SIZE(cmd); in hidraw_ioctl() 438 int len = _IOC_SIZE(cmd); in hidraw_ioctl() 444 int len = _IOC_SIZE(cmd); in hidraw_ioctl() 449 int len = _IOC_SIZE(cmd); in hidraw_ioctl() 455 int len = _IOC_SIZE(cmd); in hidraw_ioctl() 460 int len = _IOC_SIZE(cmd); in hidraw_ioctl() 473 if (len > _IOC_SIZE(cmd)) in hidraw_ioctl() 474 len = _IOC_SIZE(cmd); in hidraw_ioctl() 482 if (len > _IOC_SIZE(cmd)) in hidraw_ioctl() 483 len = _IOC_SIZE(cmd); in hidraw_ioctl() [all …]
|
/openbmc/linux/arch/alpha/include/uapi/asm/ |
H A D | ioctl.h | 57 #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) macro
|
/openbmc/linux/drivers/dma-buf/ |
H A D | dma-heap.c | 144 drv_size = _IOC_SIZE(kcmd); in dma_heap_ioctl() 145 out_size = _IOC_SIZE(ucmd); in dma_heap_ioctl()
|
/openbmc/linux/arch/sparc/include/uapi/asm/ |
H A D | ioctl.h | 57 #define _IOC_SIZE(nr) \ macro
|
/openbmc/linux/include/uapi/asm-generic/ |
H A D | ioctl.h | 97 #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) macro
|
/openbmc/linux/rust/kernel/ |
H A D | ioctl.rs | 70 pub const fn _IOC_SIZE(nr: u32) -> usize { in _IOC_SIZE() function
|
/openbmc/u-boot/include/asm-generic/ |
H A D | ioctl.h | 95 #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) macro
|
/openbmc/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()
|
/openbmc/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()
|
/openbmc/linux/drivers/media/mc/ |
H 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()
|
/openbmc/linux/drivers/virt/vboxguest/ |
H A D | vboxguest_linux.c | 124 if (_IOC_SIZE(req) && _IOC_SIZE(req) != size) in vbg_misc_device_ioctl()
|
/openbmc/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()
|
/openbmc/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()
|
/openbmc/linux/drivers/scsi/mpt3sas/ |
H A D | mpt3sas_ctl.c | 2563 if (_IOC_SIZE(cmd) != sizeof(struct mpt3_ioctl_command32)) in _ctl_compat_mpt_command() 2645 if (_IOC_SIZE(cmd) == sizeof(struct mpt3_ioctl_iocinfo)) in _ctl_ioctl_main() 2673 if (_IOC_SIZE(cmd) == sizeof(struct mpt3_ioctl_command)) { in _ctl_ioctl_main() 2680 if (_IOC_SIZE(cmd) == sizeof(struct mpt3_ioctl_eventquery)) in _ctl_ioctl_main() 2691 if (_IOC_SIZE(cmd) == sizeof(struct mpt3_ioctl_diag_reset)) in _ctl_ioctl_main() 2699 if (_IOC_SIZE(cmd) == sizeof(struct mpt3_diag_register)) in _ctl_ioctl_main() 2703 if (_IOC_SIZE(cmd) == sizeof(struct mpt3_diag_unregister)) in _ctl_ioctl_main() 2707 if (_IOC_SIZE(cmd) == sizeof(struct mpt3_diag_query)) in _ctl_ioctl_main() 2711 if (_IOC_SIZE(cmd) == sizeof(struct mpt3_diag_release)) in _ctl_ioctl_main() 2715 if (_IOC_SIZE(cmd) == sizeof(struct mpt3_diag_read_buffer)) in _ctl_ioctl_main() [all …]
|
/openbmc/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()
|
/openbmc/linux/tools/perf/trace/beauty/ |
H A D | ioctl.c | 132 sz = _IOC_SIZE(cmd); in ioctl__scnprintf_cmd()
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_ioctl.c | 855 drv_size = _IOC_SIZE(ioctl->cmd); in drm_ioctl() 856 out_size = in_size = _IOC_SIZE(cmd); in drm_ioctl()
|
/openbmc/linux/drivers/s390/char/ |
H A D | uvdevice.c | 390 if (_IOC_SIZE(cmd) != sizeof(*ioctl)) in uvio_copy_and_check_ioctl()
|
/openbmc/linux/tools/testing/selftests/kvm/include/ |
H A D | kvm_util_base.h | 256 kvm_static_assert(!_IOC_SIZE(cmd) || sizeof(*arg) == _IOC_SIZE(cmd)); \
|
/openbmc/linux/fs/fuse/ |
H A D | ioctl.c | 219 iov->iov_len = _IOC_SIZE(cmd); in fuse_do_ioctl()
|
/openbmc/linux/drivers/misc/ |
H A D | phantom.c | 200 if (_IOC_NR(cmd) <= 3 && _IOC_SIZE(cmd) == sizeof(compat_uptr_t)) { in phantom_compat_ioctl()
|
/openbmc/linux/drivers/virt/ |
H A D | fsl_hypervisor.c | 446 _IOC_SIZE(cmd)); in fsl_hv_ioctl()
|
/openbmc/linux/drivers/firewire/ |
H A D | core-cdev.c | 1762 _IOC_SIZE(cmd) > sizeof(buffer)) in dispatch_ioctl() 1768 if (copy_from_user(&buffer, arg, _IOC_SIZE(cmd))) in dispatch_ioctl() 1776 if (copy_to_user(arg, &buffer, _IOC_SIZE(cmd))) in dispatch_ioctl()
|
/openbmc/linux/drivers/s390/block/ |
H A D | dasd_ioctl.c | 606 size_t size = _IOC_SIZE(cmd); in dasd_ioctl_readall_cmb()
|
/openbmc/linux/drivers/accel/habanalabs/common/ |
H A D | habanalabs_ioctl.c | 1165 hl_size = _IOC_SIZE(ioctl->cmd); in _hl_ioctl() 1166 usize = asize = _IOC_SIZE(cmd); in _hl_ioctl()
|