| /freebsd/sys/arm64/spe/ |
| H A D | arm_spe_dev.h | 97 uint8_t buf_idx : 1; member 116 uint8_t buf_idx : 1; /* 0 = first half of buf, 1 = 2nd half */ member 135 u_int buf_idx : 1; member 142 static inline vm_offset_t buf_start_addr(u_int buf_idx, struct arm_spe_info *info) in buf_start_addr() argument 145 if (buf_idx == 0) in buf_start_addr() 147 if (buf_idx == 1) in buf_start_addr() 153 static inline vm_offset_t buf_end_addr(u_int buf_idx, struct arm_spe_info *info) in buf_end_addr() argument 157 if (buf_idx == 0) in buf_end_addr() 159 if (buf_idx == 1) in buf_end_addr()
|
| H A D | arm_spe_dev.c | 135 uint8_t i = info->buf_idx; in arm_spe_intr() 215 info->buf_idx = !info->buf_idx; in arm_spe_intr() 216 base = buf_start_addr(info->buf_idx, info); in arm_spe_intr() 285 queue->offset = buf->pmbptr - buf_start_addr(buf->buf_idx, info); in arm_spe_send_buffer() 286 queue->buf_idx = buf->buf_idx; in arm_spe_send_buffer()
|
| H A D | arm_spe_backend.c | 153 info->buf_info[0].buf_idx = 0; in spe_backend_init_cpu() 155 info->buf_info[1].buf_idx = 1; in spe_backend_init_cpu() 363 struct arm_spe_buf_info *buf = &info->buf_info[info->buf_idx]; in arm_spe_enable() 391 base = buf_start_addr(info->buf_idx, info); in arm_spe_enable() 459 struct arm_spe_buf_info *buf = &info->buf_info[info->buf_idx]; in arm_spe_disable_nolock() 518 buf = &info->buf_info[info->buf_idx]; in spe_backend_disable_smp() 580 struct arm_spe_buf_info *buf = &info->buf_info[info->buf_idx]; in arm_spe_flush() 651 if (s->buf_idx > 1) in spe_backend_svc_buf() 673 buf = &info->buf_info[s->buf_idx]; in spe_backend_svc_buf() 718 *data = (q->buf_idx << KQ_BUF_POS_SHIFT) | in spe_backend_read() [all …]
|
| H A D | arm_spe.h | 74 uint8_t buf_idx : 1; member
|
| /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() 541 slot->buf_idx); in ena_netmap_map_single_slot() 627 slot->buf_idx, *push_hdr, push_len); in ena_netmap_tx_map_slots() 653 *nm_buf_idx = slot->buf_idx; in ena_netmap_tx_map_slots() 655 slot->buf_idx = 0; in ena_netmap_tx_map_slots() 704 *nm_buf_idx = slot->buf_idx; in ena_netmap_tx_map_slots() 706 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 | 2429 bwi_setup_rx_desc32(struct bwi_softc *sc, int buf_idx, bus_addr_t paddr, in bwi_setup_rx_desc32() argument 2434 KASSERT(buf_idx < BWI_RX_NDESC, ("buf_idx %d", buf_idx)); in bwi_setup_rx_desc32() 2435 bwi_setup_desc32(sc, rd->rdata_desc, BWI_RX_NDESC, buf_idx, in bwi_setup_rx_desc32() 2441 int buf_idx, bus_addr_t paddr, int buf_len) in bwi_setup_tx_desc32() argument 2443 KASSERT(buf_idx < BWI_TX_NDESC, ("buf_idx %d", buf_idx)); in bwi_setup_tx_desc32() 2444 bwi_setup_desc32(sc, rd->rdata_desc, BWI_TX_NDESC, buf_idx, in bwi_setup_tx_desc32() 2470 bwi_setup_rx_desc64(struct bwi_softc *sc, int buf_idx, bus_addr_t paddr, in bwi_setup_rx_desc64() argument 2478 int buf_idx, bus_addr_t paddr, int buf_len) in bwi_setup_tx_desc64() argument 2494 bwi_newbuf(struct bwi_softc *sc, int buf_idx, int init) in bwi_newbuf() argument 2497 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 | 1213 slot[i].buf_idx = index; in netmap_new_bufs() 1225 netmap_obj_free(p, slot[i].buf_idx); in netmap_new_bufs() 1238 slot[i].buf_idx = index; in netmap_mem_set_ring() 1264 if (slot[i].buf_idx > 1) in netmap_free_bufs() 1265 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 | 2299 uint32_t buf_idx; in mana_alloc_rx_wqe() local 2310 for (buf_idx = 0; buf_idx < rxq->num_rx_buf; buf_idx++) { in mana_alloc_rx_wqe() 2311 rx_oob = &rxq->rx_oobs[buf_idx]; in mana_alloc_rx_wqe() 2319 buf_idx); in mana_alloc_rx_wqe() 2327 buf_idx); in mana_alloc_rx_wqe() 2351 uint32_t buf_idx; in mana_push_wqe() local 2354 for (buf_idx = 0; buf_idx < rxq->num_rx_buf; buf_idx++) { in mana_push_wqe() 2355 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
|
| /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()
|