Home
last modified time | relevance | path

Searched refs:cpr (Results 1 – 15 of 15) sorted by relevance

/freebsd-12.1/sys/dev/bnxt/
H A Dbnxt_txrx.c247 BNXT_CP_IDX_DISABLE_DB(&cpr->ring, cpr->cons); in bnxt_isc_txd_credits_update()
483 NEXT_CP_CONS_V(&cpr->ring, cpr->cons, cpr->v_bit); in bnxt_pkt_get_l2()
514 NEXT_CP_CONS_V(&cpr->ring, cpr->cons, cpr->v_bit); in bnxt_pkt_get_l2()
564 NEXT_CP_CONS_V(&cpr->ring, cpr->cons, cpr->v_bit); in bnxt_pkt_get_tpa()
589 NEXT_CP_CONS_V(&cpr->ring, cpr->cons, cpr->v_bit); in bnxt_pkt_get_tpa()
625 NEXT_CP_CONS_V(&cpr->ring, cpr->cons, cpr->v_bit); in bnxt_isc_rxd_pkt_get()
627 CMPL_PREFETCH_NEXT(cpr, cpr->cons); in bnxt_isc_rxd_pkt_get()
645 NEXT_CP_CONS_V(&cpr->ring, cpr->cons, cpr->v_bit); in bnxt_isc_rxd_pkt_get()
647 CMPL_PREFETCH_NEXT(cpr, cpr->cons); in bnxt_isc_rxd_pkt_get()
657 NEXT_CP_CONS_V(&cpr->ring, cpr->cons, in bnxt_isc_rxd_pkt_get()
[all …]
H A Dif_bnxt.c1442 if (cpr->cons == UINT32_MAX) in bnxt_do_enable_intr()
1443 BNXT_CP_ENABLE_DB(&cpr->ring); in bnxt_do_enable_intr()
1445 BNXT_CP_IDX_ENABLE_DB(&cpr->ring, cpr->cons); in bnxt_do_enable_intr()
2243 struct bnxt_cp_ring *cpr = arg; in bnxt_handle_rx_cp() local
2246 BNXT_CP_DISABLE_DB(&cpr->ring); in bnxt_handle_rx_cp()
2295 cmp[i].info3_v = !cpr->v_bit; in bnxt_mark_cpr_invalid()
2343 uint32_t cons = cpr->cons; in bnxt_def_cp_task()
2344 bool v_bit = cpr->v_bit; in bnxt_def_cp_task()
2387 cpr->cons = last_cons; in bnxt_def_cp_task()
2388 cpr->v_bit = last_v_bit; in bnxt_def_cp_task()
[all …]
H A Dbnxt.h120 #define CMPL_PREFETCH_NEXT(cpr, idx) \ argument
121 __builtin_prefetch(&((struct cmpl_base *)(cpr)->ring.vaddr)[((idx) +\
123 ((cpr)->ring.ring_size - 1)])
H A Dbnxt_hwrm.h59 int bnxt_hwrm_stat_ctx_alloc(struct bnxt_softc *softc, struct bnxt_cp_ring *cpr,
H A Dbnxt_hwrm.c805 bnxt_hwrm_stat_ctx_alloc(struct bnxt_softc *softc, struct bnxt_cp_ring *cpr, in bnxt_hwrm_stat_ctx_alloc() argument
812 if (cpr->stats_ctx_id != HWRM_NA_SIGNATURE) { in bnxt_hwrm_stat_ctx_alloc()
815 cpr->stats_ctx_id); in bnxt_hwrm_stat_ctx_alloc()
830 cpr->stats_ctx_id = le32toh(resp->stat_ctx_id); in bnxt_hwrm_stat_ctx_alloc()
/freebsd-12.1/sys/sys/
H A Djail.h278 ((cpr) = (((descend) && !LIST_EMPTY(&(cpr)->pr_children)) \
280 : ((cpr) == (ppr) \
283 ? LIST_NEXT(cpr, pr_sibling) \
284 : (cpr)->pr_parent))));) \
294 ((cpr) = (((descend) && !LIST_EMPTY(&(cpr)->pr_children)) \
296 : ((cpr) == (ppr) \
298 : ((prison_unlock(cpr), \
301 : (cpr)->pr_parent))));) \
311 ((cpr) = (((descend) && !LIST_EMPTY(&(cpr)->pr_children)) \
313 : ((cpr) == (ppr) \
[all …]
/freebsd-12.1/usr.bin/finger/
H A Dlprint.c105 int cpr, len, maxlen; in lprint() local
182 cpr = printf("On since %s on %s", t, w->tty); in lprint()
191 cpr += printf("%-*s idle ", in lprint()
194 cpr += printf("%d day%s ", in lprint()
198 cpr += printf("%d:%02d", in lprint()
202 ++cpr; in lprint()
206 cpr += printf(" (messages off)"); in lprint()
208 cpr = printf("Never logged in."); in lprint()
222 cpr = printf("Last login %s on %s", t, w->tty); in lprint()
225 if (LINE_LEN < (cpr + 6 + strlen(w->host))) in lprint()
/freebsd-12.1/sys/kern/
H A Dkern_mib.c291 struct prison *pr, *cpr; in sysctl_hostname() local
328 FOREACH_PRISON_DESCENDANT_LOCKED(pr, cpr, descend) in sysctl_hostname()
329 if (cpr->pr_flags & PR_HOST) in sysctl_hostname()
332 bcopy(tmpname, (char *)cpr + pr_offset, len); in sysctl_hostname()
362 struct prison *pr, *cpr; in sysctl_kern_securelvl() local
391 if (cpr->pr_securelevel < level) in sysctl_kern_securelvl()
392 cpr->pr_securelevel = level; in sysctl_kern_securelvl()
414 struct prison *pr, *cpr; in sysctl_hostid() local
434 FOREACH_PRISON_DESCENDANT_LOCKED(pr, cpr, descend) in sysctl_hostid()
435 if (cpr->pr_flags & PR_HOST) in sysctl_hostid()
[all …]
H A Dkern_jail.c2241 if (cpr->pr_ref > 0) { in sys_jail_remove()
2242 tpr = cpr; in sys_jail_remove()
2243 cpr->pr_ref++; in sys_jail_remove()
3441 struct prison *pr, *cpr; in sysctl_jail_list() local
3460 mtx_lock(&cpr->pr_mtx); in sysctl_jail_list()
3462 if (cpr->pr_ip4s > 0) { in sysctl_jail_list()
3464 ip4s = cpr->pr_ip4s; in sysctl_jail_list()
3475 if (cpr->pr_ip6s > 0) { in sysctl_jail_list()
3477 ip6s = cpr->pr_ip6s; in sysctl_jail_list()
3487 if (cpr->pr_ref == 0) { in sysctl_jail_list()
[all …]
H A Dkern_timeout.c1548 int ct[64], cpr[64], ccpbk[32]; local
1562 bzero(cpr, sizeof(cpr));
1586 cpr[flssbt(tmp->c_precision)]++;
1602 pcum += cpr[i];
1627 if (ct[i] == 0 && cpr[i] == 0)
1631 pcum += cpr[i];
1635 ct[i], tcum, cpr[i], pcum);
/freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/
H A Dtxg.c226 txg_thread_enter(tx_state_t *tx, callb_cpr_t *cpr) in txg_thread_enter() argument
239 CALLB_CPR_EXIT(cpr); /* drops &tx->tx_sync_lock */ in txg_thread_exit()
246 CALLB_CPR_SAFE_BEGIN(cpr); in txg_thread_wait()
253 CALLB_CPR_SAFE_END(cpr, &tx->tx_sync_lock); in txg_thread_wait()
483 callb_cpr_t cpr; in txg_sync_thread() local
486 txg_thread_enter(tx, &cpr); in txg_sync_thread()
522 txg_thread_wait(tx, &cpr, &tx->tx_quiesce_done_cv, 0); in txg_sync_thread()
526 txg_thread_exit(tx, &cpr, &tx->tx_sync_thread); in txg_sync_thread()
566 callb_cpr_t cpr; in txg_quiesce_thread() local
568 txg_thread_enter(tx, &cpr); in txg_quiesce_thread()
[all …]
H A Darc.c5017 callb_cpr_t cpr; in arc_dnlc_evicts_thread() local
5020 CALLB_CPR_INIT(&cpr, &arc_dnlc_evicts_lock, callb_generic_cpr, FTAG); in arc_dnlc_evicts_thread()
5024 CALLB_CPR_SAFE_BEGIN(&cpr); in arc_dnlc_evicts_thread()
5026 CALLB_CPR_SAFE_END(&cpr, &arc_dnlc_evicts_lock); in arc_dnlc_evicts_thread()
5044 CALLB_CPR_EXIT(&cpr); in arc_dnlc_evicts_thread()
8302 callb_cpr_t cpr; in l2arc_feed_thread() local
8308 CALLB_CPR_INIT(&cpr, &l2arc_feed_thr_lock, callb_generic_cpr, FTAG); in l2arc_feed_thread()
8313 CALLB_CPR_SAFE_BEGIN(&cpr); in l2arc_feed_thread()
8316 CALLB_CPR_SAFE_END(&cpr, &l2arc_feed_thr_lock); in l2arc_feed_thread()
8388 CALLB_CPR_EXIT(&cpr); /* drops l2arc_feed_thr_lock */ in l2arc_feed_thread()
H A Ddbuf.c737 callb_cpr_t cpr; in dbuf_evict_thread() local
739 CALLB_CPR_INIT(&cpr, &dbuf_evict_lock, callb_generic_cpr, FTAG); in dbuf_evict_thread()
744 CALLB_CPR_SAFE_BEGIN(&cpr); in dbuf_evict_thread()
747 CALLB_CPR_SAFE_END(&cpr, &dbuf_evict_lock); in dbuf_evict_thread()
765 CALLB_CPR_EXIT(&cpr); /* drops dbuf_evict_lock */ in dbuf_evict_thread()
/freebsd-12.1/contrib/mandoc/
H A Dmdoc_validate.c473 const char *cp, *cpr; in check_toptext() local
489 for (cpr = cp - 1; cpr >= p; cpr--) in check_toptext()
490 if (*cpr != '_' && !isalnum((unsigned char)*cpr)) in check_toptext()
492 if ((cpr < p || *cpr == ' ') && cpr + 1 < cp) { in check_toptext()
493 cpr++; in check_toptext()
494 mandoc_msg(MANDOCERR_FUNC, ln, pos + (int)(cpr - p), in check_toptext()
495 "%.*s()", (int)(cp - cpr), cpr); in check_toptext()
/freebsd-12.1/contrib/ntp/ntpq/
H A Dntpq.c3178 const char * cpr = cpl + len; in str_strip() local
3180 while (cpl != cpr && *(const unsigned char*)cpl <= ' ') in str_strip()
3182 while (cpl != cpr && *(const unsigned char*)(cpr - 1) <= ' ') in str_strip()
3183 --cpr; in str_strip()
3185 len = (size_t)(cpr - cpl); in str_strip()