Home
last modified time | relevance | path

Searched refs:ioctl (Results 1 – 25 of 3172) sorted by relevance

12345678910>>...127

/linux/tools/testing/selftests/powerpc/ptrace/
A Dperf-hwbreak.c122 ioctl(fd[i], PERF_EVENT_IOC_RESET); in reset_fds()
377 ioctl(fd1, PERF_EVENT_IOC_RESET); in test_process_multi_diff_addr()
378 ioctl(fd2, PERF_EVENT_IOC_RESET); in test_process_multi_diff_addr()
379 ioctl(fd1, PERF_EVENT_IOC_ENABLE); in test_process_multi_diff_addr()
422 ioctl(fd1, PERF_EVENT_IOC_RESET); in test_process_multi_same_addr()
423 ioctl(fd2, PERF_EVENT_IOC_RESET); in test_process_multi_same_addr()
467 ioctl(fd1, PERF_EVENT_IOC_RESET); in test_process_multi_diff_addr_ro_wo()
468 ioctl(fd2, PERF_EVENT_IOC_RESET); in test_process_multi_diff_addr_ro_wo()
512 ioctl(fd1, PERF_EVENT_IOC_RESET); in test_process_multi_same_addr_ro_wo()
513 ioctl(fd2, PERF_EVENT_IOC_RESET); in test_process_multi_same_addr_ro_wo()
[all …]
/linux/tools/testing/selftests/rtc/
A Drtctest.c57 rc = ioctl(self->fd, RTC_UIE_ON, 0);
73 rc = ioctl(self->fd, RTC_UIE_OFF, 0);
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()
140 rc = ioctl(self->fd, RTC_AIE_ON, 0); in TEST_F()
151 rc = ioctl(self->fd, RTC_AIE_OFF, 0); in TEST_F()
158 rc = ioctl(self->fd, RTC_RD_TIME, &tm); in TEST_F()
242 rc = ioctl(self->fd, RTC_AIE_ON, 0);
[all …]
/linux/drivers/gpu/drm/nouveau/nvif/
A Dobject.c61 struct nvif_ioctl_v0 ioctl; in nvif_object_sclass_get() member
71 args->ioctl.version = 0; in nvif_object_sclass_get()
105 struct nvif_ioctl_v0 ioctl; in nvif_object_rd() member
124 struct nvif_ioctl_v0 ioctl; in nvif_object_wr() member
142 struct nvif_ioctl_v0 ioctl; in nvif_object_mthd() member
154 args->ioctl.version = 0; in nvif_object_mthd()
171 struct nvif_ioctl_v0 ioctl; in nvif_object_unmap_handle() member
185 struct nvif_ioctl_v0 ioctl; in nvif_object_map_handle() member
247 struct nvif_ioctl_v0 ioctl; in nvif_object_dtor() member
266 struct nvif_ioctl_v0 ioctl; in nvif_object_ctor() member
[all …]
A Dnotify.c37 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_dtor() member
152 .ioctl.type = NVIF_IOCTL_V0_NTFY_DEL, in nvif_notify_dtor()
170 struct nvif_ioctl_v0 ioctl; in nvif_notify_ctor() member
193 args->ioctl.version = 0; in nvif_notify_ctor()
194 args->ioctl.type = NVIF_IOCTL_V0_NTFY_NEW; in nvif_notify_ctor()
/linux/Documentation/userspace-api/media/mediactl/
A Drequest-func-ioctl.rst4 .. _request-func-ioctl:
7 request ioctl()
13 request-ioctl - Control a request file descriptor
20 #include <sys/ioctl.h>
22 ``int ioctl(int fd, int cmd, void *argp)``
31 The request ioctl command code as defined in the media.h header file, for
40 The :ref:`ioctl() <request-func-ioctl>` function manipulates request
43 The ioctl ``cmd`` code specifies the request function to be called. It
47 Macros and structures definitions specifying request ioctl commands and
48 their parameters are located in the media.h header file. All request ioctl
[all …]
A Dmedia-func-ioctl.rst4 .. _media-func-ioctl:
7 media ioctl()
13 media-ioctl - Control a media device
20 #include <sys/ioctl.h>
22 ``int ioctl(int fd, int request, void *argp)``
31 Media ioctl request code as defined in the media.h header file, for
40 The :ref:`ioctl() <media-func-ioctl>` function manipulates media device
43 The ioctl ``request`` code specifies the media function to be called. It
47 Macros and structures definitions specifying media ioctl requests and
48 their parameters are located in the media.h header file. All media ioctl
[all …]
/linux/Documentation/userspace-api/media/v4l/
A Dfunc-ioctl.rst4 .. _func-ioctl:
7 V4L2 ioctl()
13 v4l2-ioctl - Program a V4L2 device
20 #include <sys/ioctl.h>
22 ``int ioctl(int fd, int request, void *argp)``
31 V4L2 ioctl request code as defined in the ``videodev2.h`` header
40 The :ref:`ioctl() <func-ioctl>` function is used to program V4L2 devices. The
41 argument ``fd`` must be an open file descriptor. An ioctl ``request``
44 defines specifying V4L2 ioctl requests are located in the
47 All V4L2 ioctl requests, their respective function and parameters are
[all …]
/linux/tools/perf/tests/
A Dbp_signal.c75 ioctl(fd1, PERF_EVENT_IOC_DISABLE, 0); in sig_handler_2()
76 ioctl(fd2, PERF_EVENT_IOC_DISABLE, 0); in sig_handler_2()
77 ioctl(fd3, PERF_EVENT_IOC_DISABLE, 0); in sig_handler_2()
96 ioctl(fd1, PERF_EVENT_IOC_DISABLE, 0); in sig_handler()
97 ioctl(fd2, PERF_EVENT_IOC_DISABLE, 0); in sig_handler()
98 ioctl(fd3, PERF_EVENT_IOC_DISABLE, 0); in sig_handler()
135 ioctl(fd, PERF_EVENT_IOC_RESET, 0); in __event()
245 ioctl(fd1, PERF_EVENT_IOC_ENABLE, 0); in test__bp_signal()
246 ioctl(fd2, PERF_EVENT_IOC_ENABLE, 0); in test__bp_signal()
247 ioctl(fd3, PERF_EVENT_IOC_ENABLE, 0); in test__bp_signal()
[all …]
/linux/Documentation/userspace-api/ioctl/
A Dcdrom.rst2 Summary of CDROM ioctl calls
105 ioctl(fd, CDROMPAUSE, 0);
126 ioctl(fd, CDROMRESUME, 0);
265 ioctl(fd, CDROMSTOP, 0);
290 ioctl(fd, CDROMSTART, 0);
316 ioctl(fd, CDROMEJECT, 0);
343 ioctl(fd, CDROMCLOSETRAY, 0);
422 ioctl(fd, CDROMSUBCHNL, &q);
627 ioctl(fd, CDROMRESET, 0);
686 ioctl(fd, CDROMSEEK, &msf);
[all …]
/linux/drivers/scsi/esas2r/
A Desas2r_ioctl.c69 void *ioctl; member
319 bi.ioctl = si; in handle_smp_ioctl()
348 struct atto_vda_ioctl_req *ioctl = &rq->vrq->ioctl; in csmi_ioctl_tunnel() local
653 bi.ioctl = &ci->data; in handle_csmi_ioctl()
1237 bi.ioctl = ioctl_hba; in handle_hba_ioctl()
1289 if (IS_ERR(ioctl)) { in esas2r_ioctl_handler()
1302 kfree(ioctl); in esas2r_ioctl_handler()
1343 kfree(ioctl); in esas2r_ioctl_handler()
1400 kfree(ioctl); in esas2r_ioctl_handler()
1518 kfree(ioctl); in esas2r_ioctl_handler()
[all …]
/linux/Documentation/userspace-api/media/cec/
A Dcec-func-ioctl.rst4 .. _cec-func-ioctl:
7 cec ioctl()
13 cec-ioctl - Control a cec device
20 #include <sys/ioctl.h>
22 ``int ioctl(int fd, int request, void *argp)``
31 CEC ioctl request code as defined in the cec.h header file, for
40 The :c:func:`ioctl()` function manipulates cec device parameters. The
43 The ioctl ``request`` code specifies the cec function to be called. It
47 Macros and structures definitions specifying cec ioctl requests and
48 their parameters are located in the cec.h header file. All cec ioctl
[all …]
A Dcec-ioc-adap-g-phys-addr.rst22 ``int ioctl(int fd, CEC_ADAP_G_PHYS_ADDR, __u16 *argp)``
26 ``int ioctl(int fd, CEC_ADAP_S_PHYS_ADDR, __u16 *argp)``
41 :ref:`ioctl CEC_ADAP_G_PHYS_ADDR <CEC_ADAP_G_PHYS_ADDR>` with a pointer to a __u16 where the
45 a __u16 and call :ref:`ioctl CEC_ADAP_S_PHYS_ADDR <CEC_ADAP_S_PHYS_ADDR>` with a pointer to
46 this integer. The :ref:`ioctl CEC_ADAP_S_PHYS_ADDR <CEC_ADAP_S_PHYS_ADDR>` is only available if
48 otherwise). The :ref:`ioctl CEC_ADAP_S_PHYS_ADDR <CEC_ADAP_S_PHYS_ADDR>` can only be called
55 If logical address types have been defined (see :ref:`ioctl CEC_ADAP_S_LOG_ADDRS <CEC_ADAP_S_LOG_AD…
56 then this ioctl will block until all
83 The :ref:`ioctl CEC_ADAP_S_PHYS_ADDR <CEC_ADAP_S_PHYS_ADDR>` can return the following
87 The ``CEC_CAP_PHYS_ADDR`` capability wasn't set, so this ioctl is not supported.
/linux/samples/acrn/
A Dvm-sample.c43 ioctl(hsm_fd, ACRN_IOCTL_PAUSE_VM, vmid); in vm_exit()
44 ioctl(hsm_fd, ACRN_IOCTL_DESTROY_IOREQ_CLIENT, 0); in vm_exit()
68 ret = ioctl(hsm_fd, ACRN_IOCTL_CREATE_VM, &create_vm); in main()
79 ret = ioctl(hsm_fd, ACRN_IOCTL_SET_MEMSEG, &ram_map); in main()
97 ret = ioctl(hsm_fd, ACRN_IOCTL_SET_VCPU_REGS, &regs); in main()
101 ret = ioctl(hsm_fd, ACRN_IOCTL_CREATE_IOREQ_CLIENT, 0); in main()
105 ret = ioctl(hsm_fd, ACRN_IOCTL_START_VM, vmid); in main()
110 ret = ioctl(hsm_fd, ACRN_IOCTL_ATTACH_IOREQ_CLIENT, 0); in main()
126 ioctl(hsm_fd, ACRN_IOCTL_NOTIFY_REQUEST_FINISH, &notify); in main()
131 ret = ioctl(hsm_fd, ACRN_IOCTL_DESTROY_VM, NULL); in main()
/linux/tools/testing/selftests/watchdog/
A Dwatchdog-test.c49 ret = ioctl(fd, WDIOC_KEEPALIVE, &dummy); in keep_alive()
127 ret = ioctl(fd, WDIOC_GETSUPPORT, &info); in main()
141 ret = ioctl(fd, WDIOC_GETBOOTSTATUS, &flags); in main()
150 ret = ioctl(fd, WDIOC_SETOPTIONS, &flags); in main()
160 ret = ioctl(fd, WDIOC_SETOPTIONS, &flags); in main()
176 ret = ioctl(fd, WDIOC_SETTIMEOUT, &flags); in main()
186 ret = ioctl(fd, WDIOC_GETTIMEOUT, &flags); in main()
194 ret = ioctl(fd, WDIOC_SETPRETIMEOUT, &flags); in main()
204 ret = ioctl(fd, WDIOC_GETPRETIMEOUT, &flags); in main()
212 ret = ioctl(fd, WDIOC_GETTIMELEFT, &flags); in main()
/linux/Documentation/input/
A Duinput.rst73 ioctl(fd, UI_SET_EVBIT, EV_KEY);
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);
135 ioctl(fd, UI_SET_EVBIT, EV_REL);
136 ioctl(fd, UI_SET_RELBIT, REL_X);
146 ioctl(fd, UI_DEV_CREATE);
171 ioctl(fd, UI_DEV_DESTROY);
217 ioctl(fd, UI_DEV_CREATE);
[all …]
/linux/tools/pci/
A Dpcitest.c54 ret = ioctl(fd, PCITEST_BAR, test->barnum); in run_test()
63 ret = ioctl(fd, PCITEST_SET_IRQTYPE, test->irqtype); in run_test()
72 ret = ioctl(fd, PCITEST_GET_IRQTYPE); in run_test()
81 ret = ioctl(fd, PCITEST_CLEAR_IRQ); in run_test()
90 ret = ioctl(fd, PCITEST_LEGACY_IRQ, 0); in run_test()
99 ret = ioctl(fd, PCITEST_MSI, test->msinum); in run_test()
108 ret = ioctl(fd, PCITEST_MSIX, test->msixnum); in run_test()
120 ret = ioctl(fd, PCITEST_WRITE, &param); in run_test()
132 ret = ioctl(fd, PCITEST_READ, &param); in run_test()
144 ret = ioctl(fd, PCITEST_COPY, &param); in run_test()
/linux/Documentation/watchdog/
A Dwatchdog-api.rst73 The ioctl API
78 Pinging the watchdog using an ioctl:
80 All drivers that have an ioctl interface support at least one ioctl,
86 ioctl(fd, WDIOC_KEEPALIVE, 0);
90 the argument to the ioctl is ignored.
103 ioctl(fd, WDIOC_SETTIMEOUT, &timeout);
110 current timeout using the GETTIMEOUT ioctl::
112 ioctl(fd, WDIOC_GETTIMEOUT, &timeout);
159 ioctl(fd, WDIOC_GETSUPPORT, &ident);
242 ioctl(fd, WDIOC_GETSTATUS, &flags);
[all …]
/linux/tools/virtio/
A Dvirtio_test.c83 r = ioctl(dev->control, VHOST_SET_VRING_NUM, &state); in vhost_vq_setup()
88 r = ioctl(dev->control, VHOST_SET_VRING_ADDR, &addr); in vhost_vq_setup()
91 r = ioctl(dev->control, VHOST_SET_VRING_KICK, &file); in vhost_vq_setup()
94 r = ioctl(dev->control, VHOST_SET_VRING_CALL, &file); in vhost_vq_setup()
138 r = ioctl(dev->control, VHOST_SET_OWNER, NULL); in vdev_info_init()
179 r = ioctl(dev->control, VHOST_TEST_RUN, &test); in run_test()
221 r = ioctl(dev->control, VHOST_TEST_SET_BACKEND, in run_test()
237 r = ioctl(dev->control, VHOST_GET_VRING_BASE, in run_test()
242 r = ioctl(dev->control, VHOST_SET_VRING_BASE, in run_test()
246 r = ioctl(dev->control, VHOST_TEST_SET_BACKEND, in run_test()
[all …]
/linux/Documentation/userspace-api/media/
A Dgen-errors.rst22 - 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/samples/timers/
A Dhpet_example.c115 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/samples/hidraw/
A Dhid-example.c69 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/tools/testing/selftests/bpf/prog_tests/
A Dtp_attach_query.c60 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_ENABLE, 0); in serial_test_tp_attach_query()
68 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, query); in serial_test_tp_attach_query()
76 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_SET_BPF, prog_fd[i]); in serial_test_tp_attach_query()
84 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, query); in serial_test_tp_attach_query()
93 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, in serial_test_tp_attach_query()
102 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, query); in serial_test_tp_attach_query()
111 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, query); in serial_test_tp_attach_query()
128 ioctl(pmu_fd[i], PERF_EVENT_IOC_DISABLE); in serial_test_tp_attach_query()
/linux/Documentation/userspace-api/media/rc/
A Dlirc-get-features.rst7 ioctl LIRC_GET_FEATURES
20 ``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 …]
/linux/drivers/staging/media/av7110/
A Dvideo-try-command.rst15 .. attention:: This ioctl is deprecated.
22 ``int ioctl(int fd, VIDEO_TRY_COMMAND, struct video_command *cmd)``
52 This ioctl is obsolete. Do not use in new drivers. For V4L2 decoders
53 this ioctl has been replaced by the
54 :ref:`VIDIOC_TRY_DECODER_CMD <VIDIOC_DECODER_CMD>` ioctl.
56 This ioctl tries a decoder command. The ``video_command`` struct is a
/linux/Documentation/ia64/
A Defirtc.rst34 EFI provides a simpler services, not all ioctl() are available. Also
48 ioctl()s. The other is read-only via the /proc filesystem.
62 Two ioctl()s, compatible with the legacy RTC calls:
66 ioctl(d, RTC_RD_TIME, &rtc);
70 ioctl(d, RTC_SET_TIME, &rtc);
90 Those two ioctl()s can be exercised with the hwclock command:
109 the same ioctl()s to get access to the service. Instead we have
110 introduced 2 news ioctl()s to the interface of an RTC.
116 ioctl(d, RTC_WKALM_RD, &wkt)
120 ioctl(d, RTC_WKALM_SET, &wkt)
[all …]

Completed in 36 milliseconds

12345678910>>...127