Home
last modified time | relevance | path

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

1234

/freebsd-13.1/stand/common/
H A Dconsole.c63 for (cons = 0; consoles[cons] != NULL; cons++) { in cons_probe()
65 consoles[cons]->c_probe(consoles[cons]); in cons_probe()
69 for (cons = 0; consoles[cons] != NULL && active == -1; cons++) { in cons_probe()
93 for (cons = 0; consoles[cons] != NULL; cons++) in cons_probe()
115 for (cons = 0; consoles[cons] != NULL; cons++) { in getchar()
130 for (cons = 0; consoles[cons] != NULL; cons++) in ischar()
147 for (cons = 0; consoles[cons] != NULL; cons++) { in putchar()
162 for (cons = 0; consoles[cons] != NULL; cons++) in cons_find()
224 for (cons = 0; consoles[cons] != NULL; cons++) in cons_check()
241 for (cons = 0; consoles[cons] != NULL; cons++) { in cons_change()
[all …]
/freebsd-13.1/sys/dev/xen/console/
H A Dxen_console.c421 while ((sz = cons->ops->read(cons, buf, sizeof(buf))) > 0) { in xencons_rx()
425 cons->rbuf[RBUF_MASK(cons->rp++)] = buf[i]; in xencons_rx()
437 used = cons->wp - cons->wc; in xencons_tx_full()
449 while (cons->wc != cons->wp) { in xencons_tx_flush()
451 sz = cons->wp - cons->wc; in xencons_tx_flush()
454 sent = cons->ops->write(cons, &cons->wbuf[WBUF_MASK(cons->wc)], in xencons_tx_flush()
481 if ((cons->wp - cons->wc) < WBUF_SIZE) in xencons_putc()
482 cons->wbuf[WBUF_MASK(cons->wp++)] = c; in xencons_putc()
496 if (cons->rp != cons->rc) { in xencons_getc()
498 ret = (int)cons->rbuf[RBUF_MASK(cons->rc)]; in xencons_getc()
[all …]
/freebsd-13.1/sys/dev/bnxt/
H A Dbnxt_txrx.c196 uint32_t cons = cpr->cons; in bnxt_isc_txd_credits_update() local
204 last_cons = cons; in bnxt_isc_txd_credits_update()
207 CMPL_PREFETCH_NEXT(cpr, cons); in bnxt_isc_txd_credits_update()
245 cpr->cons = last_cons; in bnxt_isc_txd_credits_update()
334 uint32_t cons = cpr->cons; in bnxt_isc_rxd_available() local
342 CMPL_PREFETCH_NEXT(cpr, cons); in bnxt_isc_rxd_available()
350 rcp = (void *)&cmp[cons]; in bnxt_isc_rxd_available()
354 CMPL_PREFETCH_NEXT(cpr, cons); in bnxt_isc_rxd_available()
369 rtpae = (void *)&cmp[cons]; in bnxt_isc_rxd_available()
374 CMPL_PREFETCH_NEXT(cpr, cons); in bnxt_isc_rxd_available()
[all …]
H A Dbnxt.h117 #define NEXT_CP_CONS_V(ring, cons, v_bit) do { \ argument
118 if (__predict_false(++(cons) == (ring)->ring_size)) \
119 ((cons) = 0, (v_bit) = !v_bit); \
165 #define BNXT_CP_IDX_ENABLE_DB(ring, cons) do { \ argument
172 (cons))); \
178 #define BNXT_CP_IDX_DISABLE_DB(ring, cons) do { \ argument
185 CMPL_DOORBELL_MASK | (cons))); \
477 uint32_t cons; member
/freebsd-13.1/sys/dev/nvme/
H A Dnvme.c174 if (cons->ctrlr_fn != NULL) in nvme_notify()
186 if (cons->fail_fn != NULL) in nvme_notify()
198 if (cons->ns_fn != NULL) in nvme_notify()
228 nvme_notify(cons, ctrlr); in nvme_notify_new_consumer()
240 struct nvme_consumer *cons; in nvme_notify_async_consumers() local
245 cons = &nvme_consumer[i]; in nvme_notify_async_consumers()
246 if (cons->id != INVALID_CONSUMER_ID && cons->async_fn != NULL && in nvme_notify_async_consumers()
257 struct nvme_consumer *cons; in nvme_notify_fail_consumers() local
271 cons = &nvme_consumer[i]; in nvme_notify_fail_consumers()
298 cons = &nvme_consumer[i]; in nvme_notify_ns()
[all …]
/freebsd-13.1/usr.bin/fstat/
H A Dfuser.c129 printflags(struct consumer *cons) in printflags() argument
133 assert(cons); in printflags()
290 struct consumer *cons; in dofiles() local
329 if (cons->pid == kp->ki_pid) { in dofiles()
334 cons->flags |= fst->fs_fflags; in dofiles()
335 cons->uflags |= fst->fs_uflags; in dofiles()
341 if (cons == NULL) { in dofiles()
345 cons->uid = kp->ki_uid; in dofiles()
346 cons->pid = kp->ki_pid; in dofiles()
347 cons->uflags = fst->fs_uflags; in dofiles()
[all …]
/freebsd-13.1/contrib/tcsh/
H A Dcsh-mode.el213 (cons (concat
325 (cons nest-column (csh-current-line)))
349 (setq level (cons (current-indentation)
765 (list (cons completion type)))))
863 (cons "break" csh-completion-type-misc)
864 (cons "breaksw" csh-completion-type-misc)
865 (cons "case" csh-completion-type-misc)
867 (cons "endif" csh-completion-type-misc)
868 (cons "exit" csh-completion-type-misc)
869 (cons "foreach" csh-completion-type-misc)
[all …]
/freebsd-13.1/usr.sbin/bluetooth/bthidd/
H A Dserver.c78 srv->cons = open("/dev/consolectl", O_RDWR); in server_init()
79 if (srv->cons < 0) { in server_init()
90 close(srv->cons); in server_init()
105 close(srv->cons); in server_init()
113 close(srv->cons); in server_init()
123 close(srv->cons); in server_init()
134 close(srv->cons); in server_init()
143 close(srv->cons); in server_init()
163 close(srv->cons); in server_shutdown()
/freebsd-13.1/sys/xen/interface/io/
H A Dring.h437 RING_IDX cons, \
442 if (prod == cons) \
446 cons = name##_mask(cons, ring_size); \
448 if (prod == cons) \
451 if (prod > cons) \
452 size = prod - cons; \
454 size = ring_size - (cons - prod); \
/freebsd-13.1/lib/libc/gen/
H A Dgetttyent.c75 char *buf, *cons, *nextcons; in auto_tty_status() local
88 if ((cons = strchr(buf, '/')) == NULL) in auto_tty_status()
90 *cons = '\0'; in auto_tty_status()
92 while ((cons = strsep(&nextcons, ",")) != NULL && strlen(cons) != 0) { in auto_tty_status()
93 if (strcmp(cons, ty_name) == 0) { in auto_tty_status()
/freebsd-13.1/sys/dev/xen/xenstore/
H A Dxenstore.c414 *len = XENSTORE_RING_SIZE - (prod - cons); in xs_get_output_chunk()
435 if ((prod - cons) < *len) in xs_get_input_chunk()
436 *len = prod - cons; in xs_get_input_chunk()
437 return (buf + MASK_XENSTORE_IDX(cons)); in xs_get_input_chunk()
457 XENSTORE_RING_IDX cons, prod; in xs_write_store() local
468 cons = xen_store->req_cons; in xs_write_store()
494 if (!xs_check_indexes(cons, prod)) { in xs_write_store()
546 XENSTORE_RING_IDX cons, prod; in xs_read_store() local
556 cons = xen_store->rsp_cons; in xs_read_store()
558 if (cons == prod) { in xs_read_store()
[all …]
/freebsd-13.1/sys/dev/cxgbe/
H A Dt4_mp_ring.c351 int i, nospc, cons; in mp_ring_enqueue() local
385 cons = -1; in mp_ring_enqueue()
391 cons = C_FAST; in mp_ring_enqueue()
394 cons = C_2; in mp_ring_enqueue()
397 cons = C_TAKEOVER; in mp_ring_enqueue()
410 if (cons == C_FAST) { in mp_ring_enqueue()
454 MPASS(cons == -1); in mp_ring_enqueue()
461 if (cons == -1) { in mp_ring_enqueue()
463 cons = C_3; in mp_ring_enqueue()
469 MPASS(cons > C_FAST && cons < nitems(r->consumer)); in mp_ring_enqueue()
[all …]
/freebsd-13.1/crypto/openssl/doc/man1/
H A Drsautl.pod155 0:d=0 hl=4 l= 742 cons: SEQUENCE
156 4:d=1 hl=4 l= 591 cons: SEQUENCE
157 8:d=2 hl=2 l= 3 cons: cont [ 0 ]
160 16:d=2 hl=2 l= 13 cons: SEQUENCE
163 31:d=2 hl=2 l= 92 cons: SEQUENCE
164 33:d=3 hl=2 l= 11 cons: SET
165 35:d=4 hl=2 l= 9 cons: SEQUENCE
169 599:d=1 hl=2 l= 13 cons: SEQUENCE
187 0:d=0 hl=2 l= 32 cons: SEQUENCE
188 2:d=1 hl=2 l= 12 cons: SEQUENCE
H A Dasn1parse.pod118 0:d=0 hl=4 l= 681 cons: SEQUENCE
123 373:d=2 hl=3 l= 162 cons: cont [ 3 ]
124 376:d=3 hl=3 l= 159 cons: SEQUENCE
125 379:d=4 hl=2 l= 29 cons: SEQUENCE
128 410:d=4 hl=2 l= 112 cons: SEQUENCE
131 524:d=4 hl=2 l= 12 cons: SEQUENCE
149 0:d=0 hl=3 l= 137 cons: SEQUENCE
/freebsd-13.1/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_error.cpp82 char const *cons = NULL; // Construct name. in __kmp_pragma() local
90 cons = cons_text_c[ct]; in __kmp_pragma()
105 prgm = __kmp_msg_format(kmp_i18n_fmt_Pragma, cons, file, func, line); in __kmp_pragma()
124 struct cons_data const *cons // Second construct. in __kmp_error_construct2() argument
127 char *construct2 = __kmp_pragma(cons->type, cons->ident); in __kmp_error_construct2()
307 struct cons_data cons = {NULL, ct_critical, 0, NULL}; local
315 cons = p->stack_data[index];
318 __kmp_error_construct2(kmp_i18n_msg_CnsNestingSameName, ct, ident, &cons);
/freebsd-13.1/sys/arm64/iommu/
H A Dsmmu.c219 Q_WRP(q, q->lc.cons) == Q_WRP(q, q->lc.prod)) in smmu_q_has_space()
230 Q_WRP(q, q->lc.cons) == Q_WRP(q, q->lc.prod)) in smmu_q_empty()
240 if ((Q_WRP(q, q->lc.cons) == Q_WRP(q, prod)) && in smmu_q_consumed()
241 (Q_IDX(q, q->lc.cons) >= Q_IDX(q, prod))) in smmu_q_consumed()
244 if ((Q_WRP(q, q->lc.cons) != Q_WRP(q, prod)) && in smmu_q_consumed()
245 (Q_IDX(q, q->lc.cons) <= Q_IDX(q, prod))) in smmu_q_consumed()
254 uint32_t cons; in smmu_q_inc_cons() local
257 cons = (Q_WRP(q, q->lc.cons) | Q_IDX(q, q->lc.cons)) + 1; in smmu_q_inc_cons()
258 val = (Q_OVF(q->lc.cons) | Q_WRP(q, cons) | Q_IDX(q, cons)); in smmu_q_inc_cons()
421 evtq->lc.cons * EVTQ_ENTRY_DWORDS * 8); in smmu_evtq_dequeue()
[all …]
/freebsd-13.1/sys/dev/mlx4/mlx4_en/
H A Dmlx4_en_tx.c224 ring->cons = 0xffffffff; in mlx4_en_activate_tx_ring()
317 ring->cons += ring->last_nr_txbb; in mlx4_en_free_tx_buf()
319 ring->cons, ring->prod); in mlx4_en_free_tx_buf()
326 while (ring->cons != ring->prod) { in mlx4_en_free_tx_buf()
328 ring->cons & ring->size_mask); in mlx4_en_free_tx_buf()
329 ring->cons += ring->last_nr_txbb; in mlx4_en_free_tx_buf()
343 wqs = ring->size - (ring->prod - ring->cons); in mlx4_en_tx_ring_is_full()
369 ring_index = ring->cons & size_mask; in mlx4_en_process_tx_cq()
399 !!((ring->cons + txbbs_stamp) & in mlx4_en_process_tx_cq()
418 ring->cons += txbbs_skipped; in mlx4_en_process_tx_cq()
[all …]
/freebsd-13.1/sys/mips/atheros/ar531x/
H A Dif_are.c1481 int cons, prod; in are_tx() local
1485 cons = sc->are_cdata.are_tx_cons; in are_tx()
1487 if (cons == prod) in are_tx()
1499 for (; cons != prod; ARE_INC(cons, ARE_TX_RING_CNT)) { in are_tx()
1510 txd = &sc->are_cdata.are_txdesc[cons]; in are_tx()
1533 sc->are_cdata.are_tx_cons = cons; in are_tx()
1544 int cons, prog, packet_len, error; in are_rx() local
1550 cons = sc->are_cdata.are_rx_cons; in are_rx()
1598 if (cons == ARE_RX_RING_CNT - 1) in are_rx()
1601 if (are_newbuf(sc, cons) != 0) { in are_rx()
[all …]
/freebsd-13.1/stand/i386/libi386/
H A Dcomconsole.c84 char *cons, *env; in comc_probe() local
94 cons = getenv("console"); in comc_probe()
95 if ((cons != NULL && strcmp(cons, comconsole.c_name) == 0) || in comc_probe()
/freebsd-13.1/sys/dev/sge/
H A Dif_sge.c1150 int cons, prog; in sge_rxeof() local
1159 cons = cd->sge_rx_cons; in sge_rxeof()
1176 sge_discard_rxbuf(sc, cons); in sge_rxeof()
1180 m = cd->sge_rxdesc[cons].rx_m; in sge_rxeof()
1182 sge_discard_rxbuf(sc, cons); in sge_rxeof()
1225 cd->sge_rx_cons = cons; in sge_rxeof()
1241 int cons, nsegs, prod; in sge_txeof() local
1253 cons = cd->sge_tx_cons; in sge_txeof()
1255 for (; cons != prod;) { in sge_txeof()
1278 txd = &cd->sge_txdesc[cons]; in sge_txeof()
[all …]
/freebsd-13.1/sys/dev/xen/netfront/
H A Dnetfront.c1380 if (__predict_false(*cons + 1 == rp)) { in xn_get_extras()
1386 RING_GET_RESPONSE(&rxq->ring, ++(*cons)); in xn_get_extras()
1395 m = xn_get_rx_mbuf(rxq, *cons); in xn_get_extras()
1396 ref = xn_get_rx_ref(rxq, *cons); in xn_get_extras()
1412 RING_IDX ref_cons = *cons; in xn_get_responses()
1471 if (*cons + frags == rp) { in xn_get_responses()
1476 __func__, *cons, frags, rp); in xn_get_responses()
1486 m = xn_get_rx_mbuf(rxq, *cons + frags); in xn_get_responses()
1502 ref = xn_get_rx_ref(rxq, *cons + frags); in xn_get_responses()
1503 ref_cons = *cons + frags; in xn_get_responses()
[all …]
/freebsd-13.1/sys/dev/qlnx/qlnxr/
H A Dqlnxr_cm.c839 while (i < num_entries && qp->rq.cons != qp->rq.gsi_cons) { in qlnxr_gsi_poll_cq()
843 wc[i].wr_id = qp->rqe_wr_id[qp->rq.cons].wr_id; in qlnxr_gsi_poll_cq()
846 wc[i].status = (qp->rqe_wr_id[qp->rq.cons].rc)? in qlnxr_gsi_poll_cq()
849 wc[i].byte_len = qp->rqe_wr_id[qp->rq.cons].sg_list[0].length; in qlnxr_gsi_poll_cq()
853 memcpy(&wc[i].smac, qp->rqe_wr_id[qp->rq.cons].smac, ETH_ALEN); in qlnxr_gsi_poll_cq()
856 if (qp->rqe_wr_id[qp->rq.cons].vlan_id) { in qlnxr_gsi_poll_cq()
858 wc[i].vlan_id = qp->rqe_wr_id[qp->rq.cons].vlan_id; in qlnxr_gsi_poll_cq()
866 while (i < num_entries && qp->sq.cons != qp->sq.gsi_cons) { in qlnxr_gsi_poll_cq()
870 wc[i].wr_id = qp->wqe_wr_id[qp->sq.cons].wr_id; in qlnxr_gsi_poll_cq()
/freebsd-13.1/sys/dev/nge/
H A Dif_nge.c1453 cons = sc->nge_cdata.nge_rx_cons; in nge_rxeof()
1481 if (nge_newbuf(sc, cons) != 0) { in nge_rxeof()
1487 nge_discard_rxbuf(sc, cons); in nge_rxeof()
1524 nge_discard_rxbuf(sc, cons); in nge_rxeof()
1531 if (nge_newbuf(sc, cons) != 0) { in nge_rxeof()
1537 nge_discard_rxbuf(sc, cons); in nge_rxeof()
1623 int cons, prod; in nge_txeof() local
1628 cons = sc->nge_cdata.nge_tx_cons; in nge_txeof()
1630 if (cons == prod) in nge_txeof()
1641 for (; cons != prod; NGE_INC(cons, NGE_TX_RING_CNT)) { in nge_txeof()
[all …]
/freebsd-13.1/sys/dev/vr/
H A Dif_vr.c1307 cons = sc->vr_cdata.vr_rx_cons; in vr_rxeof()
1365 if (vr_newbuf(sc, cons) != 0) { in vr_rxeof()
1429 sc->vr_cdata.vr_rx_cons = cons; in vr_rxeof()
1448 int cons, prod; in vr_txeof() local
1452 cons = sc->vr_cdata.vr_tx_cons; in vr_txeof()
1454 if (cons == prod) in vr_txeof()
1466 for (; cons != prod; VR_INC(cons, VR_TX_RING_CNT)) { in vr_txeof()
1495 VR_INC(cons, VR_TX_RING_CNT); in vr_txeof()
1496 sc->vr_cdata.vr_tx_cons = cons; in vr_txeof()
1513 sc->vr_cdata.vr_tx_cons = cons; in vr_txeof()
[all …]
/freebsd-13.1/sys/dev/stge/
H A Dif_stge.c1535 int cons; in stge_txeof() local
1551 for (cons = sc->sc_cdata.stge_tx_cons;; in stge_txeof()
1552 cons = (cons + 1) % STGE_TX_RING_CNT) { in stge_txeof()
1572 sc->sc_cdata.stge_tx_cons = cons; in stge_txeof()
1642 int cons, prog, rx_npkts; in stge_rxeof() local
1654 prog++, cons = (cons + 1) % STGE_RX_RING_CNT) { in stge_rxeof()
1667 rxd = &sc->sc_cdata.stge_rxdesc[cons]; in stge_rxeof()
1678 stge_discard_rxbuf(sc, cons); in stge_rxeof()
1688 if (stge_newbuf(sc, cons) != 0) { in stge_rxeof()
1690 stge_discard_rxbuf(sc, cons); in stge_rxeof()
[all …]

1234