Home
last modified time | relevance | path

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

12345

/freebsd-12.1/stand/common/
H A Dconsole.c60 for (cons = 0; consoles[cons] != NULL; cons++) { in cons_probe()
62 consoles[cons]->c_probe(consoles[cons]); in cons_probe()
66 for (cons = 0; consoles[cons] != NULL && active == -1; cons++) { in cons_probe()
90 for (cons = 0; consoles[cons] != NULL; cons++) in cons_probe()
110 for (cons = 0; consoles[cons] != NULL; cons++) in getchar()
122 for (cons = 0; consoles[cons] != NULL; cons++) in ischar()
139 for (cons = 0; consoles[cons] != NULL; cons++) in putchar()
153 for (cons = 0; consoles[cons] != NULL; cons++) in cons_find()
214 for (cons = 0; consoles[cons] != NULL; cons++) in cons_check()
231 for (cons = 0; consoles[cons] != NULL; cons++) { in cons_change()
[all …]
/freebsd-12.1/sys/dev/xen/console/
H A Dxen_console.c419 while ((sz = cons->ops->read(cons, buf, sizeof(buf))) > 0) { in xencons_rx()
423 cons->rbuf[RBUF_MASK(cons->rp++)] = buf[i]; in xencons_rx()
435 used = cons->wp - cons->wc; in xencons_tx_full()
447 while (cons->wc != cons->wp) { in xencons_tx_flush()
449 sz = cons->wp - cons->wc; in xencons_tx_flush()
452 sent = cons->ops->write(cons, &cons->wbuf[WBUF_MASK(cons->wc)], in xencons_tx_flush()
479 if ((cons->wp - cons->wc) < WBUF_SIZE) in xencons_putc()
480 cons->wbuf[WBUF_MASK(cons->wp++)] = c; in xencons_putc()
494 if (cons->rp != cons->rc) { in xencons_getc()
496 ret = (int)cons->rbuf[RBUF_MASK(cons->rc)]; in xencons_getc()
[all …]
/freebsd-12.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()
335 uint32_t cons = cpr->cons; in bnxt_isc_rxd_available() local
343 CMPL_PREFETCH_NEXT(cpr, cons); in bnxt_isc_rxd_available()
351 rcp = (void *)&cmp[cons]; in bnxt_isc_rxd_available()
355 CMPL_PREFETCH_NEXT(cpr, cons); in bnxt_isc_rxd_available()
370 rtpae = (void *)&cmp[cons]; in bnxt_isc_rxd_available()
375 CMPL_PREFETCH_NEXT(cpr, cons); in bnxt_isc_rxd_available()
[all …]
H A Dbnxt.h112 #define NEXT_CP_CONS_V(ring, cons, v_bit) do { \ argument
113 if (__predict_false(++(cons) == (ring)->ring_size)) \
114 ((cons) = 0, (v_bit) = !v_bit); \
160 #define BNXT_CP_IDX_ENABLE_DB(ring, cons) do { \ argument
167 (cons))); \
173 #define BNXT_CP_IDX_DISABLE_DB(ring, cons) do { \ argument
180 CMPL_DOORBELL_MASK | (cons))); \
473 uint32_t cons; member
/freebsd-12.1/sys/dev/nvme/
H A Dnvme.c196 if (cons->ctrlr_fn != NULL) in nvme_notify()
208 if (cons->fail_fn != NULL) in nvme_notify()
220 if (cons->ns_fn != NULL) in nvme_notify()
250 nvme_notify(cons, ctrlr); in nvme_notify_new_consumer()
262 struct nvme_consumer *cons; in nvme_notify_async_consumers() local
267 cons = &nvme_consumer[i]; in nvme_notify_async_consumers()
268 if (cons->id != INVALID_CONSUMER_ID && cons->async_fn != NULL && in nvme_notify_async_consumers()
279 struct nvme_consumer *cons; in nvme_notify_fail_consumers() local
293 cons = &nvme_consumer[i]; in nvme_notify_fail_consumers()
315 cons = &nvme_consumer[i]; in nvme_notify_ns()
[all …]
/freebsd-12.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-12.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-12.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-12.1/sys/dev/xen/xenstore/
H A Dxenstore.c415 *len = XENSTORE_RING_SIZE - (prod - cons); in xs_get_output_chunk()
436 if ((prod - cons) < *len) in xs_get_input_chunk()
437 *len = prod - cons; in xs_get_input_chunk()
438 return (buf + MASK_XENSTORE_IDX(cons)); in xs_get_input_chunk()
458 XENSTORE_RING_IDX cons, prod; in xs_write_store() local
469 cons = xen_store->req_cons; in xs_write_store()
495 if (!xs_check_indexes(cons, prod)) { in xs_write_store()
547 XENSTORE_RING_IDX cons, prod; in xs_read_store() local
557 cons = xen_store->rsp_cons; in xs_read_store()
559 if (cons == prod) { in xs_read_store()
[all …]
/freebsd-12.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-12.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-12.1/contrib/openmp/runtime/src/
H A Dkmp_error.cpp79 char const *cons = NULL; // Construct name. in __kmp_pragma() local
87 cons = cons_text_c[ct]; in __kmp_pragma()
102 prgm = __kmp_msg_format(kmp_i18n_fmt_Pragma, cons, file, func, line); in __kmp_pragma()
121 struct cons_data const *cons // Second construct. in __kmp_error_construct2() argument
124 char *construct2 = __kmp_pragma(cons->type, cons->ident); in __kmp_error_construct2()
314 struct cons_data cons = {NULL, ct_critical, 0, NULL}; local
322 cons = p->stack_data[index];
325 __kmp_error_construct2(kmp_i18n_msg_CnsNestingSameName, ct, ident, &cons);
/freebsd-12.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 …]
H A Dmlx4_en_rx.c309 ring->cons, ring->prod); in mlx4_en_free_rx_buf()
312 BUG_ON((u32) (ring->prod - ring->cons) > ring->actual_size); in mlx4_en_free_rx_buf()
313 while (ring->cons != ring->prod) { in mlx4_en_free_rx_buf()
314 index = ring->cons & ring->size_mask; in mlx4_en_free_rx_buf()
317 ++ring->cons; in mlx4_en_free_rx_buf()
400 ring->cons = 0; in mlx4_en_create_rx_ring()
476 ring->cons = 0; in mlx4_en_activate_rx_rings()
859 ring->cons = mcq->cons_index; in mlx4_en_process_rx_cq()
/freebsd-12.1/sys/mips/atheros/ar531x/
H A Dif_are.c1483 int cons, prod; in are_tx() local
1487 cons = sc->are_cdata.are_tx_cons; in are_tx()
1489 if (cons == prod) in are_tx()
1501 for (; cons != prod; ARE_INC(cons, ARE_TX_RING_CNT)) { in are_tx()
1512 txd = &sc->are_cdata.are_txdesc[cons]; in are_tx()
1535 sc->are_cdata.are_tx_cons = cons; in are_tx()
1547 int cons, prog, packet_len, error; in are_rx() local
1553 cons = sc->are_cdata.are_rx_cons; in are_rx()
1601 if (cons == ARE_RX_RING_CNT - 1) in are_rx()
1604 if (are_newbuf(sc, cons) != 0) { in are_rx()
[all …]
/freebsd-12.1/sys/arm/ralink/
H A Dif_fv.c1565 int cons, prod, prev_cons; in fv_tx() local
1569 cons = sc->fv_cdata.fv_tx_cons; in fv_tx()
1571 if (cons == prod) in fv_tx()
1583 prev_cons = cons; in fv_tx()
1584 for (; cons != prod; FV_INC(cons, FV_TX_RING_CNT)) { in fv_tx()
1618 sc->fv_cdata.fv_tx_cons = cons; in fv_tx()
1630 int cons, prog, packet_len, error; in fv_rx() local
1636 cons = sc->fv_cdata.fv_rx_cons; in fv_rx()
1693 if (cons == FV_RX_RING_CNT - 1) in fv_rx()
1696 if (fv_newbuf(sc, cons) != 0) { in fv_rx()
[all …]
/freebsd-12.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-12.1/sys/dev/sge/
H A Dif_sge.c1148 int cons, prog; in sge_rxeof() local
1157 cons = cd->sge_rx_cons; in sge_rxeof()
1174 sge_discard_rxbuf(sc, cons); in sge_rxeof()
1178 m = cd->sge_rxdesc[cons].rx_m; in sge_rxeof()
1180 sge_discard_rxbuf(sc, cons); in sge_rxeof()
1223 cd->sge_rx_cons = cons; in sge_rxeof()
1239 int cons, nsegs, prod; in sge_txeof() local
1251 cons = cd->sge_tx_cons; in sge_txeof()
1253 for (; cons != prod;) { in sge_txeof()
1276 txd = &cd->sge_txdesc[cons]; in sge_txeof()
[all …]
/freebsd-12.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()
1472 if (*cons + frags == rp) { in xn_get_responses()
1477 __func__, *cons, frags, rp); in xn_get_responses()
1487 m = xn_get_rx_mbuf(rxq, *cons + frags); in xn_get_responses()
1503 ref = xn_get_rx_ref(rxq, *cons + frags); in xn_get_responses()
1504 ref_cons = *cons + frags; in xn_get_responses()
[all …]
/freebsd-12.1/sys/dev/nge/
H A Dif_nge.c1452 cons = sc->nge_cdata.nge_rx_cons; in nge_rxeof()
1480 if (nge_newbuf(sc, cons) != 0) { in nge_rxeof()
1486 nge_discard_rxbuf(sc, cons); in nge_rxeof()
1523 nge_discard_rxbuf(sc, cons); in nge_rxeof()
1530 if (nge_newbuf(sc, cons) != 0) { in nge_rxeof()
1536 nge_discard_rxbuf(sc, cons); in nge_rxeof()
1622 int cons, prod; in nge_txeof() local
1627 cons = sc->nge_cdata.nge_tx_cons; in nge_txeof()
1629 if (cons == prod) in nge_txeof()
1640 for (; cons != prod; NGE_INC(cons, NGE_TX_RING_CNT)) { in nge_txeof()
[all …]
/freebsd-12.1/sys/dev/vr/
H A Dif_vr.c1294 cons = sc->vr_cdata.vr_rx_cons; in vr_rxeof()
1352 if (vr_newbuf(sc, cons) != 0) { in vr_rxeof()
1416 sc->vr_cdata.vr_rx_cons = cons; in vr_rxeof()
1435 int cons, prod; in vr_txeof() local
1439 cons = sc->vr_cdata.vr_tx_cons; in vr_txeof()
1441 if (cons == prod) in vr_txeof()
1453 for (; cons != prod; VR_INC(cons, VR_TX_RING_CNT)) { in vr_txeof()
1482 VR_INC(cons, VR_TX_RING_CNT); in vr_txeof()
1483 sc->vr_cdata.vr_tx_cons = cons; in vr_txeof()
1500 sc->vr_cdata.vr_tx_cons = cons; in vr_txeof()
[all …]
/freebsd-12.1/sys/dev/stge/
H A Dif_stge.c1534 int cons; in stge_txeof() local
1550 for (cons = sc->sc_cdata.stge_tx_cons;; in stge_txeof()
1551 cons = (cons + 1) % STGE_TX_RING_CNT) { in stge_txeof()
1571 sc->sc_cdata.stge_tx_cons = cons; in stge_txeof()
1641 int cons, prog, rx_npkts; in stge_rxeof() local
1653 prog++, cons = (cons + 1) % STGE_RX_RING_CNT) { in stge_rxeof()
1666 rxd = &sc->sc_cdata.stge_rxdesc[cons]; in stge_rxeof()
1677 stge_discard_rxbuf(sc, cons); in stge_rxeof()
1687 if (stge_newbuf(sc, cons) != 0) { in stge_rxeof()
1689 stge_discard_rxbuf(sc, cons); in stge_rxeof()
[all …]
/freebsd-12.1/sys/mips/atheros/
H A Dif_arge.c2363 int cons, prod; in arge_tx_locked() local
2367 cons = sc->arge_cdata.arge_tx_cons; in arge_tx_locked()
2373 if (cons == prod) in arge_tx_locked()
2385 for (; cons != prod; ARGE_INC(cons, ARGE_TX_RING_COUNT)) { in arge_tx_locked()
2397 txd = &sc->arge_cdata.arge_txdesc[cons]; in arge_tx_locked()
2414 sc->arge_cdata.arge_tx_cons = cons; in arge_tx_locked()
2426 int cons, prog, packet_len, i; in arge_rx_locked() local
2433 cons = sc->arge_cdata.arge_rx_cons; in arge_rx_locked()
2440 ARGE_INC(cons, ARGE_RX_RING_COUNT)) { in arge_rx_locked()
2442 rxd = &sc->arge_cdata.arge_rxdesc[cons]; in arge_rx_locked()
[all …]
/freebsd-12.1/sys/dev/sf/
H A Dif_sf.c1533 int cons, eidx, prog, rx_npkts; in sf_rxeof() local
1556 SF_INC(cons, SF_RX_CLIST_CNT)) { in sf_rxeof()
1662 sc->sf_cdata.sf_rxc_cons = cons; in sf_rxeof()
1673 (cons & SF_CQ_CONSIDX_RXQ1)); in sf_rxeof()
1697 int cons, idx, prod; in sf_txeof() local
1707 cons = sc->sf_cdata.sf_txc_cons; in sf_txeof()
1709 if (prod == cons) in sf_txeof()
1712 for (; cons != prod; SF_INC(cons, SF_TX_CLIST_CNT)) { in sf_txeof()
1753 status, cons, prod); in sf_txeof()
1759 sc->sf_cdata.sf_txc_cons = cons; in sf_txeof()
[all …]

12345