/freebsd/stand/common/ |
H A D | console.c | 92 for (cons = 0; consoles[cons] != NULL; cons++) { in cons_probe() 94 consoles[cons]->c_probe(consoles[cons]); in cons_probe() 98 for (cons = 0; consoles[cons] != NULL && active == -1; cons++) { in cons_probe() 122 for (cons = 0; consoles[cons] != NULL; cons++) in cons_probe() 144 for (cons = 0; consoles[cons] != NULL; cons++) { in getchar() 159 for (cons = 0; consoles[cons] != NULL; cons++) in ischar() 176 for (cons = 0; consoles[cons] != NULL; cons++) { in putchar() 191 for (cons = 0; consoles[cons] != NULL; cons++) in cons_find() 253 for (cons = 0; consoles[cons] != NULL; cons++) in cons_check() 270 for (cons = 0; consoles[cons] != NULL; cons++) { in cons_change() [all …]
|
/freebsd/sys/dev/xen/console/ |
H A D | xen_console.c | 423 while ((sz = cons->ops->read(cons, buf, sizeof(buf))) > 0) { in xencons_rx() 427 cons->rbuf[RBUF_MASK(cons->rp++)] = buf[i]; in xencons_rx() 439 used = cons->wp - cons->wc; in xencons_tx_full() 451 while (cons->wc != cons->wp) { in xencons_tx_flush() 453 sz = cons->wp - cons->wc; in xencons_tx_flush() 456 sent = cons->ops->write(cons, &cons->wbuf[WBUF_MASK(cons->wc)], in xencons_tx_flush() 483 if ((cons->wp - cons->wc) < WBUF_SIZE) in xencons_putc() 484 cons->wbuf[WBUF_MASK(cons->wp++)] = c; in xencons_putc() 498 if (cons->rp != cons->rc) { in xencons_getc() 500 ret = (int)cons->rbuf[RBUF_MASK(cons->rc)]; in xencons_getc() [all …]
|
/freebsd/sys/dev/nvme/ |
H A D | nvme.c | 136 if (cons->ctrlr_fn != NULL) in nvme_notify() 150 if (cons->fail_fn != NULL) in nvme_notify() 162 if (cons->ns_fn != NULL) in nvme_notify() 192 nvme_notify(cons, ctrlr); in nvme_notify_new_consumer() 204 struct nvme_consumer *cons; in nvme_notify_async_consumers() local 209 cons = &nvme_consumer[i]; in nvme_notify_async_consumers() 210 if (cons->id != INVALID_CONSUMER_ID && cons->async_fn != NULL && in nvme_notify_async_consumers() 221 struct nvme_consumer *cons; in nvme_notify_fail_consumers() local 235 cons = &nvme_consumer[i]; in nvme_notify_fail_consumers() 262 cons = &nvme_consumer[i]; in nvme_notify_ns() [all …]
|
/freebsd/sys/dev/bnxt/bnxt_en/ |
H A D | bnxt_txrx.c | 191 uint32_t cons = cpr->cons; in bnxt_isc_txd_credits_update() local 199 last_cons = cons; in bnxt_isc_txd_credits_update() 202 CMPL_PREFETCH_NEXT(cpr, cons); in bnxt_isc_txd_credits_update() 240 cpr->cons = last_cons; in bnxt_isc_txd_credits_update() 324 uint32_t cons = cpr->cons; in bnxt_isc_rxd_available() local 332 CMPL_PREFETCH_NEXT(cpr, cons); in bnxt_isc_rxd_available() 340 rcp = (void *)&cmp[cons]; in bnxt_isc_rxd_available() 344 CMPL_PREFETCH_NEXT(cpr, cons); in bnxt_isc_rxd_available() 359 rtpae = (void *)&cmp[cons]; in bnxt_isc_rxd_available() 364 CMPL_PREFETCH_NEXT(cpr, cons); in bnxt_isc_rxd_available() [all …]
|
/freebsd/usr.bin/fstat/ |
H A D | fuser.c | 127 printflags(struct consumer *cons) in printflags() argument 131 assert(cons); in printflags() 287 struct consumer *cons; in dofiles() local 326 if (cons->pid == kp->ki_pid) { in dofiles() 331 cons->flags |= fst->fs_fflags; in dofiles() 332 cons->uflags |= fst->fs_uflags; in dofiles() 338 if (cons == NULL) { in dofiles() 342 cons->uid = kp->ki_uid; in dofiles() 343 cons->pid = kp->ki_pid; in dofiles() 344 cons->uflags = fst->fs_uflags; in dofiles() [all …]
|
/freebsd/contrib/tcsh/ |
H A D | csh-mode.el | 213 (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/usr.sbin/bluetooth/bthidd/ |
H A D | server.c | 77 srv->cons = open("/dev/consolectl", O_RDWR); in server_init() 78 if (srv->cons < 0) { in server_init() 89 close(srv->cons); in server_init() 104 close(srv->cons); in server_init() 112 close(srv->cons); in server_init() 122 close(srv->cons); in server_init() 133 close(srv->cons); in server_init() 142 close(srv->cons); in server_init() 162 close(srv->cons); in server_shutdown()
|
/freebsd/lib/libc/gen/ |
H A D | getttyent.c | 71 char *buf, *cons, *nextcons; in auto_tty_status() local 84 if ((cons = strchr(buf, '/')) == NULL) in auto_tty_status() 86 *cons = '\0'; in auto_tty_status() 88 while ((cons = strsep(&nextcons, ",")) != NULL && strlen(cons) != 0) { in auto_tty_status() 89 if (strcmp(cons, ty_name) == 0) { in auto_tty_status()
|
/freebsd/sys/dev/xen/xenstore/ |
H A D | xenstore.c | 411 *len = XENSTORE_RING_SIZE - (prod - cons); in xs_get_output_chunk() 432 if ((prod - cons) < *len) in xs_get_input_chunk() 433 *len = prod - cons; in xs_get_input_chunk() 434 return (buf + MASK_XENSTORE_IDX(cons)); in xs_get_input_chunk() 454 XENSTORE_RING_IDX cons, prod; in xs_write_store() local 465 cons = xen_store->req_cons; in xs_write_store() 491 if (!xs_check_indexes(cons, prod)) { in xs_write_store() 543 XENSTORE_RING_IDX cons, prod; in xs_read_store() local 553 cons = xen_store->rsp_cons; in xs_read_store() 555 if (cons == prod) { in xs_read_store() [all …]
|
/freebsd/sys/contrib/xen/io/ |
H A D | ring.h | 444 RING_IDX cons, \ 449 if (prod == cons) \ 453 cons = name##_mask(cons, ring_size); \ 455 if (prod == cons) \ 458 if (prod > cons) \ 459 size = prod - cons; \ 461 size = ring_size - (cons - prod); \
|
/freebsd/sys/dev/cxgbe/ |
H A D | t4_mp_ring.c | 348 int i, nospc, cons; in mp_ring_enqueue() local 382 cons = -1; in mp_ring_enqueue() 388 cons = C_FAST; in mp_ring_enqueue() 391 cons = C_2; in mp_ring_enqueue() 394 cons = C_TAKEOVER; in mp_ring_enqueue() 407 if (cons == C_FAST) { in mp_ring_enqueue() 451 MPASS(cons == -1); in mp_ring_enqueue() 458 if (cons == -1) { in mp_ring_enqueue() 460 cons = C_3; in mp_ring_enqueue() 466 MPASS(cons > C_FAST && cons < nitems(r->consumer)); in mp_ring_enqueue() [all …]
|
/freebsd/crypto/openssl/doc/man1/ |
H A D | openssl-rsautl.pod.in | 167 0:d=0 hl=4 l= 742 cons: SEQUENCE 168 4:d=1 hl=4 l= 591 cons: SEQUENCE 169 8:d=2 hl=2 l= 3 cons: cont [ 0 ] 172 16:d=2 hl=2 l= 13 cons: SEQUENCE 175 31:d=2 hl=2 l= 92 cons: SEQUENCE 176 33:d=3 hl=2 l= 11 cons: SET 177 35:d=4 hl=2 l= 9 cons: SEQUENCE 181 599:d=1 hl=2 l= 13 cons: SEQUENCE 199 0:d=0 hl=2 l= 32 cons: SEQUENCE 200 2:d=1 hl=2 l= 12 cons: SEQUENCE
|
H A D | openssl-asn1parse.pod.in | 119 0:d=0 hl=4 l= 681 cons: SEQUENCE 124 373:d=2 hl=3 l= 162 cons: cont [ 3 ] 125 376:d=3 hl=3 l= 159 cons: SEQUENCE 126 379:d=4 hl=2 l= 29 cons: SEQUENCE 129 410:d=4 hl=2 l= 112 cons: SEQUENCE 132 524:d=4 hl=2 l= 12 cons: SEQUENCE 150 0:d=0 hl=3 l= 137 cons: SEQUENCE
|
/freebsd/contrib/llvm-project/openmp/runtime/src/ |
H A D | kmp_error.cpp | 82 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/sys/arm64/iommu/ |
H A D | smmu.c | 231 Q_WRP(q, q->lc.cons) == Q_WRP(q, q->lc.prod)) in smmu_q_has_space() 242 Q_WRP(q, q->lc.cons) == Q_WRP(q, q->lc.prod)) in smmu_q_empty() 252 if ((Q_WRP(q, q->lc.cons) == Q_WRP(q, prod)) && in smmu_q_consumed() 253 (Q_IDX(q, q->lc.cons) >= Q_IDX(q, prod))) in smmu_q_consumed() 256 if ((Q_WRP(q, q->lc.cons) != Q_WRP(q, prod)) && in smmu_q_consumed() 257 (Q_IDX(q, q->lc.cons) <= Q_IDX(q, prod))) in smmu_q_consumed() 266 uint32_t cons; in smmu_q_inc_cons() local 269 cons = (Q_WRP(q, q->lc.cons) | Q_IDX(q, q->lc.cons)) + 1; in smmu_q_inc_cons() 270 val = (Q_OVF(q->lc.cons) | Q_WRP(q, cons) | Q_IDX(q, cons)); in smmu_q_inc_cons() 424 evtq->lc.cons * EVTQ_ENTRY_DWORDS * 8); in smmu_evtq_dequeue() [all …]
|
/freebsd/sys/dev/mlx4/mlx4_en/ |
H A D | mlx4_en_tx.c | 224 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/sys/dev/bnxt/bnxt_re/ |
H A D | qplib_res.h | 182 - HWQ_CMP(hwq->cons, hwq))\ 267 u32 cons; /* raw */ member 525 static inline void bnxt_qplib_hwq_incr_cons(u32 max_elements, u32 *cons, in bnxt_qplib_hwq_incr_cons() argument 529 *cons += cnt; in bnxt_qplib_hwq_incr_cons() 530 if (*cons >= max_elements) { in bnxt_qplib_hwq_incr_cons() 531 *cons %= max_elements; in bnxt_qplib_hwq_incr_cons() 641 key = info->hwq->cons | (CMPL_DOORBELL_IDX_VALID | in bnxt_qplib_ring_db32() 700 indx = ((info->hwq->cons & DBC_DBC_INDEX_MASK) | in bnxt_qplib_ring_db()
|
H A D | qplib_fp.h | 402 int cons, prod, avail; in __bnxt_qplib_get_avail() local 405 cons = hwq->cons; in __bnxt_qplib_get_avail() 407 avail = cons - prod; in __bnxt_qplib_get_avail() 408 if (cons <= prod) in __bnxt_qplib_get_avail()
|
/freebsd/stand/i386/libi386/ |
H A D | comconsole.c | 81 char *cons, *env; in comc_probe() local 91 cons = getenv("console"); in comc_probe() 92 if ((cons != NULL && strcmp(cons, comconsole.c_name) == 0) || in comc_probe()
|
/freebsd/sys/dev/sge/ |
H A D | if_sge.c | 1145 int cons, prog; in sge_rxeof() local 1154 cons = cd->sge_rx_cons; in sge_rxeof() 1171 sge_discard_rxbuf(sc, cons); in sge_rxeof() 1175 m = cd->sge_rxdesc[cons].rx_m; in sge_rxeof() 1177 sge_discard_rxbuf(sc, cons); in sge_rxeof() 1220 cd->sge_rx_cons = cons; in sge_rxeof() 1236 int cons, nsegs, prod; in sge_txeof() local 1248 cons = cd->sge_tx_cons; in sge_txeof() 1250 for (; cons != prod;) { in sge_txeof() 1273 txd = &cd->sge_txdesc[cons]; in sge_txeof() [all …]
|
/freebsd/sys/dev/qlnx/qlnxr/ |
H A D | qlnxr_cm.c | 816 while (i < num_entries && qp->rq.cons != qp->rq.gsi_cons) { in qlnxr_gsi_poll_cq() 820 wc[i].wr_id = qp->rqe_wr_id[qp->rq.cons].wr_id; in qlnxr_gsi_poll_cq() 823 wc[i].status = (qp->rqe_wr_id[qp->rq.cons].rc)? in qlnxr_gsi_poll_cq() 826 wc[i].byte_len = qp->rqe_wr_id[qp->rq.cons].sg_list[0].length; in qlnxr_gsi_poll_cq() 829 memcpy(&wc[i].smac, qp->rqe_wr_id[qp->rq.cons].smac, ETH_ALEN); in qlnxr_gsi_poll_cq() 832 if (qp->rqe_wr_id[qp->rq.cons].vlan_id) { in qlnxr_gsi_poll_cq() 834 wc[i].vlan_id = qp->rqe_wr_id[qp->rq.cons].vlan_id; in qlnxr_gsi_poll_cq() 841 while (i < num_entries && qp->sq.cons != qp->sq.gsi_cons) { in qlnxr_gsi_poll_cq() 845 wc[i].wr_id = qp->wqe_wr_id[qp->sq.cons].wr_id; in qlnxr_gsi_poll_cq()
|
/freebsd/usr.sbin/bsdinstall/runconsoles/ |
H A D | runconsoles.c | 252 char *buf, *p, *cons; in read_primary_console() local 286 cons = strdup(buf); in read_primary_console() 288 cons = NULL; in read_primary_console() 292 return (cons); in read_primary_console()
|
/freebsd/sys/dev/nge/ |
H A D | if_nge.c | 1448 cons = sc->nge_cdata.nge_rx_cons; in nge_rxeof() 1476 if (nge_newbuf(sc, cons) != 0) { in nge_rxeof() 1482 nge_discard_rxbuf(sc, cons); in nge_rxeof() 1519 nge_discard_rxbuf(sc, cons); in nge_rxeof() 1526 if (nge_newbuf(sc, cons) != 0) { in nge_rxeof() 1532 nge_discard_rxbuf(sc, cons); in nge_rxeof() 1618 int cons, prod; in nge_txeof() local 1623 cons = sc->nge_cdata.nge_tx_cons; in nge_txeof() 1625 if (cons == prod) in nge_txeof() 1636 for (; cons != prod; NGE_INC(cons, NGE_TX_RING_CNT)) { in nge_txeof() [all …]
|
/freebsd/sys/dev/vr/ |
H A D | if_vr.c | 1302 cons = sc->vr_cdata.vr_rx_cons; in vr_rxeof() 1360 if (vr_newbuf(sc, cons) != 0) { in vr_rxeof() 1424 sc->vr_cdata.vr_rx_cons = cons; in vr_rxeof() 1443 int cons, prod; in vr_txeof() local 1447 cons = sc->vr_cdata.vr_tx_cons; in vr_txeof() 1449 if (cons == prod) in vr_txeof() 1461 for (; cons != prod; VR_INC(cons, VR_TX_RING_CNT)) { in vr_txeof() 1490 VR_INC(cons, VR_TX_RING_CNT); in vr_txeof() 1491 sc->vr_cdata.vr_tx_cons = cons; in vr_txeof() 1508 sc->vr_cdata.vr_tx_cons = cons; in vr_txeof() [all …]
|
/freebsd/sbin/dhclient/ |
H A D | tree.c | 49 cons(caddr_t car, pair cdr) in cons() function
|