Home
last modified time | relevance | path

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

1234

/freebsd/stand/common/
H A Dconsole.c76 int cons; in cons_probe() local
92 for (cons = 0; consoles[cons] != NULL; cons++) { in cons_probe()
93 consoles[cons]->c_flags = 0; 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()
99 consoles[cons]->c_flags = 0; in cons_probe()
100 consoles[cons]->c_probe(consoles[cons]); in cons_probe()
101 if (consoles[cons]->c_flags == (C_PRESENTIN | C_PRESENTOUT)) in cons_probe()
102 active = cons; in cons_probe()
122 for (cons = 0; consoles[cons] != NULL; cons++) in cons_probe()
[all …]
/freebsd/sys/dev/xen/console/
H A Dxen_console.c67 typedef void xencons_early_init_t(struct xencons_priv *cons);
70 typedef int xencons_read_t(struct xencons_priv *cons, char *buffer,
72 typedef int xencons_write_t(struct xencons_priv *cons, const char *buffer,
202 static inline void xencons_lock(struct xencons_priv *cons) in xencons_lock() argument
206 mtx_lock_spin(&cons->mtx); in xencons_lock()
210 static inline void xencons_unlock(struct xencons_priv *cons) in xencons_unlock() argument
214 mtx_unlock_spin(&cons->mtx); in xencons_unlock()
217 #define xencons_lock_assert(cons) mtx_assert(&(cons)->mtx, MA_OWNED) argument
221 xencons_early_init_hypervisor(struct xencons_priv *cons) in xencons_early_init_hypervisor() argument
233 struct xencons_priv *cons; in xencons_init_hypervisor() local
[all …]
/freebsd/sys/dev/nvme/
H A Dnvme.c115 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/sys/dev/bnxt/bnxt_en/
H A Dbnxt_txrx.c191 uint32_t cons = cpr->cons; in bnxt_isc_txd_credits_update() local
199 last_cons = cons; in bnxt_isc_txd_credits_update()
201 NEXT_CP_CONS_V(&cpr->ring, cons, v_bit); in bnxt_isc_txd_credits_update()
202 CMPL_PREFETCH_NEXT(cpr, cons); in bnxt_isc_txd_credits_update()
204 if (!CMP_VALID(&cmpl[cons], v_bit)) in bnxt_isc_txd_credits_update()
207 type = cmpl[cons].flags_type & TX_CMPL_TYPE_MASK; in bnxt_isc_txd_credits_update()
210 err = (le16toh(cmpl[cons].errors_v) & in bnxt_isc_txd_credits_update()
217 avail += cmpl[cons].opaque >> 24; in bnxt_isc_txd_credits_update()
228 NEXT_CP_CONS_V(&cpr->ring, cons, v_bit); in bnxt_isc_txd_credits_update()
229 if (!CMP_VALID(&cmpl[cons], v_bit)) in bnxt_isc_txd_credits_update()
[all …]
/freebsd/usr.bin/fstat/
H A Dfuser.c127 printflags(struct consumer *cons) in printflags() argument
131 assert(cons); in printflags()
133 if ((cons->uflags & uflags[i].flag) != 0) in printflags()
136 if ((cons->flags & fflags[i].flag) != 0) in printflags()
287 struct consumer *cons; in dofiles() local
325 STAILQ_FOREACH(cons, &reqfiles[i].consumers, next) in dofiles()
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()
337 cons = calloc(1, sizeof(struct consumer)); in dofiles()
[all …]
/freebsd/contrib/tcsh/
H A Dcsh-mode.el202 (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 Dserver.c77 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 Dxenstore.c387 xs_check_indexes(XENSTORE_RING_IDX cons, XENSTORE_RING_IDX prod) in xs_check_indexes() argument
390 return ((prod - cons) <= XENSTORE_RING_SIZE); in xs_check_indexes()
405 xs_get_output_chunk(XENSTORE_RING_IDX cons, XENSTORE_RING_IDX prod, in xs_get_output_chunk() argument
410 if ((XENSTORE_RING_SIZE - (prod - cons)) < *len) in xs_get_output_chunk()
411 *len = XENSTORE_RING_SIZE - (prod - cons); in xs_get_output_chunk()
427 xs_get_input_chunk(XENSTORE_RING_IDX cons, XENSTORE_RING_IDX prod, in xs_get_input_chunk() argument
431 *len = XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(cons); in xs_get_input_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()
[all …]
/freebsd/lib/libc/gen/
H A Dgetttyent.c71 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 Dring.h444 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 Dt4_mp_ring.c348 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 Dopenssl-rsautl.pod.in167 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 Dopenssl-asn1parse.pod.in119 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/tools/test/buf_ring/
H A Dbuf_ring_test.c222 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/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/sys/arm64/iommu/
H A Dsmmu.c230 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 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()
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 Dqplib_res.h182 - 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 Dqplib_fp.h402 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 Dcomconsole.c81 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 Dif_sge.c1140 int cons, prog; in sge_rxeof() local
1149 cons = cd->sge_rx_cons; in sge_rxeof()
1151 SGE_INC(cons, SGE_RX_RING_CNT)) { in sge_rxeof()
1154 cur_rx = &sc->sge_ldata.sge_rx_ring[cons]; in sge_rxeof()
1166 sge_discard_rxbuf(sc, cons); in sge_rxeof()
1170 m = cd->sge_rxdesc[cons].rx_m; in sge_rxeof()
1171 if (sge_newbuf(sc, cons) != 0) { in sge_rxeof()
1172 sge_discard_rxbuf(sc, cons); in sge_rxeof()
1215 cd->sge_rx_cons = cons; in sge_rxeof()
1231 int cons, nsegs, prod; in sge_txeof() local
[all …]
/freebsd/sys/dev/qlnx/qlnxr/
H A Dqlnxr_cm.c816 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 Drunconsoles.c252 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 Dif_nge.c1437 int cons, prog, rx_npkts, total_len; in nge_rxeof() local
1443 cons = sc->nge_cdata.nge_rx_cons; in nge_rxeof()
1452 NGE_INC(cons, NGE_RX_RING_CNT)) { in nge_rxeof()
1460 cur_rx = &sc->nge_rdata.nge_rx_ring[cons]; in nge_rxeof()
1466 rxd = &sc->nge_cdata.nge_rxdesc[cons]; in nge_rxeof()
1471 if (nge_newbuf(sc, cons) != 0) { in nge_rxeof()
1477 nge_discard_rxbuf(sc, cons); in nge_rxeof()
1514 nge_discard_rxbuf(sc, cons); in nge_rxeof()
1521 if (nge_newbuf(sc, cons) != 0) { in nge_rxeof()
1527 nge_discard_rxbuf(sc, cons); in nge_rxeof()
[all …]
/freebsd/sys/dev/vr/
H A Dif_vr.c1292 int cons, prog, total_len, rx_npkts; in vr_rxeof() local
1297 cons = sc->vr_cdata.vr_rx_cons; in vr_rxeof()
1304 for (prog = 0; prog < VR_RX_RING_CNT; VR_INC(cons, VR_RX_RING_CNT)) { in vr_rxeof()
1312 cur_rx = &sc->vr_rdata.vr_rx_ring[cons]; in vr_rxeof()
1319 rxd = &sc->vr_cdata.vr_rxdesc[cons]; in vr_rxeof()
1355 if (vr_newbuf(sc, cons) != 0) { in vr_rxeof()
1419 sc->vr_cdata.vr_rx_cons = cons; in vr_rxeof()
1438 int cons, prod; in vr_txeof() local
1442 cons = sc->vr_cdata.vr_tx_cons; in vr_txeof()
1444 if (cons == prod) in vr_txeof()
[all …]

1234