| /freebsd/sys/dev/xen/console/ |
| H A D | xen_console.c | 41 #include <sys/cons.h> 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 [all …]
|
| /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/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 …]
|
| /freebsd/sys/dev/nvme/ |
| H A D | nvme.c | 115 nvme_notify(struct nvme_consumer *cons, in nvme_notify() argument 136 if (cons->ctrlr_fn != NULL) in nvme_notify() 137 ctrlr_cookie = (*cons->ctrlr_fn)(ctrlr); in nvme_notify() 140 ctrlr->cons_cookie[cons->id] = ctrlr_cookie; in nvme_notify() 149 ctrlr->cons_cookie[cons->id] = NULL; in nvme_notify() 150 if (cons->fail_fn != NULL) in nvme_notify() 151 (*cons->fail_fn)(ctrlr_cookie); in nvme_notify() 162 if (cons->ns_fn != NULL) in nvme_notify() 163 ns->cons_cookie[cons->id] = in nvme_notify() 164 (*cons->ns_fn)(ns, ctrlr_cookie); in nvme_notify() [all …]
|
| /freebsd/crypto/heimdal/lib/asn1/ |
| H A D | test.gen | 5 UNIV CONS Sequence 23 6 CONTEXT CONS 0 3 8 CONTEXT CONS 1 8 9 UNIV CONS Sequence 6 10 CONTEXT CONS 127 3 13 CONTEXT CONS 2 3
|
| H A D | check-gen.c | 952 UNIV CONS Sequence 14 in test_taglessalloc() 954 CONTEXT CONS 1 6 in test_taglessalloc() 955 CONTEXT CONS 127 3 in test_taglessalloc() 1020 UNIV CONS Sequence 12 in test_optional() 1021 UNIV CONS Sequence 5 in test_optional() 1022 CONTEXT CONS 0 3 in test_optional() 1024 CONTEXT CONS 1 3 in test_optional() 1027 UNIV CONS Sequence 5 in test_optional() 1028 CONTEXT CONS 1 3 in test_optional() 1031 UNIV CONS Sequenc in test_optional() [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/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/secure/usr.bin/openssl/man/ |
| H A D | openssl-rsautl.1 | 232 \& 0:d=0 hl=4 l= 742 cons: SEQUENCE 233 \& 4:d=1 hl=4 l= 591 cons: SEQUENCE 234 \& 8:d=2 hl=2 l= 3 cons: cont [ 0 ] 237 \& 16:d=2 hl=2 l= 13 cons: SEQUENCE 240 \& 31:d=2 hl=2 l= 92 cons: SEQUENCE 241 \& 33:d=3 hl=2 l= 11 cons: SET 242 \& 35:d=4 hl=2 l= 9 cons: SEQUENCE 246 \& 599:d=1 hl=2 l= 13 cons: SEQUENCE 269 \& 0:d=0 hl=2 l= 32 cons: SEQUENCE 270 \& 2:d=1 hl=2 l= 12 cons: SEQUENCE
|
| H A D | openssl-asn1parse.1 | 156 \& 0:d=0 hl=4 l= 681 cons: SEQUENCE 163 \& 373:d=2 hl=3 l= 162 cons: cont [ 3 ] 164 \& 376:d=3 hl=3 l= 159 cons: SEQUENCE 165 \& 379:d=4 hl=2 l= 29 cons: SEQUENCE 168 \& 410:d=4 hl=2 l= 112 cons: SEQUENCE 171 \& 524:d=4 hl=2 l= 12 cons: SEQUENCE 191 \& 0:d=0 hl=3 l= 137 cons: SEQUENCE
|
| /freebsd/tools/test/buf_ring/ |
| H A D | buf_ring_test.c | 193 { "cons-type", required_argument, NULL, 'c' }, 202 …errx(1, "test --cons-type=<mc|mc-mt|sc|peek|peek-clear> --prod-count=<prod thread count> [--buf-si… in usage() 222 pthread_t cons[2]; in main() local 252 errx(1, "Unknown --cons-type: %s", optarg); in main() 271 errx(1, "No cons-type set"); in main() 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/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/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/doc/designs/ |
| H A D | xof.md | 71 ##### Cons l4subsection 92 ##### Cons l4subsection 110 ##### Cons l4subsection 211 #### Cons subsubsection 228 #### Cons subsubsection 246 #### Cons subsubsection 263 #### Cons subsubsection
|
| /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/sys/dev/xen/xenstore/ |
| H A D | xenstore.c | 379 * \param cons The consumer index for the ring to test. 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() 396 * \param cons The consumer index for the ring. 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() 418 * \param cons The consumer index for the ring. 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() [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/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() 730 TXE *txe = qtx->cons; in qtx_ensure_cons() 740 qtx->cons = txe; in qtx_ensure_cons() 816 was_coalescing = (qtx->cons != NULL && qtx->cons->data_len > 0); in ossl_qtx_write_pkt() 818 if (!addr_eq(&qtx->cons->peer, pkt->peer) in ossl_qtx_write_pkt() 819 || !addr_eq(&qtx->cons->local, pkt->local)) { in ossl_qtx_write_pkt() 904 TXE *txe = qtx->cons; in ossl_qtx_finish_dgram() [all …]
|
| /freebsd/crypto/openssl/test/ |
| H A D | pkcs7_test.c | 180 * 0:d=0 hl=4 l=1571 cons: SEQUENCE 182 * 15:d=1 hl=4 l=1556 cons: cont [ 0 ] 183 * 19:d=2 hl=4 l=1552 cons: SEQUENCE 187 * 26:d=3 hl=2 l= 15 cons: SET 188 * 28:d=4 hl=2 l= 13 cons: SEQUENCE 192 * 43:d=3 hl=2 l= 92 cons: SEQUENCE 194 * 57:d=4 hl=2 l= 78 cons: cont [ 0 ] 195 * 59:d=5 hl=2 l= 76 cons: SEQUENCE 196 * 61:d=6 hl=2 l= 23 cons: SEQUENCE 198 * 75:d=7 hl=2 l= 9 cons: SEQUENCE [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() 318 en_dbg(DRV, priv, "Freeing Tx buf - cons:0x%x prod:0x%x\n", 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() [all …]
|
| /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/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/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 528 /* move cons and update toggle/epoch if wrap around */ in bnxt_qplib_hwq_incr_cons() 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()
|
| /freebsd/usr.sbin/bsdinstall/runconsoles/ |
| H A D | runconsoles.c | 252 char *buf, *p, *cons; in read_primary_console() local 257 * NB: Format is "cons,...cons,/cons,...cons,", with the list before in read_primary_console() 286 cons = strdup(buf); in read_primary_console() 288 cons = NULL; in read_primary_console() 292 return (cons); in read_primary_console()
|