Home
last modified time | relevance | path

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

1234

/freebsd/sys/dev/ntb/test/
H A Dntb_tool.c213 int pidx; member
243 int pidx; member
248 int pidx; member
643 int rc, pidx = arg2, peer_port; in sysctl_peer_port_number() local
645 peer_port = ntb_peer_port_number(tc->dev, pidx); in sysctl_peer_port_number()
651 tc->peers[pidx].port_no = peer_port; in sysctl_peer_port_number()
676 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()
683 tc->peers[pidx].tc = tc; in tool_init_peers()
[all …]
/freebsd/sys/dev/ice/
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);
93 * @pidx: descriptor index to advance tail to
100 qidx_t __unused pidx) in ice_recovery_txd_flush() argument
127 * @pidx: descriptor start point
137 qidx_t __unused pidx, qidx_t __unused budget) in ice_recovery_rxd_available() argument
177 * @pidx: descriptor index to advance tail to
184 uint8_t flidx __unused, qidx_t __unused pidx) in ice_recovery_rxd_flush() argument
H A Dice_iflib_txrx.c52 static int _ice_ift_rxd_available(struct ice_rx_queue *rxq, qidx_t pidx, qidx_t budget);
54 static void _ice_ift_rxd_refill(struct ice_rx_queue *rxq, uint32_t pidx,
57 uint32_t pidx);
64 static void ice_ift_txd_flush(void *arg, uint16_t txqid, qidx_t pidx);
66 static int ice_ift_rxd_available(void *arg, uint16_t rxqid, qidx_t pidx, qidx_t budget);
67 static void ice_ift_rxd_flush(void *arg, uint16_t rxqid, uint8_t flidx, qidx_t pidx);
72 static void ice_ift_txd_flush_subif(void *arg, uint16_t txqid, qidx_t pidx);
73 static int ice_ift_rxd_available_subif(void *arg, uint16_t rxqid, qidx_t pidx, qidx_t budget);
76 static void ice_ift_rxd_flush_subif(void *arg, uint16_t rxqid, uint8_t flidx, qidx_t pidx);
220 * @pidx in ice_ift_txd_credits_update()
169 ice_ift_txd_flush(void * arg,uint16_t txqid,qidx_t pidx) ice_ift_txd_flush() argument
248 ice_ift_rxd_available(void * arg,uint16_t rxqid,qidx_t pidx,qidx_t budget) ice_ift_rxd_available() argument
371 uint32_t pidx; ice_ift_rxd_refill() local
400 ice_ift_rxd_flush(void * arg,uint16_t rxqid,uint8_t flidx __unused,qidx_t pidx) ice_ift_rxd_flush() argument
[all...]
/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.c653 desc = &queue->ring[queue->pidx]; in enetc_ctrl_send()
655 if (++queue->pidx == ENETC_MIN_DESC) in enetc_ctrl_send()
656 queue->pidx = 0; in enetc_ctrl_send()
670 ENETC_WR4(sc, ENETC_SICBDRPIR, queue->pidx); in enetc_ctrl_send()
674 if (ENETC_RD4(sc, ENETC_SICBDRCIR) == queue->pidx) in enetc_ctrl_send()
732 queue->pidx = 0; in enetc_init_ctrl()
733 ENETC_WR4(sc, ENETC_SICBDRPIR, queue->pidx); in enetc_init_ctrl()
734 ENETC_WR4(sc, ENETC_SICBDRCIR, queue->pidx); in enetc_init_ctrl()
959 qidx_t cidx, pidx; in enetc_disable_txq() local
963 pidx = ENETC_TXQ_RD4(sc, qid, ENETC_TBPIR); in enetc_disable_txq()
[all …]
/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/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/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()
392 wq->rq.queue[wq->rq.size].status.host_pidx = wq->rq.pidx; in t4_rq_produce()
401 assert((wq->rq.cidx != wq->rq.pidx) || wq->rq.in_use == 0); in t4_rq_consume()
429 if (++wq->sq.pidx == wq->sq.size) in t4_sq_produce()
430 wq->sq.pidx = 0; in t4_sq_produce()
437 wq->sq.queue[wq->sq.size].status.host_pidx = (wq->sq.pidx); in t4_sq_produce()
[all …]
/freebsd/sys/dev/bnxt/bnxt_en/
H A Dbnxt_txrx.c48 static void bnxt_isc_txd_flush(void *sc, uint16_t txqid, qidx_t pidx);
58 qidx_t pidx);
174 bnxt_isc_txd_flush(void *sc, uint16_t txqid, qidx_t pidx) in bnxt_isc_txd_flush() argument
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()
284 rxbd[pidx].opaque = (((rxqid & 0xff) << 24) | (flid << 16) in bnxt_isc_rxd_refill()
286 rxbd[pidx].addr = htole64(paddrs[i]); in bnxt_isc_rxd_refill()
[all …]
/freebsd/sys/dev/ixgbe/
H A Dix_txrx.c254 ixgbe_isc_txd_flush(void *arg, uint16_t txqid, qidx_t pidx) in ixgbe_isc_txd_flush() argument
260 IXGBE_WRITE_REG(&sc->hw, txr->tail, pidx); in ixgbe_isc_txd_flush()
331 uint32_t next_pidx, pidx; in ixgbe_isc_rxd_refill() local
335 pidx = iru->iru_pidx; in ixgbe_isc_rxd_refill()
338 for (i = 0, next_pidx = pidx; i < count; i++) { in ixgbe_isc_rxd_refill()
350 qidx_t pidx) in ixgbe_isc_rxd_flush() argument
356 IXGBE_WRITE_REG(&sc->hw, rxr->tail, pidx); in ixgbe_isc_rxd_flush()
363 ixgbe_isc_rxd_available(void *arg, uint16_t qsidx, qidx_t pidx, qidx_t budget) in ixgbe_isc_rxd_available() argument
373 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/cxgb/
H A Dcxgb_sge.c193 unsigned int pidx; member
705 struct rx_sw_desc *sd = &q->sdesc[q->pidx]; in refill_fl()
706 struct rx_desc *d = &q->desc[q->pidx]; in refill_fl()
762 if (++q->pidx == q->size) { in refill_fl()
763 q->pidx = 0; in refill_fl()
844 struct rx_desc *to = &q->desc[q->pidx]; in recycle_rx_buf()
846 q->sdesc[q->pidx] = q->sdesc[idx]; in recycle_rx_buf()
854 if (++q->pidx == q->size) { in recycle_rx_buf()
855 q->pidx = 0; in recycle_rx_buf()
1139 txqs->pidx = txq->pidx; in txq_prod()
[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/cxgbe/
H A Dt4_netmap.c230 nm_txq->pidx = nm_txq->cidx = 0; in alloc_nm_txq()
253 &nm_txq->pidx, 0, "producer index"); in alloc_nm_txq()
455 nm_txq->pidx = nm_txq->cidx = 0; in alloc_nm_txq_hwq()
907 #define NMIDXDIFF(q, idx) IDXDIFF((q)->pidx, (q)->idx, (q)->sidx)
915 MPASS(nm_txq->pidx != nm_txq->dbidx); in ring_nm_txq_db()
937 __func__, nm_txq->doorbells, n, nm_txq->pidx, nm_txq)); in ring_nm_txq_db()
958 nm_txq->dbidx = nm_txq->pidx; in ring_nm_txq_db()
972 struct fw_eth_tx_pkts_wr *wr = (void *)&nm_txq->desc[nm_txq->pidx]; in cxgbe_nm_tx()
983 wr = (void *)&nm_txq->desc[nm_txq->pidx]; in cxgbe_nm_tx()
1017 nm_txq->pidx += npkt_to_ndesc(n); 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.c2161 MPASS(eq->pidx == eq->dbidx); in drain_wrq_wr_list()
2166 if (eq->pidx == eq->cidx) in drain_wrq_wr_list()
2169 available = IDXDIFF(eq->cidx, eq->pidx, eq->sidx) - 1; in drain_wrq_wr_list()
2176 dst = (void *)&eq->desc[eq->pidx]; in drain_wrq_wr_list()
2177 if (__predict_true(eq->sidx - eq->pidx > n)) { in drain_wrq_wr_list()
2180 eq->pidx += n; in drain_wrq_wr_list()
2182 int first_portion = (eq->sidx - eq->pidx) * EQ_ESIZE; in drain_wrq_wr_list()
2189 eq->pidx = n - (eq->sidx - eq->pidx); in drain_wrq_wr_list()
2247 MPASS(eq->pidx == eq->dbidx); in t4_wrq_tx_locked()
2938 cookie->pidx = -1; in start_wrq_wr()
[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,
309 int (*phys_pg_populate)(vm_object_t vm_obj, vm_pindex_t pidx,
/freebsd/sys/dev/cxgbe/crypto/
H A Dt6_kern_tls.c1110 u_int available, u_int pidx) in ktls_write_tcp_options() argument
1195 txsd = &txq->sdesc[pidx]; in ktls_write_tcp_options()
1204 struct mbuf *m_tls, u_int available, tcp_seq tcp_seqno, u_int pidx) in ktls_write_tunnel_packet() argument
1299 txsd = &txq->sdesc[pidx]; in ktls_write_tunnel_packet()
1314 tcp_seq tcp_seqno, uint32_t *tsopt, u_int pidx, bool set_l2t_idx) in ktls_write_tls_wr() argument
1345 using_scratch = (eq->sidx - pidx < SGE_MAX_WR_LEN / EQ_ESIZE); in ktls_write_tls_wr()
1364 tcp_seqno, pidx)); in ktls_write_tls_wr()
1593 txsd = &txq->sdesc[pidx]; in ktls_write_tls_wr()
1596 IDXINCR(pidx, ndesc, eq->sidx); in ktls_write_tls_wr()
1597 dst = &eq->desc[pidx]; in ktls_write_tls_wr()
[all …]
/freebsd/sys/amd64/sgx/
H A Dsgx.c232 vm_pindex_t pidx; in sgx_va_slot_init() local
242 pidx = OFF_TO_IDX(addr); in sgx_va_slot_init()
244 va_page_idx = pidx / SGX_VA_PAGE_SLOTS; in sgx_va_slot_init()
604 vm_pindex_t pidx) in sgx_insert_epc_page_by_index() argument
610 vm_page_insert(page, object, pidx); in sgx_insert_epc_page_by_index()
617 vm_pindex_t pidx; in sgx_insert_epc_page() local
622 pidx = OFF_TO_IDX(addr); in sgx_insert_epc_page()
625 sgx_insert_epc_page_by_index(page, enclave->object, pidx); in sgx_insert_epc_page()
786 uint64_t pidx; in sgx_ioctl_add_page() local
844 pidx = OFF_TO_IDX(addr); in sgx_ioctl_add_page()
[all …]
/freebsd/sys/dev/e1000/
H A Digb_txrx.c302 igb_isc_txd_flush(void *arg, uint16_t txqid, qidx_t pidx) in igb_isc_txd_flush() argument
308 E1000_WRITE_REG(&sc->hw, E1000_TDT(txr->me), pidx); in igb_isc_txd_flush()
374 uint32_t next_pidx, pidx; in igb_isc_rxd_refill() local
379 pidx = iru->iru_pidx; in igb_isc_rxd_refill()
382 for (i = 0, next_pidx = pidx; i < count; i++) { in igb_isc_rxd_refill()
393 qidx_t pidx) in igb_isc_rxd_flush() argument
399 E1000_WRITE_REG(&sc->hw, E1000_RDT(rxr->me), pidx); in igb_isc_rxd_flush()
H A Dem_txrx.c474 em_isc_txd_flush(void *arg, uint16_t txqid, qidx_t pidx) in em_isc_txd_flush() argument
480 E1000_WRITE_REG(&sc->hw, E1000_TDT(txr->me), pidx); in em_isc_txd_flush()
549 uint32_t next_pidx, pidx; in lem_isc_rxd_refill() local
554 pidx = iru->iru_pidx; in lem_isc_rxd_refill()
557 for (i = 0, next_pidx = pidx; i < count; i++) { in lem_isc_rxd_refill()
578 uint32_t next_pidx, pidx; in em_isc_rxd_refill() local
583 pidx = iru->iru_pidx; in em_isc_rxd_refill()
586 for (i = 0, next_pidx = pidx; i < count; i++) { in em_isc_rxd_refill()
599 qidx_t pidx) in em_isc_rxd_flush() argument
605 E1000_WRITE_REG(&sc->hw, E1000_RDT(rxr->me), pidx); in em_isc_rxd_flush()
/freebsd/sys/dev/ixl/
H A Dixl_txrx.c56 static void ixl_isc_txd_flush(void *arg, uint16_t txqid, qidx_t pidx);
62 qidx_t pidx);
414 ixl_isc_txd_flush(void *arg, uint16_t txqid, qidx_t pidx) in ixl_isc_txd_flush() argument
424 MPASS(pidx < vsi->shared->isc_ntxd[0]); in ixl_isc_txd_flush()
425 wr32(vsi->hw, txr->tail, pidx); in ixl_isc_txd_flush()
553 uint32_t next_pidx, pidx; in ixl_isc_rxd_refill() local
558 pidx = iru->iru_pidx; in ixl_isc_rxd_refill()
561 for (i = 0, next_pidx = pidx; i < count; i++) { in ixl_isc_rxd_refill()
569 ixl_isc_rxd_flush(void * arg, uint16_t rxqid, uint8_t flid __unused, qidx_t pidx) in ixl_isc_rxd_flush() argument
574 wr32(vsi->hw, rxr->tail, pidx); in ixl_isc_rxd_flush()

1234