Home
last modified time | relevance | path

Searched refs:fds (Results 1 – 23 of 23) sorted by relevance

/dpdk/lib/power/
H A Dguest_channel.c162 struct pollfd fds; in power_guest_channel_read_msg() local
178 fds.fd = global_fds[lcore_id]; in power_guest_channel_read_msg()
179 fds.events = POLLIN; in power_guest_channel_read_msg()
181 ret = poll(&fds, 1, TIMEOUT); in power_guest_channel_read_msg()
/dpdk/lib/eal/linux/
H A Deal_vfio_mp_sync.c55 reply.fds[0] = fd; in vfio_mp_primary()
66 reply.fds[0] = fd; in vfio_mp_primary()
77 reply.fds[0] = fd; in vfio_mp_primary()
H A Deal_memalloc.c261 fd = fd_list[list_idx].fds[seg_idx]; in get_seg_memfd()
272 fd_list[list_idx].fds[seg_idx] = fd; in get_seg_memfd()
730 fd_list[list_idx].fds[seg_idx] = -1; in alloc_seg()
1510 fd_list[list_idx].fds = data; in alloc_list()
1513 fd_list[list_idx].fds = NULL; in alloc_list()
1531 int *fds = fd_list[list_idx].fds; in destroy_list() local
1535 if (fds[i] >= 0) { in destroy_list()
1536 close(fds[i]); in destroy_list()
1537 fds[i] = -1; in destroy_list()
1540 free(fds); in destroy_list()
[all …]
H A Deal_vfio.c409 vfio_group_fd = mp_rep->fds[0]; in vfio_open_group_fd()
1182 container_fd = mp_rep->fds[0]; in vfio_get_default_container_fd()
1318 vfio_container_fd = mp_rep->fds[0]; in rte_vfio_get_container_fd()
/dpdk/lib/vhost/
H A Dvhost_user.h158 int fds[VHOST_MEMORY_MAX_NREGIONS]; member
173 int read_fd_message(char *ifname, int sockfd, char *buf, int buflen, int *fds, int max_fds,
175 int send_fd_message(char *ifname, int sockfd, char *buf, int buflen, int *fds, int fd_num);
H A Dsocket.c102 read_fd_message(char *ifname, int sockfd, char *buf, int buflen, int *fds, int max_fds, in read_fd_message() argument
142 memcpy(fds, CMSG_DATA(cmsg), got_fds * sizeof(int)); in read_fd_message()
149 fds[got_fds++] = -1; in read_fd_message()
155 send_fd_message(char *ifname, int sockfd, char *buf, int buflen, int *fds, int fd_num) in send_fd_message() argument
172 if (fds && fd_num > 0) { in send_fd_message()
184 memcpy(CMSG_DATA(cmsg), fds, fdsize); in send_fd_message()
H A Dvhost_user.c76 int fd = ctx->fds[i]; in close_msg_fds()
81 ctx->fds[i] = -1; in close_msg_fds()
1357 ctx->fds[i] = -1; in vhost_user_set_mem_table()
1652 fd = ctx->fds[0]; in vhost_user_set_inflight_fd()
1754 file.fd = ctx->fds[0]; in vhost_user_set_vring_call()
1785 close(ctx->fds[0]); in vhost_user_set_vring_err()
2008 file.fd = ctx->fds[0]; in vhost_user_set_vring_kick()
2212 int fd = ctx->fds[0]; in vhost_user_set_log_base()
2308 close(ctx->fds[0]); in vhost_user_set_log_fd()
2376 int fd = ctx->fds[0]; in vhost_user_set_req_fd()
[all …]
/dpdk/drivers/raw/ifpga/base/
H A Difpga_feature_dev.c364 unsigned int count, s32 *fds) in vfio_msix_enable_block() argument
385 opae_memcpy(fd_ptr, fds, sizeof(int) * count); in vfio_msix_enable_block()
395 unsigned int count, s32 *fds) in fpga_msix_set_block() argument
406 ctx[start].idx, count, fds); in fpga_msix_set_block()
409 ctx[i].eventfd = fds[i]; in fpga_msix_set_block()
H A Difpga_feature_dev.h204 unsigned int count, s32 *fds);
/dpdk/drivers/net/mlx4/
H A Dmlx4_mp.c83 mp_res.fds[0] = priv->ctx->cmd_fd; in mp_primary_handle()
139 ret = mlx4_tx_uar_init_secondary(dev, mp_msg->fds[0]); in mp_secondary_handle()
200 mp_req.fds[0] = priv->ctx->cmd_fd; in mp_req_on_rxtx()
332 ret = mp_res->fds[0]; in mlx4_mp_req_verbs_cmd_fd()
/dpdk/drivers/net/virtio/virtio_user/
H A Dvhost_user.c106 vhost_user_write(int fd, struct vhost_user_msg *msg, int *fds, int fd_num) in vhost_user_write() argument
130 memcpy(CMSG_DATA(cmsg), fds, fd_size); in vhost_user_write()
378 int *fds; member
409 if (wa->fds[i] != fd) in update_memory_region()
439 wa->fds[i] = fd; in update_memory_region()
460 int fds[VHOST_MEMORY_MAX_NREGIONS]; in vhost_user_set_memory_table() local
473 wa.fds = fds; in vhost_user_set_memory_table()
491 ret = vhost_user_write(data->vhostfd, &msg, fds, fd_num); in vhost_user_set_memory_table()
/dpdk/drivers/net/mlx5/linux/
H A Dmlx5_mp_os.c95 mp_res.fds[0] = ((struct ibv_context *)cdev->ctx)->cmd_fd; in mlx5_mp_os_primary_handle()
182 ret = mlx5_tx_uar_init_secondary(dev, mp_msg->fds[0]); in mlx5_mp_os_secondary_handle()
242 mp_req.fds[0] = in mp_req_on_rxtx()
/dpdk/lib/eal/include/
H A Drte_eal.h168 int fds[RTE_MP_MAX_FD_NUM]; member
/dpdk/lib/eal/common/
H A Deal_common_proc.c268 char control[CMSG_SPACE(sizeof(m->msg.fds))]; in read_msg()
270 int buflen = sizeof(*m) - sizeof(m->msg.fds); in read_msg()
308 memcpy(m->msg.fds, CMSG_DATA(cmsg), sizeof(m->msg.fds)); in read_msg()
698 iov.iov_len = sizeof(m) - sizeof(msg->fds); in send_msg()
711 memcpy(CMSG_DATA(cmsg), msg->fds, fd_size); in send_msg()
/dpdk/drivers/net/af_xdp/
H A Drte_eth_af_xdp.c122 struct pollfd fds[1]; member
302 (void)poll(&rxq->fds[0], 1, 1000); in af_xdp_rx_zc()
374 (void)poll(rxq->fds, 1, 1000); in af_xdp_rx_cp()
1430 rxq->fds[0].fd = xsk_socket__fd(rxq->xsk); in eth_rx_queue_setup()
1431 rxq->fds[0].events = POLLIN; in eth_rx_queue_setup()
1433 process_private->rxq_xsk_fds[rx_queue_id] = rxq->fds[0].fd; in eth_rx_queue_setup()
1878 process_private->rxq_xsk_fds[i] = reply->fds[i]; in afxdp_mp_request_fds()
1918 reply.fds[reply.num_fds++] = process_private->rxq_xsk_fds[i]; in afxdp_mp_send_fds()
/dpdk/drivers/net/tap/
H A Drte_eth_tap.c899 msg.fds[fd_iterator++] = process_private->txq_fds[i]; in tap_mp_req_on_rxtx()
904 msg.fds[fd_iterator++] = process_private->rxq_fds[i]; in tap_mp_req_on_rxtx()
964 process_private->txq_fds[queue] = request->fds[fd_iterator++]; in tap_mp_req_start_rxtx()
966 process_private->rxq_fds[queue] = request->fds[fd_iterator++]; in tap_mp_req_start_rxtx()
2415 process_private->rxq_fds[queue] = reply->fds[fd_iterator++]; in tap_mp_attach_queues()
2417 process_private->txq_fds[queue] = reply->fds[fd_iterator++]; in tap_mp_attach_queues()
2455 reply.fds[reply.num_fds++] = process_private->rxq_fds[queue]; in tap_mp_sync_queues()
2462 reply.fds[reply.num_fds++] = process_private->txq_fds[queue]; in tap_mp_sync_queues()
/dpdk/drivers/common/mlx5/
H A Dmlx5_common_mp.c184 ret = mp_res->fds[0]; in mlx5_mp_req_verbs_cmd_fd()
/dpdk/drivers/crypto/dpaa_sec/
H A Ddpaa_sec_raw_dp.c786 struct qm_fd fds[DPAA_SEC_BURST], *fd; in dpaa_sec_raw_enqueue_burst() local
821 fd = &fds[loop]; in dpaa_sec_raw_enqueue_burst()
847 loop += qman_enqueue_multi_fq(&inq[loop], &fds[loop], in dpaa_sec_raw_enqueue_burst()
H A Ddpaa_sec.c1895 struct qm_fd fds[DPAA_SEC_BURST], *fd; in dpaa_sec_enqueue_burst() local
2055 fd = &fds[loop]; in dpaa_sec_enqueue_burst()
2091 loop += qman_enqueue_multi_fq(&inq[loop], &fds[loop], in dpaa_sec_enqueue_burst()
/dpdk/doc/guides/nics/
H A Daf_xdp.rst165 as this is the maximum number of fds that can be sent through the IPC APIs as
/dpdk/drivers/net/memif/
H A Drte_eth_memif.c106 reply.fds[0] = proc_private->regions[msg_param->idx]->fd; in memif_mp_send_region()
173 r->fd = reply->fds[0]; in memif_mp_request_regions()
/dpdk/doc/guides/rel_notes/
H A Drelease_19_02.rst163 fds (such as in-memory or no-huge mode)
/dpdk/doc/guides/prog_guide/
H A Dmulti_proc_support.rst248 * ``fds`` - file descriptors to pass long with the data (up to 8 fd's).