/freebsd-13-stable/sys/dev/ice/ |
H A D | ice_iflib_recovery_txrx.c | 50 static void ice_recovery_txd_flush(void *arg, uint16_t txqid, qidx_t pidx); 52 static int ice_recovery_rxd_available(void *arg, uint16_t rxqid, qidx_t pidx, qidx_t budget); 53 static void ice_recovery_rxd_flush(void *arg, uint16_t rxqid, uint8_t flidx, qidx_t pidx); 94 * @pidx: descriptor index to advance tail to 101 qidx_t __unused pidx) 128 * @pidx: descriptor start point 138 qidx_t __unused pidx, qidx_t __unused budget) 178 * @pidx: descriptor index to advance tail to 185 uint8_t flidx __unused, qidx_t __unused pidx) 100 ice_recovery_txd_flush(void __unused *arg, uint16_t __unused txqid, qidx_t __unused pidx) argument 137 ice_recovery_rxd_available(void __unused *arg, uint16_t __unused rxqid, qidx_t __unused pidx, qidx_t __unused budget) argument 184 ice_recovery_rxd_flush(void __unused *arg, uint16_t __unused rxqid, uint8_t flidx __unused, qidx_t __unused pidx) argument
|
H A D | ice_iflib_txrx.c | 53 static void ice_ift_txd_flush(void *arg, uint16_t txqid, qidx_t pidx); 55 static int ice_ift_rxd_available(void *arg, uint16_t rxqid, qidx_t pidx, qidx_t budget); 56 static void ice_ift_rxd_flush(void *arg, uint16_t rxqid, uint8_t flidx, qidx_t pidx); 162 * @pidx: descriptor index to advance tail to 168 ice_ift_txd_flush(void *arg, uint16_t txqid, qidx_t pidx) argument 174 wr32(hw, txq->tail, pidx); 240 * @pidx: descriptor start point 247 ice_ift_rxd_available(void *arg, uint16_t rxqid, qidx_t pidx, qidx_t budget) argument 257 for (cnt = 0, i = pidx; cnt < nrxd - 1 && cnt < budget;) { 365 uint32_t pidx; local 393 ice_ift_rxd_flush(void *arg, uint16_t rxqid, uint8_t flidx __unused, qidx_t pidx) argument [all...] |
/freebsd-13-stable/sys/dev/ntb/test/ |
H A D | ntb_tool.c | 216 int pidx; member in struct:tool_mw 246 int pidx; member in struct:tool_spad 251 int pidx; member in struct:tool_peer 646 int rc, pidx = arg2, peer_port; local 648 peer_port = ntb_peer_port_number(tc->dev, pidx); 654 tc->peers[pidx].port_no = peer_port; 679 int pidx; local 684 for (pidx = 0; pidx < tc->peer_cnt; pidx 733 int up = 0, pidx = arg2; local 754 int rc, pidx = arg2; local 805 tool_setup_mw(struct tool_ctx *tc, unsigned int pidx, unsigned int widx, size_t req_size) argument 872 tool_free_mw(struct tool_ctx *tc, int pidx, int widx) argument 989 int widx, pidx; local 1003 int widx, pidx, rc; local 1215 int sidx, pidx; local 1246 int pidx; local 1314 unsigned int pidx, sidx, widx; local [all...] |
/freebsd-13-stable/sys/net/route/ |
H A D | nhop_utils.c | 137 bitmask_swap(struct bitmask_head *bh, void *new_idx, uint32_t new_items, void **pidx) argument 146 if (pidx != NULL) 147 *pidx = old_ptr; 151 * Allocate new index in given instance and stores in in @pidx. 155 bitmask_alloc_idx(struct bitmask_head *bi, uint16_t *pidx) argument 174 *pidx = v;
|
/freebsd-13-stable/sys/dev/ixgbe/ |
H A D | ix_txrx.c | 49 static void ixgbe_isc_txd_flush(void *arg, uint16_t txqid, qidx_t pidx); 53 static void ixgbe_isc_rxd_flush(void *arg, uint16_t qsidx, uint8_t flidx __unused, qidx_t pidx); 54 static int ixgbe_isc_rxd_available(void *arg, uint16_t qsidx, qidx_t pidx, 253 ixgbe_isc_txd_flush(void *arg, uint16_t txqid, qidx_t pidx) argument 259 IXGBE_WRITE_REG(&sc->hw, txr->tail, pidx); 330 uint32_t next_pidx, pidx; local 334 pidx = iru->iru_pidx; 337 for (i = 0, next_pidx = pidx; i < count; i++) { 348 ixgbe_isc_rxd_flush(void *arg, uint16_t qsidx, uint8_t flidx __unused, qidx_t pidx) argument 354 IXGBE_WRITE_REG(&sc->hw, rxr->tail, pidx); 361 ixgbe_isc_rxd_available(void *arg, uint16_t qsidx, qidx_t pidx, qidx_t budget) argument [all...] |
/freebsd-13-stable/sys/vm/ |
H A D | vm_pager.h | 175 vm_pager_populate(vm_object_t object, vm_pindex_t pidx, int fault_type, argument 180 MPASS(pidx < object->size); 182 return ((*pagertab[object->type]->pgo_populate)(object, pidx, 258 int (*cdev_pg_populate)(vm_object_t vm_obj, vm_pindex_t pidx, 275 int (*phys_pg_populate)(vm_object_t vm_obj, vm_pindex_t pidx,
|
H A D | phys_pager.c | 57 static int default_phys_pager_populate(vm_object_t object, vm_pindex_t pidx, 232 default_phys_pager_populate(vm_object_t object, vm_pindex_t pidx, argument 240 base = rounddown(pidx, phys_pager_cluster); 264 phys_pager_populate(vm_object_t object, vm_pindex_t pidx, int fault_type, argument 267 return (object->un_pager.phys.ops->phys_pg_populate(object, pidx,
|
/freebsd-13-stable/contrib/ofed/libcxgb4/ |
H A D | dev.c | 278 u16 cidx, pidx; local 283 " SQ: id %u queue %p sw_queue %p cidx %u pidx %u in_use %u wq_pidx %u depth %u flags 0x%x flush_cidx %d\n" 284 " RQ: id %u queue %p sw_queue %p cidx %u pidx %u in_use %u depth %u\n", 294 qhp->wq.sq.pidx, 304 qhp->wq.rq.pidx, 308 pidx = qhp->wq.sq.pidx; 309 if (cidx != pidx) 311 while (cidx != pidx) { 338 fprintf(stderr, " <-- pidx"); [all...] |
H A D | t4.h | 99 __be16 pidx; member in struct:t4_status_page 324 u16 pidx; member in struct:t4_sq 348 u16 pidx; member in struct:t4_rq 386 if (++wq->rq.pidx == wq->rq.size) 387 wq->rq.pidx = 0; 392 wq->rq.queue[wq->rq.size].status.host_pidx = wq->rq.pidx; 401 assert((wq->rq.cidx != wq->rq.pidx) || wq->rq.in_use == 0); 429 if (++wq->sq.pidx == wq->sq.size) 430 wq->sq.pidx = 0; 437 wq->sq.queue[wq->sq.size].status.host_pidx = (wq->sq.pidx); [all...] |
H A D | qp.c | 348 swsqe = &qhp->wq.sq.sw_sq[qhp->wq.sq.pidx]; 386 swsqe->idx = qhp->wq.sq.pidx; 393 init_wr_hdr(wqe, qhp->wq.sq.pidx, fw_opcode, fw_flags, len16); 394 PDBG("%s cookie 0x%llx pidx 0x%x opcode 0x%x\n", 395 __func__, (unsigned long long)wr->wr_id, qhp->wq.sq.pidx, 457 qhp->wq.rq.sw_rq[qhp->wq.rq.pidx].wr_id = wr->wr_id; 461 wqe->recv.wrid = qhp->wq.rq.pidx; 466 PDBG("%s cookie 0x%llx pidx %u\n", __func__, 467 (unsigned long long) wr->wr_id, qhp->wq.rq.pidx);
|
/freebsd-13-stable/sys/net/ |
H A D | mp_ring.c | 101 uint16_t pidx = os.pidx_tail; local 104 MPASS(cidx != pidx); 111 while (cidx != pidx) { 112 /* Items from cidx to pidx are available for consumption. */ 113 n = r->drain(r, cidx, pidx); 132 * We update the cidx only if we've caught up with the pidx, the 136 if (cidx != pidx && pending < 64 && total < budget) 158 * associated with any pidx change that we notice here. 160 pidx = ns.pidx_tail; 175 uint16_t pidx local [all...] |
/freebsd-13-stable/sys/dev/bnxt/ |
H A D | bnxt_txrx.c | 51 static void bnxt_isc_txd_flush(void *sc, uint16_t txqid, qidx_t pidx); 57 uint32_t pidx, uint64_t *paddrs, caddr_t *vaddrs, uint16_t count, 61 qidx_t pidx); 177 bnxt_isc_txd_flush(void *sc, uint16_t txqid, qidx_t pidx) argument 182 /* pidx is what we last set ipi_new_pidx to */ 183 BNXT_TX_DB(tx_ring, pidx); 185 BNXT_TX_DB(tx_ring, pidx); 263 uint32_t pidx; local 271 pidx = iru->iru_pidx; 287 rxbd[pidx] 300 bnxt_isc_rxd_flush(void *sc, uint16_t rxqid, uint8_t flid, qidx_t pidx) argument [all...] |
/freebsd-13-stable/sys/dev/cxgbe/ |
H A D | t4_mp_ring.c | 123 uint16_t pidx; local 132 pidx = os.pidx_tail; 133 MPASS(cidx != pidx); 138 while (cidx != pidx) { 140 /* Items from cidx to pidx are available for consumption. */ 141 n = r->drain(r, cidx, pidx, &coalescing); 213 * associated with any pidx change that we notice here. 215 pidx = ns.pidx_tail; 234 uint16_t pidx = os.pidx_tail; local 239 MPASS(cidx == pidx); [all...] |
H A D | t4_netmap.c | 187 SYSCTL_ADD_UINT(ctx, children, OID_AUTO, "pidx", CTLFLAG_RD, 231 nm_txq->pidx = nm_txq->cidx = 0; 253 SYSCTL_ADD_U16(&vi->ctx, children, OID_AUTO, "pidx", CTLFLAG_RD, 254 &nm_txq->pidx, 0, "producer index"); 472 nm_txq->pidx = nm_txq->cidx = 0; 767 j /= 8; /* driver pidx to hardware pidx */ 924 #define NMIDXDIFF(q, idx) IDXDIFF((q)->pidx, (q)->idx, (q)->sidx) 932 MPASS(nm_txq->pidx != nm_txq->dbidx); 954 __func__, nm_txq->doorbells, n, nm_txq->pidx, nm_tx [all...] |
H A D | t4_sge.c | 2184 MPASS(eq->pidx == eq->dbidx); 2189 if (eq->pidx == eq->cidx) 2192 available = IDXDIFF(eq->cidx, eq->pidx, eq->sidx) - 1; 2199 dst = (void *)&eq->desc[eq->pidx]; 2200 if (__predict_true(eq->sidx - eq->pidx > n)) { 2203 eq->pidx += n; 2205 int first_portion = (eq->sidx - eq->pidx) * EQ_ESIZE; 2212 eq->pidx = n - (eq->sidx - eq->pidx); 2269 /* Doorbell must have caught up to the pidx 3029 int ndesc, pidx; local 3186 eth_tx(struct mp_ring *r, u_int cidx, u_int pidx, bool *coalescing) argument 4688 uint16_t pidx = fl->pidx >> 3; local 5823 uint16_t hw_cidx, pidx; local [all...] |
/freebsd-13-stable/sys/dev/e1000/ |
H A D | igb_txrx.c | 45 static void igb_isc_txd_flush(void *arg, uint16_t txqid, qidx_t pidx); 50 static void igb_isc_rxd_flush(void *arg, uint16_t rxqid, uint8_t flid __unused, qidx_t pidx); 292 igb_isc_txd_flush(void *arg, uint16_t txqid, qidx_t pidx) argument 298 E1000_WRITE_REG(&adapter->hw, E1000_TDT(txr->me), pidx); 363 uint32_t next_pidx, pidx; local 368 pidx = iru->iru_pidx; 371 for (i = 0, next_pidx = pidx; i < count; i++) { 381 igb_isc_rxd_flush(void *arg, uint16_t rxqid, uint8_t flid __unused, qidx_t pidx) argument 387 E1000_WRITE_REG(&sc->hw, E1000_RDT(rxr->me), pidx);
|
H A D | em_txrx.c | 50 static void em_isc_txd_flush(void *arg, uint16_t txqid, qidx_t pidx); 54 qidx_t pidx); 193 DPRINTF(iflib_get_dev(adapter->ctx), "%s: pidx: %d cur: %d\n", __FUNCTION__, pi->ipi_pidx, cur); 418 em_isc_txd_flush(void *arg, uint16_t txqid, qidx_t pidx) argument 424 E1000_WRITE_REG(&adapter->hw, E1000_TDT(txr->me), pidx); 493 uint32_t next_pidx, pidx; local 498 pidx = iru->iru_pidx; 501 for (i = 0, next_pidx = pidx; i < count; i++) { 522 uint32_t next_pidx, pidx; local 527 pidx 542 em_isc_rxd_flush(void *arg, uint16_t rxqid, uint8_t flid __unused, qidx_t pidx) argument [all...] |
/freebsd-13-stable/contrib/libdivsufsort/lib/ |
H A D | divsufsort.c | 364 saidx_t m, pidx, i; local 377 pidx = construct_BWT(T, B, bucket_A, bucket_B, n, m); 381 for(i = 0; i < pidx; ++i) { U[i + 1] = (sauchar_t)B[i]; } 383 pidx += 1; 385 pidx = -2; 392 return pidx;
|
/freebsd-13-stable/sys/dev/cxgb/ |
H A D | cxgb_sge.c | 195 unsigned int pidx; member in struct:txq_state 710 struct rx_sw_desc *sd = &q->sdesc[q->pidx]; 711 struct rx_desc *d = &q->desc[q->pidx]; 767 if (++q->pidx == q->size) { 768 q->pidx = 0; 849 struct rx_desc *to = &q->desc[q->pidx]; 851 q->sdesc[q->pidx] = q->sdesc[idx]; 859 if (++q->pidx == q->size) { 860 q->pidx = 0; 1144 txqs->pidx 2222 write_ofld_wr(adapter_t *adap, struct mbuf *m, struct sge_txq *q, unsigned int pidx, unsigned int gen, unsigned int ndesc) argument 2294 unsigned int pidx, gen; local 2346 unsigned int gen, pidx; local [all...] |
/freebsd-13-stable/contrib/lua/src/ |
H A D | lparser.h | 101 short pidx; /* index of the variable in the Proto's 'locvars' array */ member in struct:Vardesc::__anon5020
|
/freebsd-13-stable/sys/amd64/sgx/ |
H A D | sgx.c | 94 * pidx = OFF_TO_IDX(addp->addr - vmh->base); 235 vm_pindex_t pidx; local 246 pidx = OFF_TO_IDX(addr); 248 va_slot = pidx % SGX_VA_PAGE_SLOTS; 249 va_page_idx = pidx / SGX_VA_PAGE_SLOTS; 362 dprintf("%s: p->pidx %ld\n", __func__, p->pindex); 609 vm_pindex_t pidx) 615 vm_page_insert(page, object, pidx); 622 vm_pindex_t pidx; local 627 pidx 608 sgx_insert_epc_page_by_index(vm_page_t page, vm_object_t object, vm_pindex_t pidx) argument 791 uint64_t pidx; local [all...] |
/freebsd-13-stable/sys/dev/cxgbe/iw_cxgbe/ |
H A D | t4.h | 78 __be16 pidx; member in struct:t4_status_page 332 u16 pidx; member in struct:t4_sq 360 u16 pidx; member in struct:t4_rq 395 if (++wq->rq.pidx == wq->rq.size) 396 wq->rq.pidx = 0; 443 if (++wq->sq.pidx == wq->sq.size) 444 wq->sq.pidx = 0; 493 CTR2(KTR_IW_CXGBE, "%s: WC wq->sq.pidx = %d", 494 __func__, wq->sq.pidx); 499 CTR2(KTR_IW_CXGBE, "%s: DB wq->sq.pidx [all...] |
/freebsd-13-stable/sys/dev/cxgbe/crypto/ |
H A D | t4_kern_tls.c | 1357 u_int available, u_int pidx) 1442 txsd = &txq->sdesc[pidx]; 1451 struct mbuf *m_tls, u_int available, tcp_seq tcp_seqno, u_int pidx) 1546 txsd = &txq->sdesc[pidx]; 1562 u_int pidx, bool set_l2t_idx) 1593 using_scratch = (eq->sidx - pidx < SGE_MAX_WR_LEN / EQ_ESIZE); 1612 tcp_seqno, pidx)); 1839 txsd = &txq->sdesc[pidx]; 1842 IDXINCR(pidx, ndesc, eq->sidx); 1843 dst = &eq->desc[pidx]; 1356 ktls_write_tcp_options(struct sge_txq *txq, void *dst, struct mbuf *m, u_int available, u_int pidx) argument 1450 ktls_write_tunnel_packet(struct sge_txq *txq, void *dst, struct mbuf *m, struct mbuf *m_tls, u_int available, tcp_seq tcp_seqno, u_int pidx) argument 1559 ktls_write_tls_wr(struct tlspcb *tlsp, struct sge_txq *txq, void *dst, struct mbuf *m, struct tcphdr *tcp, struct mbuf *m_tls, u_int nsegs, u_int available, tcp_seq tcp_seqno, uint32_t *tsopt, u_int pidx, bool set_l2t_idx) argument 2097 ktls_write_tcp_fin(struct sge_txq *txq, void *dst, struct mbuf *m, u_int available, tcp_seq tcp_seqno, u_int pidx) argument 2201 u_int ndesc, pidx, totdesc; local [all...] |
/freebsd-13-stable/sys/dev/ixl/ |
H A D | ixl_txrx.c | 57 static void ixl_isc_txd_flush(void *arg, uint16_t txqid, qidx_t pidx); 63 qidx_t pidx); 415 ixl_isc_txd_flush(void *arg, uint16_t txqid, qidx_t pidx) argument 425 MPASS(pidx < vsi->shared->isc_ntxd[0]); 426 wr32(vsi->hw, txr->tail, pidx); 554 uint32_t next_pidx, pidx; local 559 pidx = iru->iru_pidx; 562 for (i = 0, next_pidx = pidx; i < count; i++) { 570 ixl_isc_rxd_flush(void * arg, uint16_t rxqid, uint8_t flid __unused, qidx_t pidx) argument 575 wr32(vsi->hw, rxr->tail, pidx); [all...] |
/freebsd-13-stable/sys/netipsec/ |
H A D | ipsec_output.c | 110 ipsec4_allocsa(struct mbuf *m, struct secpolicy *sp, u_int *pidx, int *error) argument 122 isr = sp->req[*pidx]; 156 saidx = &sp->req[*pidx]->saidx; 165 if (ipsec_get_reqlevel(sp, *pidx) != IPSEC_LEVEL_REQUIRE) { 172 if (sp->tcount > ++(*pidx)) 423 ipsec6_allocsa(struct mbuf *m, struct secpolicy *sp, u_int *pidx, int *error) argument 435 isr = sp->req[*pidx]; 481 saidx = &sp->req[*pidx]->saidx; 490 if (ipsec_get_reqlevel(sp, *pidx) != IPSEC_LEVEL_REQUIRE) { 497 if (sp->tcount > ++(*pidx)) [all...] |