Home
last modified time | relevance | path

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

12345678910>>...46

/Linux-v5.4/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 …]
/Linux-v5.4/tools/perf/tests/
Dbp_signal.c80 ioctl(fd1, PERF_EVENT_IOC_DISABLE, 0); in sig_handler_2()
81 ioctl(fd2, PERF_EVENT_IOC_DISABLE, 0); in sig_handler_2()
82 ioctl(fd3, PERF_EVENT_IOC_DISABLE, 0); in sig_handler_2()
101 ioctl(fd1, PERF_EVENT_IOC_DISABLE, 0); in sig_handler()
102 ioctl(fd2, PERF_EVENT_IOC_DISABLE, 0); in sig_handler()
103 ioctl(fd3, PERF_EVENT_IOC_DISABLE, 0); in sig_handler()
140 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-v5.4/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 …]
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_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-v5.4/Documentation/media/uapi/mediactl/
Dmedia-func-ioctl.rst10 .. _media-func-ioctl:
13 media ioctl()
19 media-ioctl - Control a media device
27 #include <sys/ioctl.h>
30 .. c:function:: int ioctl( int fd, int request, void *argp )
31 :name: mc-ioctl
40 Media ioctl request code as defined in the media.h header file, for
50 The :ref:`ioctl() <media-func-ioctl>` function manipulates media device
53 The ioctl ``request`` code specifies the media function to be called. It
57 Macros and structures definitions specifying media ioctl requests and
[all …]
Drequest-func-ioctl.rst27 .. _request-func-ioctl:
30 request ioctl()
36 request-ioctl - Control a request file descriptor
44 #include <sys/ioctl.h>
47 .. c:function:: int ioctl( int fd, int cmd, void *argp )
48 :name: req-ioctl
57 The request ioctl command code as defined in the media.h header file, for
67 The :ref:`ioctl() <request-func-ioctl>` function manipulates request
70 The ioctl ``cmd`` code specifies the request function to be called. It
74 Macros and structures definitions specifying request ioctl commands and
[all …]
/Linux-v5.4/Documentation/media/uapi/cec/
Dcec-func-ioctl.rst10 .. _cec-func-ioctl:
13 cec ioctl()
19 cec-ioctl - Control a cec device
26 #include <sys/ioctl.h>
29 .. c:function:: int ioctl( int fd, int request, void *argp )
30 :name: cec-ioctl
39 CEC ioctl request code as defined in the cec.h header file, for
49 The :c:func:`ioctl() <cec-ioctl>` function manipulates cec device parameters. The
52 The ioctl ``request`` code specifies the cec function to be called. It
56 Macros and structures definitions specifying cec ioctl requests and
[all …]
/Linux-v5.4/Documentation/media/uapi/v4l/
Dfunc-ioctl.rst10 .. _func-ioctl:
13 V4L2 ioctl()
19 v4l2-ioctl - Program a V4L2 device
27 #include <sys/ioctl.h>
30 .. c:function:: int ioctl( int fd, int request, void *argp )
31 :name: v4l2-ioctl
40 V4L2 ioctl request code as defined in the ``videodev2.h`` header
50 The :ref:`ioctl() <func-ioctl>` function is used to program V4L2 devices. The
51 argument ``fd`` must be an open file descriptor. An ioctl ``request``
54 defines specifying V4L2 ioctl requests are located in the
[all …]
/Linux-v5.4/Documentation/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 …]
Dhdio.rst2 Summary of `HDIO_` ioctl calls
9 This document attempts to describe the ioctl(2) calls supported by
13 ioctl values are listed in <linux/hdreg.h>. As of this writing, they
48 HDIO_SET_KEEPSETTINGS keep ioctl settings on reset
74 Unless otherwise specified, all ioctl calls return 0 on success
77 Unless otherwise specified, all ioctl calls return -1 and set
94 ioctl(fd, HDIO_GETGEO, &geom);
132 ioctl will not return a meaningful value on drives with more
149 ioctl(fd, HDIO_GET_UNMASKINTR, &val);
171 ioctl(fd, HDIO_SET_UNMASKINTR, val);
[all …]
/Linux-v5.4/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 …]
/Linux-v5.4/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()
/Linux-v5.4/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 …]
/Linux-v5.4/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 …]
/Linux-v5.4/tools/pci/
Dpcitest.c51 ret = ioctl(fd, PCITEST_BAR, test->barnum); in run_test()
60 ret = ioctl(fd, PCITEST_SET_IRQTYPE, test->irqtype); in run_test()
69 ret = ioctl(fd, PCITEST_GET_IRQTYPE); in run_test()
78 ret = ioctl(fd, PCITEST_LEGACY_IRQ, 0); in run_test()
87 ret = ioctl(fd, PCITEST_MSI, test->msinum); in run_test()
96 ret = ioctl(fd, PCITEST_MSIX, test->msixnum); in run_test()
105 ret = ioctl(fd, PCITEST_WRITE, test->size); in run_test()
114 ret = ioctl(fd, PCITEST_READ, test->size); in run_test()
123 ret = ioctl(fd, PCITEST_COPY, test->size); in run_test()
/Linux-v5.4/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()
/Linux-v5.4/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 …]
/Linux-v5.4/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()
/Linux-v5.4/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()
/Linux-v5.4/Documentation/media/uapi/
Dgen-errors.rst29 - The ioctl can't be handled because the device is in state where it
31 device is sleeping and ioctl is performed to query statistics. It
32 is also returned when the ioctl would need to wait for an event,
41 - The ioctl can't be handled because the device is busy. This is
42 typically return while device is streaming, and an ioctl tried to
45 ioctl must not be retried without performing another action to fix
55 - One or more of the ioctl parameters are invalid or out of the
57 individual ioctl requests for specific causes.
69 - The ioctl is not supported by the driver, actually meaning that
75 - On USB devices, the stream ioctl's can return this error, meaning
/Linux-v5.4/tools/testing/selftests/nsfs/
Downer.c60 uns = ioctl(ns, NS_GET_USERNS); in main()
74 init_uns = ioctl(uns, NS_GET_USERNS); in main()
78 if (ioctl(init_uns, NS_GET_USERNS) >= 0 || errno != EPERM) in main()
84 if (ioctl(ns, NS_GET_USERNS) >= 0 || errno != EPERM) in main()
86 if (ioctl(init_uns, NS_GET_USERNS) >= 0 || errno != EPERM) in main()
/Linux-v5.4/Documentation/ia64/
Defirtc.rst34 EFI provides a simpler services, not all ioctl() are available. Also
35 new ioctl()s have been introduced for things that EFI provides but not the
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.
112 We have added 2 new ioctl()s that are specific to the EFI driver:
[all …]
/Linux-v5.4/tools/testing/selftests/ptp/
Dtestptp.c78 err = ioctl(fd, request[i], &extts_request); in do_flag_test()
82 err = ioctl(fd, request[i], &extts_request); in do_flag_test()
262 if (ioctl(fd, PTP_CLOCK_GETCAPS, &caps)) { in main()
347 if (ioctl(fd, PTP_EXTTS_REQUEST, &extts_request)) { in main()
365 if (ioctl(fd, PTP_EXTTS_REQUEST, &extts_request)) { in main()
376 if (ioctl(fd, PTP_CLOCK_GETCAPS, &caps)) { in main()
383 if (ioctl(fd, PTP_PIN_GETFUNC, &desc)) { in main()
403 if (ioctl(fd, PTP_PEROUT_REQUEST, &perout_request)) { in main()
415 if (ioctl(fd, PTP_PIN_SETFUNC, &desc)) { in main()
424 if (ioctl(fd, PTP_ENABLE_PPS, enable)) { in main()
[all …]
/Linux-v5.4/Documentation/media/uapi/rc/
Dlirc-get-features.rst13 ioctl LIRC_GET_FEATURES
24 .. c:function:: int ioctl( int fd, LIRC_GET_FEATURES, __u32 *features)
89 :ref:`ioctl LIRC_SET_SEND_CARRIER <LIRC_SET_SEND_CARRIER>`.
96 :ref:`ioctl LIRC_SET_SEND_DUTY_CYCLE <LIRC_SET_SEND_DUTY_CYCLE>`.
103 :ref:`ioctl LIRC_SET_TRANSMITTER_MASK <LIRC_SET_TRANSMITTER_MASK>`.
110 :ref:`ioctl LIRC_SET_REC_CARRIER <LIRC_SET_REC_CARRIER>`.
123 :ref:`ioctl LIRC_SET_REC_CARRIER_RANGE <LIRC_SET_REC_CARRIER_RANGE>`.
130 :ref:`ioctl LIRC_GET_REC_RESOLUTION <LIRC_GET_REC_RESOLUTION>`.
137 :ref:`ioctl LIRC_SET_REC_TIMEOUT <LIRC_SET_REC_TIMEOUT>`.
150 :ref:`ioctl LIRC_SET_MEASURE_CARRIER_MODE <LIRC_SET_MEASURE_CARRIER_MODE>`.
[all …]
/Linux-v5.4/Documentation/media/uapi/dvb/
Dvideo-try-command.rst21 .. attention:: This ioctl is deprecated.
26 .. c:function:: int ioctl(int fd, VIDEO_TRY_COMMAND, struct video_command *cmd)
60 This ioctl is obsolete. Do not use in new drivers. For V4L2 decoders
61 this ioctl has been replaced by the
62 :ref:`VIDIOC_TRY_DECODER_CMD <VIDIOC_DECODER_CMD>` ioctl.
64 This ioctl tries a decoder command. The ``video_command`` struct is a

12345678910>>...46