Home
last modified time | relevance | path

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

12345678910>>...44

/kernel/linux/linux-5.10/tools/testing/selftests/rtc/
Drtctest.c44 rc = ioctl(self->fd, RTC_RD_TIME, &rtc_tm); in TEST_F()
57 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()
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 …]
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/ptrace/
Dperf-hwbreak.c114 ioctl(break_fd, PERF_EVENT_IOC_ENABLE); in runtestsingle()
127 ioctl(break_fd, PERF_EVENT_IOC_DISABLE); in runtestsingle()
187 ioctl(break_fd, PERF_EVENT_IOC_RESET); in runtest_dar_outside()
188 ioctl(break_fd, PERF_EVENT_IOC_ENABLE); in runtest_dar_outside()
191 ioctl(break_fd, PERF_EVENT_IOC_DISABLE); in runtest_dar_outside()
202 ioctl(break_fd, PERF_EVENT_IOC_RESET); in runtest_dar_outside()
203 ioctl(break_fd, PERF_EVENT_IOC_ENABLE); in runtest_dar_outside()
206 ioctl(break_fd, PERF_EVENT_IOC_DISABLE); in runtest_dar_outside()
217 ioctl(break_fd, PERF_EVENT_IOC_RESET); in runtest_dar_outside()
218 ioctl(break_fd, PERF_EVENT_IOC_ENABLE); in runtest_dar_outside()
[all …]
/kernel/linux/linux-5.10/Documentation/userspace-api/media/mediactl/
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 …]
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 …]
/kernel/linux/linux-5.10/Documentation/userspace-api/media/v4l/
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 …]
/kernel/linux/linux-5.10/tools/perf/tests/
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()
240 ioctl(fd1, PERF_EVENT_IOC_ENABLE, 0); in test__bp_signal()
241 ioctl(fd2, PERF_EVENT_IOC_ENABLE, 0); in test__bp_signal()
242 ioctl(fd3, PERF_EVENT_IOC_ENABLE, 0); in test__bp_signal()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvif/
Dobject.c47 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 …]
/kernel/linux/linux-5.10/Documentation/userspace-api/media/cec/
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 …]
/kernel/linux/linux-5.10/Documentation/userspace-api/ioctl/
Dcdrom.rst2 Summary of CDROM ioctl calls
9 This document attempts to describe the ioctl(2) calls supported by
13 ioctl values are listed in <linux/cdrom.h>. As of this writing, they
80 Unless otherwise specified, all ioctl calls return 0 on success
84 Unless otherwise specified, all ioctl calls return -1 and set
102 ioctl(fd, CDROMPAUSE, 0);
123 ioctl(fd, CDROMRESUME, 0);
148 ioctl(fd, CDROMPLAYMSF, &msf);
179 ioctl(fd, CDROMPLAYTRKIND, &ti);
208 ioctl(fd, CDROMREADTOCHDR, &header);
[all …]
/kernel/linux/linux-5.10/drivers/scsi/esas2r/
Desas2r_ioctl.c69 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 …]
/kernel/liteos_a/testsuites/unittest/extended/trace/smoke/
Dtrace_test_002.cpp40 ioctl(fd, TRACE_STOP, NULL); in TestCase()
41 ioctl(fd, TRACE_RESET, NULL); /* clear all events */ in TestCase()
44 ioctl(fd, TRACE_SET_MASK, mask); in TestCase()
46 ioctl(fd, TRACE_START, NULL); /* start trace */ in TestCase()
48 ioctl(fd, TRACE_STOP, NULL); in TestCase()
49 ioctl(fd, TRACE_DUMP, false); in TestCase()
/kernel/linux/build/test/syzkaller/qos_auth/
Drtg_ctrl.txt1 include <asm/ioctl.h>
11 ioctl$CMD_ID_SET_ENABLE(fd fd_rtg_ctrl,cmd const[CMD_ID_SET_ENABLE],arg ptr[inout,rtg_enable_data])
12 ioctl$CMD_ID_SET_RTG(fd fd_rtg_ctrl,cmd const[CMD_ID_SET_RTG],arg ptr[inout,rtg_grp_data])
13 ioctl$CMD_ID_SET_CONFIG(fd fd_rtg_ctrl,cmd const[CMD_ID_SET_CONFIG],arg ptr[inout,rtg_str_data])
14 ioctl$CMD_ID_SET_RTG_ATTR(fd fd_rtg_ctrl,cmd const[CMD_ID_SET_RTG_ATTR],arg ptr[inout,rtg_str_data])
15 ioctl$CMD_ID_BEGIN_FRAME_FREQ(fd fd_rtg_ctrl,cmd const[CMD_ID_BEGIN_FRAME_FREQ],arg ptr[inout,proc_…
16 ioctl$CMD_ID_END_FRAME_FREQ(fd fd_rtg_ctrl,cmd const[CMD_ID_END_FRAME_FREQ],arg ptr[inout,proc_stat…
17 ioctl$CMD_ID_END_SCENE(fd fd_rtg_ctrl,cmd const[CMD_ID_END_SCENE],arg ptr[inout,proc_state_data])
Drtg_ctrl_fops.txt1 include <asm/ioctl.h>
11 ioctl$CMD_ID_SET_ENABLE_FOPS(fd fd_rtg_ctrl_fops,cmd const[CMD_ID_SET_ENABLE],arg ptr[inout,rtg_ena…
12 ioctl$CMD_ID_SET_RTG_FOPS(fd fd_rtg_ctrl_fops,cmd const[CMD_ID_SET_RTG],arg ptr[inout,rtg_grp_data_…
13 ioctl$CMD_ID_SET_CONFIG_FOPS(fd fd_rtg_ctrl_fops,cmd const[CMD_ID_SET_CONFIG],arg ptr[inout,rtg_str…
14 ioctl$CMD_ID_SET_RTG_ATTR_FOPS(fd fd_rtg_ctrl_fops,cmd const[CMD_ID_SET_RTG_ATTR],arg ptr[inout,rtg…
15 ioctl$CMD_ID_BEGIN_FRAME_FREQ_FOPS(fd fd_rtg_ctrl_fops,cmd const[CMD_ID_BEGIN_FRAME_FREQ],arg ptr[i…
16 ioctl$CMD_ID_END_FRAME_FREQ_FOPS(fd fd_rtg_ctrl_fops,cmd const[CMD_ID_END_FRAME_FREQ],arg ptr[inout…
17 ioctl$CMD_ID_END_SCENE_FOPS(fd fd_rtg_ctrl_fops,cmd const[CMD_ID_END_SCENE],arg ptr[inout,proc_stat…
/kernel/linux/linux-5.10/tools/testing/selftests/watchdog/
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()
/kernel/linux/linux-5.10/drivers/scsi/
Dgdth_proc.c131 gdtcmd.u.ioctl.p_param = ha->scratch_phys; in gdth_set_asc_info()
132 gdtcmd.u.ioctl.param_size = sizeof(gdth_cpar_str); in gdth_set_asc_info()
133 gdtcmd.u.ioctl.subfunc = CACHE_CONFIG; in gdth_set_asc_info()
134 gdtcmd.u.ioctl.channel = INVALID_CHANNEL; in gdth_set_asc_info()
248 gdtcmd->u.ioctl.p_param = paddr + GDTH_SCRATCH/4; in gdth_show_info()
249 gdtcmd->u.ioctl.param_size = 3*GDTH_SCRATCH/4; in gdth_show_info()
250 gdtcmd->u.ioctl.subfunc = DSK_STATISTICS | L_CTRL_PATTERN; in gdth_show_info()
251 gdtcmd->u.ioctl.channel = ha->raw[i].address | INVALID_CHANNEL; in gdth_show_info()
271 gdtcmd->u.ioctl.p_param = paddr; in gdth_show_info()
272 gdtcmd->u.ioctl.param_size = sizeof(gdth_diskinfo_str); in gdth_show_info()
[all …]
/kernel/linux/linux-5.10/tools/pci/
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()
/kernel/linux/linux-5.10/Documentation/input/
Duinput.rst73 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 …]
/kernel/liteos_a/testsuites/unittest/extended/liteipc/smoke/
Dliteipc_test_001.cpp86 ret = ioctl(fd, IPC_CMS_CMD, 0); in LiteIpcTest()
88 ret = ioctl(fd, IPC_SET_IPC_THREAD, 0); in LiteIpcTest()
90 ret = ioctl(fd, IPC_SEND_RECV_MSG, 0); in LiteIpcTest()
92 ret = ioctl(fd, IPC_SEND_RECV_MSG, &tmp); in LiteIpcTest()
97 ret = ioctl(fd, IPC_SET_CMS, 200); // 200: use 200 for set cms cmd testing in LiteIpcTest()
123 ret = ioctl(fd, IPC_SET_CMS, 0); in TestCase()
125 ret = ioctl(fd, IPC_SET_CMS, 200); in TestCase()
128 ret = ioctl(fd, IPC_SET_CMS, 200); in TestCase()
/kernel/linux/linux-5.10/samples/hidraw/
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()
/kernel/linux/linux-5.10/Documentation/watchdog/
Dwatchdog-api.rst73 The ioctl API
76 All conforming drivers also support an ioctl API.
78 Pinging the watchdog using an ioctl:
80 All drivers that have an ioctl interface support at least one ioctl,
81 KEEPALIVE. This ioctl does exactly the same thing as a write to the
86 ioctl(fd, WDIOC_KEEPALIVE, 0);
90 the argument to the ioctl is ignored.
96 fly with the SETTIMEOUT ioctl, those drivers have the WDIOF_SETTIMEOUT
103 ioctl(fd, WDIOC_SETTIMEOUT, &timeout);
110 current timeout using the GETTIMEOUT ioctl::
[all …]
/kernel/linux/linux-5.10/samples/timers/
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()
/kernel/linux/build/test/unittest/accesstokenid/
Daccesstokenid_test.cpp94 int ret = ioctl(fd, ACCESS_TOKENID_GET_TOKENID, token); in GetTokenid()
113 int ret = ioctl(fd, ACCESS_TOKENID_SET_TOKENID, token); in SetTokenid()
132 int ret = ioctl(fd, ACCESS_TOKENID_GET_FTOKENID, ftoken); in GetfTokenid()
151 int ret = ioctl(fd, ACCESS_TOKENID_SET_FTOKENID, ftoken); in SetfTokenid()
374 int ret = ioctl(fd, ACCESS_TOKENID_GET_TOKENID, nullptr);
394 int ret = ioctl(fd, ACCESS_TOKENID_SET_TOKENID, nullptr);
414 int ret = ioctl(fd, ACCESS_TOKENID_GET_FTOKENID, nullptr);
434 int ret = ioctl(fd, ACCESS_TOKENID_SET_FTOKENID, nullptr);
456 int ret1 = ioctl(fd, ACCESS_TOKENID_ILLEGAL1, &token);
457 int ret2 = ioctl(fd, ACCESS_TOKENID_ILLEGAL2, &token);
[all …]
/kernel/linux/linux-5.10/Documentation/userspace-api/media/
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
/kernel/linux/linux-5.10/Documentation/userspace-api/media/dvb/
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
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dtp_attach_query.c60 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_ENABLE, 0); in test_tp_attach_query()
68 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, query); in test_tp_attach_query()
76 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_SET_BPF, prog_fd[i]); in test_tp_attach_query()
84 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, query); in test_tp_attach_query()
93 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, in test_tp_attach_query()
102 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, query); in test_tp_attach_query()
111 err = ioctl(pmu_fd[i], PERF_EVENT_IOC_QUERY_BPF, query); in test_tp_attach_query()
128 ioctl(pmu_fd[i], PERF_EVENT_IOC_DISABLE); in test_tp_attach_query()

12345678910>>...44