Home
last modified time | relevance | path

Searched refs:pidx (Results 1 – 25 of 80) sorted by relevance

1234

/freebsd/sys/dev/ntb/test/
H A Dntb_tool.c676 int pidx; in tool_init_peers() local
681 for (pidx = 0; pidx < tc->peer_cnt; pidx++) { in tool_init_peers()
682 tc->peers[pidx].pidx = pidx; in tool_init_peers()
989 for (pidx = 0; pidx < tc->peer_cnt; pidx++) { in tool_clear_mws()
1003 for (pidx = 0; pidx < tc->peer_cnt; pidx++) { in tool_init_mws()
1014 mw->pidx = pidx; in tool_init_mws()
1226 for (pidx = 0; pidx < tc->peer_cnt; pidx++) { in tool_init_spads()
1234 tc->peers[pidx].outspads[sidx].pidx = pidx; in tool_init_spads()
1243 int pidx; in tool_clear_spads() local
1249 for (pidx = 0; pidx < tc->peer_cnt; pidx++) in tool_clear_spads()
[all …]
/freebsd/sys/dev/ice/
H A Dice_iflib_txrx.c57 uint32_t pidx);
232 wr32(hw, txq->tail, pidx); in ice_ift_txd_flush()
475 uint32_t pidx; in ice_ift_rxd_refill() local
479 pidx = iru->iru_pidx; in ice_ift_rxd_refill()
524 qidx_t pidx) in ice_ift_rxd_flush() argument
544 wr32(&sc->hw, rxq->tail, pidx); in _ice_ift_rxd_flush()
666 wr32(hw, txq->tail, pidx); in ice_ift_txd_flush_subif()
722 uint32_t pidx; in ice_ift_rxd_refill_subif() local
726 pidx = iru->iru_pidx; in ice_ift_rxd_refill_subif()
744 qidx_t pidx) in ice_ift_rxd_flush_subif() argument
[all …]
H A Dice_iflib_recovery_txrx.c49 static void ice_recovery_txd_flush(void *arg, uint16_t txqid, qidx_t pidx);
51 static int ice_recovery_rxd_available(void *arg, uint16_t rxqid, qidx_t pidx, qidx_t budget);
52 static void ice_recovery_rxd_flush(void *arg, uint16_t rxqid, uint8_t flidx, qidx_t pidx);
100 qidx_t __unused pidx) in ice_recovery_txd_flush() argument
137 qidx_t __unused pidx, qidx_t __unused budget) in ice_recovery_rxd_available() argument
184 uint8_t flidx __unused, qidx_t __unused pidx) in ice_recovery_rxd_flush() argument
/freebsd/contrib/sendmail/libsm/
H A Dt-notify.c102 int r, i, pidx; local
140 pidx = validpid(nproc, (pid_t)cpid);
141 SM_TEST(pidx >= 0);
142 SM_TEST(pidx < nproc);
146 if (NULL != p && pidx < nproc && pidx >= 0)
156 SM_TEST('\0' == msgs[pidx][n]);
157 msgs[pidx][n] = 'f';
/freebsd/sys/dev/enetc/
H A Dif_enetc.c657 queue->pidx = 0; in enetc_ctrl_send()
733 queue->pidx = 0; in enetc_init_ctrl()
960 qidx_t cidx, pidx; in enetc_disable_txq() local
1098 qidx_t pidx, queue_len; in enetc_isc_txd_encap() local
1103 pidx = ipi->ipi_pidx; in enetc_isc_txd_encap()
1120 pidx = 0; in enetc_isc_txd_encap()
1130 pidx = 0; in enetc_isc_txd_encap()
1141 pidx = 0; in enetc_isc_txd_encap()
1220 pidx = 0; in enetc_isc_rxd_available()
1302 pidx = iru->iru_pidx; in enetc_isc_rxd_refill()
[all …]
/freebsd/sys/net/route/
H A Dnhop_utils.c136 bitmask_swap(struct bitmask_head *bh, void *new_idx, uint32_t new_items, void **pidx) in bitmask_swap() argument
145 if (pidx != NULL) in bitmask_swap()
146 *pidx = old_ptr; in bitmask_swap()
154 bitmask_alloc_idx(struct bitmask_head *bi, uint16_t *pidx) in bitmask_alloc_idx() argument
173 *pidx = v; in bitmask_alloc_idx()
/freebsd/sys/net/
H A Dmp_ring.c98 uint16_t pidx = os.pidx_tail; in drain_ring_locked() local
101 MPASS(cidx != pidx); in drain_ring_locked()
108 while (cidx != pidx) { in drain_ring_locked()
110 n = r->drain(r, cidx, pidx); in drain_ring_locked()
133 if (cidx != pidx && pending < 64 && total < budget) in drain_ring_locked()
157 pidx = ns.pidx_tail; in drain_ring_locked()
172 uint16_t pidx = os.pidx_tail; in drain_ring_lockless() local
175 MPASS(cidx != pidx); in drain_ring_lockless()
182 while (cidx != pidx) { in drain_ring_lockless()
184 n = r->drain(r, cidx, pidx); in drain_ring_lockless()
[all …]
/freebsd/contrib/ofed/libcxgb4/
H A Ddev.c278 u16 cidx, pidx; in dump_qp() local
294 qhp->wq.sq.pidx, in dump_qp()
304 qhp->wq.rq.pidx, in dump_qp()
308 pidx = qhp->wq.sq.pidx; in dump_qp()
309 if (cidx != pidx) in dump_qp()
311 while (cidx != pidx) { in dump_qp()
344 pidx = qhp->wq.rq.pidx; in dump_qp()
345 if (cidx != pidx) in dump_qp()
347 while (cidx != pidx) { in dump_qp()
362 if (j == 0 && i == qhp->wq.rq.pidx) in dump_qp()
H A Dt4.h99 __be16 pidx; member
324 u16 pidx; member
348 u16 pidx; member
386 if (++wq->rq.pidx == wq->rq.size) in t4_rq_produce()
387 wq->rq.pidx = 0; in t4_rq_produce()
429 if (++wq->sq.pidx == wq->sq.size) in t4_sq_produce()
430 wq->sq.pidx = 0; in t4_sq_produce()
483 __func__, wq->sq.pidx, len16); in t4_ring_sq_db()
487 __func__, wq->sq.pidx, len16); in t4_ring_sq_db()
532 __func__, wq->rq.pidx, len16); in t4_ring_rq_db()
[all …]
/freebsd/sys/dev/bnxt/
H A Dbnxt_txrx.c58 qidx_t pidx);
180 softc->db_ops.bnxt_db_tx(tx_ring, pidx); in bnxt_isc_txd_flush()
258 uint32_t pidx; in bnxt_isc_rxd_refill() local
265 pidx = iru->iru_pidx; in bnxt_isc_rxd_refill()
281 rxbd[pidx].flags_type = htole16(type); in bnxt_isc_rxd_refill()
282 rxbd[pidx].len = htole16(softc->rx_buf_size); in bnxt_isc_rxd_refill()
286 rxbd[pidx].addr = htole64(paddrs[i]); in bnxt_isc_rxd_refill()
287 if (++pidx == rx_ring->ring_size) in bnxt_isc_rxd_refill()
288 pidx = 0; in bnxt_isc_rxd_refill()
295 qidx_t pidx) in bnxt_isc_rxd_flush() argument
[all …]
/freebsd/sys/dev/ixgbe/
H A Dix_txrx.c250 ixgbe_isc_txd_flush(void *arg, uint16_t txqid, qidx_t pidx) in ixgbe_isc_txd_flush() argument
256 IXGBE_WRITE_REG(&sc->hw, txr->tail, pidx); in ixgbe_isc_txd_flush()
327 uint32_t next_pidx, pidx; in ixgbe_isc_rxd_refill() local
331 pidx = iru->iru_pidx; in ixgbe_isc_rxd_refill()
334 for (i = 0, next_pidx = pidx; i < count; i++) { in ixgbe_isc_rxd_refill()
345 ixgbe_isc_rxd_flush(void *arg, uint16_t qsidx, uint8_t flidx __unused, qidx_t pidx) in ixgbe_isc_rxd_flush() argument
351 IXGBE_WRITE_REG(&sc->hw, rxr->tail, pidx); in ixgbe_isc_rxd_flush()
358 ixgbe_isc_rxd_available(void *arg, uint16_t qsidx, qidx_t pidx, qidx_t budget) in ixgbe_isc_rxd_available() argument
368 for (cnt = 0, i = pidx; cnt < nrxd && cnt <= budget;) { in ixgbe_isc_rxd_available()
/freebsd/crypto/openssl/crypto/property/
H A Dproperty_string.c120 OSSL_PROPERTY_IDX *pidx) in new_property_string() argument
128 ps->idx = ++*pidx; in new_property_string()
139 OSSL_PROPERTY_IDX *pidx, in ossl_property_string() argument
150 if (ps == NULL && pidx != NULL) { in ossl_property_string()
157 if (ps == NULL && (ps_new = new_property_string(s, pidx)) != NULL) { in ossl_property_string()
/freebsd/sys/dev/cxgbe/iw_cxgbe/
H A Dt4.h76 __be16 pidx; member
327 u16 pidx; member
355 u16 pidx; member
390 if (++wq->rq.pidx == wq->rq.size) in t4_rq_produce()
391 wq->rq.pidx = 0; in t4_rq_produce()
438 if (++wq->sq.pidx == wq->sq.size) in t4_sq_produce()
439 wq->sq.pidx = 0; in t4_sq_produce()
489 __func__, wq->sq.pidx); in t4_ring_sq_db()
495 __func__, wq->sq.pidx); in t4_ring_sq_db()
514 __func__, wq->rq.pidx); in t4_ring_rq_db()
[all …]
/freebsd/sys/dev/iavf/
H A Diavf_txrx_iflib.c50 static void iavf_isc_txd_flush(void *arg, uint16_t txqid, qidx_t pidx);
56 qidx_t pidx);
410 iavf_isc_txd_flush(void *arg, uint16_t txqid, qidx_t pidx) in iavf_isc_txd_flush() argument
416 MPASS(pidx < vsi->shared->isc_ntxd[0]); in iavf_isc_txd_flush()
417 wr32(vsi->hw, txr->tail, pidx); in iavf_isc_txd_flush()
576 uint16_t next_pidx, pidx; in iavf_isc_rxd_refill() local
581 pidx = iru->iru_pidx; in iavf_isc_rxd_refill()
584 for (i = 0, next_pidx = pidx; i < count; i++) { in iavf_isc_rxd_refill()
602 iavf_isc_rxd_flush(void * arg, uint16_t rxqid, uint8_t flid __unused, qidx_t pidx) in iavf_isc_rxd_flush() argument
607 wr32(vsi->hw, rxr->tail, pidx); in iavf_isc_rxd_flush()
/freebsd/sys/dev/cxgb/
H A Dcxgb_sge.c193 unsigned int pidx; member
766 q->pidx = 0; in refill_fl()
858 q->pidx = 0; in recycle_rx_buf()
1142 txqs->pidx = txq->pidx; in txq_prod()
1146 (txq->pidx < txqs->pidx) && in txq_prod()
1153 txqs->pidx, txq->pidx, txq->cidx); in txq_prod()
1915 q->pidx = 0; in ctrl_xmit()
1952 q->pidx = 0; in restart_ctrlq()
2250 txqs.pidx = pidx; in write_ofld_wr()
2289 pidx = q->pidx; in ofld_xmit()
[all …]
/freebsd/sys/dev/cxgbe/
H A Dt4_netmap.c230 nm_txq->pidx = nm_txq->cidx = 0; in alloc_nm_txq()
455 nm_txq->pidx = nm_txq->cidx = 0; in alloc_nm_txq_hwq()
958 nm_txq->dbidx = nm_txq->pidx; in ring_nm_txq_db()
1017 nm_txq->pidx += npkt_to_ndesc(n); in cxgbe_nm_tx()
1025 nm_txq->pidx = 0; in cxgbe_nm_tx()
1033 nm_txq->equeqidx = nm_txq->pidx; in cxgbe_nm_tx()
1034 nm_txq->equiqidx = nm_txq->pidx; in cxgbe_nm_tx()
1043 nm_txq->equeqidx = nm_txq->pidx; in cxgbe_nm_tx()
1044 nm_txq->equiqidx = nm_txq->pidx; in cxgbe_nm_tx()
1047 nm_txq->equeqidx = nm_txq->pidx; in cxgbe_nm_tx()
[all …]
H A Dt4_mp_ring.c120 uint16_t pidx; in drain_ring() local
129 pidx = os.pidx_tail; in drain_ring()
130 MPASS(cidx != pidx); in drain_ring()
135 while (cidx != pidx) { in drain_ring()
138 n = r->drain(r, cidx, pidx, &coalescing); in drain_ring()
212 pidx = ns.pidx_tail; in drain_ring()
231 uint16_t pidx = os.pidx_tail; in drain_txpkts() local
236 MPASS(cidx == pidx); in drain_txpkts()
238 r->drain(r, cidx, pidx, &coalescing); in drain_txpkts()
H A Dt4_sge.c2172 eq->pidx += n; in drain_wrq_wr_list()
2181 eq->pidx = n - (eq->sidx - eq->pidx); in drain_wrq_wr_list()
2939 cookie->pidx = eq->pidx; in start_wrq_wr()
2983 pidx = cookie->pidx; in commit_wrq_wr()
2984 MPASS(pidx >= 0 && pidx < eq->sidx); in commit_wrq_wr()
3013 MPASS(IDXDIFF(next->pidx, pidx, eq->sidx) == ndesc); in commit_wrq_wr()
3014 next->pidx = pidx; in commit_wrq_wr()
3018 MPASS(IDXDIFF(pidx, prev->pidx, eq->sidx) == prev->ndesc); in commit_wrq_wr()
5043 uint16_t pidx = fl->pidx >> 3; in refill_fl() local
5047 pidx = 0; in refill_fl()
[all …]
/freebsd/sys/dev/igc/
H A Digc_txrx.c48 static void igc_isc_txd_flush(void *arg, uint16_t txqid, qidx_t pidx);
54 qidx_t pidx);
323 igc_isc_txd_flush(void *arg, uint16_t txqid, qidx_t pidx) in igc_isc_txd_flush() argument
329 IGC_WRITE_REG(&adapter->hw, IGC_TDT(txr->me), pidx); in igc_isc_txd_flush()
394 uint32_t next_pidx, pidx; in igc_isc_rxd_refill() local
399 pidx = iru->iru_pidx; in igc_isc_rxd_refill()
402 for (i = 0, next_pidx = pidx; i < count; i++) { in igc_isc_rxd_refill()
412 igc_isc_rxd_flush(void *arg, uint16_t rxqid, uint8_t flid __unused, qidx_t pidx) in igc_isc_rxd_flush() argument
418 IGC_WRITE_REG(&sc->hw, IGC_RDT(rxr->me), pidx); in igc_isc_rxd_flush()
/freebsd/sys/dev/e1000/
H A Digb_txrx.c46 static void igb_isc_txd_flush(void *arg, uint16_t txqid, qidx_t pidx);
52 qidx_t pidx);
299 igb_isc_txd_flush(void *arg, uint16_t txqid, qidx_t pidx) in igb_isc_txd_flush() argument
305 E1000_WRITE_REG(&sc->hw, E1000_TDT(txr->me), pidx); in igb_isc_txd_flush()
370 uint32_t next_pidx, pidx; in igb_isc_rxd_refill() local
375 pidx = iru->iru_pidx; in igb_isc_rxd_refill()
378 for (i = 0, next_pidx = pidx; i < count; i++) { in igb_isc_rxd_refill()
388 igb_isc_rxd_flush(void *arg, uint16_t rxqid, uint8_t flid __unused, qidx_t pidx) in igb_isc_rxd_flush() argument
394 E1000_WRITE_REG(&sc->hw, E1000_RDT(rxr->me), pidx); in igb_isc_rxd_flush()
H A Dem_txrx.c55 qidx_t pidx);
462 em_isc_txd_flush(void *arg, uint16_t txqid, qidx_t pidx) in em_isc_txd_flush() argument
468 E1000_WRITE_REG(&sc->hw, E1000_TDT(txr->me), pidx); in em_isc_txd_flush()
537 uint32_t next_pidx, pidx; in lem_isc_rxd_refill() local
542 pidx = iru->iru_pidx; in lem_isc_rxd_refill()
545 for (i = 0, next_pidx = pidx; i < count; i++) { in lem_isc_rxd_refill()
566 uint32_t next_pidx, pidx; in em_isc_rxd_refill() local
571 pidx = iru->iru_pidx; in em_isc_rxd_refill()
574 for (i = 0, next_pidx = pidx; i < count; i++) { in em_isc_rxd_refill()
587 qidx_t pidx) in em_isc_rxd_flush() argument
[all …]
/freebsd/sys/vm/
H A Dphys_pager.c54 static int default_phys_pager_populate(vm_object_t object, vm_pindex_t pidx,
229 default_phys_pager_populate(vm_object_t object, vm_pindex_t pidx, in default_phys_pager_populate() argument
237 base = rounddown(pidx, phys_pager_cluster); in default_phys_pager_populate()
261 phys_pager_populate(vm_object_t object, vm_pindex_t pidx, int fault_type, in phys_pager_populate() argument
264 return (object->un_pager.phys.ops->phys_pg_populate(object, pidx, in phys_pager_populate()
H A Dvm_pager.h178 vm_pager_populate(vm_object_t object, vm_pindex_t pidx, int fault_type, in vm_pager_populate() argument
183 MPASS(pidx < object->size); in vm_pager_populate()
185 return ((*pagertab[object->type]->pgo_populate)(object, pidx, in vm_pager_populate()
290 int (*cdev_pg_populate)(vm_object_t vm_obj, vm_pindex_t pidx,
307 int (*phys_pg_populate)(vm_object_t vm_obj, vm_pindex_t pidx,
/freebsd/sys/dev/cxgbe/crypto/
H A Dt6_kern_tls.c1195 txsd = &txq->sdesc[pidx]; in ktls_write_tcp_options()
1299 txsd = &txq->sdesc[pidx]; in ktls_write_tunnel_packet()
1364 tcp_seqno, pidx)); in ktls_write_tls_wr()
1593 txsd = &txq->sdesc[pidx]; in ktls_write_tls_wr()
1597 dst = &eq->desc[pidx]; in ktls_write_tls_wr()
1840 txsd = &txq->sdesc[pidx]; in ktls_write_tls_wr()
1937 txsd = &txq->sdesc[pidx]; in ktls_write_tcp_fin()
1968 pidx = eq->pidx; in t6_ktls_write_wr()
1979 dst = &eq->desc[pidx]; in t6_ktls_write_wr()
2013 dst = &eq->desc[pidx]; in t6_ktls_write_wr()
[all …]
/freebsd/sys/dev/enic/
H A Denic_txrx.c146 enic_isc_txd_flush(void *vsc, uint16_t txqid, qidx_t pidx) in enic_isc_txd_flush() argument
265 uint32_t pidx; in enic_isc_rxd_refill() local
273 pidx = iru->iru_pidx; in enic_isc_rxd_refill()
279 idx = pidx; in enic_isc_rxd_refill()
300 enic_isc_rxd_flush(void *vsc, uint16_t rxqid, uint8_t flid, qidx_t pidx) in enic_isc_rxd_flush() argument
316 ENIC_BUS_WRITE_4(rq->ctrl, RX_POSTED_INDEX, pidx); in enic_isc_rxd_flush()

1234