/freebsd/sys/vm/ |
H A D | device_pager.c | 65 static int dev_pager_populate(vm_object_t object, vm_pindex_t pidx, 352 dev_pager_populate(vm_object_t object, vm_pindex_t pidx, int fault_type, in dev_pager_populate() argument 359 return (object->un_pager.devp.ops->cdev_pg_populate(object, pidx, in dev_pager_populate()
|
/freebsd/sys/sys/ |
H A D | mbuf.h | 414 m_epg_pagelen(const struct mbuf *m, int pidx, int pgoff) in m_epg_pagelen() argument 417 KASSERT(pgoff == 0 || pidx == 0, in m_epg_pagelen() 418 ("page %d with non-zero offset %d in %p", pidx, pgoff, m)); in m_epg_pagelen() 420 if (pidx == m->m_epg_npgs - 1) { in m_epg_pagelen()
|
/freebsd/sys/dev/cxgbe/ |
H A D | t4_main.c | 6974 while (spg->cidx != htobe16(eq->pidx)) in quiesce_txq() 6976 while (eq->cidx != eq->pidx) in quiesce_txq() 6984 while (eq->cidx != eq->pidx) { in quiesce_txq() 6996 spg->pidx = spg->cidx = htobe16(eq->cidx); in quiesce_txq()
|
H A D | t4_sge.c | 2172 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() 5044 uint16_t pidx = fl->pidx >> 3; in refill_fl() local 5048 pidx = 0; in refill_fl() [all …]
|
H A D | adapter.h | 483 uint16_t pidx; /* producer idx (desc idx) */ member 559 uint32_t pidx; /* producer index */ member 717 int pidx; member 813 uint16_t pidx; member
|
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() 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 …]
|
/freebsd/sys/dev/cxgbe/crypto/ |
H A D | t6_kern_tls.c | 1195 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/axgbe/ |
H A D | xgbe-txrx.c | 369 axgbe_isc_txd_flush(void *arg, uint16_t txqid, qidx_t pidx) in axgbe_isc_txd_flush() argument 375 struct xgbe_ring_data *rdata = XGBE_GET_DESC_DATA(ring, pidx); in axgbe_isc_txd_flush() 378 __func__, txqid, pidx, ring->cur, ring->dirty); in axgbe_isc_txd_flush() 534 axgbe_isc_rxd_flush(void *arg, uint16_t qsidx, uint8_t flidx, qidx_t pidx) in axgbe_isc_rxd_flush() argument 543 __func__, qsidx, flidx, pidx, ring->cur, ring->dirty); in axgbe_isc_rxd_flush() 545 rdata = XGBE_GET_DESC_DATA(ring, pidx); in axgbe_isc_rxd_flush()
|
/freebsd/sys/kern/ |
H A D | uipc_shm.c | 278 shm_largepage_phys_populate(vm_object_t object, vm_pindex_t pidx, in shm_largepage_phys_populate() argument 285 if (psind == 0 || pidx >= object->size) in shm_largepage_phys_populate() 287 *first = rounddown2(pidx, pagesizes[psind] / PAGE_SIZE); in shm_largepage_phys_populate()
|
H A D | vfs_bio.c | 5071 int pidx; in vmapbuf() local 5077 pidx = vm_fault_quick_hold_pages(&curproc->p_vmspace->vm_map, in vmapbuf() 5079 if (pidx < 0) in vmapbuf() 5082 bp->b_npages = pidx; in vmapbuf() 5085 pmap_qenter((vm_offset_t)bp->b_kvabase, bp->b_pages, pidx); in vmapbuf()
|
/freebsd/sys/net/ |
H A D | iflib.c | 424 if (pidx > cidx) in get_inuse() 425 used = pidx - cidx; in get_inuse() 426 else if (pidx < cidx) in get_inuse() 2091 pidx = fl->ifl_pidx; in iflib_fl_refill() 2092 idx = pidx; in iflib_fl_refill() 2180 pidx = idx; in iflib_fl_refill() 3512 int ntxd, pidx; in iflib_remove_mbuf() local 3519 m = ifsd_m[pidx]; in iflib_remove_mbuf() 3520 ifsd_m[pidx] = NULL; in iflib_remove_mbuf() 3660 pi.ipi_pidx = pidx; in iflib_encap() [all …]
|
H A D | iflib.h | 178 void (*ift_txd_flush) (void *, uint16_t, qidx_t pidx); 181 int (*ift_rxd_available) (void *, uint16_t qsidx, qidx_t pidx, qidx_t budget); 184 void (*ift_rxd_flush) (void *, uint16_t qsidx, uint8_t flidx, qidx_t pidx);
|
/freebsd/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/sys/compat/linuxkpi/common/src/ |
H A D | linux_compat.c | 484 linux_cdev_pager_populate(vm_object_t vm_obj, vm_pindex_t pidx, int fault_type, in linux_cdev_pager_populate() argument 506 vmf.virtual_address = (void *)(uintptr_t)IDX_TO_OFF(pidx); in linux_cdev_pager_populate() 535 * busied all the pages itself. If pidx is already in linux_cdev_pager_populate()
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | dmu_traverse.c | 300 int32_t i, ptidx, pidx; in traverse_visitbp() local 332 pidx = 1; in traverse_visitbp() 336 ASSERT3S(ptidx, <=, pidx); in traverse_visitbp() 337 for (uint32_t prefetched = 0; pidx < epb && in traverse_visitbp() 338 prefetched < prefetchlimit; pidx++) { in traverse_visitbp() 341 zb->zb_blkid * epb + pidx); in traverse_visitbp() 343 &((blkptr_t *)buf->b_data)[pidx], in traverse_visitbp() 348 ptidx = pidx; in traverse_visitbp()
|
/freebsd/sys/dev/ntb/ntb_hw/ |
H A D | ntb_hw_intel.c | 2577 intel_ntb_peer_port_number(device_t dev, int pidx) in intel_ntb_peer_port_number() argument 2581 if (pidx != 0) in intel_ntb_peer_port_number()
|
H A D | ntb_hw_plx.c | 517 ntb_plx_peer_port_number(device_t dev, int pidx) in ntb_plx_peer_port_number() argument 521 if (pidx != 0) in ntb_plx_peer_port_number()
|
/freebsd/sys/powerpc/booke/ |
H A D | pmap_32.c | 243 unsigned int pidx; in ptbl_alloc() local 264 pidx = (PTBL_PAGES * pdir_idx) + i; in ptbl_alloc() 279 m->pindex = pidx; in ptbl_alloc()
|
/freebsd/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/sys/dev/ntb/ |
H A D | ntb.h | 94 int ntb_peer_port_number(device_t ntb, int pidx);
|
/freebsd/sys/netipsec/ |
H A D | ipsec_output.c | 113 ipsec4_allocsa(struct mbuf *m, struct secpolicy *sp, u_int *pidx, int *error) in ipsec4_allocsa() argument 125 isr = sp->req[*pidx]; in ipsec4_allocsa() 159 saidx = &sp->req[*pidx]->saidx; in ipsec4_allocsa() 168 if (ipsec_get_reqlevel(sp, *pidx) != IPSEC_LEVEL_REQUIRE) { in ipsec4_allocsa() 175 if (sp->tcount > ++(*pidx)) in ipsec4_allocsa() 494 ipsec6_allocsa(struct mbuf *m, struct secpolicy *sp, u_int *pidx, int *error) in ipsec6_allocsa() argument 506 isr = sp->req[*pidx]; in ipsec6_allocsa() 552 saidx = &sp->req[*pidx]->saidx; in ipsec6_allocsa() 561 if (ipsec_get_reqlevel(sp, *pidx) != IPSEC_LEVEL_REQUIRE) { in ipsec6_allocsa() 568 if (sp->tcount > ++(*pidx)) in ipsec6_allocsa()
|
/freebsd/sys/dev/xen/gntdev/ |
H A D | gntdev.c | 800 vm_pindex_t pidx, ridx; in gntdev_gmap_pg_fault() local 809 pidx = OFF_TO_IDX(offset); in gntdev_gmap_pg_fault() 827 vm_page_replace(page, object, pidx, *mres); in gntdev_gmap_pg_fault() 829 vm_page_insert(page, object, pidx); in gntdev_gmap_pg_fault()
|
/freebsd/sys/dev/cxgbe/common/ |
H A D | t4_hw.h | 104 volatile __be16 pidx; member
|
/freebsd/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 …]
|