/linux/drivers/media/v4l2-core/ |
H A D | v4l2-dev.c | 523 do { if ((ops)->op) __set_bit(_IOC_NR(cmd), valid_ioctls); } while (0) 568 __set_bit(_IOC_NR(VIDIOC_G_PRIORITY), valid_ioctls); in determine_valid_ioctls() 569 __set_bit(_IOC_NR(VIDIOC_S_PRIORITY), valid_ioctls); in determine_valid_ioctls() 576 __set_bit(_IOC_NR(VIDIOC_QUERYCTRL), valid_ioctls); in determine_valid_ioctls() 578 __set_bit(_IOC_NR(VIDIOC_QUERY_EXT_CTRL), valid_ioctls); in determine_valid_ioctls() 580 __set_bit(_IOC_NR(VIDIOC_G_CTRL), valid_ioctls); in determine_valid_ioctls() 582 __set_bit(_IOC_NR(VIDIOC_S_CTRL), valid_ioctls); in determine_valid_ioctls() 584 __set_bit(_IOC_NR(VIDIOC_G_EXT_CTRLS), valid_ioctls); in determine_valid_ioctls() 586 __set_bit(_IOC_NR(VIDIOC_S_EXT_CTRLS), valid_ioctls); in determine_valid_ioctls() 588 __set_bit(_IOC_NR(VIDIOC_TRY_EXT_CTRLS), valid_ioctls); in determine_valid_ioctls() [all …]
|
H A D | v4l2-fh.c | 33 set_bit(_IOC_NR(VIDIOC_G_PRIORITY), vdev->valid_ioctls); in v4l2_fh_init() 34 set_bit(_IOC_NR(VIDIOC_S_PRIORITY), vdev->valid_ioctls); in v4l2_fh_init()
|
H A D | v4l2-ioctl.c | 35 #define is_valid_ioctl(vfd, cmd) test_bit(_IOC_NR(cmd), (vfd)->valid_ioctls) 2868 [_IOC_NR(_ioctl)] = { \ 2991 if (_IOC_NR(cmd) >= V4L2_IOCTLS) in v4l2_is_known_ioctl() 2993 return v4l2_ioctls[_IOC_NR(cmd)].ioctl == cmd; in v4l2_is_known_ioctl() 3000 if (_IOC_NR(cmd) >= V4L2_IOCTLS) in v4l2_ioctl_get_lock() 3003 (v4l2_ioctls[_IOC_NR(cmd)].flags & INFO_FL_QUEUE)) { in v4l2_ioctl_get_lock() 3008 (v4l2_ioctls[_IOC_NR(cmd)].flags & INFO_FL_QUEUE)) in v4l2_ioctl_get_lock() 3031 pr_cont("%s", v4l2_ioctls[_IOC_NR(cmd)].name); in v4l_printk_ioctl() 3046 type, _IOC_TYPE(cmd), dir, _IOC_NR(cmd), cmd); in v4l_printk_ioctl() 3102 info = &v4l2_ioctls[_IOC_NR(cmd)]; in __video_do_ioctl() [all …]
|
/linux/drivers/hid/ |
H A D | hidraw.c | 463 if (_IOC_NR(cmd) == _IOC_NR(HIDIOCSFEATURE(0))) { in hidraw_ioctl() 468 if (_IOC_NR(cmd) == _IOC_NR(HIDIOCGFEATURE(0))) { in hidraw_ioctl() 474 if (_IOC_NR(cmd) == _IOC_NR(HIDIOCSINPUT(0))) { in hidraw_ioctl() 479 if (_IOC_NR(cmd) == _IOC_NR(HIDIOCGINPUT(0))) { in hidraw_ioctl() 485 if (_IOC_NR(cmd) == _IOC_NR(HIDIOCSOUTPUT(0))) { in hidraw_ioctl() 490 if (_IOC_NR(cmd) == _IOC_NR(HIDIOCGOUTPUT(0))) { in hidraw_ioctl() 502 if (_IOC_NR(cmd) == _IOC_NR(HIDIOCGRAWNAME(0))) { in hidraw_ioctl() 511 if (_IOC_NR(cmd) == _IOC_NR(HIDIOCGRAWPHYS(0))) { in hidraw_ioctl() 520 if (_IOC_NR(cmd) == _IOC_NR(HIDIOCGRAWUNIQ(0))) { in hidraw_ioctl()
|
/linux/tools/perf/trace/beauty/ |
H A D | ioctl.c | 24 [_IOC_NR(TCGETS)] = "TCGETS", "TCSETS", "TCSETSW", "TCSETSF", "TCGETA", "TCSETA", "TCSETAW", in ioctl__scnprintf_tty_cmd() 30 [_IOC_NR(TIOCSBRK)] = "TIOCSBRK", "TIOCCBRK", "TIOCGSID", "TCGETS2", "TCSETS2", in ioctl__scnprintf_tty_cmd() 33 "TIOCGPTLCK", [_IOC_NR(TIOCGEXCL)] = "TIOCGEXCL", "TIOCGPTPEER", in ioctl__scnprintf_tty_cmd() 35 [_IOC_NR(FIONCLEX)] = "FIONCLEX", "FIOCLEX", "FIOASYNC", "TIOCSERCONFIG", in ioctl__scnprintf_tty_cmd() 131 nr = _IOC_NR(cmd), in ioctl__scnprintf_cmd() 183 return ioctl__scnprintf_usbdevfs_cmd(_IOC_NR(cmd), _IOC_DIR(cmd), bf, size); in syscall_arg__scnprintf_ioctl_cmd()
|
/linux/sound/core/ |
H A D | compress_offload.c | 1272 switch (_IOC_NR(cmd)) { in snd_compr_ioctl() 1273 case _IOC_NR(SNDRV_COMPRESS_IOCTL_VERSION): in snd_compr_ioctl() 1276 case _IOC_NR(SNDRV_COMPRESS_GET_CAPS): in snd_compr_ioctl() 1279 case _IOC_NR(SNDRV_COMPRESS_GET_CODEC_CAPS): in snd_compr_ioctl() 1282 case _IOC_NR(SNDRV_COMPRESS_SET_PARAMS): in snd_compr_ioctl() 1284 case _IOC_NR(SNDRV_COMPRESS_GET_PARAMS): in snd_compr_ioctl() 1286 case _IOC_NR(SNDRV_COMPRESS_SET_METADATA): in snd_compr_ioctl() 1288 case _IOC_NR(SNDRV_COMPRESS_GET_METADATA): in snd_compr_ioctl() 1294 switch (_IOC_NR(cmd)) { in snd_compr_ioctl() 1295 case _IOC_NR(SNDRV_COMPRESS_TASK_CREATE): in snd_compr_ioctl() [all …]
|
/linux/fs/ |
H A D | nsfs.c | 244 switch (_IOC_NR(ioctl)) { in ns_ioctl() 245 case _IOC_NR(NS_MNT_GET_INFO): { in ns_ioctl() 261 case _IOC_NR(NS_MNT_GET_PREV): in ns_ioctl() 264 case _IOC_NR(NS_MNT_GET_NEXT): { in ns_ioctl()
|
/linux/drivers/input/ |
H A D | evdev.c | 1197 if ((_IOC_NR(cmd) & ~EV_MAX) == _IOC_NR(EVIOCGBIT(0, 0))) in evdev_do_ioctl() 1199 _IOC_NR(cmd) & EV_MAX, size, in evdev_do_ioctl() 1202 if ((_IOC_NR(cmd) & ~ABS_MAX) == _IOC_NR(EVIOCGABS(0))) { in evdev_do_ioctl() 1207 t = _IOC_NR(cmd) & ABS_MAX; in evdev_do_ioctl() 1220 if ((_IOC_NR(cmd) & ~ABS_MAX) == _IOC_NR(EVIOCSABS(0))) { in evdev_do_ioctl() 1225 t = _IOC_NR(cmd) & ABS_MAX; in evdev_do_ioctl()
|
/linux/drivers/android/ |
H A D | binder_trace.h | 405 _IOC_NR(__entry->cmd) < ARRAY_SIZE(binder_command_strings) ? 406 binder_command_strings[_IOC_NR(__entry->cmd)] : 421 _IOC_NR(__entry->cmd) < ARRAY_SIZE(binder_return_strings) ? 422 binder_return_strings[_IOC_NR(__entry->cmd)] :
|
H A D | binder_internal.h | 138 atomic_t br[_IOC_NR(BR_CLEAR_FREEZE_NOTIFICATION_DONE) + 1]; 139 atomic_t bc[_IOC_NR(BC_FREEZE_NOTIFICATION_DONE) + 1];
|
/linux/fs/autofs/ |
H A D | dev-ioctl.c | 113 unsigned int inr = _IOC_NR(cmd); in validate_dev_ioctl() 650 #define cmd_idx(cmd) (cmd - _IOC_NR(AUTOFS_DEV_IOCTL_IOC_FIRST)) 689 cmd_first = _IOC_NR(AUTOFS_DEV_IOCTL_IOC_FIRST); in _autofs_dev_ioctl() 690 cmd = _IOC_NR(command); in _autofs_dev_ioctl()
|
H A D | root.c | 864 _IOC_NR(cmd) - _IOC_NR(AUTOFS_IOC_FIRST) >= AUTOFS_IOC_COUNT) in autofs_root_ioctl_unlocked()
|
/linux/include/drm/ |
H A D | drm_ioctl.h | 70 #define DRM_IOCTL_NR(n) _IOC_NR(n)
|
/linux/arch/alpha/include/uapi/asm/ |
H A D | ioctl.h | 56 #define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK) macro
|
/linux/arch/sparc/include/uapi/asm/ |
H A D | ioctl.h | 56 #define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK) macro
|
/linux/drivers/spi/ |
H A D | spidev.c | 339 || _IOC_NR(cmd) != _IOC_NR(SPI_IOC_MESSAGE(0)) in spidev_get_ioc_message() 577 && _IOC_NR(cmd) == _IOC_NR(SPI_IOC_MESSAGE(0)) in spidev_compat_ioctl()
|
/linux/fs/orangefs/ |
H A D | devorangefs-req.c | 583 if (_IOC_NR(command) >= ORANGEFS_DEV_MAXNR || _IOC_NR(command) <= 0) { in check_ioctl_command() 585 _IOC_NR(command), ORANGEFS_DEV_MAXNR); in check_ioctl_command()
|
/linux/rust/kernel/ |
H A D | ioctl.rs | 65 pub const fn _IOC_NR(nr: u32) -> u32 { in _IOC_NR() function
|
/linux/drivers/media/mc/ |
H A D | mc-device.c | 405 [_IOC_NR(MEDIA_IOC_##__cmd)] = { \ 444 if (_IOC_NR(cmd) >= ARRAY_SIZE(ioctl_info) in media_device_ioctl() 445 || ioctl_info[_IOC_NR(cmd)].cmd != cmd) in media_device_ioctl() 448 info = &ioctl_info[_IOC_NR(cmd)]; in media_device_ioctl()
|
/linux/drivers/hid/usbhid/ |
H A D | hiddev.c | 823 if (_IOC_NR(cmd) == _IOC_NR(HIDIOCGNAME(0))) { in hiddev_ioctl() 832 if (_IOC_NR(cmd) == _IOC_NR(HIDIOCGPHYS(0))) { in hiddev_ioctl()
|
/linux/drivers/iommu/iommufd/ |
H A D | main.c | 326 [_IOC_NR(_ioctl) - IOMMUFD_CMD_BASE] = { \ 387 nr = _IOC_NR(cmd); in iommufd_fops_ioctl()
|
/linux/drivers/block/ |
H A D | ublk_drv.c | 52 #define UBLK_CMD_DEL_DEV_ASYNC _IOC_NR(UBLK_U_CMD_DEL_DEV_ASYNC) 1792 ^ (_IOC_NR(cmd_op) == UBLK_IO_NEED_GET_DATA)) in __ublk_ch_uring_cmd() 1800 switch (_IOC_NR(cmd_op)) { in __ublk_ch_uring_cmd() 2924 if (_IOC_NR(cmd->cmd_op) != UBLK_CMD_GET_DEV_INFO2) in ublk_ctrl_uring_cmd_permission() 2945 switch (_IOC_NR(cmd->cmd_op)) { in ublk_ctrl_uring_cmd_permission() 2950 case (_IOC_NR(UBLK_U_CMD_GET_FEATURES)): in ublk_ctrl_uring_cmd_permission() 3005 if (_IOC_NR(cmd_op) != UBLK_CMD_ADD_DEV) { in ublk_ctrl_uring_cmd() 3016 switch (_IOC_NR(cmd_op)) { in ublk_ctrl_uring_cmd()
|
/linux/drivers/dma-buf/ |
H A D | dma-heap.c | 132 int nr = _IOC_NR(ucmd); in dma_heap_ioctl()
|
/linux/drivers/accel/habanalabs/common/ |
H A D | habanalabs_ioctl.c | 1224 [_IOC_NR(ioctl) - HL_COMMAND_START] = {.cmd = ioctl, .func = _func} 1233 unsigned int nr = _IOC_NR(cmd); in _hl_ioctl() 1301 unsigned int nr = _IOC_NR(cmd); in hl_ioctl_control() 1308 if (nr == _IOC_NR(DRM_IOCTL_HL_INFO)) { in hl_ioctl_control()
|
/linux/tools/testing/selftests/drivers/s390x/uvdevice/ |
H A D | test_uvdevice.c | 129 uint8_t nr = _IOC_NR(variant->ioctl_cmd); in TEST_F()
|