| /OK3568_Linux_fs/u-boot/common/ |
| H A D | rbsb.c | 184 ioctl(fd, FIONREAD, &lf); in rdchk() 350 (void) ioctl(fd, TCGETA, &oldtty); in io_mode() 378 (void) ioctl(fd, TCSETAW, &tty); in io_mode() 384 (void) ioctl(fd, TCGETA, &oldtty); in io_mode() 404 (void) ioctl(fd, TCSETAW, &tty); in io_mode() 411 (void) ioctl(fd, TCSBRK, 1); /* Wait for output to drain */ in io_mode() 412 (void) ioctl(fd, TCFLSH, 0); /* Flush input queue */ in io_mode() 413 (void) ioctl(fd, TCSETAW, &oldtty); /* Restore modes */ in io_mode() 414 (void) ioctl(fd, TCXONC,1); /* Restart output */ in io_mode() 429 ioctl(fd, TIOCEXCL, 0); in io_mode() [all …]
|
| /OK3568_Linux_fs/external/xserver/hw/xfree86/os-support/bsd/ |
| H A D | bsd_init.c | 181 ioctl(i, TIOCNOTTY, (char *) 0); in xf86OpenConsole() 210 if (ioctl(xf86Info.consoleFd, CONSOLE_X_MODE_ON, 0) < 0) { in xf86OpenConsole() 248 if (ioctl(xf86Info.consoleFd, VT_ACTIVATE, 1) != 0) { in xf86OpenConsole() 260 ioctl(xf86Info.consoleFd, VT_ACTIVATE, xf86Info.vtno)); in xf86OpenConsole() 265 ioctl(xf86Info.consoleFd, VT_WAITACTIVE, in xf86OpenConsole() 278 if (ioctl(xf86Info.consoleFd, VT_SETMODE, &vtmode) < 0) { in xf86OpenConsole() 282 if (ioctl(xf86Info.consoleFd, KDENABIO, 0) < 0) { in xf86OpenConsole() 287 if (ioctl(xf86Info.consoleFd, KDSETMODE, KD_GRAPHICS) < 0) { in xf86OpenConsole() 308 if (ioctl(xf86Info.consoleFd, VT_ACTIVATE, xf86Info.vtno) != 0) { in xf86OpenConsole() 327 if (ioctl(fd, CONSOLE_X_MODE_OFF, 0) < 0) { in xf86OpenPccons() [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/rtc/ |
| H A 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); 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 …]
|
| /OK3568_Linux_fs/external/xserver/hw/xfree86/os-support/solaris/ |
| H A D | sun_init.c | 69 SYSCALL(ret = ioctl(xf86Info.consoleFd, VT_ACTIVATE, vt)); in switch_to() 74 SYSCALL(ret = ioctl(xf86Info.consoleFd, VT_WAITACTIVE, vt)); in switch_to() 108 if (ioctl(fd, VT_ENABLED, &vtEnabled) < 0) { in xf86OpenConsole() 126 if (ioctl(fd, VT_GETSTATE, &vtinfo) < 0) in xf86OpenConsole() 147 if (ioctl(fd, VT_GETSTATE, &vtinfo) < 0) in xf86OpenConsole() 161 if ((ioctl(fd, VT_OPENQRY, &xf86Info.vtno) < 0) || in xf86OpenConsole() 199 if (ioctl(xf86Info.consoleFd, VT_SET_CONSUSER) != 0) in xf86OpenConsole() 204 if (ioctl(xf86Info.consoleFd, VT_GETMODE, &VT) < 0) in xf86OpenConsole() 214 if (ioctl(xf86Info.consoleFd, VT_SETMODE, &VT) < 0) in xf86OpenConsole() 217 if (ioctl(xf86Info.consoleFd, VT_SETDISPINFO, atoi(display)) < 0) in xf86OpenConsole() [all …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/powerpc/ptrace/ |
| H A D | perf-hwbreak.c | 114 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/nouveau/nvif/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/Documentation/userspace-api/media/mediactl/ |
| H A D | media-func-ioctl.rst | 4 .. _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 …]
|
| H A D | request-func-ioctl.rst | 4 .. _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 …]
|
| /OK3568_Linux_fs/kernel/Documentation/userspace-api/media/v4l/ |
| H A D | func-ioctl.rst | 4 .. _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 …]
|
| /OK3568_Linux_fs/kernel/tools/perf/tests/ |
| H A D | bp_signal.c | 75 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 …]
|
| /OK3568_Linux_fs/kernel/Documentation/userspace-api/ioctl/ |
| H A D | cdrom.rst | 2 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 …]
|
| H A D | hdio.rst | 2 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/scsi/esas2r/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/Documentation/userspace-api/media/cec/ |
| H A D | cec-func-ioctl.rst | 4 .. _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 …]
|
| /OK3568_Linux_fs/yocto/meta-openembedded/meta-networking/recipes-support/lowpan-tools/lowpan-tools/ |
| H A D | 0001-Fix-potential-string-truncation-in-strncpy.patch | 35 ret = ioctl(sd, SIOCGIFINDEX, &req); 37 perror("ioctl: SIOCGIFINDEX"); 49 ret = ioctl(sd, SIOCGIFHWADDR, &req); 51 perror("ioctl: SIOCGIFHWADDR"); 64 ret = ioctl(sd, SIOCGIFHWADDR, &req); 66 perror("ioctl: SIOCGIFHWADDR"); 78 ret = ioctl(sd, SIOCGIFHWADDR, &req); 80 perror("ioctl: SIOCGIFHWADDR"); 92 ret = ioctl(sd, SIOCGIFHWADDR, &req); 94 perror("ioctl: SIOCGIFHWADDR"); [all …]
|
| /OK3568_Linux_fs/external/xserver/hw/xfree86/os-support/linux/ |
| H A D | lnx_init.c | 70 SYSCALL(ret = ioctl(xf86Info.consoleFd, VT_ACTIVATE, vt)); in switch_to() 76 SYSCALL(ret = ioctl(xf86Info.consoleFd, VT_WAITACTIVE, vt)); in switch_to() 118 SYSCALL(ret = ioctl(fd, VT_GETSTATE, &vts)); in linux_parse_vt_settings() 128 SYSCALL(ret = ioctl(fd, VT_OPENQRY, &xf86Info.vtno)); in linux_parse_vt_settings() 220 SYSCALL(ret = ioctl(xf86Info.consoleFd, VT_GETSTATE, &vts)); in xf86OpenConsole() 236 SYSCALL(ret = ioctl(xf86Info.consoleFd, VT_GETMODE, &VT)); in xf86OpenConsole() 247 SYSCALL(ret = ioctl(xf86Info.consoleFd, VT_SETMODE, &VT)); in xf86OpenConsole() 253 SYSCALL(ret = ioctl(xf86Info.consoleFd, KDSETMODE, KD_GRAPHICS)); in xf86OpenConsole() 259 SYSCALL(ioctl(xf86Info.consoleFd, KDGKBMODE, &tty_mode)); in xf86OpenConsole() 262 SYSCALL(ret = ioctl(xf86Info.consoleFd, KDSKBMODE, K_OFF)); in xf86OpenConsole() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/scsi/ |
| H A D | gdth_proc.c | 131 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 …]
|
| /OK3568_Linux_fs/kernel/Documentation/input/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/watchdog/ |
| H A D | watchdog-test.c | 49 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()
|
| /OK3568_Linux_fs/kernel/tools/pci/ |
| H A D | pcitest.c | 54 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, ¶m); in run_test() 132 ret = ioctl(fd, PCITEST_READ, ¶m); in run_test() 144 ret = ioctl(fd, PCITEST_COPY, ¶m); in run_test()
|
| /OK3568_Linux_fs/kernel/Documentation/watchdog/ |
| H A D | watchdog-api.rst | 73 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 …]
|
| /OK3568_Linux_fs/buildroot/package/lcdproc/ |
| H A D | 0002-Add-missing-ioctl-header.patch | 4 Subject: [PATCH] Add missing ioctl header 6 The spidev.h header uses macros from linux/ioctl.h. Add this header 10 In file included from .../sysroot/usr/include/sys/ioctl.h:7:0, 14 status = ioctl(p->fd, SPI_IOC_MESSAGE(1), &xfer); 31 #include <sys/ioctl.h> 32 +#include <linux/ioctl.h> 43 #include <sys/ioctl.h> 44 +#include <linux/ioctl.h>
|
| /OK3568_Linux_fs/app/forlinx/forlinx_cmd/fltest_spidev_test/ |
| H A D | spidev_test.c | 60 ret = ioctl(fd, SPI_IOC_MESSAGE(1), &tr); in transfer() 171 ret = ioctl(fd, SPI_IOC_WR_MODE, &mode); in main() 175 ret = ioctl(fd, SPI_IOC_RD_MODE, &mode); in main() 182 ret = ioctl(fd, SPI_IOC_WR_BITS_PER_WORD, &bits); in main() 186 ret = ioctl(fd, SPI_IOC_RD_BITS_PER_WORD, &bits); in main() 193 ret = ioctl(fd, SPI_IOC_WR_MAX_SPEED_HZ, &speed); in main() 197 ret = ioctl(fd, SPI_IOC_RD_MAX_SPEED_HZ, &speed); in main()
|
| /OK3568_Linux_fs/app/forlinx/forlinx_qt/spitest/ |
| H A D | mainwindow.cpp | 96 ret = ::ioctl(fd, SPI_IOC_WR_MODE, &mode); in GetSpiDevName() 100 ret = ::ioctl(fd, SPI_IOC_RD_MODE, &mode); in GetSpiDevName() 108 ret = ::ioctl(fd, SPI_IOC_WR_BITS_PER_WORD, &bits); in GetSpiDevName() 112 ret = ::ioctl(fd, SPI_IOC_RD_BITS_PER_WORD, &bits); in GetSpiDevName() 119 ret = ::ioctl(fd, SPI_IOC_WR_MAX_SPEED_HZ, &speed); in GetSpiDevName() 123 ret = ::ioctl(fd, SPI_IOC_RD_MAX_SPEED_HZ, &speed); in GetSpiDevName() 144 ::ioctl(fd, SPI_IOC_RD_MODE, &mode); in update_params() 170 ret = ::ioctl(fd,SPI_IOC_WR_MODE,&mode); in update_params() 177 ret = ::ioctl(fd,SPI_IOC_WR_BITS_PER_WORD,&bits); in update_params() 184 ret = ::ioctl(fd,SPI_IOC_WR_MAX_SPEED_HZ,&speed); in update_params() [all …]
|
| /OK3568_Linux_fs/app/forlinx/forlinx_up4_qt/spitest/ |
| H A D | mainwindow.cpp | 96 ret = ::ioctl(fd, SPI_IOC_WR_MODE, &mode); in GetSpiDevName() 100 ret = ::ioctl(fd, SPI_IOC_RD_MODE, &mode); in GetSpiDevName() 108 ret = ::ioctl(fd, SPI_IOC_WR_BITS_PER_WORD, &bits); in GetSpiDevName() 112 ret = ::ioctl(fd, SPI_IOC_RD_BITS_PER_WORD, &bits); in GetSpiDevName() 119 ret = ::ioctl(fd, SPI_IOC_WR_MAX_SPEED_HZ, &speed); in GetSpiDevName() 123 ret = ::ioctl(fd, SPI_IOC_RD_MAX_SPEED_HZ, &speed); in GetSpiDevName() 144 ::ioctl(fd, SPI_IOC_RD_MODE, &mode); in update_params() 170 ret = ::ioctl(fd,SPI_IOC_WR_MODE,&mode); in update_params() 177 ret = ::ioctl(fd,SPI_IOC_WR_BITS_PER_WORD,&bits); in update_params() 184 ret = ::ioctl(fd,SPI_IOC_WR_MAX_SPEED_HZ,&speed); in update_params() [all …]
|