Home
last modified time | relevance | path

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

12

/linux/drivers/hid/
A Dhidraw.c421 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 Ddma-heap.c142 drv_size = _IOC_SIZE(kcmd); in dma_heap_ioctl()
143 out_size = _IOC_SIZE(ucmd); in dma_heap_ioctl()
/linux/drivers/usb/class/
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/arch/alpha/include/uapi/asm/
A Dioctl.h57 #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) macro
/linux/arch/sparc/include/uapi/asm/
A Dioctl.h57 #define _IOC_SIZE(nr) \ macro
/linux/drivers/input/
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/
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()
/linux/drivers/media/dvb-core/
A Ddvbdev.c934 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 Dioctl.h97 #define _IOC_SIZE(nr) (((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK) macro
/linux/drivers/infiniband/hw/hfi1/
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/drivers/scsi/mpt3sas/
A Dmpt3sas_ctl.c2550 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 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/virt/vboxguest/
A Dvboxguest_linux.c124 if (_IOC_SIZE(req) && _IOC_SIZE(req) != size) in vbg_misc_device_ioctl()
/linux/tools/perf/trace/beauty/
A Dioctl.c132 sz = _IOC_SIZE(cmd); in ioctl__scnprintf_cmd()
/linux/drivers/gpu/drm/
A Ddrm_ioctl.c845 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 Dhabanalabs_ioctl.c676 hl_size = _IOC_SIZE(ioctl->cmd); in _hl_ioctl()
677 usize = asize = _IOC_SIZE(cmd); in _hl_ioctl()
/linux/drivers/firewire/
A Dcore-cdev.c1641 _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 Dioctl.c199 iov->iov_len = _IOC_SIZE(cmd); in fuse_do_ioctl()
/linux/drivers/s390/block/
A Ddasd_ioctl.c555 size_t size = _IOC_SIZE(cmd); in dasd_ioctl_readall_cmb()
/linux/drivers/misc/
A Dphantom.c200 if (_IOC_NR(cmd) <= 3 && _IOC_SIZE(cmd) == sizeof(compat_uptr_t)) { in phantom_compat_ioctl()
/linux/drivers/virt/
A Dfsl_hypervisor.c446 _IOC_SIZE(cmd)); in fsl_hv_ioctl()
/linux/drivers/media/v4l2-core/
A Dv4l2-ioctl.c3122 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 Dspidev.c332 tmp = _IOC_SIZE(cmd); in spidev_get_ioc_message()
/linux/include/uapi/linux/
A Dsoundcard.h91 #define _SIOC_SIZE _IOC_SIZE
/linux/drivers/gpu/drm/amd/amdkfd/
A Dkfd_chardev.c1985 amdkfd_size = _IOC_SIZE(ioctl->cmd); in kfd_ioctl()
1986 usize = asize = _IOC_SIZE(cmd); in kfd_ioctl()

Completed in 58 milliseconds

12