| /dpdk/drivers/common/sfc_efx/base/ |
| H A D | ef10_phy.c | 100 __in unsigned int fcntl, in mcdi_phy_decode_link_mode() argument 134 if (fcntl == MC_CMD_FCNTL_OFF) in mcdi_phy_decode_link_mode() 136 else if (fcntl == MC_CMD_FCNTL_RESPOND) in mcdi_phy_decode_link_mode() 138 else if (fcntl == MC_CMD_FCNTL_GENERATE) in mcdi_phy_decode_link_mode() 140 else if (fcntl == MC_CMD_FCNTL_BIDIR) in mcdi_phy_decode_link_mode() 143 EFSYS_PROBE1(mc_pcol_error, int, fcntl); in mcdi_phy_decode_link_mode() 174 unsigned int fcntl; in ef10_phy_link_ev() local 214 &fcntl, &fec); in ef10_phy_link_ev() 230 epp->ep_fcntl = fcntl; in ef10_phy_link_ev()
|
| H A D | siena_phy.c | 49 __in unsigned int fcntl, in siena_phy_decode_link_mode() argument 73 if (fcntl == MC_CMD_FCNTL_OFF) in siena_phy_decode_link_mode() 75 else if (fcntl == MC_CMD_FCNTL_RESPOND) in siena_phy_decode_link_mode() 77 else if (fcntl == MC_CMD_FCNTL_BIDIR) in siena_phy_decode_link_mode() 80 EFSYS_PROBE1(mc_pcol_error, int, fcntl); in siena_phy_decode_link_mode() 94 unsigned int fcntl; in siena_phy_link_ev() local 120 &link_mode, &fcntl); in siena_phy_link_ev() 137 epp->ep_fcntl = fcntl; in siena_phy_link_ev()
|
| H A D | siena_mac.c | 75 unsigned int fcntl; in siena_mac_reconfigure() local 94 fcntl = MC_CMD_FCNTL_AUTO; in siena_mac_reconfigure() 96 fcntl = (epp->ep_fcntl & EFX_FCNTL_GENERATE) in siena_mac_reconfigure() 100 fcntl = MC_CMD_FCNTL_OFF; in siena_mac_reconfigure() 102 MCDI_IN_SET_DWORD(req, SET_MAC_IN_FCNTL, fcntl); in siena_mac_reconfigure()
|
| H A D | efx_mac.c | 316 __in unsigned int fcntl, in efx_mac_fcntl_set() argument 330 if ((fcntl & ~(EFX_FCNTL_RESPOND | EFX_FCNTL_GENERATE)) != 0) { in efx_mac_fcntl_set() 346 epp->ep_fcntl = fcntl; in efx_mac_fcntl_set() 354 if (fcntl & EFX_FCNTL_RESPOND) in efx_mac_fcntl_set() 361 if (fcntl & EFX_FCNTL_GENERATE) in efx_mac_fcntl_set()
|
| H A D | efx.h | 719 __in unsigned int fcntl,
|
| /dpdk/drivers/net/mlx4/ |
| H A D | mlx4_utils.c | 34 int ret = fcntl(fd, F_GETFL); in mlx4_fd_set_non_blocking() 36 if (ret != -1 && !fcntl(fd, F_SETFL, ret | O_NONBLOCK)) in mlx4_fd_set_non_blocking()
|
| /dpdk/examples/ipsec-secgw/test/ |
| H A D | pkttest.py | 4 import fcntl 59 …info = fcntl.ioctl(self.s.fileno(), Interface.IOCTL_GET_INFO, struct.pack('256s', bytes(ifname[:1…
|
| /dpdk/drivers/net/virtio/virtio_user/ |
| H A D | vhost_user.c | 766 flag = fcntl(fd, F_GETFL); in vhost_user_start_server() 767 if (fcntl(fd, F_SETFL, flag | O_NONBLOCK) < 0) { in vhost_user_start_server() 840 flag = fcntl(fd, F_GETFD); in vhost_user_setup() 843 else if (fcntl(fd, F_SETFD, flag | FD_CLOEXEC) < 0) in vhost_user_setup() 945 flags = fcntl(data->vhostfd, F_GETFL); in vhost_user_update_link_state() 946 if (fcntl(data->vhostfd, F_SETFL, flags | O_NONBLOCK) == -1) { in vhost_user_update_link_state() 967 if (fcntl(data->vhostfd, F_SETFL, in vhost_user_update_link_state()
|
| H A D | vhost_kernel_tap.c | 55 if (fcntl(tapfd, F_SETFL, O_NONBLOCK) < 0) { in tap_open()
|
| /dpdk/lib/power/ |
| H A D | guest_channel.c | 82 flags = fcntl(fd, F_GETFL, 0); in guest_channel_host_connect() 90 if (fcntl(fd, F_SETFL, flags) < 0) { in guest_channel_host_connect()
|
| /dpdk/drivers/net/mlx5/linux/ |
| H A D | mlx5_socket.c | 206 flags = fcntl(server_socket, F_GETFL, 0); in mlx5_pmd_socket_init() 209 ret = fcntl(server_socket, F_SETFL, flags | O_NONBLOCK); in mlx5_pmd_socket_init()
|
| H A D | mlx5_os.c | 125 flags = fcntl(fd, F_GETFL); in mlx5_os_set_nonblock_channel_fd() 126 return fcntl(fd, F_SETFL, flags | O_NONBLOCK); in mlx5_os_set_nonblock_channel_fd() 2508 flags = fcntl(nlsk_fd, F_GETFL); in mlx5_os_dev_shared_handler_install_lsc() 2509 ret = fcntl(nlsk_fd, F_SETFL, flags | O_NONBLOCK); in mlx5_os_dev_shared_handler_install_lsc() 2554 flags = fcntl(ctx->async_fd, F_GETFL); in mlx5_os_dev_shared_handler_install() 2555 ret = fcntl(ctx->async_fd, F_SETFL, flags | O_NONBLOCK); in mlx5_os_dev_shared_handler_install() 2596 flags = fcntl(devx_comp->fd, F_GETFL); in mlx5_os_dev_shared_handler_install() 2597 ret = fcntl(devx_comp->fd, F_SETFL, flags | O_NONBLOCK); in mlx5_os_dev_shared_handler_install()
|
| /dpdk/examples/vm_power_manager/ |
| H A D | channel_manager.c | 239 flags = fcntl(info->fd, F_GETFL, 0); in open_non_blocking_channel() 247 if (fcntl(info->fd, F_SETFL, flags) < 0) { in open_non_blocking_channel() 297 flags = fcntl(info->fd, F_GETFL, 0); in open_host_channel() 305 if (fcntl(info->fd, F_SETFL, flags) < 0) { in open_host_channel()
|
| /dpdk/drivers/net/failsafe/ |
| H A D | failsafe_args.c | 167 oflags = fcntl(fd, F_GETFL); in fs_read_fd() 170 if (fcntl(fd, F_SETFL, oflags | O_NONBLOCK) == -1) in fs_read_fd()
|
| /dpdk/lib/vhost/ |
| H A D | socket.c | 350 if (!vsocket->is_server && fcntl(fd, F_SETFL, O_NONBLOCK)) { in create_unix_socket() 438 flags = fcntl(fd, F_GETFL, 0); in vhost_user_connect_nonblock() 444 if ((flags & O_NONBLOCK) && fcntl(fd, F_SETFL, flags & ~O_NONBLOCK)) { in vhost_user_connect_nonblock()
|
| /dpdk/lib/eal/freebsd/ |
| H A D | eal.c | 134 retval = fcntl(mem_cfg_fd, F_SETLK, &wr_lock); in rte_eal_config_create() 278 (fcntl(mem_cfg_fd, F_SETLK, &wr_lock) < 0)) in eal_proc_type_detect()
|
| /dpdk/drivers/vdpa/mlx5/ |
| H A D | mlx5_vdpa_event.c | 387 flags = fcntl(priv->err_chnl->fd, F_GETFL); in mlx5_vdpa_err_event_setup() 388 ret = fcntl(priv->err_chnl->fd, F_SETFL, flags | O_NONBLOCK); in mlx5_vdpa_err_event_setup()
|
| /dpdk/drivers/net/vdev_netvsc/ |
| H A D | vdev_netvsc.c | 589 int flf = fcntl(ctx->pipe[i], F_GETFL); in vdev_netvsc_netvsc_probe() 592 fcntl(ctx->pipe[i], F_SETFL, flf | O_NONBLOCK) != -1) in vdev_netvsc_netvsc_probe()
|
| /dpdk/drivers/net/sfc/ |
| H A D | sfc_ethdev.c | 1017 unsigned int fcntl; in sfc_flow_ctrl_set() local 1030 fcntl = 0; in sfc_flow_ctrl_set() 1033 fcntl = EFX_FCNTL_RESPOND; in sfc_flow_ctrl_set() 1036 fcntl = EFX_FCNTL_GENERATE; in sfc_flow_ctrl_set() 1039 fcntl = EFX_FCNTL_RESPOND | EFX_FCNTL_GENERATE; in sfc_flow_ctrl_set() 1049 rc = efx_mac_fcntl_set(sa->nic, fcntl, fc_conf->autoneg); in sfc_flow_ctrl_set() 1054 port->flow_ctrl = fcntl; in sfc_flow_ctrl_set()
|
| /dpdk/drivers/net/nfp/nfpcore/ |
| H A D | nfp_cpp_pcie_ops.c | 657 rc = fcntl(desc->lock, F_SETLKW, &lock); in nfp_acquire_process_lock() 705 rc = fcntl(desc->secondary_lock, F_SETLK, &lock); in nfp_acquire_secondary_process_lock()
|
| /dpdk/lib/eal/linux/ |
| H A D | eal.c | 216 retval = fcntl(mem_cfg_fd, F_SETLK, &wr_lock); in rte_eal_config_create() 362 (fcntl(mem_cfg_fd, F_SETLK, &wr_lock) < 0)) in eal_proc_type_detect()
|
| /dpdk/drivers/net/tap/ |
| H A D | rte_eth_tap.c | 218 flags = fcntl(fd, F_GETFL); in tun_alloc() 228 if (fcntl(fd, F_SETFL, flags) < 0) { in tun_alloc() 282 if (fcntl(fd, F_SETSIG, signo) < 0) { in tun_alloc() 287 if (fcntl(fd, F_SETFL, flags | O_ASYNC) < 0) { in tun_alloc() 293 if (fcntl(fd, F_SETOWN, getpid()) < 0) { in tun_alloc()
|
| /dpdk/drivers/net/memif/ |
| H A D | rte_eth_memif.c | 972 ret = fcntl(r->fd, F_ADD_SEALS, F_SEAL_SHRINK); in memif_region_init_shm()
|