/Linux-v6.1/drivers/media/v4l2-core/ |
D | v4l2-dev.c | 522 do { if ((ops)->op) __set_bit(_IOC_NR(cmd), valid_ioctls); } while (0) 565 __set_bit(_IOC_NR(VIDIOC_G_PRIORITY), valid_ioctls); in determine_valid_ioctls() 566 __set_bit(_IOC_NR(VIDIOC_S_PRIORITY), valid_ioctls); in determine_valid_ioctls() 573 __set_bit(_IOC_NR(VIDIOC_QUERYCTRL), valid_ioctls); in determine_valid_ioctls() 575 __set_bit(_IOC_NR(VIDIOC_QUERY_EXT_CTRL), valid_ioctls); in determine_valid_ioctls() 577 __set_bit(_IOC_NR(VIDIOC_G_CTRL), valid_ioctls); in determine_valid_ioctls() 579 __set_bit(_IOC_NR(VIDIOC_S_CTRL), valid_ioctls); in determine_valid_ioctls() 581 __set_bit(_IOC_NR(VIDIOC_G_EXT_CTRLS), valid_ioctls); in determine_valid_ioctls() 583 __set_bit(_IOC_NR(VIDIOC_S_EXT_CTRLS), valid_ioctls); in determine_valid_ioctls() 585 __set_bit(_IOC_NR(VIDIOC_TRY_EXT_CTRLS), valid_ioctls); in determine_valid_ioctls() [all …]
|
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()
|
D | v4l2-ioctl.c | 40 #define is_valid_ioctl(vfd, cmd) test_bit(_IOC_NR(cmd), (vfd)->valid_ioctls) 2783 [_IOC_NR(_ioctl)] = { \ 2906 if (_IOC_NR(cmd) >= V4L2_IOCTLS) in v4l2_is_known_ioctl() 2908 return v4l2_ioctls[_IOC_NR(cmd)].ioctl == cmd; in v4l2_is_known_ioctl() 2915 if (_IOC_NR(cmd) >= V4L2_IOCTLS) in v4l2_ioctl_get_lock() 2918 (v4l2_ioctls[_IOC_NR(cmd)].flags & INFO_FL_QUEUE)) { in v4l2_ioctl_get_lock() 2923 (v4l2_ioctls[_IOC_NR(cmd)].flags & INFO_FL_QUEUE)) in v4l2_ioctl_get_lock() 2942 if (_IOC_NR(cmd) >= V4L2_IOCTLS) { in v4l_printk_ioctl() 2946 pr_cont("%s", v4l2_ioctls[_IOC_NR(cmd)].name); in v4l_printk_ioctl() 2961 type, _IOC_TYPE(cmd), dir, _IOC_NR(cmd), cmd); in v4l_printk_ioctl() [all …]
|
/Linux-v6.1/drivers/hid/ |
D | hidraw.c | 422 if (_IOC_NR(cmd) == _IOC_NR(HIDIOCSFEATURE(0))) { in hidraw_ioctl() 427 if (_IOC_NR(cmd) == _IOC_NR(HIDIOCGFEATURE(0))) { in hidraw_ioctl() 433 if (_IOC_NR(cmd) == _IOC_NR(HIDIOCSINPUT(0))) { in hidraw_ioctl() 438 if (_IOC_NR(cmd) == _IOC_NR(HIDIOCGINPUT(0))) { in hidraw_ioctl() 444 if (_IOC_NR(cmd) == _IOC_NR(HIDIOCSOUTPUT(0))) { in hidraw_ioctl() 449 if (_IOC_NR(cmd) == _IOC_NR(HIDIOCGOUTPUT(0))) { in hidraw_ioctl() 461 if (_IOC_NR(cmd) == _IOC_NR(HIDIOCGRAWNAME(0))) { in hidraw_ioctl() 470 if (_IOC_NR(cmd) == _IOC_NR(HIDIOCGRAWPHYS(0))) { in hidraw_ioctl() 479 if (_IOC_NR(cmd) == _IOC_NR(HIDIOCGRAWUNIQ(0))) { in hidraw_ioctl()
|
/Linux-v6.1/tools/perf/trace/beauty/ |
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-v6.1/sound/core/ |
D | compress_offload.c | 975 switch (_IOC_NR(cmd)) { in snd_compr_ioctl() 976 case _IOC_NR(SNDRV_COMPRESS_IOCTL_VERSION): in snd_compr_ioctl() 980 case _IOC_NR(SNDRV_COMPRESS_GET_CAPS): in snd_compr_ioctl() 984 case _IOC_NR(SNDRV_COMPRESS_GET_CODEC_CAPS): in snd_compr_ioctl() 988 case _IOC_NR(SNDRV_COMPRESS_SET_PARAMS): in snd_compr_ioctl() 991 case _IOC_NR(SNDRV_COMPRESS_GET_PARAMS): in snd_compr_ioctl() 994 case _IOC_NR(SNDRV_COMPRESS_SET_METADATA): in snd_compr_ioctl() 997 case _IOC_NR(SNDRV_COMPRESS_GET_METADATA): in snd_compr_ioctl() 1000 case _IOC_NR(SNDRV_COMPRESS_TSTAMP): in snd_compr_ioctl() 1003 case _IOC_NR(SNDRV_COMPRESS_AVAIL): in snd_compr_ioctl() [all …]
|
/Linux-v6.1/include/media/ |
D | v4l2-dev.h | 471 if (_IOC_NR(cmd) < BASE_VIDIOC_PRIVATE) in v4l2_disable_ioctl() 472 set_bit(_IOC_NR(cmd), vdev->valid_ioctls); in v4l2_disable_ioctl()
|
/Linux-v6.1/drivers/input/ |
D | evdev.c | 1199 if ((_IOC_NR(cmd) & ~EV_MAX) == _IOC_NR(EVIOCGBIT(0, 0))) in evdev_do_ioctl() 1201 _IOC_NR(cmd) & EV_MAX, size, in evdev_do_ioctl() 1204 if ((_IOC_NR(cmd) & ~ABS_MAX) == _IOC_NR(EVIOCGABS(0))) { in evdev_do_ioctl() 1209 t = _IOC_NR(cmd) & ABS_MAX; in evdev_do_ioctl() 1222 if ((_IOC_NR(cmd) & ~ABS_MAX) == _IOC_NR(EVIOCSABS(0))) { in evdev_do_ioctl() 1227 t = _IOC_NR(cmd) & ABS_MAX; in evdev_do_ioctl()
|
/Linux-v6.1/drivers/android/ |
D | binder_internal.h | 136 atomic_t br[_IOC_NR(BR_ONEWAY_SPAM_SUSPECT) + 1]; 137 atomic_t bc[_IOC_NR(BC_REPLY_SG) + 1];
|
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)] :
|
/Linux-v6.1/fs/autofs/ |
D | dev-ioctl.c | 138 unsigned int inr = _IOC_NR(cmd); in validate_dev_ioctl() 564 #define cmd_idx(cmd) (cmd - _IOC_NR(AUTOFS_DEV_IOCTL_IOC_FIRST)) 603 cmd_first = _IOC_NR(AUTOFS_DEV_IOCTL_IOC_FIRST); in _autofs_dev_ioctl() 604 cmd = _IOC_NR(command); in _autofs_dev_ioctl()
|
/Linux-v6.1/include/drm/ |
D | drm_ioctl.h | 70 #define DRM_IOCTL_NR(n) _IOC_NR(n)
|
/Linux-v6.1/arch/alpha/include/uapi/asm/ |
D | ioctl.h | 56 #define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK) macro
|
/Linux-v6.1/arch/sparc/include/uapi/asm/ |
D | ioctl.h | 56 #define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK) macro
|
/Linux-v6.1/drivers/spi/ |
D | spidev.c | 329 || _IOC_NR(cmd) != _IOC_NR(SPI_IOC_MESSAGE(0)) in spidev_get_ioc_message() 560 && _IOC_NR(cmd) == _IOC_NR(SPI_IOC_MESSAGE(0)) in spidev_compat_ioctl()
|
/Linux-v6.1/drivers/staging/vc04_services/interface/vchiq_arm/ |
D | vchiq_dev.c | 587 ((_IOC_TYPE(cmd) == VCHIQ_IOC_MAGIC) && (_IOC_NR(cmd) <= VCHIQ_IOC_MAX)) ? in vchiq_ioctl() 588 ioctl_names[_IOC_NR(cmd)] : "<invalid>", arg); in vchiq_ioctl() 874 instance, (_IOC_NR(cmd) <= VCHIQ_IOC_MAX) ? in vchiq_ioctl() 875 ioctl_names[_IOC_NR(cmd)] : "<invalid>", status, ret); in vchiq_ioctl() 879 instance, (_IOC_NR(cmd) <= VCHIQ_IOC_MAX) ? in vchiq_ioctl() 880 ioctl_names[_IOC_NR(cmd)] : "<invalid>", status, ret); in vchiq_ioctl()
|
/Linux-v6.1/include/uapi/asm-generic/ |
D | ioctl.h | 96 #define _IOC_NR(nr) (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK) macro
|
/Linux-v6.1/fs/orangefs/ |
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-v6.1/drivers/char/pcmcia/ |
D | cm4000_cs.c | 1413 [_IOC_NR(CM_IOCGSTATUS)] "CM_IOCGSTATUS", in cmm_ioctl() 1414 [_IOC_NR(CM_IOCGATR)] "CM_IOCGATR", in cmm_ioctl() 1415 [_IOC_NR(CM_IOCARDOFF)] "CM_IOCARDOFF", in cmm_ioctl() 1416 [_IOC_NR(CM_IOCSPTS)] "CM_IOCSPTS", in cmm_ioctl() 1417 [_IOC_NR(CM_IOSDBGLVL)] "CM4000_DBGLVL", in cmm_ioctl() 1420 iminor(inode), ioctl_names[_IOC_NR(cmd)]); in cmm_ioctl() 1441 if (_IOC_NR(cmd) > CM_IOC_MAXNR) { in cmm_ioctl()
|
/Linux-v6.1/drivers/media/mc/ |
D | mc-device.c | 409 [_IOC_NR(MEDIA_IOC_##__cmd)] = { \ 448 if (_IOC_NR(cmd) >= ARRAY_SIZE(ioctl_info) in media_device_ioctl() 449 || ioctl_info[_IOC_NR(cmd)].cmd != cmd) in media_device_ioctl() 452 info = &ioctl_info[_IOC_NR(cmd)]; in media_device_ioctl()
|
/Linux-v6.1/drivers/hid/usbhid/ |
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-v6.1/drivers/misc/habanalabs/common/ |
D | habanalabs_ioctl.c | 973 [_IOC_NR(ioctl)] = {.cmd = ioctl, .func = _func} 992 unsigned int nr = _IOC_NR(cmd); in _hl_ioctl() 1058 unsigned int nr = _IOC_NR(cmd); in hl_ioctl() 1081 unsigned int nr = _IOC_NR(cmd); in hl_ioctl_control() 1088 if (nr == _IOC_NR(HL_IOCTL_INFO)) { in hl_ioctl_control()
|
/Linux-v6.1/drivers/dma-buf/ |
D | dma-heap.c | 133 int nr = _IOC_NR(ucmd); in dma_heap_ioctl()
|
/Linux-v6.1/kernel/power/ |
D | user.c | 264 if (_IOC_NR(cmd) > SNAPSHOT_IOC_MAXNR) in snapshot_ioctl()
|
/Linux-v6.1/tools/testing/selftests/drivers/s390x/uvdevice/ |
D | test_uvdevice.c | 129 uint8_t nr = _IOC_NR(variant->ioctl_cmd); in TEST_F()
|