Home
last modified time | relevance | path

Searched refs:pbuf (Results 1 – 17 of 17) sorted by relevance

/f-stack/dpdk/app/test/
H A Dsample_packet_forward.c69 test_get_mbuf_from_pool(struct rte_mempool **mp, struct rte_mbuf **pbuf, in test_get_mbuf_from_pool() argument
77 if (rte_pktmbuf_alloc_bulk(*mp, pbuf, NUM_PACKETS) != 0) { in test_get_mbuf_from_pool()
87 test_put_mbuf_to_pool(struct rte_mempool *mp, struct rte_mbuf **pbuf) in test_put_mbuf_to_pool() argument
92 rte_pktmbuf_free(pbuf[itr]); in test_put_mbuf_to_pool()
98 test_packet_forward(struct rte_mbuf **pbuf, uint16_t portid, uint16_t queue_id) in test_packet_forward() argument
101 if (rte_eth_tx_burst(portid, queue_id, pbuf, NUM_PACKETS) in test_packet_forward()
107 if (rte_eth_rx_burst(portid, queue_id, pbuf, NUM_PACKETS) in test_packet_forward()
H A Dtest_pmd_ring.c135 struct rte_mbuf buf, *pbuf = &buf; in test_get_stats() local
150 if (rte_eth_tx_burst(port, 0, &pbuf, 1) != 1) { in test_get_stats()
155 if (rte_eth_rx_burst(port, 0, &pbuf, 1) != 1) { in test_get_stats()
174 struct rte_mbuf buf, *pbuf = &buf; in test_stats_reset() local
190 if (rte_eth_tx_burst(port, 0, &pbuf, 1) != 1) { in test_stats_reset()
195 if (rte_eth_rx_burst(port, 0, &pbuf, 1) != 1) { in test_stats_reset()
226 struct rte_mbuf buf, *pbuf = &buf; in test_pmd_ring_pair_create_attach() local
286 if (rte_eth_tx_burst(rxtx_portd, 0, &pbuf, 1) != 1) { in test_pmd_ring_pair_create_attach()
291 if (rte_eth_rx_burst(rxtx_porte, 0, &pbuf, 1) != 1) { in test_pmd_ring_pair_create_attach()
320 if (rte_eth_tx_burst(rxtx_porte, 0, &pbuf, 1) != 1) { in test_pmd_ring_pair_create_attach()
[all …]
H A Dsample_packet_forward.h28 int test_packet_forward(struct rte_mbuf **pbuf, uint16_t portid,
32 int test_get_mbuf_from_pool(struct rte_mempool **mp, struct rte_mbuf **pbuf,
39 void test_put_mbuf_to_pool(struct rte_mempool *mp, struct rte_mbuf **pbuf);
H A Dtest_bitratestats.c154 struct rte_mbuf *pbuf[BIT_NUM_PACKETS] = { }; in test_bit_packet_forward() local
157 ret = test_get_mbuf_from_pool(&mp, pbuf, poolname); in test_bit_packet_forward()
162 ret = test_packet_forward(pbuf, portid, QUEUE_ID); in test_bit_packet_forward()
165 test_put_mbuf_to_pool(mp, pbuf); in test_bit_packet_forward()
H A Dtest_latencystats.c152 struct rte_mbuf *pbuf[LATENCY_NUM_PACKETS] = { }; in test_latency_packet_forward() local
156 ret = test_get_mbuf_from_pool(&mp, pbuf, poolname); in test_latency_packet_forward()
161 ret = test_packet_forward(pbuf, portid, QUEUE_ID); in test_latency_packet_forward()
164 test_put_mbuf_to_pool(mp, pbuf); in test_latency_packet_forward()
H A Dtest_pdump.c143 struct rte_mbuf *pbuf[NUM_PACKETS] = { }; in send_pkts() local
147 ret = test_get_mbuf_from_pool(&mp, pbuf, poolname); in send_pkts()
151 ret = test_packet_forward(pbuf, portid, QUEUE_ID); in send_pkts()
155 test_put_mbuf_to_pool(mp, pbuf); in send_pkts()
/f-stack/freebsd/kern/
H A Dkern_physio.c48 struct buf *pbuf; in physio() local
103 pbuf = NULL; in physio()
106 pbuf = NULL; in physio()
110 pbuf = uma_zalloc(pbuf_zone, M_WAITOK); in physio()
111 MPASS((pbuf->b_flags & B_MAXPHYS) != 0); in physio()
112 sa = pbuf->b_data; in physio()
114 pages = pbuf->b_pages; in physio()
165 if (pbuf && sa) { in physio()
186 if (pbuf) in physio()
206 if (pbuf) in physio()
[all …]
H A Dvfs_aio.c1213 struct buf *pbuf; in aio_qbio() local
1300 pbuf = NULL; in aio_qbio()
1305 BUF_KERNPROC(pbuf); in aio_qbio()
1306 pages = pbuf->b_pages; in aio_qbio()
1316 bp->bio_caller2 = pbuf; in aio_qbio()
1325 if (pbuf != NULL) in aio_qbio()
1334 if (pbuf != NULL) { in aio_qbio()
1337 pbuf->b_npages = npages; in aio_qbio()
2437 if (pbuf != NULL) { in aio_biocleanup()
2439 pmap_qremove((vm_offset_t)pbuf->b_data, pbuf->b_npages); in aio_biocleanup()
[all …]
/f-stack/freebsd/contrib/openzfs/tests/zfs-tests/cmd/mktree/
H A Dmktree.c157 char *pbuf; in crtfile() local
164 pbuf = (char *)valloc(size); in crtfile()
167 (void) snprintf(pbuf+offset, size-offset, "%s", context); in crtfile()
175 if (write(fd, pbuf, 1024) < 1024) { in crtfile()
182 if (fsetxattr(fd, "user.xattr", pbuf, 1024, 0) < 0) { in crtfile()
190 free(pbuf); in crtfile()
/f-stack/dpdk/drivers/net/af_packet/
H A Drte_eth_af_packet.c116 uint8_t *pbuf; in eth_af_packet_rx() local
144 pbuf = (uint8_t *) ppd + ppd->tp_mac; in eth_af_packet_rx()
145 memcpy(rte_pktmbuf_mtod(mbuf, void *), pbuf, rte_pktmbuf_data_len(mbuf)); in eth_af_packet_rx()
178 uint8_t *pbuf; in eth_af_packet_tx() local
220 pbuf = (uint8_t *) ppd + TPACKET2_HDRLEN - in eth_af_packet_tx()
226 memcpy(pbuf, rte_pktmbuf_mtod(tmp_mbuf, void*), data_len); in eth_af_packet_tx()
227 pbuf += data_len; in eth_af_packet_tx()
/f-stack/freebsd/arm/allwinner/
H A Da10_hdmi.c396 uint8_t *pbuf; in a10hdmi_ddc_read() local
398 pbuf = edid; in a10hdmi_ddc_read()
408 bus_read_multi_1(sc->res, DDC_FIFO, pbuf, len); in a10hdmi_ddc_read()
410 pbuf += len; in a10hdmi_ddc_read()
/f-stack/tools/ipfw/
H A Dtables.c895 caddr_t pbuf; in table_do_modify_record() local
903 pbuf = xbuf; in table_do_modify_record()
905 if ((pbuf = calloc(1, sizeof(*oh) + sz)) == NULL) in table_do_modify_record()
909 memcpy(pbuf, oh, sizeof(*oh)); in table_do_modify_record()
910 oh = (ipfw_obj_header *)pbuf; in table_do_modify_record()
935 if (pbuf != xbuf) in table_do_modify_record()
936 free(pbuf); in table_do_modify_record()
/f-stack/freebsd/netinet/
H A Dtcp_usrreq.c2049 char *pbuf, buf[TCP_LOG_ID_LEN]; in tcp_default_ctloutput() local
2064 pbuf = malloc(sopt->sopt_valsize, M_TEMP, M_WAITOK | M_ZERO); in tcp_default_ctloutput()
2065 error = sooptcopyin(sopt, pbuf, sopt->sopt_valsize, in tcp_default_ctloutput()
2068 free(pbuf, M_TEMP); in tcp_default_ctloutput()
2071 INP_WLOCK_RECHECK_CLEANUP(inp, free(pbuf, M_TEMP)); in tcp_default_ctloutput()
2073 error = CC_ALGO(tp)->ctl_output(tp->ccv, sopt, pbuf); in tcp_default_ctloutput()
2078 error = sooptcopyout(sopt, pbuf, sopt->sopt_valsize); in tcp_default_ctloutput()
2079 free(pbuf, M_TEMP); in tcp_default_ctloutput()
/f-stack/freebsd/netpfil/ipfw/
H A Dip_fw_nat.c822 void *pbuf; in nat44_get_log() local
869 pbuf = (void *)ipfw_get_sopt_space(sd, LIBALIAS_BUF_SIZE); in nat44_get_log()
870 memcpy(pbuf, ptr->lib->logDesc, LIBALIAS_BUF_SIZE); in nat44_get_log()
/f-stack/freebsd/vm/
H A Dvm_pager.c223 SYSINIT(pbuf, SI_SUB_KTHREAD_BUF, SI_ORDER_ANY, pbuf_prealloc, NULL);
/f-stack/dpdk/drivers/net/mlx5/
H A Dmlx5_rxtx.c2781 dseg->pbuf = rte_cpu_to_be_64((uintptr_t)buf); in mlx5_tx_dseg_ptr()
2818 dseg->pbuf = rte_cpu_to_be_64((uintptr_t)buf); in mlx5_tx_dseg_iptr()
/f-stack/dpdk/drivers/common/mlx5/
H A Dmlx5_prm.h312 uint64_t pbuf; member