/freebsd-11-stable/sys/vm/ |
H A D | vm_fault.c | 363 vm_pindex_t pidx; local 367 for (pidx = first, m = vm_page_lookup(object, pidx); 368 pidx <= last; pidx++, m = vm_page_next(m)) { 382 vm_pindex_t map_first, map_last, pager_first, pager_last, pidx; local 455 for (pidx = pager_first, m = vm_page_lookup(fs->first_object, pidx); 456 pidx <= pager_last; pidx [all...] |
/freebsd-11-stable/sys/dev/oce/ |
H A D | oce_if.c | 1191 pd->wqe_idx = wq->ring->pidx; 1203 pd->wqe_idx = wq->ring->pidx; 1576 if (rq->ring->cidx == rq->ring->pidx) { 1822 if (rq->ring->cidx == rq->ring->pidx) { 1942 in = (rq->ring->pidx + 1) % OCE_RQ_PACKET_ARRAY_SIZE; 1944 pd = &rq->pckts[rq->ring->pidx];
|
H A D | oce_if.h | 301 ring->pidx = GET_Q_NEXT(ring->pidx, n, ring->num_items) 308 (void *)(((type *)DBUF_VA(&ring->dma)) + ring->pidx) 310 (uint64_t)(((type *)DBUF_PA(ring->dbuf)) + ring->pidx) 330 uint16_t pidx; /* Put Ptr */ member in struct:oce_ring_buffer_s
|
/freebsd-11-stable/sys/dev/netmap/ |
H A D | netmap_freebsd.c | 1026 vm_pindex_t pidx; local 1031 pidx = OFF_TO_IDX(offset); 1060 vm_page_insert(page, object, pidx);
|
/freebsd-11-stable/sys/kern/ |
H A D | vfs_bio.c | 4583 int pidx; local 4588 if ((pidx = vm_fault_quick_hold_pages(&curproc->p_vmspace->vm_map, 4593 bp->b_npages = pidx; 4596 pmap_qenter((vm_offset_t)bp->b_kvabase, bp->b_pages, pidx);
|
/freebsd-11-stable/sys/dev/cxgbe/ |
H A D | t4_main.c | 5589 while (spg->cidx != htobe16(eq->pidx)) 5593 while (eq->cidx != eq->pidx)
|
H A D | t4_sge.c | 2028 MPASS(eq->pidx == eq->dbidx); 2033 if (eq->pidx == eq->cidx) 2036 available = IDXDIFF(eq->cidx, eq->pidx, eq->sidx) - 1; 2043 dst = (void *)&eq->desc[eq->pidx]; 2044 if (__predict_true(eq->sidx - eq->pidx > n)) { 2047 eq->pidx += n; 2049 int first_portion = (eq->sidx - eq->pidx) * EQ_ESIZE; 2056 eq->pidx = n - (eq->sidx - eq->pidx); 2113 /* Doorbell must have caught up to the pidx 2454 int ndesc, pidx; local 2556 eth_tx(struct mp_ring *r, u_int cidx, u_int pidx) argument 4025 uint16_t pidx = fl->pidx / 8; local 4872 uint16_t hw_cidx, pidx; local [all...] |
H A D | t4_netmap.c | 272 nm_txq->pidx = nm_txq->cidx = 0; 361 j /= 8; /* driver pidx to hardware pidx */ 416 /* Wait for hw pidx to catch up ... */ 417 while (be16toh(nm_txq->pidx) != spg->pidx) 421 while (spg->pidx != spg->cidx) 487 #define NMIDXDIFF(q, idx) IDXDIFF((q)->pidx, (q)->idx, (q)->sidx) 495 MPASS(nm_txq->pidx != nm_txq->dbidx); 517 __func__, nm_txq->doorbells, n, nm_txq->pidx, nm_tx [all...] |
H A D | adapter.h | 450 uint16_t pidx; /* producer idx (desc idx) */ member in struct:sge_eq 451 uint16_t equeqidx; /* EQUEQ last requested at this pidx */ 452 uint16_t dbidx; /* pidx of the most recent doorbell */ 522 uint16_t dbidx; /* hw pidx after last doorbell */ 528 uint32_t pidx; /* producer index */ member in struct:sge_fl 635 int pidx; member in struct:wrq_cookie 711 uint16_t pidx; member in struct:sge_nm_txq 713 uint16_t equiqidx; /* EQUIQ last requested at this pidx */ 714 uint16_t equeqidx; /* EQUEQ last requested at this pidx */ 715 uint16_t dbidx; /* pidx o [all...] |
/freebsd-11-stable/sys/netpfil/pf/ |
H A D | pf_table.c | 2201 pfr_pool_get(struct pfr_ktable *kt, int *pidx, struct pf_addr *counter, argument 2226 if (pidx != NULL) 2227 idx = *pidx; 2260 *pidx = idx; 2280 *pidx = idx;
|
/freebsd-11-stable/sys/compat/linuxkpi/common/src/ |
H A D | linux_compat.c | 525 linux_cdev_pager_populate(vm_object_t vm_obj, vm_pindex_t pidx, int fault_type, argument 547 vmf.virtual_address = (void *)(uintptr_t)IDX_TO_OFF(pidx); 576 * busied all the pages itself. If pidx is already
|
/freebsd-11-stable/sys/net/ |
H A D | iflib.h | 120 qidx_t ipi_pidx; /* start pidx for encap */ 121 qidx_t ipi_new_pidx; /* next available pidx post-encap */ 184 void (*ift_txd_flush) (void *, uint16_t, qidx_t pidx); 187 int (*ift_rxd_available) (void *, uint16_t qsidx, qidx_t pidx, qidx_t budget); 190 void (*ift_rxd_flush) (void *, uint16_t qsidx, uint8_t flidx, qidx_t pidx);
|
H A D | iflib.c | 422 get_inuse(int size, qidx_t cidx, qidx_t pidx, uint8_t gen) argument 426 if (pidx > cidx) 427 used = pidx - cidx; 428 else if (pidx < cidx) 429 used = size - cidx + pidx; 430 else if (gen == 0 && pidx == cidx) 432 else if (gen == 1 && pidx == cidx) 447 * these are the cq cidx and pidx. Otherwise 1828 int pidx = fl->ifl_pidx; local 1843 idx = pidx; 3010 int ntxd, i, pidx; local 3042 int i, next, pidx, err, ntxd, count; local 3225 int err, nsegs, ndesc, max_segs, pidx, cidx, next, ntxd; local 3552 iflib_txq_drain(struct ifmp_ring *r, uint32_t cidx, uint32_t pidx) argument 3658 iflib_txq_drain_free(struct ifmp_ring *r, uint32_t cidx, uint32_t pidx) argument [all...] |
H A D | mp_ring.c | 107 uint16_t pidx = os.pidx_tail; local 110 MPASS(cidx != pidx); 117 while (cidx != pidx) { 119 /* Items from cidx to pidx are available for consumption. */ 120 n = r->drain(r, cidx, pidx); 139 * We update the cidx only if we've caught up with the pidx, the 143 if (cidx != pidx && pending < 64 && total < budget) 165 * associated with any pidx change that we notice here. 167 pidx = ns.pidx_tail; 182 uint16_t pidx local [all...] |
/freebsd-11-stable/contrib/ntp/ntpd/ |
H A D | ntp_control.c | 4500 u_int * pidx 4504 send_restrict_entry(pres, ipv6, *pidx); 4505 (*pidx)++;
|
/freebsd-11-stable/sys/dev/cxgbe/iw_cxgbe/ |
H A D | qp.c | 811 swsqe = &qhp->wq.sq.sw_sq[qhp->wq.sq.pidx]; 884 swsqe->idx = qhp->wq.sq.pidx; 891 init_wr_hdr(wqe, qhp->wq.sq.pidx, fw_opcode, fw_flags, len16); 894 "%s cookie 0x%llx pidx 0x%x opcode 0x%x read_len %u", 895 __func__, (unsigned long long)wr->wr_id, qhp->wq.sq.pidx, 950 qhp->wq.rq.sw_rq[qhp->wq.rq.pidx].wr_id = wr->wr_id; 954 wqe->recv.wrid = qhp->wq.rq.pidx; 959 CTR3(KTR_IW_CXGBE, "%s cookie 0x%llx pidx %u", __func__, 960 (unsigned long long) wr->wr_id, qhp->wq.rq.pidx);
|
H A D | t4.h | 76 __be16 pidx; member in struct:t4_status_page 330 u16 pidx; member in struct:t4_sq 358 u16 pidx; member in struct:t4_rq 393 if (++wq->rq.pidx == wq->rq.size) 394 wq->rq.pidx = 0; 441 if (++wq->sq.pidx == wq->sq.size) 442 wq->sq.pidx = 0; 491 CTR2(KTR_IW_CXGBE, "%s: WC wq->sq.pidx = %d", 492 __func__, wq->sq.pidx); 497 CTR2(KTR_IW_CXGBE, "%s: DB wq->sq.pidx [all...] |
H A D | cq.c | 268 while (idx != wq->sq.pidx) { 297 while (cidx != wq->sq.pidx) { 343 while (rptr != wq->sq.pidx) {
|
/freebsd-11-stable/sys/dev/cxgbe/cxgbei/ |
H A D | cxgbei.c | 122 unsigned int pidx) 128 for (i = 0; i < (PPOD_PAGES + 1); i++, pidx++) { 129 ppod->addr[i] = pidx < gl->nelem ? 130 cpu_to_be64(gl->dma_sg[pidx].phys_addr) : 0ULL; 212 unsigned int pidx = 0, w_npods = 0, cnt; local 224 pidx += PPOD_PAGES) { 228 err = ppod_write_idata(ci, hdr, idx, cnt, gl, pidx, toep); 243 u_int pidx = 0; local 248 pidx += PPOD_PAGES) { 119 ppod_set(struct pagepod *ppod, struct cxgbei_ulp2_pagepod_hdr *hdr, struct cxgbei_ulp2_gather_list *gl, unsigned int pidx) argument
|
/freebsd-11-stable/sys/dev/cxgbe/common/ |
H A D | t4_msg.h | 2669 __be16 pidx; member in struct:cpl_sge_egr_update
|
/freebsd-11-stable/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_cmd.c | 911 int vidx, pidx; local 946 pidx = priv->virt2phys_pkey[slave][port - 1][vidx]; 947 outtab[vidx % 32] = cpu_to_be16(table[pidx]);
|
/freebsd-11-stable/sys/netpfil/ipfw/ |
H A D | ip_fw_sockopt.c | 165 struct tid_info *ti, struct obj_idx *pidx, int *unresolved); 2550 struct obj_idx *oib, struct obj_idx *pidx, struct tid_info *ti) 2561 for (p = oib; p < pidx; p++) { 2587 unref_oib_objects(ch, cmd, oib, pidx); 2731 * Saves object info in @pidx, sets 2738 struct obj_idx *pidx, int *unresolved) 2750 pidx->uidx = ti->uidx; 2751 pidx->type = ti->type; 2790 struct obj_idx *pidx; local 2794 pidx 2549 create_objects_compat(struct ip_fw_chain *ch, ipfw_insn *cmd, struct obj_idx *oib, struct obj_idx *pidx, struct tid_info *ti) argument 2737 ref_opcode_object(struct ip_fw_chain *ch, ipfw_insn *cmd, struct tid_info *ti, struct obj_idx *pidx, int *unresolved) argument 4685 ipfw_objhash_alloc_idx(void *n, uint16_t *pidx) argument [all...] |
H A D | ip_fw_private.h | 742 int ipfw_objhash_alloc_idx(void *n, uint16_t *pidx); 756 struct obj_idx *oib, struct obj_idx *pidx, struct tid_info *ti);
|
/freebsd-11-stable/usr.sbin/bhyve/ |
H A D | virtio.h | 479 int vq_getchain(struct vqueue_info *vq, uint16_t *pidx,
|
H A D | virtio.c | 262 vq_getchain(struct vqueue_info *vq, uint16_t *pidx, argument 310 *pidx = next = vq->vq_avail->va_ring[idx & (vq->vq_qsize - 1)];
|