/openbmc/qemu/net/ |
H A D | tap-linux.c | 85 ioctl(fd, TUNSETVNETHDRSZ, &len); in tap_open() 103 ret = ioctl(fd, TUNSETIFF, (void *) &ifr); in tap_open() 154 if (ioctl(fd, TUNGETIFF, &ifr) != 0) { in tap_probe_vnet_hdr() 170 if (ioctl(fd, TUNSETOFFLOAD, offload) < 0) in tap_probe_has_ufo() 182 if (ioctl(fd, TUNSETOFFLOAD, offload) < 0) { in tap_probe_has_uso() 195 if (ioctl(fd, TUNSETVNETHDRSZ, &len) == -1) { in tap_probe_vnet_hdr_len() 221 if (!ioctl(fd, TUNSETVNETLE, &arg)) { in tap_fd_set_vnet_le() 238 if (!ioctl(fd, TUNSETVNETBE, &arg)) { in tap_fd_set_vnet_be() 300 ret = ioctl(fd, TUNSETQUEUE, (void *) &ifr); in tap_fd_enable() 318 ret = ioctl(fd, TUNSETQUEUE, (void *) &ifr); in tap_fd_disable() [all …]
|
H A D | tap-solaris.c | 112 if(ioctl(if_fd, I_PUSH, "ip") < 0){ in tap_alloc() 117 if (ioctl(if_fd, SIOCGLIFFLAGS, &ifr) < 0) in tap_alloc() 126 if (ioctl (if_fd, SIOCSLIFNAME, &ifr) < 0) in tap_alloc() 128 if (ioctl(if_fd, SIOCGLIFFLAGS, &ifr) <0) in tap_alloc() 131 if (ioctl (if_fd, I_PUSH, "arp") < 0) in tap_alloc() 135 if (ioctl (ip_fd, I_POP, NULL) < 0) in tap_alloc() 137 if (ioctl (ip_fd, I_PUSH, "arp") < 0) in tap_alloc() 149 if (ioctl(arp_fd, I_STR, &strioc_if) < 0){ in tap_alloc() 168 if (ioctl (ip_fd, SIOCSLIFMUXID, &ifr) < 0) in tap_alloc() 170 ioctl (ip_fd, I_PUNLINK , arp_muxid); in tap_alloc() [all …]
|
/openbmc/linux/tools/testing/selftests/powerpc/ptrace/ |
H A D | perf-hwbreak.c | 126 ioctl(fd[i], PERF_EVENT_IOC_RESET); in reset_fds() 423 ioctl(fd1, PERF_EVENT_IOC_RESET); in test_process_multi_diff_addr() 424 ioctl(fd2, PERF_EVENT_IOC_RESET); in test_process_multi_diff_addr() 468 ioctl(fd1, PERF_EVENT_IOC_RESET); in test_process_multi_same_addr() 469 ioctl(fd2, PERF_EVENT_IOC_RESET); in test_process_multi_same_addr() 513 ioctl(fd1, PERF_EVENT_IOC_RESET); in test_process_multi_diff_addr_ro_wo() 514 ioctl(fd2, PERF_EVENT_IOC_RESET); in test_process_multi_diff_addr_ro_wo() 558 ioctl(fd1, PERF_EVENT_IOC_RESET); in test_process_multi_same_addr_ro_wo() 559 ioctl(fd2, PERF_EVENT_IOC_RESET); in test_process_multi_same_addr_ro_wo() 789 ioctl(fd, PERF_EVENT_IOC_RESET); in runtest_unaligned_512bytes() [all …]
|
/openbmc/linux/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 …]
|
/openbmc/linux/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 …]
|
/openbmc/linux/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() 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 …]
|
/openbmc/linux/tools/testing/selftests/rtc/ |
H A D | rtctest.c | 49 rc = ioctl(self->fd, RTC_RD_TIME, &rtc_tm); in TEST_F() 134 rc = ioctl(self->fd, RTC_UIE_ON, 0); 150 rc = ioctl(self->fd, RTC_UIE_OFF, 0); 163 rc = ioctl(self->fd, RTC_UIE_ON, 0); in TEST_F() 189 rc = ioctl(self->fd, RTC_UIE_OFF, 0); in TEST_F() 205 rc = ioctl(self->fd, RTC_RD_TIME, &tm); in TEST_F() 211 rc = ioctl(self->fd, RTC_ALM_SET, &tm); in TEST_F() 225 rc = ioctl(self->fd, RTC_AIE_ON, 0); in TEST_F() 236 rc = ioctl(self->fd, RTC_AIE_OFF, 0); in TEST_F() 335 rc = ioctl(self->fd, RTC_AIE_ON, 0); [all …]
|
/openbmc/linux/drivers/gpu/drm/nouveau/nvif/ |
H A D | object.c | 61 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 …]
|
/openbmc/linux/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 …]
|
/openbmc/linux/tools/testing/selftests/iommu/ |
H A D | iommufd.c | 109 ioctl(self->fd, _ioctl, &cmd)); \ in TEST_F() 158 ASSERT_EQ(0, ioctl(self->fd, IOMMU_OPTION, &cmd)); in TEST_F() 513 ioctl(self->fd, in TEST_F() 695 ASSERT_EQ(0, ioctl(self->fd, in TEST_F() 703 ASSERT_EQ(0, ioctl(self->fd, in TEST_F() 707 ASSERT_EQ(0, ioctl(self->fd, in TEST_F() 716 ASSERT_EQ(0, ioctl(self->fd, in TEST_F() 722 ASSERT_EQ(0, ioctl(self->fd, in TEST_F() 787 ASSERT_EQ(0, ioctl(fd, in check_access_rw() 800 ASSERT_EQ(0, ioctl(fd, in check_access_rw() [all …]
|
/openbmc/linux/Documentation/driver-api/tty/ |
H A D | n_gsm.rst | 26 ``TIOCSETD`` ioctl. 69 ioctl(fd, TIOCSETD, &ldisc); 78 ioctl(fd, GSMIOC_GETCONF, &c); 86 ioctl(fd, GSMIOC_SETCONF, &c); 126 ``TIOCSETD`` ioctl. 129 ioctl if needed. 159 ioctl(fd, TIOCSETD, &ldisc); 162 ioctl(fd, GSMIOC_GETCONF_EXT, &ce); 166 ioctl(fd, GSMIOC_SETCONF_EXT, &ce); 168 ioctl(fd, GSMIOC_GETCONF, &c); [all …]
|
/openbmc/linux/samples/acrn/ |
H A D | vm-sample.c | 40 ioctl(hsm_fd, ACRN_IOCTL_PAUSE_VM, vmid); in vm_exit() 41 ioctl(hsm_fd, ACRN_IOCTL_DESTROY_IOREQ_CLIENT, 0); in vm_exit() 64 ret = ioctl(hsm_fd, ACRN_IOCTL_CREATE_VM, &create_vm); in main() 75 ret = ioctl(hsm_fd, ACRN_IOCTL_SET_MEMSEG, &ram_map); in main() 93 ret = ioctl(hsm_fd, ACRN_IOCTL_SET_VCPU_REGS, ®s); in main() 97 ret = ioctl(hsm_fd, ACRN_IOCTL_CREATE_IOREQ_CLIENT, 0); in main() 101 ret = ioctl(hsm_fd, ACRN_IOCTL_START_VM, vmid); in main() 106 ret = ioctl(hsm_fd, ACRN_IOCTL_ATTACH_IOREQ_CLIENT, 0); in main() 122 ioctl(hsm_fd, ACRN_IOCTL_NOTIFY_REQUEST_FINISH, ¬ify); in main() 127 ret = ioctl(hsm_fd, ACRN_IOCTL_DESTROY_VM, NULL); in main()
|
/openbmc/linux/Documentation/userspace-api/ioctl/ |
H A D | cdrom.rst | 2 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 …]
|
/openbmc/linux/drivers/scsi/esas2r/ |
H A D | esas2r_ioctl.c | 69 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() 1236 bi.ioctl = ioctl_hba; in handle_hba_ioctl() 1288 if (IS_ERR(ioctl)) { in esas2r_ioctl_handler() 1301 kfree(ioctl); in esas2r_ioctl_handler() 1342 kfree(ioctl); in esas2r_ioctl_handler() 1399 kfree(ioctl); in esas2r_ioctl_handler() 1517 kfree(ioctl); in esas2r_ioctl_handler() [all …]
|
/openbmc/qemu/chardev/ |
H A D | char-parallel.c | 65 if (ioctl(s->fd, PPSETMODE, &m) < 0) { in pp_hw_mode() 81 if (ioctl(fd, PPRDATA, &b) < 0) { in pp_ioctl() 88 if (ioctl(fd, PPWDATA, &b) < 0) { in pp_ioctl() 93 if (ioctl(fd, PPRCONTROL, &b) < 0) { in pp_ioctl() 103 if (ioctl(fd, PPWCONTROL, &b) < 0) { in pp_ioctl() 108 if (ioctl(fd, PPRSTATUS, &b) < 0) { in pp_ioctl() 167 if (ioctl(fd, PPCLAIM) < 0) { in qemu_chr_open_pp_fd() 195 if (ioctl(drv->fd, PPIGDATA, &b) < 0) { in pp_ioctl() 202 if (ioctl(drv->fd, PPISDATA, &b) < 0) { in pp_ioctl() 207 if (ioctl(drv->fd, PPIGCTRL, &b) < 0) { in pp_ioctl() [all …]
|
/openbmc/openbmc/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"); 66 perror("ioctl: SIOCGIFHWADDR"); 80 perror("ioctl: SIOCGIFHWADDR"); 94 perror("ioctl: SIOCGIFHWADDR"); 106 ret = ioctl(sd, SIOCGIFADDR, &req); 108 perror("ioctl: SIOCGIFADDR"); 122 perror("ioctl: SIOCGIFADDR"); [all …]
|
/openbmc/linux/tools/testing/selftests/drivers/s390x/uvdevice/ |
H A D | test_uvdevice.c | 59 rc = ioctl(self->uv_fd, variant->ioctl_cmd, NULL); in TEST_F() 64 rc = ioctl(self->uv_fd, variant->ioctl_cmd, self->fault_page); in TEST_F() 75 rc = ioctl(self->uv_fd, variant->ioctl_cmd, &self->uvio_ioctl); in TEST_F() 81 rc = ioctl(self->uv_fd, variant->ioctl_cmd, &self->uvio_ioctl); in TEST_F() 139 rc = ioctl(self->uv_fd, cmds[i], &self->uvio_ioctl); in TEST_F() 195 rc = ioctl(self->uv_fd, UVIO_IOCTL_ATT, &self->uvio_ioctl); in att_inval_sizes_test() 201 rc = ioctl(self->uv_fd, UVIO_IOCTL_ATT, &self->uvio_ioctl); in att_inval_sizes_test() 224 rc = ioctl(self->uv_fd, UVIO_IOCTL_ATT, &self->uvio_ioctl); in TEST_F() 230 rc = ioctl(self->uv_fd, UVIO_IOCTL_ATT, &self->uvio_ioctl); in TEST_F() 241 rc = ioctl(self->uv_fd, UVIO_IOCTL_ATT, &self->uvio_ioctl); in att_inval_addr_test() [all …]
|
/openbmc/linux/tools/testing/selftests/watchdog/ |
H A D | watchdog-test.c | 58 ret = ioctl(fd, WDIOC_KEEPALIVE, &dummy); in keep_alive() 205 ret = ioctl(fd, WDIOC_GETSUPPORT, &info); in main() 219 ret = ioctl(fd, WDIOC_GETBOOTSTATUS, &flags); in main() 227 ret = ioctl(fd, WDIOC_SETOPTIONS, &flags); in main() 237 ret = ioctl(fd, WDIOC_SETOPTIONS, &flags); in main() 254 ret = ioctl(fd, WDIOC_GETSTATUS, &flags); in main() 259 ret = ioctl(fd, WDIOC_GETTEMP, &temperature); in main() 268 ret = ioctl(fd, WDIOC_SETTIMEOUT, &flags); in main() 278 ret = ioctl(fd, WDIOC_GETTIMEOUT, &flags); in main() 286 ret = ioctl(fd, WDIOC_SETPRETIMEOUT, &flags); in main() [all …]
|
/openbmc/gpioplus/src/gpioplus/internal/ |
H A D | sys.cpp | 46 return ::ioctl(fd, GPIOHANDLE_GET_LINE_VALUES_IOCTL, data); in gpiohandle_get_line_values() 52 return ::ioctl(fd, GPIOHANDLE_SET_LINE_VALUES_IOCTL, data); in gpiohandle_set_line_values() 57 return ::ioctl(fd, GPIO_GET_CHIPINFO_IOCTL, info); in gpio_get_chipinfo() 62 return ioctl(fd, GPIO_GET_LINEINFO_IOCTL, info); in gpio_get_lineinfo() 68 return ioctl(fd, GPIO_GET_LINEHANDLE_IOCTL, request); in gpio_get_linehandle() 73 return ioctl(fd, GPIO_GET_LINEEVENT_IOCTL, request); in gpio_get_lineevent()
|
/openbmc/linux/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()
|
/openbmc/linux/Documentation/input/ |
H A D | uinput.rst | 73 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 …]
|
/openbmc/linux/samples/hidraw/ |
H A 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()
|
/openbmc/linux/tools/testing/selftests/media_tests/ |
H A D | video_device_test.c | 50 ret = ioctl(fd, VIDIOC_G_PRIORITY, &old_priority); in priority_test() 56 ret = ioctl(fd, VIDIOC_S_PRIORITY, &new_priority); in priority_test() 61 ret = ioctl(fd, VIDIOC_G_PRIORITY, &priority_to_compare); in priority_test() 73 ret = ioctl(fd, VIDIOC_S_PRIORITY, &old_priority); in priority_test() 99 ret = ioctl(fd, VIDIOC_QUERYCAP, &vcap); in loop_test() 105 ret = ioctl(fd, VIDIOC_G_TUNER, &vtuner); in loop_test()
|
/openbmc/linux/samples/timers/ |
H A 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()
|