| /freebsd-14.2/sys/dev/ntb/test/ |
| H A D | ntb_tool.c | 677 int pidx; in tool_init_peers() local 682 for (pidx = 0; pidx < tc->peer_cnt; pidx++) { in tool_init_peers() 683 tc->peers[pidx].pidx = pidx; in tool_init_peers() 990 for (pidx = 0; pidx < tc->peer_cnt; pidx++) { in tool_clear_mws() 1004 for (pidx = 0; pidx < tc->peer_cnt; pidx++) { in tool_init_mws() 1015 mw->pidx = pidx; in tool_init_mws() 1227 for (pidx = 0; pidx < tc->peer_cnt; pidx++) { in tool_init_spads() 1235 tc->peers[pidx].outspads[sidx].pidx = pidx; in tool_init_spads() 1244 int pidx; in tool_clear_spads() local 1250 for (pidx = 0; pidx < tc->peer_cnt; pidx++) in tool_clear_spads() [all …]
|
| /freebsd-14.2/sys/dev/ice/ |
| H A D | ice_iflib_txrx.c | 57 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 D | ice_iflib_recovery_txrx.c | 49 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-14.2/contrib/sendmail/libsm/ |
| H A D | t-notify.c | 102 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-14.2/sys/dev/enetc/ |
| H A D | if_enetc.c | 658 queue->pidx = 0; in enetc_ctrl_send() 734 queue->pidx = 0; in enetc_init_ctrl() 961 qidx_t cidx, pidx; in enetc_disable_txq() local 1099 qidx_t pidx, queue_len; in enetc_isc_txd_encap() local 1104 pidx = ipi->ipi_pidx; in enetc_isc_txd_encap() 1121 pidx = 0; in enetc_isc_txd_encap() 1131 pidx = 0; in enetc_isc_txd_encap() 1142 pidx = 0; in enetc_isc_txd_encap() 1221 pidx = 0; in enetc_isc_rxd_available() 1303 pidx = iru->iru_pidx; in enetc_isc_rxd_refill() [all …]
|
| /freebsd-14.2/sys/net/route/ |
| H A D | nhop_utils.c | 136 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-14.2/sys/net/ |
| H A D | mp_ring.c | 99 uint16_t pidx = os.pidx_tail; in drain_ring_locked() local 102 MPASS(cidx != pidx); in drain_ring_locked() 109 while (cidx != pidx) { in drain_ring_locked() 111 n = r->drain(r, cidx, pidx); in drain_ring_locked() 134 if (cidx != pidx && pending < 64 && total < budget) in drain_ring_locked() 158 pidx = ns.pidx_tail; in drain_ring_locked() 173 uint16_t pidx = os.pidx_tail; in drain_ring_lockless() local 176 MPASS(cidx != pidx); in drain_ring_lockless() 183 while (cidx != pidx) { in drain_ring_lockless() 185 n = r->drain(r, cidx, pidx); in drain_ring_lockless() [all …]
|
| /freebsd-14.2/contrib/ofed/libcxgb4/ |
| H A D | dev.c | 278 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 D | t4.h | 99 __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-14.2/sys/dev/bnxt/bnxt_en/ |
| H A D | bnxt_txrx.c | 59 qidx_t pidx); 181 softc->db_ops.bnxt_db_tx(tx_ring, pidx); in bnxt_isc_txd_flush() 259 uint32_t pidx; in bnxt_isc_rxd_refill() local 266 pidx = iru->iru_pidx; in bnxt_isc_rxd_refill() 282 rxbd[pidx].flags_type = htole16(type); in bnxt_isc_rxd_refill() 283 rxbd[pidx].len = htole16(softc->rx_buf_size); in bnxt_isc_rxd_refill() 287 rxbd[pidx].addr = htole64(paddrs[i]); in bnxt_isc_rxd_refill() 288 if (++pidx == rx_ring->ring_size) in bnxt_isc_rxd_refill() 289 pidx = 0; in bnxt_isc_rxd_refill() 296 qidx_t pidx) in bnxt_isc_rxd_flush() argument [all …]
|
| /freebsd-14.2/sys/dev/ixgbe/ |
| H A D | ix_txrx.c | 250 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-14.2/crypto/openssl/crypto/property/ |
| H A D | property_string.c | 120 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-14.2/sys/dev/cxgbe/iw_cxgbe/ |
| H A D | t4.h | 76 __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-14.2/sys/dev/iavf/ |
| H A D | iavf_txrx_iflib.c | 50 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-14.2/sys/dev/cxgb/ |
| H A D | cxgb_sge.c | 193 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-14.2/sys/dev/cxgbe/ |
| H A D | t4_netmap.c | 230 nm_txq->pidx = nm_txq->cidx = 0; in alloc_nm_txq() 455 nm_txq->pidx = nm_txq->cidx = 0; in alloc_nm_txq_hwq() 915 MPASS(nm_txq->pidx != nm_txq->dbidx); in ring_nm_txq_db() 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() 1034 nm_txq->equeqidx = nm_txq->pidx; in cxgbe_nm_tx() 1035 nm_txq->equiqidx = nm_txq->pidx; in cxgbe_nm_tx() 1038 nm_txq->equeqidx = nm_txq->pidx; in cxgbe_nm_tx() 1046 nm_txq->equeqidx = nm_txq->pidx; in cxgbe_nm_tx() [all …]
|
| H A D | t4_mp_ring.c | 121 uint16_t pidx; in drain_ring() local 130 pidx = os.pidx_tail; in drain_ring() 131 MPASS(cidx != pidx); in drain_ring() 136 while (cidx != pidx) { in drain_ring() 139 n = r->drain(r, cidx, pidx, &coalescing); in drain_ring() 213 pidx = ns.pidx_tail; in drain_ring() 232 uint16_t pidx = os.pidx_tail; in drain_txpkts() local 237 MPASS(cidx == pidx); in drain_txpkts() 239 r->drain(r, cidx, pidx, &coalescing); in drain_txpkts()
|
| H A D | t4_sge.c | 2180 eq->pidx += n; in drain_wrq_wr_list() 2189 eq->pidx = n - (eq->sidx - eq->pidx); in drain_wrq_wr_list() 2951 cookie->pidx = eq->pidx; in start_wrq_wr() 2995 pidx = cookie->pidx; in commit_wrq_wr() 2996 MPASS(pidx >= 0 && pidx < eq->sidx); in commit_wrq_wr() 3028 MPASS(IDXDIFF(next->pidx, pidx, eq->sidx) == ndesc); in commit_wrq_wr() 3029 next->pidx = pidx; in commit_wrq_wr() 3033 MPASS(IDXDIFF(pidx, prev->pidx, eq->sidx) == prev->ndesc); in commit_wrq_wr() 5065 uint16_t pidx = fl->pidx >> 3; in refill_fl() local 5069 pidx = 0; in refill_fl() [all …]
|
| /freebsd-14.2/sys/vm/ |
| H A D | phys_pager.c | 55 static int default_phys_pager_populate(vm_object_t object, vm_pindex_t pidx, 230 default_phys_pager_populate(vm_object_t object, vm_pindex_t pidx, in default_phys_pager_populate() argument 238 base = rounddown(pidx, phys_pager_cluster); in default_phys_pager_populate() 262 phys_pager_populate(vm_object_t object, vm_pindex_t pidx, int fault_type, in phys_pager_populate() argument 265 return (object->un_pager.phys.ops->phys_pg_populate(object, pidx, in phys_pager_populate()
|
| H A D | vm_pager.h | 180 vm_pager_populate(vm_object_t object, vm_pindex_t pidx, int fault_type, in vm_pager_populate() argument 185 MPASS(pidx < object->size); in vm_pager_populate() 187 return ((*pagertab[object->type]->pgo_populate)(object, pidx, in vm_pager_populate() 292 int (*cdev_pg_populate)(vm_object_t vm_obj, vm_pindex_t pidx, 309 int (*phys_pg_populate)(vm_object_t vm_obj, vm_pindex_t pidx,
|
| /freebsd-14.2/sys/dev/cxgbe/crypto/ |
| H A D | t6_kern_tls.c | 1196 txsd = &txq->sdesc[pidx]; in ktls_write_tcp_options() 1300 txsd = &txq->sdesc[pidx]; in ktls_write_tunnel_packet() 1365 tcp_seqno, pidx)); in ktls_write_tls_wr() 1594 txsd = &txq->sdesc[pidx]; in ktls_write_tls_wr() 1598 dst = &eq->desc[pidx]; in ktls_write_tls_wr() 1841 txsd = &txq->sdesc[pidx]; in ktls_write_tls_wr() 1938 txsd = &txq->sdesc[pidx]; in ktls_write_tcp_fin() 1969 pidx = eq->pidx; in t6_ktls_write_wr() 1980 dst = &eq->desc[pidx]; in t6_ktls_write_wr() 2014 dst = &eq->desc[pidx]; in t6_ktls_write_wr() [all …]
|
| /freebsd-14.2/sys/dev/enic/ |
| H A D | enic_txrx.c | 146 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()
|
| /freebsd-14.2/sys/amd64/sgx/ |
| H A D | sgx.c | 233 vm_pindex_t pidx; in sgx_va_slot_init() local 243 pidx = OFF_TO_IDX(addr); in sgx_va_slot_init() 245 va_page_idx = pidx / SGX_VA_PAGE_SLOTS; in sgx_va_slot_init() 605 vm_pindex_t pidx) in sgx_insert_epc_page_by_index() argument 611 vm_page_insert(page, object, pidx); in sgx_insert_epc_page_by_index() 618 vm_pindex_t pidx; in sgx_insert_epc_page() local 623 pidx = OFF_TO_IDX(addr); in sgx_insert_epc_page() 626 sgx_insert_epc_page_by_index(page, enclave->object, pidx); in sgx_insert_epc_page() 787 uint64_t pidx; in sgx_ioctl_add_page() local 845 pidx = OFF_TO_IDX(addr); in sgx_ioctl_add_page() [all …]
|
| /freebsd-14.2/sys/dev/e1000/ |
| H A D | igb_txrx.c | 301 igb_isc_txd_flush(void *arg, uint16_t txqid, qidx_t pidx) in igb_isc_txd_flush() argument 307 E1000_WRITE_REG(&sc->hw, E1000_TDT(txr->me), pidx); in igb_isc_txd_flush() 372 uint32_t next_pidx, pidx; in igb_isc_rxd_refill() local 377 pidx = iru->iru_pidx; in igb_isc_rxd_refill() 380 for (i = 0, next_pidx = pidx; i < count; i++) { in igb_isc_rxd_refill() 390 igb_isc_rxd_flush(void *arg, uint16_t rxqid, uint8_t flid __unused, qidx_t pidx) in igb_isc_rxd_flush() argument 396 E1000_WRITE_REG(&sc->hw, E1000_RDT(rxr->me), pidx); in igb_isc_rxd_flush()
|
| H A D | em_txrx.c | 463 em_isc_txd_flush(void *arg, uint16_t txqid, qidx_t pidx) in em_isc_txd_flush() argument 469 E1000_WRITE_REG(&sc->hw, E1000_TDT(txr->me), pidx); in em_isc_txd_flush() 538 uint32_t next_pidx, pidx; in lem_isc_rxd_refill() local 543 pidx = iru->iru_pidx; in lem_isc_rxd_refill() 546 for (i = 0, next_pidx = pidx; i < count; i++) { in lem_isc_rxd_refill() 567 uint32_t next_pidx, pidx; in em_isc_rxd_refill() local 572 pidx = iru->iru_pidx; in em_isc_rxd_refill() 575 for (i = 0, next_pidx = pidx; i < count; i++) { in em_isc_rxd_refill() 588 qidx_t pidx) in em_isc_rxd_flush() argument 594 E1000_WRITE_REG(&sc->hw, E1000_RDT(rxr->me), pidx); in em_isc_rxd_flush()
|