/freebsd/tools/tools/netmap/ |
H A D | bridge.c | 91 if (ts->buf_idx < 2 || rs->buf_idx < 2) { in rings_move() 93 j, rs->buf_idx, k, ts->buf_idx); in rings_move() 107 uint32_t pkt = ts->buf_idx; in rings_move() 108 ts->buf_idx = rs->buf_idx; in rings_move() 109 rs->buf_idx = pkt; in rings_move() 114 char *rxbuf = NETMAP_BUF(rxring, rs->buf_idx); in rings_move() 115 char *txbuf = NETMAP_BUF(txring, ts->buf_idx); in rings_move()
|
H A D | lb.c | 368 uint32_t *b = (uint32_t *)NETMAP_BUF(cp->ring, s.buf_idx); in free_buffers() 371 rxport->nmd->nifp->ni_bufs_head = s.buf_idx; in free_buffers() 531 ts->buf_idx = rs->buf_idx; in forward_packet() 544 return old_slot.buf_idx; in forward_packet() 566 return rs->buf_idx; in forward_packet() 612 return oq_deq(freeq).buf_idx; in forward_packet() 785 s.buf_idx = scan; in main() 786 ND("freeq <- %d", s.buf_idx); in main() 954 rs->buf_idx = forward_packet(g + 1, rs); in main() 992 tmp.buf_idx = slot->buf_idx; in main() [all …]
|
H A D | pkt-gen.c | 780 ring, cur, ring->slot[cur].buf_idx, in dump_payload() 1273 char *p = NETMAP_BUF(ring, slot->buf_idx); in send_packets() 1287 p = NETMAP_BUF(ring, slot->buf_idx); in send_packets() 1310 fp = NETMAP_BUF(ring, slot->buf_idx); in send_packets() 1440 p = NETMAP_BUF(ring, slot->buf_idx); in ping_body() 1493 p = NETMAP_BUF(ring, slot->buf_idx); in ping_body() 1627 src = NETMAP_BUF(rxring, slot->buf_idx); in pong_body() 1633 txring->slot[txhead].buf_idx); in pong_body() 1907 char *p = NETMAP_BUF(ring, slot->buf_idx); in receive_packets() 2150 char *p = NETMAP_BUF(ring, slot->buf_idx); in txseq_body() [all …]
|
/freebsd/sys/dev/ena/ |
H A D | ena_netmap.c | 158 rx_info->netmap_buf_idx = slot->buf_idx; in ena_netmap_alloc_rx_slot() 160 slot->buf_idx = 0; in ena_netmap_alloc_rx_slot() 210 ENA_WARN(slot->buf_idx != 0, adapter->ena_dev, "Overwrite slot buf\n"); in ena_netmap_free_rx_slot() 211 slot->buf_idx = rx_info->netmap_buf_idx; in ena_netmap_free_rx_slot() 539 slot->buf_idx); in ena_netmap_map_single_slot() 625 slot->buf_idx, *push_hdr, push_len); in ena_netmap_tx_map_slots() 651 *nm_buf_idx = slot->buf_idx; in ena_netmap_tx_map_slots() 653 slot->buf_idx = 0; in ena_netmap_tx_map_slots() 702 *nm_buf_idx = slot->buf_idx; in ena_netmap_tx_map_slots() 704 slot->buf_idx = 0; in ena_netmap_tx_map_slots() [all …]
|
/freebsd/sys/dev/et/ |
H A D | if_et.c | 2032 int buflen, buf_idx, npost[2], ring_idx; in et_rxeof() local 2066 buf_idx = (rxst_info2 & ET_RXST_INFO2_BUFIDX_MASK) >> in et_rxeof() 2085 if (buf_idx >= ET_RX_NDESC) { in et_rxeof() 2087 if_printf(ifp, "invalid buf index %d\n", buf_idx); in et_rxeof() 2092 m = rbd->rbd_buf[buf_idx].rb_mbuf; in et_rxeof() 2095 rbd->rbd_discard(rbd, buf_idx); in et_rxeof() 2096 } else if (rbd->rbd_newbuf(rbd, buf_idx) != 0) { in et_rxeof() 2099 rbd->rbd_discard(rbd, buf_idx); in et_rxeof() 2115 if (buf_idx != rx_ring->rr_index) { in et_rxeof() 2118 ring_idx, buf_idx, rx_ring->rr_index); in et_rxeof() [all …]
|
/freebsd/usr.sbin/bhyve/ |
H A D | net_backend_netmap.c | 190 nm_buf = NETMAP_BUF(ring, ring->slot[head].buf_idx); in netmap_send() 232 nm_buf = NETMAP_BUF(ring, ring->slot[head].buf_idx); in netmap_send() 298 nm_buf = NETMAP_BUF(ring, slot->buf_idx); in netmap_recv()
|
/freebsd/sys/dev/bwi/ |
H A D | if_bwi.c | 2425 bwi_setup_rx_desc32(struct bwi_softc *sc, int buf_idx, bus_addr_t paddr, in bwi_setup_rx_desc32() argument 2430 KASSERT(buf_idx < BWI_RX_NDESC, ("buf_idx %d", buf_idx)); in bwi_setup_rx_desc32() 2431 bwi_setup_desc32(sc, rd->rdata_desc, BWI_RX_NDESC, buf_idx, in bwi_setup_rx_desc32() 2437 int buf_idx, bus_addr_t paddr, int buf_len) in bwi_setup_tx_desc32() argument 2439 KASSERT(buf_idx < BWI_TX_NDESC, ("buf_idx %d", buf_idx)); in bwi_setup_tx_desc32() 2440 bwi_setup_desc32(sc, rd->rdata_desc, BWI_TX_NDESC, buf_idx, in bwi_setup_tx_desc32() 2466 bwi_setup_rx_desc64(struct bwi_softc *sc, int buf_idx, bus_addr_t paddr, in bwi_setup_rx_desc64() argument 2474 int buf_idx, bus_addr_t paddr, int buf_len) in bwi_setup_tx_desc64() argument 2490 bwi_newbuf(struct bwi_softc *sc, int buf_idx, int init) in bwi_newbuf() argument 2493 struct bwi_rxbuf *rxbuf = &rbd->rbd_buf[buf_idx]; in bwi_newbuf() [all …]
|
/freebsd/sys/net/ |
H A D | netmap_user.h | 138 (NETMAP_BUF(ring, (slot)->buf_idx) + NETMAP_ROFFSET(ring, slot)) 1065 idx = ring->slot[i].buf_idx; in nm_inject() 1072 idx = ring->slot[i].buf_idx; in nm_inject() 1118 idx = slot->buf_idx; in nm_dispatch() 1132 nbuf = (u_char *)NETMAP_BUF(ring, slot->buf_idx); in nm_dispatch() 1162 u_int idx = ring->slot[i].buf_idx; in nm_nextpkt()
|
H A D | netmap.h | 163 uint32_t buf_idx; /* buffer index */ member
|
/freebsd/tests/sys/cddl/zfs/tests/txg_integrity/ |
H A D | fsync_integrity.c | 302 int buf_idx = (ofs - file_ofs) / sizeof(uint64_t); in marker_fill() local 303 buf[buf_idx] = mark; in marker_fill()
|
H A D | txg_integrity.c | 335 int buf_idx = (ofs - file_ofs) / sizeof(uint64_t); in marker_fill() local 336 buf[buf_idx] = mark; in marker_fill()
|
/freebsd/sys/dev/netmap/ |
H A D | netmap_monitor.c | 657 tmp = ms->buf_idx; in netmap_zmon_parent_sync() 658 ms->buf_idx = s->buf_idx; in netmap_zmon_parent_sync() 659 s->buf_idx = tmp; in netmap_zmon_parent_sync()
|
H A D | netmap_pipe.c | 567 ring->slot[kring->pipe_tail].buf_idx = 0; in netmap_pipe_krings_delete_both() 573 nm_prdis("%s[%d] %u", kring->name, j, ring->slot[j].buf_idx); in netmap_pipe_krings_delete_both() 574 ring->slot[j].buf_idx = 0; in netmap_pipe_krings_delete_both()
|
H A D | netmap.c | 1324 src->buf_idx = dst->buf_idx; in netmap_sw_to_nic() 1327 dst->buf_idx = tmp.buf_idx; in netmap_sw_to_nic() 1856 u_int idx = ring->slot[i].buf_idx; in netmap_ring_reinit() 1860 ring->slot[i].buf_idx = 0; in netmap_ring_reinit()
|
H A D | netmap_mem2.c | 1209 slot[i].buf_idx = index; in netmap_new_bufs() 1221 netmap_obj_free(p, slot[i].buf_idx); in netmap_new_bufs() 1234 slot[i].buf_idx = index; in netmap_mem_set_ring() 1260 if (slot[i].buf_idx > 1) in netmap_free_bufs() 1261 netmap_free_buf(nmd, slot[i].buf_idx); in netmap_free_bufs()
|
H A D | netmap_kern.h | 1460 kring->ring_id, nm_i, slot->buf_idx, len); \ 1975 uint32_t i = slot->buf_idx; in NMB() 1983 uint32_t i = slot->buf_idx; in PNMB()
|
/freebsd/sys/dev/mana/ |
H A D | mana_en.c | 2295 uint32_t buf_idx; in mana_alloc_rx_wqe() local 2306 for (buf_idx = 0; buf_idx < rxq->num_rx_buf; buf_idx++) { in mana_alloc_rx_wqe() 2307 rx_oob = &rxq->rx_oobs[buf_idx]; in mana_alloc_rx_wqe() 2315 buf_idx); in mana_alloc_rx_wqe() 2323 buf_idx); in mana_alloc_rx_wqe() 2347 uint32_t buf_idx; in mana_push_wqe() local 2350 for (buf_idx = 0; buf_idx < rxq->num_rx_buf; buf_idx++) { in mana_push_wqe() 2351 rx_oob = &rxq->rx_oobs[buf_idx]; in mana_push_wqe()
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | ecore_mcp.c | 3478 u32 buf_idx, buf_size, nvm_cmd, nvm_offset, resp = 0, param; in ecore_mcp_nvm_write() local 3507 buf_idx = 0; in ecore_mcp_nvm_write() 3508 while (buf_idx < len) { in ecore_mcp_nvm_write() 3509 buf_size = OSAL_MIN_T(u32, (len - buf_idx), in ecore_mcp_nvm_write() 3513 buf_idx; in ecore_mcp_nvm_write() 3516 (u32 *)&p_buf[buf_idx]); in ecore_mcp_nvm_write() 3537 if (buf_idx % 0x1000 > in ecore_mcp_nvm_write() 3538 (buf_idx + buf_size) % 0x1000) in ecore_mcp_nvm_write() 3541 buf_idx += buf_size; in ecore_mcp_nvm_write() 3646 u32 buf_idx, buf_size, nvm_offset, resp, param; in ecore_mcp_phy_sfp_write() local [all …]
|
H A D | ecore_ll2.c | 1153 u16 buf_idx; in ecore_ll2_acquire_connection_ooo() local 1173 for (buf_idx = 0; buf_idx < p_ll2_info->input.rx_num_ooo_buffers; in ecore_ll2_acquire_connection_ooo() 1174 buf_idx++) { in ecore_ll2_acquire_connection_ooo()
|
/freebsd/sys/dev/ice/ |
H A D | ice_ddp_common.h | 406 u32 buf_idx; 402 u32 buf_idx; global() member
|
H A D | ice_ddp_common.c | 1991 state->buf_idx = 0; in ice_pkg_enum_buf() 1995 if (++state->buf_idx < LE32_TO_CPU(state->buf_table->buf_count)) in ice_pkg_enum_buf() 1997 state->buf_idx); in ice_pkg_enum_buf()
|
H A D | ice_lib.c | 7021 int tc, j, buf_idx, err = 0; in ice_vsi_del_txqs_ctx() 7057 buf_idx = 0; 7061 q_ids[buf_idx] = vsi->tx_qmap[j]; 7062 q_handles[buf_idx] = txq->q_handle; 7063 q_teids[buf_idx] = txq->q_teid; 7064 buf_idx++; 7067 status = ice_dis_vsi_txq(hw->port_info, vsi->idx, tc, buf_idx, in ice_add_txq_sysctls() 6855 int tc, j, buf_idx, err = 0; ice_vsi_disable_tx() local
|
/freebsd/lib/libnetmap/ |
H A D | nmport.c | 896 idx = ring->slot[i].buf_idx; in nmport_inject() 903 idx = ring->slot[i].buf_idx; in nmport_inject()
|
/freebsd/sys/contrib/alpine-hal/eth/ |
H A D | al_hal_eth_main.c | 2387 int buf_idx; in al_eth_tx_pkt_prepare() local 2537 for(buf_idx = 0; buf_idx < pkt->num_of_bufs; buf_idx++ ) { in al_eth_tx_pkt_prepare() 2547 if (buf_idx == (pkt->num_of_bufs - 1)) in al_eth_tx_pkt_prepare() 2554 flags_len |= pkt->bufs[buf_idx].len & AL_M2S_DESC_LEN_MASK; in al_eth_tx_pkt_prepare() 2556 if (buf_idx == 0) in al_eth_tx_pkt_prepare() 2559 pkt->bufs[buf_idx].addr | tgtid); in al_eth_tx_pkt_prepare()
|
/freebsd/sys/dev/irdma/ |
H A D | irdma_ctrl.c | 2855 u32 buf_idx, struct irdma_hmc_obj_info *obj_info, in irdma_sc_decode_fpm_commit() argument 2859 get_64bit_val(buf, buf_idx, &temp); in irdma_sc_decode_fpm_commit() 2978 static u64 irdma_sc_decode_fpm_query(__le64 * buf, u32 buf_idx, in irdma_sc_decode_fpm_query() argument 2984 get_64bit_val(buf, buf_idx, &temp); in irdma_sc_decode_fpm_query()
|