/Linux-v4.19/Documentation/media/uapi/v4l/ |
D | func-ioctl.rst | 3 .. _func-ioctl: 6 V4L2 ioctl() 12 v4l2-ioctl - Program a V4L2 device 20 #include <sys/ioctl.h> 23 .. c:function:: int ioctl( int fd, int request, void *argp ) 24 :name: v4l2-ioctl 33 V4L2 ioctl request code as defined in the ``videodev2.h`` header 43 The :ref:`ioctl() <func-ioctl>` function is used to program V4L2 devices. The 44 argument ``fd`` must be an open file descriptor. An ioctl ``request`` 47 defines specifying V4L2 ioctl requests are located in the [all …]
|
D | vidioc-g-input.rst | 6 ioctl VIDIOC_G_INPUT, VIDIOC_S_INPUT 18 .. c:function:: int ioctl( int fd, VIDIOC_G_INPUT, int *argp ) 21 .. c:function:: int ioctl( int fd, VIDIOC_S_INPUT, int *argp ) 39 :ref:`VIDIOC_G_INPUT <VIDIOC_G_INPUT>` ioctl with a pointer to an integer where the driver 41 :c:type:`v4l2_input` ``index`` field. This ioctl will fail 45 input in an integer and call the :ref:`VIDIOC_S_INPUT <VIDIOC_G_INPUT>` ioctl with a pointer 53 :ref:`VIDIOC_ENUMINPUT` ioctl.
|
D | vidioc-g-output.rst | 6 ioctl VIDIOC_G_OUTPUT, VIDIOC_S_OUTPUT 18 .. c:function:: int ioctl( int fd, VIDIOC_G_OUTPUT, int *argp ) 21 .. c:function:: int ioctl( int fd, VIDIOC_S_OUTPUT, int *argp ) 39 :ref:`VIDIOC_G_OUTPUT <VIDIOC_G_OUTPUT>` ioctl with a pointer to an integer where the driver 41 :c:type:`v4l2_output` ``index`` field. This ioctl will 46 output in an integer and call the :ref:`VIDIOC_S_OUTPUT <VIDIOC_G_OUTPUT>` ioctl with a 54 :ref:`VIDIOC_ENUMOUTPUT` ioctl.
|
/Linux-v4.19/Documentation/media/uapi/mediactl/ |
D | media-func-ioctl.rst | 3 .. _media-func-ioctl: 6 media ioctl() 12 media-ioctl - Control a media device 20 #include <sys/ioctl.h> 23 .. c:function:: int ioctl( int fd, int request, void *argp ) 24 :name: mc-ioctl 33 Media ioctl request code as defined in the media.h header file, for 43 The :ref:`ioctl() <media-func-ioctl>` function manipulates media device 46 The ioctl ``request`` code specifies the media function to be called. It 50 Macros and structures definitions specifying media ioctl requests and [all …]
|
/Linux-v4.19/Documentation/media/uapi/cec/ |
D | cec-func-ioctl.rst | 3 .. _cec-func-ioctl: 6 cec ioctl() 12 cec-ioctl - Control a cec device 19 #include <sys/ioctl.h> 22 .. c:function:: int ioctl( int fd, int request, void *argp ) 23 :name: cec-ioctl 32 CEC ioctl request code as defined in the cec.h header file, for 42 The :c:func:`ioctl() <cec-ioctl>` function manipulates cec device parameters. The 45 The ioctl ``request`` code specifies the cec function to be called. It 49 Macros and structures definitions specifying cec ioctl requests and [all …]
|
D | cec-ioc-adap-g-phys-addr.rst | 20 .. c:function:: int ioctl( int fd, CEC_ADAP_G_PHYS_ADDR, __u16 *argp ) 23 .. c:function:: int ioctl( int fd, CEC_ADAP_S_PHYS_ADDR, __u16 *argp ) 39 :ref:`ioctl CEC_ADAP_G_PHYS_ADDR <CEC_ADAP_G_PHYS_ADDR>` with a pointer to a __u16 where the 43 a __u16 and call :ref:`ioctl CEC_ADAP_S_PHYS_ADDR <CEC_ADAP_S_PHYS_ADDR>` with a pointer to 44 this integer. The :ref:`ioctl CEC_ADAP_S_PHYS_ADDR <CEC_ADAP_S_PHYS_ADDR>` is only available if 46 otherwise). The :ref:`ioctl CEC_ADAP_S_PHYS_ADDR <CEC_ADAP_S_PHYS_ADDR>` can only be called 53 If logical address types have been defined (see :ref:`ioctl CEC_ADAP_S_LOG_ADDRS <CEC_ADAP_S_LOG_AD… 54 then this ioctl will block until all 82 The :ref:`ioctl CEC_ADAP_S_PHYS_ADDR <CEC_ADAP_S_PHYS_ADDR>` can return the following 86 The ``CEC_CAP_PHYS_ADDR`` capability wasn't set, so this ioctl is not supported.
|
/Linux-v4.19/tools/perf/tests/ |
D | bp_signal.c | 79 ioctl(fd1, PERF_EVENT_IOC_DISABLE, 0); in sig_handler_2() 80 ioctl(fd2, PERF_EVENT_IOC_DISABLE, 0); in sig_handler_2() 81 ioctl(fd3, PERF_EVENT_IOC_DISABLE, 0); in sig_handler_2() 100 ioctl(fd1, PERF_EVENT_IOC_DISABLE, 0); in sig_handler() 101 ioctl(fd2, PERF_EVENT_IOC_DISABLE, 0); in sig_handler() 102 ioctl(fd3, PERF_EVENT_IOC_DISABLE, 0); in sig_handler() 139 ioctl(fd, PERF_EVENT_IOC_RESET, 0); in __event() 244 ioctl(fd1, PERF_EVENT_IOC_ENABLE, 0); in test__bp_signal() 245 ioctl(fd2, PERF_EVENT_IOC_ENABLE, 0); in test__bp_signal() 246 ioctl(fd3, PERF_EVENT_IOC_ENABLE, 0); in test__bp_signal() [all …]
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvif/ |
D | object.c | 47 return client->driver->ioctl(client->object.priv, client->super, in nvif_object_ioctl() 62 struct nvif_ioctl_v0 ioctl; in nvif_object_sclass_get() member 72 args->ioctl.version = 0; in nvif_object_sclass_get() 73 args->ioctl.type = NVIF_IOCTL_V0_SCLASS; in nvif_object_sclass_get() 106 struct nvif_ioctl_v0 ioctl; in nvif_object_rd() member 109 .ioctl.type = NVIF_IOCTL_V0_RD, in nvif_object_rd() 125 struct nvif_ioctl_v0 ioctl; in nvif_object_wr() member 128 .ioctl.type = NVIF_IOCTL_V0_WR, in nvif_object_wr() 143 struct nvif_ioctl_v0 ioctl; in nvif_object_mthd() member 155 args->ioctl.version = 0; in nvif_object_mthd() [all …]
|
D | notify.c | 37 struct nvif_ioctl_v0 ioctl; in nvif_notify_put_() member 40 .ioctl.type = NVIF_IOCTL_V0_NTFY_PUT, in nvif_notify_put_() 68 struct nvif_ioctl_v0 ioctl; in nvif_notify_get_() member 71 .ioctl.type = NVIF_IOCTL_V0_NTFY_GET, in nvif_notify_get_() 149 struct nvif_ioctl_v0 ioctl; in nvif_notify_fini() member 152 .ioctl.type = NVIF_IOCTL_V0_NTFY_DEL, in nvif_notify_fini() 170 struct nvif_ioctl_v0 ioctl; in nvif_notify_init() member 192 args->ioctl.version = 0; in nvif_notify_init() 193 args->ioctl.type = NVIF_IOCTL_V0_NTFY_NEW; in nvif_notify_init()
|
/Linux-v4.19/tools/testing/selftests/rtc/ |
D | rtctest.c | 44 rc = ioctl(self->fd, RTC_RD_TIME, &rtc_tm); in TEST_F() 57 rc = ioctl(self->fd, RTC_UIE_ON, 0); in TEST_F() 73 rc = ioctl(self->fd, RTC_UIE_OFF, 0); in TEST_F() 82 rc = ioctl(self->fd, RTC_UIE_ON, 0); in TEST_F() 108 rc = ioctl(self->fd, RTC_UIE_OFF, 0); in TEST_F() 120 rc = ioctl(self->fd, RTC_RD_TIME, &tm); in TEST_F() 126 rc = ioctl(self->fd, RTC_ALM_SET, &tm); in TEST_F() 133 rc = ioctl(self->fd, RTC_ALM_READ, &tm); in TEST_F() 140 rc = ioctl(self->fd, RTC_AIE_ON, 0); in TEST_F() 151 rc = ioctl(self->fd, RTC_AIE_OFF, 0); in TEST_F() [all …]
|
/Linux-v4.19/Documentation/ioctl/ |
D | cdrom.txt | 1 Summary of CDROM ioctl calls. 8 This document attempts to describe the ioctl(2) calls supported by 12 ioctl values are listed in <linux/cdrom.h>. As of this writing, they 81 Unless otherwise specified, all ioctl calls return 0 on success 85 Unless otherwise specified, all ioctl calls return -1 and set 101 ioctl(fd, CDROMPAUSE, 0); 115 ioctl(fd, CDROMRESUME, 0); 130 ioctl(fd, CDROMPLAYMSF, &msf); 154 ioctl(fd, CDROMPLAYTRKIND, &ti); 175 ioctl(fd, CDROMREADTOCHDR, &header); [all …]
|
D | 00-INDEX | 6 - summary of CDROM ioctl calls 8 - summary of HDIO_ ioctl calls 9 ioctl-decoding.txt 11 ioctl-number.txt 12 - how to implement and register device/driver ioctl calls
|
D | hdio.txt | 1 Summary of HDIO_ ioctl calls. 8 This document attempts to describe the ioctl(2) calls supported by 12 ioctl values are listed in <linux/hdreg.h>. As of this writing, they 44 HDIO_SET_KEEPSETTINGS keep ioctl settings on reset 73 Unless otherwise specified, all ioctl calls return 0 on success 76 Unless otherwise specified, all ioctl calls return -1 and set 90 ioctl(fd, HDIO_GETGEO, &geom); 122 ioctl will not return a meaningful value on drives with more 136 ioctl(fd, HDIO_GET_UNMASKINTR, &val); 150 ioctl(fd, HDIO_SET_UNMASKINTR, val); [all …]
|
/Linux-v4.19/drivers/scsi/esas2r/ |
D | esas2r_ioctl.c | 69 void *ioctl; member 249 memcpy(esas2r_buffered_ioctl, bi->ioctl, bi->length); in handle_buffered_ioctl() 286 memcpy(bi->ioctl, esas2r_buffered_ioctl, bi->length); in handle_buffered_ioctl() 300 esas2r_sgc_init(sgc, a, rq, rq->vrq->ioctl.sge); in smp_ioctl_callback() 319 bi.ioctl = si; in handle_smp_ioctl() 348 struct atto_vda_ioctl_req *ioctl = &rq->vrq->ioctl; in csmi_ioctl_tunnel() local 353 esas2r_sgc_init(sgc, a, rq, rq->vrq->ioctl.sge); in csmi_ioctl_tunnel() 355 ioctl->csmi.ctrl_code = cpu_to_le32(ctrl_code); in csmi_ioctl_tunnel() 356 ioctl->csmi.target_id = cpu_to_le16(target_id); in csmi_ioctl_tunnel() 357 ioctl->csmi.lun = (u8)le32_to_cpu(rq->vrq->scsi.flags); in csmi_ioctl_tunnel() [all …]
|
/Linux-v4.19/Documentation/input/ |
D | uinput.rst | 73 ioctl(fd, UI_SET_EVBIT, EV_KEY); 74 ioctl(fd, UI_SET_KEYBIT, KEY_SPACE); 82 ioctl(fd, UI_DEV_SETUP, &usetup); 83 ioctl(fd, UI_DEV_CREATE); 106 ioctl(fd, UI_DEV_DESTROY); 132 ioctl(fd, UI_SET_EVBIT, EV_KEY); 133 ioctl(fd, UI_SET_KEYBIT, BTN_LEFT); 135 ioctl(fd, UI_SET_EVBIT, EV_REL); 136 ioctl(fd, UI_SET_RELBIT, REL_X); 137 ioctl(fd, UI_SET_RELBIT, REL_Y); [all …]
|
/Linux-v4.19/drivers/scsi/ |
D | gdth_proc.c | 122 gdtcmd.u.ioctl.p_param = paddr; in gdth_set_asc_info() 123 gdtcmd.u.ioctl.param_size = sizeof(gdth_cpar_str); in gdth_set_asc_info() 124 gdtcmd.u.ioctl.subfunc = CACHE_CONFIG; in gdth_set_asc_info() 125 gdtcmd.u.ioctl.channel = INVALID_CHANNEL; in gdth_set_asc_info() 242 gdtcmd->u.ioctl.p_param = paddr + GDTH_SCRATCH/4; in gdth_show_info() 243 gdtcmd->u.ioctl.param_size = 3*GDTH_SCRATCH/4; in gdth_show_info() 244 gdtcmd->u.ioctl.subfunc = DSK_STATISTICS | L_CTRL_PATTERN; in gdth_show_info() 245 gdtcmd->u.ioctl.channel = ha->raw[i].address | INVALID_CHANNEL; in gdth_show_info() 265 gdtcmd->u.ioctl.p_param = paddr; in gdth_show_info() 266 gdtcmd->u.ioctl.param_size = sizeof(gdth_diskinfo_str); in gdth_show_info() [all …]
|
/Linux-v4.19/tools/pci/ |
D | pcitest.c | 65 ret = ioctl(fd, PCITEST_BAR, test->barnum); in run_test() 74 ret = ioctl(fd, PCITEST_SET_IRQTYPE, test->irqtype); in run_test() 83 ret = ioctl(fd, PCITEST_GET_IRQTYPE); in run_test() 92 ret = ioctl(fd, PCITEST_LEGACY_IRQ, 0); in run_test() 101 ret = ioctl(fd, PCITEST_MSI, test->msinum); in run_test() 110 ret = ioctl(fd, PCITEST_MSIX, test->msixnum); in run_test() 119 ret = ioctl(fd, PCITEST_WRITE, test->size); in run_test() 128 ret = ioctl(fd, PCITEST_READ, test->size); in run_test() 137 ret = ioctl(fd, PCITEST_COPY, test->size); in run_test()
|
/Linux-v4.19/samples/hidraw/ |
D | hid-example.c | 69 res = ioctl(fd, HIDIOCGRDESCSIZE, &desc_size); in main() 77 res = ioctl(fd, HIDIOCGRDESC, &rpt_desc); in main() 88 res = ioctl(fd, HIDIOCGRAWNAME(256), buf); in main() 95 res = ioctl(fd, HIDIOCGRAWPHYS(256), buf); in main() 102 res = ioctl(fd, HIDIOCGRAWINFO, &info); in main() 118 res = ioctl(fd, HIDIOCSFEATURE(4), buf); in main() 126 res = ioctl(fd, HIDIOCGFEATURE(256), buf); in main()
|
/Linux-v4.19/Documentation/media/uapi/dvb/ |
D | video-try-command.rst | 14 .. attention:: This ioctl is deprecated. 19 .. c:function:: int ioctl(int fd, VIDEO_TRY_COMMAND, struct video_command *cmd) 53 This ioctl is obsolete. Do not use in new drivers. For V4L2 decoders 54 this ioctl has been replaced by the 55 :ref:`VIDIOC_TRY_DECODER_CMD <VIDIOC_DECODER_CMD>` ioctl. 57 This ioctl tries a decoder command. The ``video_command`` struct is a
|
D | video-freeze.rst | 14 .. attention:: This ioctl is deprecated. 19 .. c:function:: int ioctl(fd, VIDEO_FREEZE) 47 This ioctl is for Digital TV devices only. To control a V4L2 decoder use the 50 This ioctl call suspends the live video stream being played. Decoding 53 If VIDEO_SOURCE_MEMORY is selected in the ioctl call 55 until the ioctl call VIDEO_CONTINUE or VIDEO_PLAY is performed.
|
D | video-select-source.rst | 14 .. attention:: This ioctl is deprecated. 19 .. c:function:: int ioctl(fd, VIDEO_SELECT_SOURCE, video_stream_source_t source) 53 This ioctl is for Digital TV devices only. This ioctl was also supported by the 55 ``IVTV_IOC_PASSTHROUGH_MODE`` ioctl. 57 This ioctl call informs the video device which source shall be used for
|
/Linux-v4.19/Documentation/watchdog/ |
D | watchdog-api.txt | 67 The ioctl API: 69 All conforming drivers also support an ioctl API. 71 Pinging the watchdog using an ioctl: 73 All drivers that have an ioctl interface support at least one ioctl, 74 KEEPALIVE. This ioctl does exactly the same thing as a write to the 79 ioctl(fd, WDIOC_KEEPALIVE, 0); 83 the argument to the ioctl is ignored. 88 fly with the SETTIMEOUT ioctl, those drivers have the WDIOF_SETTIMEOUT 95 ioctl(fd, WDIOC_SETTIMEOUT, &timeout); 102 current timeout using the GETTIMEOUT ioctl. [all …]
|
/Linux-v4.19/samples/timers/ |
D | hpet_example.c | 115 if (ioctl(fd, HPET_INFO, &info) < 0) { in hpet_info() 156 if (ioctl(fd, HPET_IRQFREQ, freq) < 0) { in hpet_poll() 161 if (ioctl(fd, HPET_INFO, &info) < 0) { in hpet_poll() 168 if (info.hi_flags && (ioctl(fd, HPET_EPI, 0) < 0)) { in hpet_poll() 173 if (ioctl(fd, HPET_IE_ON, 0) < 0) { in hpet_poll() 261 if (ioctl(fd, HPET_IRQFREQ, freq) < 0) { in hpet_fasync() 266 if (ioctl(fd, HPET_INFO, &info) < 0) { in hpet_fasync() 273 if (info.hi_flags && (ioctl(fd, HPET_EPI, 0) < 0)) { in hpet_fasync() 278 if (ioctl(fd, HPET_IE_ON, 0) < 0) { in hpet_fasync()
|
/Linux-v4.19/Documentation/media/uapi/ |
D | gen-errors.rst | 22 - The ioctl can't be handled because the device is in state where it 24 device is sleeping and ioctl is performed to query statistics. It 25 is also returned when the ioctl would need to wait for an event, 34 - The ioctl can't be handled because the device is busy. This is 35 typically return while device is streaming, and an ioctl tried to 38 ioctl must not be retried without performing another action to fix 48 - One or more of the ioctl parameters are invalid or out of the 50 individual ioctl requests for specific causes. 62 - The ioctl is not supported by the driver, actually meaning that 68 - On USB devices, the stream ioctl's can return this error, meaning
|
/Linux-v4.19/Documentation/media/uapi/rc/ |
D | lirc-get-features.rst | 6 ioctl LIRC_GET_FEATURES 17 .. c:function:: int ioctl( int fd, LIRC_GET_FEATURES, __u32 *features) 82 :ref:`ioctl LIRC_SET_SEND_CARRIER <LIRC_SET_SEND_CARRIER>`. 89 :ref:`ioctl LIRC_SET_SEND_DUTY_CYCLE <LIRC_SET_SEND_DUTY_CYCLE>`. 96 :ref:`ioctl LIRC_SET_TRANSMITTER_MASK <LIRC_SET_TRANSMITTER_MASK>`. 103 :ref:`ioctl LIRC_SET_REC_CARRIER <LIRC_SET_REC_CARRIER>`. 116 :ref:`ioctl LIRC_SET_REC_CARRIER_RANGE <LIRC_SET_REC_CARRIER_RANGE>`. 123 :ref:`ioctl LIRC_GET_REC_RESOLUTION <LIRC_GET_REC_RESOLUTION>`. 130 :ref:`ioctl LIRC_SET_REC_TIMEOUT <LIRC_SET_REC_TIMEOUT>`. 143 :ref:`ioctl LIRC_SET_MEASURE_CARRIER_MODE <LIRC_SET_MEASURE_CARRIER_MODE>`. [all …]
|