| /f-stack/tools/ifconfig/ |
| H A D | ifpfsync.c | 68 if (ioctl(s, SIOCGETPFSYNC, (caddr_t)&ifr) == -1) in setpfsync_syncdev() 73 if (ioctl(s, SIOCSETPFSYNC, (caddr_t)&ifr) == -1) in setpfsync_syncdev() 86 if (ioctl(s, SIOCGETPFSYNC, (caddr_t)&ifr) == -1) in unsetpfsync_syncdev() 91 if (ioctl(s, SIOCSETPFSYNC, (caddr_t)&ifr) == -1) in unsetpfsync_syncdev() 106 if (ioctl(s, SIOCGETPFSYNC, (caddr_t)&ifr) == -1) in setpfsync_syncpeer() 123 if (ioctl(s, SIOCSETPFSYNC, (caddr_t)&ifr) == -1) in setpfsync_syncpeer() 137 if (ioctl(s, SIOCGETPFSYNC, (caddr_t)&ifr) == -1) in unsetpfsync_syncpeer() 142 if (ioctl(s, SIOCSETPFSYNC, (caddr_t)&ifr) == -1) in unsetpfsync_syncpeer() 160 if (ioctl(s, SIOCGETPFSYNC, (caddr_t)&ifr) == -1) in setpfsync_maxupd() 165 if (ioctl(s, SIOCSETPFSYNC, (caddr_t)&ifr) == -1) in setpfsync_maxupd() [all …]
|
| H A D | ifgre.c | 61 if (ioctl(s, GREGKEY, &ifr) == 0) in gre_status() 71 if (ioctl(s, GREGOPTS, &ifr) != 0 || opts == 0) in gre_status() 80 if (ioctl(s, GREGPORT, &ifr) == 0 && port != 0) in gre_status() 98 if (ioctl(s, GRESKEY, (caddr_t)&ifr) < 0) in setifgrekey() 116 if (ioctl(s, GRESPORT, (caddr_t)&ifr) < 0) in setifgreport() 132 if (ioctl(s, GREGOPTS, &ifr) == -1) { 148 if (ioctl(s, GRESOPTS, &ifr) == -1) {
|
| H A D | ifgroup.c | 66 if (ioctl(s, SIOCAIFGROUP, (caddr_t)&ifgr) == -1 && errno != EEXIST) in setifgroup() 84 if (ioctl(s, SIOCDIFGROUP, (caddr_t)&ifgr) == -1 && errno != ENOENT) in unsetifgroup() 98 if (ioctl(s, SIOCGIFGROUP, (caddr_t)&ifgr) == -1) { in getifgroups() 112 if (ioctl(s, SIOCGIFGROUP, (caddr_t)&ifgr) == -1) in getifgroups() 150 if (ioctl(s, SIOCGIFGMEMB, (caddr_t)&ifgr) == -1) { in printgroup() 170 if (ioctl(s, SIOCGIFGMEMB, (caddr_t)&ifgr) == -1) in printgroup()
|
| H A D | iflagg.c | 54 if (ioctl(s, SIOCSLAGGPORT, &rp) && errno != EEXIST) { in setlaggport() 70 if (ioctl(s, SIOCSLAGGDELPORT, &rp)) in unsetlaggport() 94 if (ioctl(s, SIOCSLAGG, &ra) != 0) in setlaggproto() 110 if (ioctl(s, SIOCSLAGGOPTS, &ro) != 0) in setlaggflowidshift() 126 if (ioctl(s, SIOCSLAGGOPTS, &ro) != 0) in setlaggrr_limit() 156 if (ioctl(s, SIOCSLAGGOPTS, &ro) != 0) in setlaggsetopt() 184 if (ioctl(s, SIOCSLAGGHASH, &rf)) in setlagghash() 236 ioctl(s, SIOCGLAGGOPTS, &ro); in lagg_status() 239 if (ioctl(s, SIOCGLAGGFLAGS, &rf) != 0) in lagg_status() 242 if (ioctl(s, SIOCGLAGG, &ra) == 0) { in lagg_status()
|
| H A D | af_nd6.c | 91 error = ioctl(s, SIOCGIFINFO_IN6, &nd); in setnd6flags() 105 error = ioctl(s, SIOCSIFINFO_IN6, (caddr_t)&nd); in setnd6flags() 138 error = ioctl(s, SIOCSDEFIFACE_IN6, (caddr_t)&ndifreq); in setnd6defif() 158 error = ioctl(s, SIOCGDEFIFACE_IN6, (caddr_t)&ndifreq); in isnd6defif() 186 error = ioctl(s6, SIOCGIFINFO_IN6, &nd); in nd6_status()
|
| H A D | iffib.c | 55 if (ioctl(s, SIOCGIFFIB, (caddr_t)&ifr) == 0 && in fib_status() 61 if (ioctl(s, SIOCGTUNFIB, (caddr_t)&ifr) == 0 && in fib_status() 81 if (ioctl(s, SIOCSIFFIB, (caddr_t)&ifr) < 0) in setiffib() 100 if (ioctl(s, SIOCSTUNFIB, (caddr_t)&ifr) < 0) in settunfib()
|
| H A D | ifgif.c | 67 if (ioctl(s, GIFGOPTS, &ifr) == -1) in gif_status() 87 if (ioctl(s, GIFGOPTS, &ifr) == -1) { 103 if (ioctl(s, GIFSOPTS, &ifr) == -1) {
|
| H A D | ifvlan.c | 85 return ioctl(s, SIOCGETVLAN, (caddr_t)ifr); in getvlan() 112 if (ioctl(s, SIOCGVLANPCP, (caddr_t)&ifr) != -1) in vlan_status() 195 if (ioctl(s, SIOCSETVLAN, (caddr_t)ifr) == -1) in vlan_set() 265 if (ioctl(s, SIOCSVLANPCP, (caddr_t)&ifr) == -1) in DECL_CMD_FUNC() 278 if (ioctl(s, SIOCGETVLAN, (caddr_t)&ifr) == -1) in DECL_CMD_FUNC() 290 if (ioctl(s, SIOCSETVLAN, (caddr_t)&ifr) == -1) in DECL_CMD_FUNC()
|
| H A D | ifmedia.c | 125 if (ioctl(s, SIOCGIFXMEDIA, (caddr_t)&ifmr) < 0) in media_status() 127 if (!xmedia && ioctl(s, SIOCGIFMEDIA, (caddr_t)&ifmr) < 0) { in media_status() 145 if (ioctl(s, SIOCGIFXMEDIA, (caddr_t)&ifmr) < 0) in media_status() 148 if (ioctl(s, SIOCGIFMEDIA, (caddr_t)&ifmr) < 0) in media_status() 190 if (ioctl(s, SIOCGIFDOWNREASON, (caddr_t)&ifdr) == 0) { in media_status() 244 if (ioctl(s, SIOCGIFXMEDIA, (caddr_t)ifmr) < 0) { in ifmedia_getstate() 247 if (xmedia == 0 && ioctl(s, SIOCGIFMEDIA, (caddr_t)ifmr) < 0) { in ifmedia_getstate() 260 if (ioctl(s, SIOCGIFXMEDIA, (caddr_t)ifmr) < 0) in ifmedia_getstate() 263 if (ioctl(s, SIOCGIFMEDIA, (caddr_t)ifmr) < 0) in ifmedia_getstate() 279 if (ioctl(s, SIOCSIFMEDIA, (caddr_t)&ifr) < 0) in setifmediacallback()
|
| H A D | ifconfig.c | 261 if (ioctl(s, SIOCIFCREATE2, ifr) < 0) { in ioctl_ifcreate() 1194 if (ioctl(s, SIOCDIFPHYADDR, &ifr) < 0) in deletetunnel() 1209 if (ioctl(s, SIOCSIFVNET, &my_ifr) < 0) in setifvnet() 1223 if (ioctl(s, SIOCSIFRVNET, &my_ifr) < 0) in setifrvnet() 1328 if (ioctl(s, SIOCGIFCAP, (caddr_t)&ifr) < 0) { in setifcap() 1343 if (ioctl(s, SIOCSIFCAP, (caddr_t)&ifr) < 0) in setifcap() 1363 if (ioctl(s, SIOCSIFMTU, (caddr_t)&ifr) < 0) in setifmtu() 1504 if (ioctl(s, SIOCGIFMETRIC, &ifr) != -1) 1506 if (ioctl(s, SIOCGIFMTU, &ifr) != -1) 1515 if (ioctl(s, SIOCGIFDESCR, &ifr) == 0) { [all …]
|
| H A D | ifmac.c | 67 if (ioctl(s, SIOCGIFMAC, &ifr) == -1) in maclabel_status() 98 error = ioctl(s, SIOCSIFMAC, &ifr); in setifmaclabel()
|
| H A D | ifipsec.c | 60 if (ioctl(s, IPSECGREQID, &ifr) == -1) in ipsec_status() 84 if (ioctl(s, IPSECSREQID, &ifr) == -1) {
|
| H A D | carp.c | 85 if (ioctl(s, SIOCGVH, (caddr_t)&ifr) == -1) in carp_status() 153 if (ioctl(s, SIOCGVH, (caddr_t)&ifr) == -1 && errno != ENOENT) in setcarp_callback() 178 if (ioctl(s, SIOCSVH, (caddr_t)&ifr) == -1) in setcarp_callback()
|
| /f-stack/dpdk/drivers/net/virtio/virtio_user/ |
| H A D | vhost_kernel_tap.c | 41 if (ioctl(fd, TUNSETOFFLOAD, 0) != 0 && errno == EINVAL) { in vhost_kernel_tap_set_offload() 46 if (ioctl(fd, TUNSETOFFLOAD, offload) != 0) { in vhost_kernel_tap_set_offload() 48 if (ioctl(fd, TUNSETOFFLOAD, offload) != 0) { in vhost_kernel_tap_set_offload() 65 return ioctl(fd, TUNSETQUEUE, &ifr); in vhost_kernel_tap_set_queue() 95 if (ioctl(tapfd, TUNGETFEATURES, &tap_features) == -1) { in vhost_kernel_open_tap() 120 if (ioctl(tapfd, TUNSETIFF, (void *)&ifr) == -1) { in vhost_kernel_open_tap() 136 if (ioctl(tapfd, TUNSETVNETHDRSZ, &hdr_size) < 0) { in vhost_kernel_open_tap() 141 if (ioctl(tapfd, TUNSETSNDBUF, &sndbuf) < 0) { in vhost_kernel_open_tap() 153 if (ioctl(tapfd, SIOCSIFHWADDR, (void *)&ifr) == -1) { in vhost_kernel_open_tap()
|
| H A D | vhost_kernel.c | 167 if (ioctl(tapfd, TUNGETFEATURES, &tap_features) == -1) { in tap_support_features() 233 ret = ioctl(dev->vhostfds[i], req_kernel, arg); in vhost_kernel_ioctl() 238 ret = ioctl(vhostfd, req_kernel, arg); in vhost_kernel_ioctl() 305 if (ioctl(vhostfd, VHOST_NET_SET_BACKEND, &f) < 0) { in vhost_kernel_set_backend() 312 if (ioctl(vhostfd, VHOST_NET_SET_BACKEND, &f) < 0) { in vhost_kernel_set_backend()
|
| /f-stack/freebsd/opencrypto/ |
| H A D | cryptodev.c | 433 SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__); in cse_create() 537 SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__); in cse_create() 542 SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__); in cse_create() 557 SDT_PROBE1(opencrypto, dev, ioctl, error, in cse_create() 575 SDT_PROBE1(opencrypto, dev, ioctl, error, in cse_create() 641 SDT_PROBE1(opencrypto, dev, ioctl, error, in cse_create() 658 SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__); in cse_create() 664 SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__); in cse_create() 806 SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__); in cryptodev_op() 818 SDT_PROBE1(opencrypto, dev, ioctl, error, __LINE__); in cryptodev_op() [all …]
|
| /f-stack/dpdk/drivers/bus/dpaa/base/qbman/ |
| H A D | process.c | 84 ret = ioctl(fd, DPAA_IOCTL_ID_ALLOC, &id); in process_alloc() 105 ret = ioctl(fd, DPAA_IOCTL_ID_RELEASE, &id); in process_release() 122 return ioctl(fd, DPAA_IOCTL_ID_RESERVE, &id); in process_reserve() 141 ret = ioctl(fd, DPAA_IOCTL_PORTAL_MAP, params); in process_portal_map() 156 ret = ioctl(fd, DPAA_IOCTL_PORTAL_UNMAP, map); in process_portal_unmap() 170 return ioctl(ifd, DPAA_IOCTL_PORTAL_IRQ_MAP, map); in process_portal_irq_map() 214 ret = ioctl(fd, DPAA_IOCTL_ALLOC_RAW_PORTAL, portal); in process_portal_allocate() 229 ret = ioctl(fd, DPAA_IOCTL_FREE_RAW_PORTAL, portal); in process_portal_free() 389 ret = ioctl(fd, DPAA_IOCTL_GET_LINK_STATUS, &args); in dpaa_get_link_status() 434 ret = ioctl(fd, DPAA_IOCTL_UPDATE_LINK_STATUS, &args); in dpaa_update_link_status() [all …]
|
| /f-stack/freebsd/sys/ |
| H A D | timepps.h | 185 error = ioctl(filedes, PPS_IOC_CREATE, 0); in time_pps_create() 195 return (ioctl(handle, PPS_IOC_DESTROY, 0)); in time_pps_destroy() 201 return (ioctl(handle, PPS_IOC_SETPARAMS, ppsparams)); in time_pps_setparams() 207 return (ioctl(handle, PPS_IOC_GETPARAMS, ppsparams)); in time_pps_getparams() 213 return (ioctl(handle, PPS_IOC_GETCAP, mode)); in time_pps_getcap() 229 error = ioctl(handle, PPS_IOC_FETCH, &arg); in time_pps_fetch() 248 error = ioctl(handle, PPS_IOC_FETCH_FFCOUNTER, &arg); in time_pps_fetch_ffc() 262 return (ioctl(handle, PPS_IOC_KCBIND, &arg)); in time_pps_kcbind()
|
| /f-stack/dpdk/drivers/bus/fslmc/ |
| H A D | fslmc_vfio.c | 128 if (!ioctl(vfio_group.fd, VFIO_GROUP_SET_CONTAINER, in vfio_connect_container() 145 if (ioctl(fd, VFIO_CHECK_EXTENSION, fslmc_iommu_type)) { in vfio_connect_container() 147 ret = ioctl(vfio_group.fd, VFIO_GROUP_SET_CONTAINER, &fd); in vfio_connect_container() 154 ret = ioctl(fd, VFIO_SET_IOMMU, fslmc_iommu_type); in vfio_connect_container() 195 ret = ioctl(group->container->fd, VFIO_IOMMU_MAP_DMA, &map); in vfio_map_irq_region() 396 ret = ioctl(group->container->fd, VFIO_IOMMU_MAP_DMA, in rte_fslmc_vfio_mem_dmamap() 503 ret = ioctl(vfio_group_fd, VFIO_GROUP_SET_CONTAINER, in fslmc_vfio_setup_device() 519 if (ioctl(vfio_container_fd, VFIO_CHECK_EXTENSION, in fslmc_vfio_setup_device() 521 ret = ioctl(vfio_container_fd, VFIO_SET_IOMMU, in fslmc_vfio_setup_device() 579 ret = ioctl(mc_fd, VFIO_DEVICE_GET_REGION_INFO, ®_info); in vfio_map_mcp_obj() [all …]
|
| /f-stack/tools/compat/ |
| H A D | ioctl.c | 114 msg->ioctl.cmd = com; in ioctl_va() 115 msg->ioctl.data = msg->buf_addr; in ioctl_va() 116 memcpy(msg->ioctl.data, data, size); in ioctl_va() 125 char *ptr = (char *)(msg->ioctl.data) + offset; in ioctl_va() 153 memcpy(data, retmsg->ioctl.data, size); in ioctl_va()
|
| /f-stack/dpdk/drivers/net/dpaa/fmlib/ |
| H A D | fm_vsp.c | 33 if (ioctl(p_dev->fd, FM_PORT_IOC_VSP_ALLOC, ¶ms)) in fm_port_vsp_alloc() 57 if (ioctl(p_dev->fd, FM_IOC_VSP_CONFIG, ¶m)) { in fm_vsp_config() 89 if (ioctl(p_dev->fd, FM_IOC_VSP_INIT, &id)) { in fm_vsp_init() 111 if (ioctl(p_dev->fd, FM_IOC_VSP_FREE, &id)) { in fm_vsp_free() 139 if (ioctl(p_dev->fd, FM_IOC_VSP_CONFIG_BUFFER_PREFIX_CONTENT, in fm_vsp_config_buffer_prefix_content()
|
| H A D | fm_lib.c | 103 ret = ioctl(p_dev->fd, FM_IOC_GET_API_VERSION, p_version); in fm_get_api_version() 172 if (ioctl(p_dev->fd, FM_PCD_IOC_ENABLE)) in fm_pcd_enable() 187 if (ioctl(p_dev->fd, FM_PCD_IOC_DISABLE)) in fm_pcd_disable() 206 if (ioctl(p_pcd_dev->fd, FM_PCD_IOC_NET_ENV_CHARACTERISTICS_SET, in fm_pcd_net_env_characteristics_set() 236 if (ioctl(p_pcd_dev->fd, FM_PCD_IOC_NET_ENV_CHARACTERISTICS_DELETE, in fm_pcd_net_env_characteristics_delete() 276 ret = ioctl(p_pcd_dev->fd, FM_PCD_IOC_KG_SCHEME_SET, params); in fm_pcd_kg_scheme_set() 311 if (ioctl(p_pcd_dev->fd, FM_PCD_IOC_KG_SCHEME_DELETE, &id)) { in fm_pcd_kg_scheme_delete() 425 if (ioctl(p_dev->fd, FM_PORT_IOC_DISABLE)) in fm_port_disable() 440 if (ioctl(p_dev->fd, FM_PORT_IOC_ENABLE)) in fm_port_enable() 510 if (ioctl(p_dev->fd, FM_PORT_IOC_SET_PCD, p)) in fm_port_set_pcd() [all …]
|
| /f-stack/tools/ipfw/ |
| H A D | altq.c | 63 if (ioctl(pffd, DIOCSTARTALTQ) != 0 && errno != EEXIST) in altq_set_enabled() 66 if (ioctl(pffd, DIOCSTOPALTQ) != 0 && errno != ENOENT) in altq_set_enabled() 91 if (ioctl(pffd, DIOCGETALTQS, &pfioc) != 0) { in altq_fetch() 98 if (ioctl(pffd, DIOCGETALTQ, &pfioc) != 0) { in altq_fetch()
|
| /f-stack/freebsd/contrib/openzfs/lib/libspl/include/os/freebsd/sys/ |
| H A D | stat.h | 50 (void) ioctl(fd, DIOCGMEDIASIZE, &sb->st_size); in fstat64() 67 if (ioctl(fd, BLKGETSIZE64, &st->st_size) != 0) in fstat64_blk()
|
| /f-stack/app/nginx-1.16.1/src/os/unix/ |
| H A D | ngx_socket.c | 33 return ioctl(s, FIONBIO, &nb); in ngx_nonblocking() 44 return ioctl(s, FIONBIO, &nb); in ngx_blocking()
|