| /freebsd/stand/common/ |
| H A D | console.c | 95 int cons; in cons_probe() local 111 for (cons = 0; consoles[cons] != NULL; cons++) { in cons_probe() 112 consoles[cons]->c_flags = 0; in cons_probe() 113 consoles[cons]->c_probe(consoles[cons]); in cons_probe() 117 for (cons = 0; consoles[cons] != NULL && active == -1; cons++) { in cons_probe() 118 consoles[cons]->c_flags = 0; in cons_probe() 119 consoles[cons]->c_probe(consoles[cons]); in cons_probe() 120 if (consoles[cons]->c_flags == (C_PRESENTIN | C_PRESENTOUT)) in cons_probe() 121 active = cons; in cons_probe() 141 for (cons = 0; consoles[cons] != NULL; cons++) in cons_probe() [all …]
|
| /freebsd/sys/dev/xen/console/ |
| H A D | xen_console.c | 66 typedef void xencons_early_init_t(struct xencons_priv *cons); 69 typedef int xencons_read_t(struct xencons_priv *cons, char *buffer, 71 typedef int xencons_write_t(struct xencons_priv *cons, const char *buffer, 201 static inline void xencons_lock(struct xencons_priv *cons) in xencons_lock() argument 205 mtx_lock_spin(&cons->mtx); in xencons_lock() 209 static inline void xencons_unlock(struct xencons_priv *cons) in xencons_unlock() argument 213 mtx_unlock_spin(&cons->mtx); in xencons_unlock() 216 #define xencons_lock_assert(cons) mtx_assert(&(cons)->mtx, MA_OWNED) argument 220 xencons_early_init_hypervisor(struct xencons_priv *cons) in xencons_early_init_hypervisor() argument 232 struct xencons_priv *cons; in xencons_init_hypervisor() local [all …]
|
| /freebsd/sys/dev/bnxt/bnxt_en/ |
| H A D | bnxt_txrx.c | 217 uint32_t cons = cpr->cons; in bnxt_isc_txd_credits_update() local 227 last_cons = cons; in bnxt_isc_txd_credits_update() 231 NEXT_CP_CONS_V(&cpr->ring, cons, v_bit); in bnxt_isc_txd_credits_update() 233 CMPL_PREFETCH_NEXT(cpr, cons); in bnxt_isc_txd_credits_update() 235 if (!CMP_VALID(&cmpl[cons], v_bit)) in bnxt_isc_txd_credits_update() 238 type = cmpl[cons].flags_type & TX_CMPL_TYPE_MASK; in bnxt_isc_txd_credits_update() 241 err = (le16toh(cmpl[cons].errors_v) & in bnxt_isc_txd_credits_update() 248 avail += cmpl[cons].opaque >> 24; in bnxt_isc_txd_credits_update() 259 NEXT_CP_CONS_V(&cpr->ring, cons, v_bit); in bnxt_isc_txd_credits_update() 261 if (!CMP_VALID(&cmpl[cons], v_bit)) { in bnxt_isc_txd_credits_update() [all …]
|
| H A D | if_bnxt.c | 1345 ((cpr->cons == UINT32_MAX) ? 0 : in bnxt_cuw_db_cq() 1346 (cpr->cons | CMPL_DOORBELL_IDX_VALID)) | in bnxt_cuw_db_cq() 1381 uint32_t cons = cpr->cons; in bnxt_thor_db_rx_cq() local 1383 if (cons == UINT32_MAX) in bnxt_thor_db_rx_cq() 1384 cons = 0; in bnxt_thor_db_rx_cq() 1386 cons = RING_NEXT(&cpr->ring, cons); in bnxt_thor_db_rx_cq() 1388 db_msg.index = ((cons << DBC_DBC_INDEX_SFT) & DBC_DBC_INDEX_MASK); in bnxt_thor_db_rx_cq() 1407 uint32_t cons = cpr->cons; in bnxt_thor_db_tx_cq() local 1409 db_msg.index = ((cons << DBC_DBC_INDEX_SFT) & DBC_DBC_INDEX_MASK); in bnxt_thor_db_tx_cq() 1428 uint32_t cons = cpr->cons; in bnxt_thor_db_nq() local [all …]
|
| /freebsd/usr.bin/fstat/ |
| H A D | fuser.c | 125 printflags(struct consumer *cons) in printflags() argument 129 assert(cons); in printflags() 131 if ((cons->uflags & uflags[i].flag) != 0) in printflags() 134 if ((cons->flags & fflags[i].flag) != 0) in printflags() 276 struct consumer *cons; in dofiles() local 314 STAILQ_FOREACH(cons, &reqfiles[i].consumers, next) in dofiles() 315 if (cons->pid == kp->ki_pid) { in dofiles() 320 cons->flags |= fst->fs_fflags; in dofiles() 321 cons->uflags |= fst->fs_uflags; in dofiles() 326 cons = calloc(1, sizeof(struct consumer)); in dofiles() [all …]
|
| /freebsd/contrib/tcsh/ |
| H A D | csh-mode.el | 202 (cons (concat "^[^#\n]*\".*\\(\\$[][0-9A-Za-z_#:?]+\\).*" 213 (cons (concat 302 (nest-list (cons 0 0)) ;; sentinel cons since cdr is >= 1 314 (setq balance-list (cons (point) balance-list)) 325 (cons nest-column (csh-current-line))) 349 (setq level (cons (current-indentation) 355 (cons (current-indentation) (csh-current-line)) 765 (list (cons completion type))))) 863 (cons "break" csh-completion-type-misc) 864 (cons "breaksw" 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/sys/dev/xen/xenstore/ |
| H A D | xenstore.c | 386 xs_check_indexes(XENSTORE_RING_IDX cons, XENSTORE_RING_IDX prod) in xs_check_indexes() argument 389 return ((prod - cons) <= XENSTORE_RING_SIZE); in xs_check_indexes() 404 xs_get_output_chunk(XENSTORE_RING_IDX cons, XENSTORE_RING_IDX prod, in xs_get_output_chunk() argument 409 if ((XENSTORE_RING_SIZE - (prod - cons)) < *len) in xs_get_output_chunk() 410 *len = XENSTORE_RING_SIZE - (prod - cons); in xs_get_output_chunk() 426 xs_get_input_chunk(XENSTORE_RING_IDX cons, XENSTORE_RING_IDX prod, in xs_get_input_chunk() argument 430 *len = XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(cons); in xs_get_input_chunk() 431 if ((prod - cons) < *len) in xs_get_input_chunk() 432 *len = prod - cons; in xs_get_input_chunk() 433 return (buf + MASK_XENSTORE_IDX(cons)); in xs_get_input_chunk() [all …]
|
| /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/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 | 347 int i, nospc, cons; in mp_ring_enqueue() 381 cons = -1; in mp_ring_enqueue() 387 cons = C_FAST; in mp_ring_enqueue() 390 cons = C_2; in mp_ring_enqueue() 393 cons = C_TAKEOVER; in mp_ring_enqueue() 406 if (cons == C_FAST) { in mp_ring_enqueue() 450 MPASS(cons == -1); in mp_ring_enqueue() 457 if (cons == -1) { in mp_ring_enqueue() 459 cons = C_3; in mp_ring_enqueue() 465 MPASS(cons > C_FAS in mp_ring_enqueue() 348 int i, nospc, cons; mp_ring_enqueue() local [all...] |
| /freebsd/crypto/openssl/ssl/quic/ |
| H A D | quic_record_tx.c | 90 TXE *cons; member 155 OPENSSL_free(qtx->cons); in ossl_qtx_free() 295 if (qtx->cons == txe) in qtx_resize_txe() 296 qtx->cons = txe2; in qtx_resize_txe() 732 TXE *txe = qtx->cons; in qtx_ensure_cons() 742 qtx->cons = txe; in qtx_ensure_cons() 818 was_coalescing = (qtx->cons != NULL && qtx->cons->data_len > 0); in ossl_qtx_write_pkt() 820 if (!addr_eq(&qtx->cons->peer, pkt->peer) in ossl_qtx_write_pkt() 821 || !addr_eq(&qtx->cons in ossl_qtx_write_pkt() [all...] |
| /freebsd/tools/test/buf_ring/ |
| H A D | buf_ring_test.c | 222 pthread_t cons[2]; in main() local 290 ret = pthread_create(&cons[0], NULL, consumer, NULL); in main() 293 ret = pthread_create(&cons[1], NULL, consumer, NULL); in main() 309 ret = pthread_join(cons[0], NULL); in main() 312 ret = pthread_join(cons[1], NULL); in main()
|
| /freebsd/crypto/openssl/doc/man1/ |
| H A D | openssl-rsautl.pod.in | 174 0:d=0 hl=4 l= 742 cons: SEQUENCE 175 4:d=1 hl=4 l= 591 cons: SEQUENCE 176 8:d=2 hl=2 l= 3 cons: cont [ 0 ] 179 16:d=2 hl=2 l= 13 cons: SEQUENCE 182 31:d=2 hl=2 l= 92 cons: SEQUENCE 183 33:d=3 hl=2 l= 11 cons: SET 184 35:d=4 hl=2 l= 9 cons: SEQUENCE 188 599:d=1 hl=2 l= 13 cons: SEQUENCE 206 0:d=0 hl=2 l= 32 cons: SEQUENCE 207 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 | 230 if (Q_IDX(q, q->lc.cons) != Q_IDX(q, q->lc.prod) || in smmu_q_has_space() 231 Q_WRP(q, q->lc.cons) == Q_WRP(q, q->lc.prod)) in smmu_q_has_space() 241 if (Q_IDX(q, q->lc.cons) == Q_IDX(q, q->lc.prod) && in smmu_q_empty() 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() [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() 321 if ((u32) (ring->prod - ring->cons) > ring->size) { 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() [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() 647 key = info->hwq->cons | (CMPL_DOORBELL_IDX_VALID | in bnxt_qplib_ring_db32() 706 indx = ((info->hwq->cons & DBC_DBC_INDEX_MASK) | in bnxt_qplib_ring_db()
|
| H A D | qplib_fp.h | 404 int cons, prod, avail; in __bnxt_qplib_get_avail() local 407 cons = hwq->cons; in __bnxt_qplib_get_avail() 409 avail = cons - prod; in __bnxt_qplib_get_avail() 410 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 | 1138 int cons, prog; in sge_rxeof() local 1147 cons = cd->sge_rx_cons; in sge_rxeof() 1149 SGE_INC(cons, SGE_RX_RING_CNT)) { in sge_rxeof() 1152 cur_rx = &sc->sge_ldata.sge_rx_ring[cons]; in sge_rxeof() 1164 sge_discard_rxbuf(sc, cons); in sge_rxeof() 1168 m = cd->sge_rxdesc[cons].rx_m; in sge_rxeof() 1169 if (sge_newbuf(sc, cons) != 0) { in sge_rxeof() 1170 sge_discard_rxbuf(sc, cons); in sge_rxeof() 1213 cd->sge_rx_cons = cons; in sge_rxeof() 1229 int cons, nsegs, prod; in sge_txeof() local [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/sys/dev/nge/ |
| H A D | if_nge.c | 1433 int cons, prog, rx_npkts, total_len; in nge_rxeof() local 1439 cons = sc->nge_cdata.nge_rx_cons; in nge_rxeof() 1448 NGE_INC(cons, NGE_RX_RING_CNT)) { in nge_rxeof() 1456 cur_rx = &sc->nge_rdata.nge_rx_ring[cons]; in nge_rxeof() 1462 rxd = &sc->nge_cdata.nge_rxdesc[cons]; in nge_rxeof() 1467 if (nge_newbuf(sc, cons) != 0) { in nge_rxeof() 1473 nge_discard_rxbuf(sc, cons); in nge_rxeof() 1510 nge_discard_rxbuf(sc, cons); in nge_rxeof() 1517 if (nge_newbuf(sc, cons) != 0) { in nge_rxeof() 1523 nge_discard_rxbuf(sc, cons); in nge_rxeof() [all …]
|
| /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()
|