/freebsd-11-stable/tools/tools/netmap/ |
H A D | bridge.c | 78 if (ts->buf_idx < 2 || rs->buf_idx < 2) { 80 j, rs->buf_idx, k, ts->buf_idx); 92 uint32_t pkt = ts->buf_idx; 93 ts->buf_idx = rs->buf_idx; 94 rs->buf_idx = pkt; 101 char *rxbuf = NETMAP_BUF(rxring, rs->buf_idx); 102 char *txbuf = NETMAP_BUF(txring, ts->buf_idx); [all...] |
H A D | lb.c | 368 uint32_t *b = (uint32_t *)NETMAP_BUF(cp->ring, s.buf_idx); 371 rxport->nmd->nifp->ni_bufs_head = s.buf_idx; 504 ts->buf_idx = rs->buf_idx; 512 return old_slot.buf_idx; 523 return rs->buf_idx; 566 return oq_deq(freeq).buf_idx; 748 s.buf_idx = scan; 749 ND("freeq <- %d", s.buf_idx); 903 rs->buf_idx [all...] |
H A D | pkt-gen.c | 767 ring, cur, ring->slot[cur].buf_idx, 1171 char *p = NETMAP_BUF(ring, slot->buf_idx); 1185 p = NETMAP_BUF(ring, slot->buf_idx); 1208 fp = NETMAP_BUF(ring, slot->buf_idx); 1334 p = NETMAP_BUF(ring, slot->buf_idx); 1385 p = NETMAP_BUF(ring, slot->buf_idx); 1512 src = NETMAP_BUF(rxring, slot->buf_idx); 1519 txring->slot[txhead].buf_idx); 1776 char *p = NETMAP_BUF(ring, slot->buf_idx); 2018 char *p = NETMAP_BUF(ring, slot->buf_idx); [all...] |
/freebsd-11-stable/sys/dev/ena/ |
H A D | ena_netmap.c | 161 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-11-stable/sys/dev/drm/ |
H A D | r300_cmdbuf.c | 931 u32 i, buf_idx, h_pending; local 934 if (cmdbuf->bufsz < sizeof(uint64_t) + header.scratch.n_bufs * sizeof(buf_idx) ) { 950 buf_idx = *(u32 *)cmdbuf->buf; 951 buf_idx *= 2; /* 8 bytes per buf */ 953 if (DRM_COPY_TO_USER(ref_age_base + buf_idx, &dev_priv->scratch_ages[header.scratch.reg], sizeof(u32))) { 957 if (DRM_COPY_FROM_USER(&h_pending, ref_age_base + buf_idx + 1, sizeof(u32))) { 967 if (DRM_COPY_TO_USER(ref_age_base + buf_idx + 1, &h_pending, sizeof(u32))) { 971 cmdbuf->buf += sizeof(buf_idx); 972 cmdbuf->bufsz -= sizeof(buf_idx); 1129 idx = header.dma.buf_idx; [all...] |
H A D | radeon_drm.h | 203 unsigned char cmd_type, buf_idx, pad0, pad1; member in struct:__anon9798::__anon9804 267 unsigned char cmd_type, buf_idx, pad0, pad1; member in struct:__anon9806::__anon9812
|
H A D | radeon_state.c | 2924 idx = header.dma.buf_idx;
|
/freebsd-11-stable/sys/dev/et/ |
H A D | if_et.c | 2049 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-11-stable/sys/dev/bwi/ |
H A D | if_bwi.c | 2434 bwi_setup_rx_desc32(struct bwi_softc *sc, int buf_idx, bus_addr_t paddr, argument 2439 KASSERT(buf_idx < BWI_RX_NDESC, ("buf_idx %d", buf_idx)); 2440 bwi_setup_desc32(sc, rd->rdata_desc, BWI_RX_NDESC, buf_idx, 2446 int buf_idx, bus_addr_t paddr, int buf_len) 2448 KASSERT(buf_idx < BWI_TX_NDESC, ("buf_idx %d", buf_idx)); 2449 bwi_setup_desc32(sc, rd->rdata_desc, BWI_TX_NDESC, buf_idx, 2445 bwi_setup_tx_desc32(struct bwi_softc *sc, struct bwi_ring_data *rd, int buf_idx, bus_addr_t paddr, int buf_len) argument 2475 bwi_setup_rx_desc64(struct bwi_softc *sc, int buf_idx, bus_addr_t paddr, int buf_len) argument 2482 bwi_setup_tx_desc64(struct bwi_softc *sc, struct bwi_ring_data *rd, int buf_idx, bus_addr_t paddr, int buf_len) argument 2499 bwi_newbuf(struct bwi_softc *sc, int buf_idx, int init) argument 3312 int ring_idx, buf_idx; local [all...] |
/freebsd-11-stable/sys/net/ |
H A D | netmap_user.h | 47 * directly len, flags, buf_idx) 1047 idx = ring->slot[i].buf_idx; 1054 idx = ring->slot[i].buf_idx; 1100 idx = slot->buf_idx; 1114 nbuf = (u_char *)NETMAP_BUF(ring, slot->buf_idx); 1144 u_int idx = ring->slot[i].buf_idx;
|
H A D | netmap.h | 72 | ni_rx_rings | / | buf_idx, len | slot[0] 75 +===============+ / | buf_idx, len | slot[1] 79 | txring_ofs[t] | | buf_idx, len | slot[n-1] 166 uint32_t buf_idx; /* buffer index */ member in struct:netmap_slot 176 #define NS_BUF_CHANGED 0x0001 /* buf_idx changed */ 178 * must be set whenever buf_idx is changed (as it might be 181 * It is also set by the kernel whenever the buf_idx is
|
/freebsd-11-stable/sys/dev/netmap/ |
H A D | netmap_pipe.c | 565 ring->slot[kring->pipe_tail].buf_idx = 0; 571 nm_prdis("%s[%d] %u", kring->name, j, ring->slot[j].buf_idx); 572 ring->slot[j].buf_idx = 0;
|
H A D | netmap_monitor.c | 653 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 D | netmap.c | 1260 src->buf_idx = dst->buf_idx; 1263 dst->buf_idx = tmp.buf_idx; 1779 u_int idx = ring->slot[i].buf_idx; 1783 ring->slot[i].buf_idx = 0;
|
H A D | netmap_mem2.c | 1192 slot[i].buf_idx = index; 1204 netmap_obj_free(p, slot[i].buf_idx); 1217 slot[i].buf_idx = index; 1243 if (slot[i].buf_idx > 1) 1244 netmap_free_buf(nmd, slot[i].buf_idx);
|
H A D | netmap_kern.h | 1403 kring->ring_id, nm_i, slot->buf_idx, len); \ 1883 uint32_t i = slot->buf_idx; 1891 uint32_t i = slot->buf_idx;
|
H A D | netmap_bdg.c | 978 slot->buf_idx);
|
/freebsd-11-stable/contrib/libgnuregex/ |
H A D | regex_internal.c | 557 int buf_idx, end_idx; 560 for (buf_idx = pstr->valid_len; buf_idx < end_idx; ++buf_idx) 562 int ch = pstr->raw_mbs[pstr->raw_mbs_idx + buf_idx]; 563 pstr->mbs[buf_idx] = pstr->trans[ch]; 566 pstr->valid_len = buf_idx; 567 pstr->valid_raw_len = buf_idx; 556 int buf_idx, end_idx; local
|
/freebsd-11-stable/sys/dev/qlnx/qlnxe/ |
H A D | ecore_mcp.c | 3481 u32 buf_idx, buf_size, nvm_cmd, nvm_offset, resp = 0, param; local 3510 buf_idx = 0; 3511 while (buf_idx < len) { 3512 buf_size = OSAL_MIN_T(u32, (len - buf_idx), 3516 buf_idx; 3519 (u32 *)&p_buf[buf_idx]); 3540 if (buf_idx % 0x1000 > 3541 (buf_idx + buf_size) % 0x1000) 3544 buf_idx += buf_size; 3649 u32 buf_idx, buf_siz local [all...] |
/freebsd-11-stable/sys/dev/drm2/radeon/ |
H A D | radeon_drm.h | 205 unsigned char cmd_type, buf_idx, pad0, pad1; member in struct:__anon9943::__anon9949 269 unsigned char cmd_type, buf_idx, pad0, pad1; member in struct:__anon9951::__anon9957
|
/freebsd-11-stable/usr.sbin/bhyve/ |
H A D | pci_virtio_net.c | 387 idx = ring->slot[cur].buf_idx; 428 idx = ring->slot[cur].buf_idx;
|
/freebsd-11-stable/sys/contrib/alpine-hal/eth/ |
H A D | al_hal_eth_main.c | 2121 int buf_idx; local 2276 for(buf_idx = 0; buf_idx < pkt->num_of_bufs; buf_idx++ ) { 2286 if (buf_idx == (pkt->num_of_bufs - 1)) 2293 flags_len |= pkt->bufs[buf_idx].len & AL_M2S_DESC_LEN_MASK; 2295 if (buf_idx == 0) 2298 pkt->bufs[buf_idx].addr | vmid);
|