Searched refs:pidx (Results 1 - 25 of 26) sorted by relevance

12

/freebsd-10.3-release/sys/dev/cxgbe/
H A Dt4_mp_ring.c109 uint16_t pidx = os.pidx_tail; local
112 MPASS(cidx != pidx);
119 while (cidx != pidx) {
121 /* Items from cidx to pidx are available for consumption. */
122 n = r->drain(r, cidx, pidx);
145 * We update the cidx only if we've caught up with the pidx, the
149 if (cidx != pidx && pending < 64 && total < budget)
173 * associated with any pidx change that we notice here.
175 pidx = ns.pidx_tail;
302 * that the items are visible to any thread that sees the updated pidx
[all...]
H A Dt4_netmap.c442 nm_txq->pidx = nm_txq->cidx = 0;
532 j /= 8; /* driver pidx to hardware pidx */
584 /* Wait for hw pidx to catch up ... */
585 while (be16toh(nm_txq->pidx) != spg->pidx)
589 while (spg->pidx != spg->cidx)
652 #define NMIDXDIFF(q, idx) IDXDIFF((q)->pidx, (q)->idx, (q)->sidx)
660 MPASS(nm_txq->pidx != nm_txq->dbidx);
682 __func__, nm_txq->doorbells, n, nm_txq->pidx, nm_tx
[all...]
H A Dt4_sge.c1801 dbdiff = IDXDIFF(eq->pidx, eq->dbidx, eq->sidx);
1805 if (eq->pidx == eq->cidx)
1808 available = IDXDIFF(eq->cidx, eq->pidx, eq->sidx) - 1;
1815 dst = (void *)&eq->desc[eq->pidx];
1816 if (__predict_true(eq->sidx - eq->pidx > n)) {
1819 eq->pidx += n;
1821 int first_portion = (eq->sidx - eq->pidx) * EQ_ESIZE;
1828 eq->pidx = n - (eq->sidx - eq->pidx);
1835 eq->equeqidx = eq->pidx;
2252 int ndesc, pidx; local
2326 eth_tx(struct mp_ring *r, u_int cidx, u_int pidx) argument
3722 uint16_t pidx = fl->pidx / 8; local
4366 uint16_t hw_cidx, pidx; local
[all...]
H A Dadapter.h394 uint16_t pidx; /* producer idx (desc idx) */ member in struct:sge_eq
395 uint16_t equeqidx; /* EQUEQ last requested at this pidx */
396 uint16_t dbidx; /* pidx of the most recent doorbell */
443 uint16_t dbidx; /* hw pidx after last doorbell */
449 uint32_t pidx; /* producer index */ member in struct:sge_fl
557 int pidx; member in struct:wrq_cookie
633 uint16_t pidx; member in struct:sge_nm_txq
635 uint16_t equiqidx; /* EQUIQ last requested at this pidx */
636 uint16_t equeqidx; /* EQUEQ last requested at this pidx */
637 uint16_t dbidx; /* pidx o
[all...]
/freebsd-10.3-release/sys/dev/cxgb/
H A Dcxgb_sge.c200 unsigned int pidx; member in struct:txq_state
708 struct rx_sw_desc *sd = &q->sdesc[q->pidx];
709 struct rx_desc *d = &q->desc[q->pidx];
765 if (++q->pidx == q->size) {
766 q->pidx = 0;
849 struct rx_desc *to = &q->desc[q->pidx];
851 q->sdesc[q->pidx] = q->sdesc[idx];
859 if (++q->pidx == q->size) {
860 q->pidx = 0;
1143 txqs->pidx
2204 write_ofld_wr(adapter_t *adap, struct mbuf *m, struct sge_txq *q, unsigned int pidx, unsigned int gen, unsigned int ndesc) argument
2276 unsigned int pidx, gen; local
2328 unsigned int gen, pidx; local
[all...]
H A Dcxgb_adapter.h207 uint32_t pidx; member in struct:sge_fl
235 uint32_t pidx; member in struct:sge_txq
/freebsd-10.3-release/sys/dev/cxgbe/iw_cxgbe/
H A Dt4.h85 __be16 pidx; member in struct:t4_status_page
310 u16 pidx; member in struct:t4_sq
333 u16 pidx; member in struct:t4_rq
368 if (++wq->rq.pidx == wq->rq.size)
369 wq->rq.pidx = 0;
411 if (++wq->sq.pidx == wq->sq.size)
412 wq->sq.pidx = 0;
H A Dqp.c618 swsqe = &qhp->wq.sq.sw_sq[qhp->wq.sq.pidx];
672 swsqe->idx = qhp->wq.sq.pidx;
677 init_wr_hdr(wqe, qhp->wq.sq.pidx, fw_opcode, fw_flags, len16);
680 "%s cookie 0x%llx pidx 0x%x opcode 0x%x read_len %u",
681 __func__, (unsigned long long)wr->wr_id, qhp->wq.sq.pidx,
734 qhp->wq.rq.sw_rq[qhp->wq.rq.pidx].wr_id = wr->wr_id;
738 wqe->recv.wrid = qhp->wq.rq.pidx;
743 CTR3(KTR_IW_CXGBE, "%s cookie 0x%llx pidx %u", __func__,
744 (unsigned long long) wr->wr_id, qhp->wq.rq.pidx);
H A Dcq.c277 CTR3(KTR_IW_CXGBE, "%s flushing hwcq cidx 0x%x swcq pidx 0x%x",
396 while (rptr != wq->sq.pidx) {
/freebsd-10.3-release/sys/dev/cxgbe/common/
H A Dt4_hw.h96 volatile __be16 pidx; member in struct:sge_qstat
H A Dt4_msg.h2272 __be16 pidx; member in struct:cpl_sge_egr_update
/freebsd-10.3-release/usr.sbin/bhyve/
H A Dvirtio.h454 int vq_getchain(struct vqueue_info *vq, uint16_t *pidx,
H A Dvirtio.c257 vq_getchain(struct vqueue_info *vq, uint16_t *pidx, argument
305 *pidx = next = vq->vq_avail->va_ring[idx & (vq->vq_qsize - 1)];
/freebsd-10.3-release/sys/dev/netmap/
H A Dnetmap_freebsd.c500 vm_pindex_t pidx; local
505 pidx = OFF_TO_IDX(offset);
534 vm_page_insert(page, object, pidx);
/freebsd-10.3-release/sys/vm/
H A Ddevice_pager.c295 vm_pindex_t pidx; local
305 pidx = OFF_TO_IDX(offset);
/freebsd-10.3-release/sys/x86/iommu/
H A Dintel_idpgtbl.c337 vm_pindex_t idx, pidx; local
342 for (pidx = idx = 0, i = 0; i < lvl; i++, pidx = idx)
343 idx = ctx_pgtbl_pte_off(ctx, base, i) + pidx * DMAR_NPTEPG + 1;
/freebsd-10.3-release/sys/dev/oce/
H A Doce_if.h293 ring->pidx = GET_Q_NEXT(ring->pidx, n, ring->num_items)
300 (void *)(((type *)DBUF_VA(&ring->dma)) + ring->pidx)
302 (uint64_t)(((type *)DBUF_PA(ring->dbuf)) + ring->pidx)
322 uint16_t pidx; /* Put Ptr */ member in struct:oce_ring_buffer_s
H A Doce_queue.c342 wq->ring->pidx = 0;
528 rq->ring->pidx = 0;
1217 rq->ring->pidx = 0;
H A Doce_if.c974 pd->wqe_idx = wq->ring->pidx;
986 pd->wqe_idx = wq->ring->pidx;
/freebsd-10.3-release/contrib/libgnuregex/
H A Dregexec.c1272 int *pidx, int node, re_node_set *eps_via_nodes,
1279 re_node_set *cur_nodes = &mctx->state_log[*pidx]->nodes;
1303 && push_fail_stack (fs, *pidx, candidate, nregs, regs,
1320 naccepted = check_node_accept_bytes (dfa, node, &mctx->input, *pidx);
1334 if (memcmp (buf + regs[subexp_idx].rm_so, buf + *pidx,
1347 if (re_node_set_contains (&mctx->state_log[*pidx]->nodes,
1354 || check_node_accept (mctx, dfa->nodes + node, *pidx))
1357 *pidx = (naccepted == 0) ? *pidx + 1 : *pidx
1268 proceed_next_node(const re_match_context_t *mctx, int nregs, regmatch_t *regs, int *pidx, int node, re_node_set *eps_via_nodes, struct re_fail_stack_t *fs) argument
1395 pop_fail_stack(struct re_fail_stack_t *fs, int *pidx, int nregs, regmatch_t *regs, re_node_set *eps_via_nodes) argument
[all...]
/freebsd-10.3-release/sys/netpfil/pf/
H A Dpf_table.c2058 pfr_pool_get(struct pfr_ktable *kt, int *pidx, struct pf_addr *counter, argument
2083 if (pidx != NULL)
2084 idx = *pidx;
2117 *pidx = idx;
2137 *pidx = idx;
/freebsd-10.3-release/sys/ofed/drivers/net/mlx4/
H A Dcmd.c909 int vidx, pidx; local
934 pidx = priv->virt2phys_pkey[slave][port - 1][vidx];
935 outtab[vidx % 32] = cpu_to_be16(table[pidx]);
/freebsd-10.3-release/sys/powerpc/booke/
H A Dpmap.c566 unsigned int pidx; local
588 pidx = (PTBL_PAGES * pdir_idx) + i;
589 while ((m = vm_page_alloc(NULL, pidx,
/freebsd-10.3-release/sys/kern/
H A Dvfs_bio.c4365 int pidx; local
4372 if ((pidx = vm_fault_quick_hold_pages(&curproc->p_vmspace->vm_map,
4376 bp->b_npages = pidx;
4378 pmap_qenter((vm_offset_t)bp->b_saveaddr, bp->b_pages, pidx);
/freebsd-10.3-release/contrib/ntp/ntpd/
H A Dntp_control.c4477 u_int * pidx
4481 send_restrict_entry(pres, ipv6, *pidx);
4482 (*pidx)++;

Completed in 386 milliseconds

12