Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/hid/
H A Dhidraw.c433 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 Dioctl.h57 #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) macro
/openbmc/linux/drivers/dma-buf/
H A Ddma-heap.c144 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 Dioctl.h57 #define _IOC_SIZE(nr) \ macro
/openbmc/linux/include/uapi/asm-generic/
H A Dioctl.h97 #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) macro
/openbmc/linux/rust/kernel/
H A Dioctl.rs70 pub const fn _IOC_SIZE(nr: u32) -> usize { in _IOC_SIZE() function
/openbmc/u-boot/include/asm-generic/
H A Dioctl.h95 #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) macro
/openbmc/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()
/openbmc/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()
/openbmc/linux/drivers/media/mc/
H A Dmc-device.c390 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 Dvboxguest_linux.c124 if (_IOC_SIZE(req) && _IOC_SIZE(req) != size) in vbg_misc_device_ioctl()
/openbmc/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()
/openbmc/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()
/openbmc/linux/drivers/scsi/mpt3sas/
H A Dmpt3sas_ctl.c2563 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 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()
/openbmc/linux/tools/perf/trace/beauty/
H A Dioctl.c132 sz = _IOC_SIZE(cmd); in ioctl__scnprintf_cmd()
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_ioctl.c855 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 Duvdevice.c390 if (_IOC_SIZE(cmd) != sizeof(*ioctl)) in uvio_copy_and_check_ioctl()
/openbmc/linux/tools/testing/selftests/kvm/include/
H A Dkvm_util_base.h256 kvm_static_assert(!_IOC_SIZE(cmd) || sizeof(*arg) == _IOC_SIZE(cmd)); \
/openbmc/linux/fs/fuse/
H A Dioctl.c219 iov->iov_len = _IOC_SIZE(cmd); in fuse_do_ioctl()
/openbmc/linux/drivers/misc/
H A Dphantom.c200 if (_IOC_NR(cmd) <= 3 && _IOC_SIZE(cmd) == sizeof(compat_uptr_t)) { in phantom_compat_ioctl()
/openbmc/linux/drivers/virt/
H A Dfsl_hypervisor.c446 _IOC_SIZE(cmd)); in fsl_hv_ioctl()
/openbmc/linux/drivers/firewire/
H A Dcore-cdev.c1762 _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 Ddasd_ioctl.c606 size_t size = _IOC_SIZE(cmd); in dasd_ioctl_readall_cmb()
/openbmc/linux/drivers/accel/habanalabs/common/
H A Dhabanalabs_ioctl.c1165 hl_size = _IOC_SIZE(ioctl->cmd); in _hl_ioctl()
1166 usize = asize = _IOC_SIZE(cmd); in _hl_ioctl()

12