Searched refs:buf_idx (Results 1 - 23 of 23) sorted by relevance

/freebsd-13-stable/tools/tools/netmap/
H A Dbridge.c93 if (ts->buf_idx < 2 || rs->buf_idx < 2) {
95 j, rs->buf_idx, k, ts->buf_idx);
109 uint32_t pkt = ts->buf_idx;
110 ts->buf_idx = rs->buf_idx;
111 rs->buf_idx = pkt;
116 char *rxbuf = NETMAP_BUF(rxring, rs->buf_idx);
117 char *txbuf = NETMAP_BUF(txring, ts->buf_idx);
[all...]
H A Dlb.c369 uint32_t *b = (uint32_t *)NETMAP_BUF(cp->ring, s.buf_idx);
372 rxport->nmd->nifp->ni_bufs_head = s.buf_idx;
531 ts->buf_idx = rs->buf_idx;
544 return old_slot.buf_idx;
566 return rs->buf_idx;
612 return oq_deq(freeq).buf_idx;
786 s.buf_idx = scan;
787 ND("freeq <- %d", s.buf_idx);
956 rs->buf_idx
[all...]
H A Dpkt-gen.c776 ring, cur, ring->slot[cur].buf_idx,
1190 char *p = NETMAP_BUF(ring, slot->buf_idx);
1204 p = NETMAP_BUF(ring, slot->buf_idx);
1227 fp = NETMAP_BUF(ring, slot->buf_idx);
1353 p = NETMAP_BUF(ring, slot->buf_idx);
1404 p = NETMAP_BUF(ring, slot->buf_idx);
1531 src = NETMAP_BUF(rxring, slot->buf_idx);
1538 txring->slot[txhead].buf_idx);
1795 char *p = NETMAP_BUF(ring, slot->buf_idx);
2037 char *p = NETMAP_BUF(ring, slot->buf_idx);
[all...]
/freebsd-13-stable/sys/dev/ena/
H A Dena_netmap.c161 rx_info->netmap_buf_idx = slot->buf_idx;
163 slot->buf_idx = 0;
213 ENA_WARN(slot->buf_idx != 0, NULL, "Overwrite slot buf\n");
214 slot->buf_idx = rx_info->netmap_buf_idx;
542 slot->buf_idx);
631 slot->buf_idx, *push_hdr, push_len);
661 *nm_buf_idx = slot->buf_idx;
663 slot->buf_idx = 0;
715 *nm_buf_idx = slot->buf_idx;
717 slot->buf_idx
[all...]
/freebsd-13-stable/sys/dev/et/
H A Dif_et.c2049 int buflen, buf_idx, npost[2], ring_idx; local
2083 buf_idx = (rxst_info2 & ET_RXST_INFO2_BUFIDX_MASK) >>
2102 if (buf_idx >= ET_RX_NDESC) {
2104 if_printf(ifp, "invalid buf index %d\n", buf_idx);
2109 m = rbd->rbd_buf[buf_idx].rb_mbuf;
2112 rbd->rbd_discard(rbd, buf_idx);
2113 } else if (rbd->rbd_newbuf(rbd, buf_idx) != 0) {
2116 rbd->rbd_discard(rbd, buf_idx);
2132 if (buf_idx != rx_ring->rr_index) {
2134 "WARNING!! ring %d, buf_idx
2327 et_newbuf_cluster(struct et_rxbuf_data *rbd, int buf_idx) argument
2375 et_rxbuf_discard(struct et_rxbuf_data *rbd, int buf_idx) argument
2386 et_newbuf_hdr(struct et_rxbuf_data *rbd, int buf_idx) argument
[all...]
/freebsd-13-stable/sys/dev/bwi/
H A Dif_bwi.c2430 bwi_setup_rx_desc32(struct bwi_softc *sc, int buf_idx, bus_addr_t paddr, argument
2435 KASSERT(buf_idx < BWI_RX_NDESC, ("buf_idx %d", buf_idx));
2436 bwi_setup_desc32(sc, rd->rdata_desc, BWI_RX_NDESC, buf_idx,
2442 int buf_idx, bus_addr_t paddr, int buf_len)
2444 KASSERT(buf_idx < BWI_TX_NDESC, ("buf_idx %d", buf_idx));
2445 bwi_setup_desc32(sc, rd->rdata_desc, BWI_TX_NDESC, buf_idx,
2441 bwi_setup_tx_desc32(struct bwi_softc *sc, struct bwi_ring_data *rd, int buf_idx, bus_addr_t paddr, int buf_len) argument
2471 bwi_setup_rx_desc64(struct bwi_softc *sc, int buf_idx, bus_addr_t paddr, int buf_len) argument
2478 bwi_setup_tx_desc64(struct bwi_softc *sc, struct bwi_ring_data *rd, int buf_idx, bus_addr_t paddr, int buf_len) argument
2495 bwi_newbuf(struct bwi_softc *sc, int buf_idx, int init) argument
3307 int ring_idx, buf_idx; local
[all...]
/freebsd-13-stable/sys/net/
H A Dnetmap_user.h49 * directly len, flags, buf_idx)
1044 idx = ring->slot[i].buf_idx;
1051 idx = ring->slot[i].buf_idx;
1096 idx = slot->buf_idx;
1110 nbuf = (u_char *)NETMAP_BUF(ring, slot->buf_idx);
1140 u_int idx = ring->slot[i].buf_idx;
H A Dnetmap.h74 | ni_rx_rings | / | buf_idx, len | slot[0]
77 +================+ / | buf_idx, len | slot[1]
81 | txring_ofs[t] | | buf_idx, len | slot[n-1]
164 uint32_t buf_idx; /* buffer index */ member in struct:netmap_slot
174 #define NS_BUF_CHANGED 0x0001 /* buf_idx changed */
176 * must be set whenever buf_idx is changed (as it might be
179 * It is also set by the kernel whenever the buf_idx is
/freebsd-13-stable/sys/dev/netmap/
H A Dnetmap_pipe.c567 ring->slot[kring->pipe_tail].buf_idx = 0;
573 nm_prdis("%s[%d] %u", kring->name, j, ring->slot[j].buf_idx);
574 ring->slot[j].buf_idx = 0;
H A Dnetmap_monitor.c653 tmp = ms->buf_idx;
654 ms->buf_idx = s->buf_idx;
655 s->buf_idx = tmp;
656 nm_prdis(5, "beg %d buf_idx %d", beg, tmp);
H A Dnetmap_mem2.c1195 slot[i].buf_idx = index;
1207 netmap_obj_free(p, slot[i].buf_idx);
1220 slot[i].buf_idx = index;
1246 if (slot[i].buf_idx > 1)
1247 netmap_free_buf(nmd, slot[i].buf_idx);
H A Dnetmap_kern.h1423 kring->ring_id, nm_i, slot->buf_idx, len); \
1901 uint32_t i = slot->buf_idx;
1909 uint32_t i = slot->buf_idx;
H A Dnetmap.c1282 src->buf_idx = dst->buf_idx;
1285 dst->buf_idx = tmp.buf_idx;
1814 u_int idx = ring->slot[i].buf_idx;
1818 ring->slot[i].buf_idx = 0;
H A Dnetmap_bdg.c978 slot->buf_idx);
/freebsd-13-stable/sys/dev/qlnx/qlnxe/
H A Decore_mcp.c3480 u32 buf_idx, buf_size, nvm_cmd, nvm_offset, resp = 0, param; local
3509 buf_idx = 0;
3510 while (buf_idx < len) {
3511 buf_size = OSAL_MIN_T(u32, (len - buf_idx),
3515 buf_idx;
3518 (u32 *)&p_buf[buf_idx]);
3539 if (buf_idx % 0x1000 >
3540 (buf_idx + buf_size) % 0x1000)
3543 buf_idx += buf_size;
3648 u32 buf_idx, buf_siz local
[all...]
H A Decore_ll2.c1156 u16 buf_idx; local
1176 for (buf_idx = 0; buf_idx < p_ll2_info->input.rx_num_ooo_buffers;
1177 buf_idx++) {
/freebsd-13-stable/usr.sbin/bhyve/
H A Dnet_backends.c731 nm_buf = NETMAP_BUF(ring, ring->slot[head].buf_idx);
773 nm_buf = NETMAP_BUF(ring, ring->slot[head].buf_idx);
839 nm_buf = NETMAP_BUF(ring, slot->buf_idx);
/freebsd-13-stable/sys/dev/ice/
H A Dice_flex_type.h467 u32 buf_idx; member in struct:ice_pkg_enum
H A Dice_flex_pipe.c190 state->buf_idx = 0;
194 if (++state->buf_idx < LE32_TO_CPU(state->buf_table->buf_count))
196 state->buf_idx);
/freebsd-13-stable/lib/libnetmap/
H A Dnmport.c824 idx = ring->slot[i].buf_idx;
831 idx = ring->slot[i].buf_idx;
/freebsd-13-stable/tests/sys/cddl/zfs/tests/txg_integrity/
H A Dfsync_integrity.c303 int buf_idx = (ofs - file_ofs) / sizeof(uint64_t); local
304 buf[buf_idx] = mark;
H A Dtxg_integrity.c336 int buf_idx = (ofs - file_ofs) / sizeof(uint64_t); local
337 buf[buf_idx] = mark;
/freebsd-13-stable/sys/contrib/alpine-hal/eth/
H A Dal_hal_eth_main.c2387 int buf_idx; local
2537 for(buf_idx = 0; buf_idx < pkt->num_of_bufs; buf_idx++ ) {
2547 if (buf_idx == (pkt->num_of_bufs - 1))
2554 flags_len |= pkt->bufs[buf_idx].len & AL_M2S_DESC_LEN_MASK;
2556 if (buf_idx == 0)
2559 pkt->bufs[buf_idx].addr | tgtid);

Completed in 194 milliseconds