Home
last modified time | relevance | path

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

12345

/NextBSD/sys/boot/common/
HDconsole.c52 int cons; in cons_probe() local
60 for (cons = 0; consoles[cons] != NULL; cons++) { in cons_probe()
61 consoles[cons]->c_flags = 0; 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()
67 consoles[cons]->c_flags = 0; in cons_probe()
68 consoles[cons]->c_probe(consoles[cons]); in cons_probe()
69 if (consoles[cons]->c_flags == (C_PRESENTIN | C_PRESENTOUT)) in cons_probe()
70 active = cons; in cons_probe()
90 for (cons = 0; consoles[cons] != NULL; cons++) in cons_probe()
[all …]
/NextBSD/sys/dev/xen/console/
HDxen_console.c65 typedef void xencons_early_init_t(struct xencons_priv *cons);
68 typedef int xencons_read_t(struct xencons_priv *cons, char *buffer,
70 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 …]
/NextBSD/crypto/openssl/crypto/pem/
HDpkcs7.lis1 21 0:d=0 hl=2 l= 0 cons: univ: SEQUENCE
3 21 13:d=0 hl=2 l= 0 cons: cont: 00 # explicit tag
4 21 15:d=0 hl=2 l= 0 cons: univ: SEQUENCE
6 20 20:d=0 hl=2 l= 0 cons: univ: SET
7 21 22:d=0 hl=2 l= 0 cons: univ: SEQUENCE
10 21 37:d=0 hl=2 l= 0 cons: cont: 00 # cert tag
11 20 39:d=0 hl=4 l=545 cons: univ: SEQUENCE
12 20 588:d=0 hl=4 l=524 cons: univ: SEQUENCE
14 21 1118:d=0 hl=2 l= 0 cons: cont: 01 # crl tag
15 20 1120:d=0 hl=4 l=653 cons: univ: SEQUENCE
[all …]
/NextBSD/sys/dev/nvme/
HDnvme.c294 nvme_notify(struct nvme_consumer *cons, in nvme_notify() argument
316 if (cons->ctrlr_fn != NULL) in nvme_notify()
317 ctrlr_cookie = (*cons->ctrlr_fn)(ctrlr); in nvme_notify()
320 ctrlr->cons_cookie[cons->id] = ctrlr_cookie; in nvme_notify()
322 if (cons->fail_fn != NULL) in nvme_notify()
323 (*cons->fail_fn)(ctrlr_cookie); in nvme_notify()
332 if (cons->ns_fn != NULL) in nvme_notify()
333 ns->cons_cookie[cons->id] = in nvme_notify()
334 (*cons->ns_fn)(ns, ctrlr_cookie); in nvme_notify()
351 nvme_notify_new_consumer(struct nvme_consumer *cons) in nvme_notify_new_consumer() argument
[all …]
/NextBSD/usr.bin/fstat/
HDfuser.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()
288 struct consumer *cons; in dofiles() local
326 STAILQ_FOREACH(cons, &reqfiles[i].consumers, next) in dofiles()
327 if (cons->pid == kp->ki_pid) { in dofiles()
332 cons->flags |= fst->fs_fflags; in dofiles()
333 cons->uflags |= fst->fs_uflags; in dofiles()
338 cons = calloc(1, sizeof(struct consumer)); in dofiles()
[all …]
/NextBSD/contrib/tcsh/
HDcsh-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 …]
/NextBSD/usr.sbin/bluetooth/bthidd/
HDserver.c74 srv->cons = open("/dev/consolectl", O_RDWR); in server_init()
75 if (srv->cons < 0) { in server_init()
86 close(srv->cons); in server_init()
101 close(srv->cons); in server_init()
109 close(srv->cons); in server_init()
119 close(srv->cons); in server_init()
130 close(srv->cons); in server_init()
139 close(srv->cons); in server_init()
159 close(srv->cons); in server_shutdown()
/NextBSD/lib/libc/gen/
HDgetttyent.c74 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()
/NextBSD/sys/dev/xen/xenstore/
HDxenstore.c403 xs_check_indexes(XENSTORE_RING_IDX cons, XENSTORE_RING_IDX prod) in xs_check_indexes() argument
406 return ((prod - cons) <= XENSTORE_RING_SIZE); in xs_check_indexes()
421 xs_get_output_chunk(XENSTORE_RING_IDX cons, XENSTORE_RING_IDX prod, in xs_get_output_chunk() argument
426 if ((XENSTORE_RING_SIZE - (prod - cons)) < *len) in xs_get_output_chunk()
427 *len = XENSTORE_RING_SIZE - (prod - cons); in xs_get_output_chunk()
443 xs_get_input_chunk(XENSTORE_RING_IDX cons, XENSTORE_RING_IDX prod, in xs_get_input_chunk() argument
447 *len = XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(cons); in xs_get_input_chunk()
448 if ((prod - cons) < *len) in xs_get_input_chunk()
449 *len = prod - cons; in xs_get_input_chunk()
450 return (buf + MASK_XENSTORE_IDX(cons)); in xs_get_input_chunk()
[all …]
/NextBSD/crypto/openssl/doc/apps/
HDrsautl.pod129 0:d=0 hl=4 l= 742 cons: SEQUENCE
130 4:d=1 hl=4 l= 591 cons: SEQUENCE
131 8:d=2 hl=2 l= 3 cons: cont [ 0 ]
134 16:d=2 hl=2 l= 13 cons: SEQUENCE
137 31:d=2 hl=2 l= 92 cons: SEQUENCE
138 33:d=3 hl=2 l= 11 cons: SET
139 35:d=4 hl=2 l= 9 cons: SEQUENCE
143 599:d=1 hl=2 l= 13 cons: SEQUENCE
161 0:d=0 hl=2 l= 32 cons: SEQUENCE
162 2:d=1 hl=2 l= 12 cons: SEQUENCE
HDasn1parse.pod97 0:d=0 hl=4 l= 681 cons: SEQUENCE
102 373:d=2 hl=3 l= 162 cons: cont [ 3 ]
103 376:d=3 hl=3 l= 159 cons: SEQUENCE
104 379:d=4 hl=2 l= 29 cons: SEQUENCE
107 410:d=4 hl=2 l= 112 cons: SEQUENCE
110 524:d=4 hl=2 l= 12 cons: SEQUENCE
128 0:d=0 hl=3 l= 137 cons: SEQUENCE
/NextBSD/sys/kern/
HDsubr_bufring.c564 uint32_t prod_head, prod_next, cons; in buf_ring_sc_enqueue() local
595 cons = br->br_cons; in buf_ring_sc_enqueue()
596 cidx = BR_INDEX(br, cons); in buf_ring_sc_enqueue()
731 uint32_t cons; in buf_ring_sc_peek() local
741 cons = BR_CONS_IDX(br); in buf_ring_sc_peek()
743 if ((inuse = brsc_get_inuse(br, cons, prod_tail, BR_GEN(br))) == 0) in buf_ring_sc_peek()
749 ents[i] = brsc_entry_get(br, BR_INDEX(br, cons + i)); in buf_ring_sc_peek()
787 uint32_t cons, cons_next; in buf_ring_sc_advance() local
796 cons = BR_CONS_IDX(br); in buf_ring_sc_advance()
798 cons_next = BR_INDEX(br, cons + count); in buf_ring_sc_advance()
[all …]
/NextBSD/sys/dev/ifmlx4/
HDen_tx.c218 ring->cons = 0xffffffff; in mlx4_en_activate_tx_ring()
345 ring->cons += ring->last_nr_txbb; in mlx4_en_free_tx_buf()
347 ring->cons, ring->prod); in mlx4_en_free_tx_buf()
349 if ((u32) (ring->prod - ring->cons) > ring->size) { in mlx4_en_free_tx_buf()
354 while (ring->cons != ring->prod) { in mlx4_en_free_tx_buf()
356 ring->cons & ring->size_mask, in mlx4_en_free_tx_buf()
357 !!(ring->cons & ring->size), 0); in mlx4_en_free_tx_buf()
358 ring->cons += ring->last_nr_txbb; in mlx4_en_free_tx_buf()
395 ring_index = ring->cons & size_mask; in mlx4_en_process_tx_cq()
424 !!((ring->cons + txbbs_skipped) & in mlx4_en_process_tx_cq()
[all …]
HDen_rx.c207 ring->cons, ring->prod); in mlx4_en_free_rx_buf()
210 BUG_ON((u32) (ring->prod - ring->cons) > ring->actual_size); in mlx4_en_free_rx_buf()
211 while (ring->cons != ring->prod) { in mlx4_en_free_rx_buf()
212 index = ring->cons & ring->size_mask; in mlx4_en_free_rx_buf()
215 ++ring->cons; in mlx4_en_free_rx_buf()
284 ring->cons = 0; in mlx4_en_create_rx_ring()
342 ring->cons = 0; in mlx4_en_activate_rx_rings()
666 ring->cons = mcq->cons_index; in mlx4_en_process_rx_cq()
/NextBSD/sys/arm/lpc/
HDif_lpe.c742 int prod, cons; in lpe_rxintr() local
746 cons = lpe_read_4(sc, LPE_RXDESC_CONS); in lpe_rxintr()
748 if (prod == cons) in lpe_rxintr()
751 rxd = &sc->lpe_cdata.lpe_rx_desc[cons]; in lpe_rxintr()
752 hwd = &sc->lpe_rdata.lpe_rx_ring[cons]; in lpe_rxintr()
753 hws = &sc->lpe_rdata.lpe_rx_status[cons]; in lpe_rxintr()
758 lpe_discard_rxbuf(sc, cons); in lpe_rxintr()
759 lpe_init_rxbuf(sc, cons); in lpe_rxintr()
773 lpe_init_rxbuf(sc, cons); in lpe_rxintr()
775 LPE_INC(cons, LPE_RXDESC_NUM); in lpe_rxintr()
[all …]
/NextBSD/sys/ofed/drivers/net/mlx4/
HDen_tx.c247 ring->cons = 0xffffffff; in mlx4_en_activate_tx_ring()
340 ring->cons += ring->last_nr_txbb; in mlx4_en_free_tx_buf()
342 ring->cons, ring->prod); in mlx4_en_free_tx_buf()
344 if ((u32) (ring->prod - ring->cons) > ring->size) { in mlx4_en_free_tx_buf()
349 while (ring->cons != ring->prod) { in mlx4_en_free_tx_buf()
351 ring->cons & ring->size_mask); in mlx4_en_free_tx_buf()
352 ring->cons += ring->last_nr_txbb; in mlx4_en_free_tx_buf()
366 wqs = ring->size - (ring->prod - ring->cons); in mlx4_en_tx_ring_is_full()
392 ring_index = ring->cons & size_mask; in mlx4_en_process_tx_cq()
422 !!((ring->cons + txbbs_stamp) & in mlx4_en_process_tx_cq()
[all …]
HDen_rx.c237 ring->cons, ring->prod); in mlx4_en_free_rx_buf()
240 BUG_ON((u32) (ring->prod - ring->cons) > ring->actual_size); in mlx4_en_free_rx_buf()
241 while (ring->cons != ring->prod) { in mlx4_en_free_rx_buf()
242 index = ring->cons & ring->size_mask; in mlx4_en_free_rx_buf()
245 ++ring->cons; in mlx4_en_free_rx_buf()
307 ring->cons = 0; in mlx4_en_create_rx_ring()
384 ring->cons = 0; in mlx4_en_activate_rx_rings()
680 ring->cons = mcq->cons_index; in mlx4_en_process_rx_cq()
/NextBSD/sys/dev/xen/netfront/
HDnetfront.c152 struct netfront_rx_info *rinfo, RING_IDX rp, RING_IDX *cons,
1079 struct netif_extra_info *extras, RING_IDX rp, RING_IDX *cons) in xennet_get_extras() argument
1089 if (__predict_false(*cons + 1 == rp)) { in xennet_get_extras()
1099 RING_GET_RESPONSE(&np->rx, ++(*cons)); in xennet_get_extras()
1113 m = xennet_get_rx_mbuf(np, *cons); in xennet_get_extras()
1114 ref = xennet_get_rx_ref(np, *cons); in xennet_get_extras()
1123 struct netfront_rx_info *rinfo, RING_IDX rp, RING_IDX *cons, in xennet_get_responses() argument
1129 grant_ref_t ref = xennet_get_rx_ref(np, *cons); in xennet_get_responses()
1130 RING_IDX ref_cons = *cons; in xennet_get_responses()
1135 m0 = m = m_prev = xennet_get_rx_mbuf(np, *cons); in xennet_get_responses()
[all …]
/NextBSD/sys/mips/idt/
HDif_kr.c1366 int cons, prod; in kr_tx() local
1370 cons = sc->kr_cdata.kr_tx_cons; in kr_tx()
1372 if (cons == prod) in kr_tx()
1384 for (; cons != prod; KR_INC(cons, KR_TX_RING_CNT)) { in kr_tx()
1385 cur_tx = &sc->kr_rdata.kr_tx_ring[cons]; in kr_tx()
1395 txd = &sc->kr_cdata.kr_txdesc[cons]; in kr_tx()
1423 sc->kr_cdata.kr_tx_cons = cons; in kr_tx()
1435 int cons, prog, packet_len, count, error; in kr_rx() local
1441 cons = sc->kr_cdata.kr_rx_cons; in kr_rx()
1447 for (prog = 0; prog < KR_RX_RING_CNT; KR_INC(cons, KR_RX_RING_CNT)) { in kr_rx()
[all …]
/NextBSD/sys/boot/pc98/libpc98/
HDcomconsole.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()
/NextBSD/sys/boot/i386/libi386/
HDcomconsole.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()
/NextBSD/sys/dev/sge/
HDif_sge.c1147 int cons, prog; in sge_rxeof() local
1156 cons = cd->sge_rx_cons; in sge_rxeof()
1158 SGE_INC(cons, SGE_RX_RING_CNT)) { in sge_rxeof()
1161 cur_rx = &sc->sge_ldata.sge_rx_ring[cons]; in sge_rxeof()
1173 sge_discard_rxbuf(sc, cons); in sge_rxeof()
1177 m = cd->sge_rxdesc[cons].rx_m; in sge_rxeof()
1178 if (sge_newbuf(sc, cons) != 0) { in sge_rxeof()
1179 sge_discard_rxbuf(sc, cons); in sge_rxeof()
1222 cd->sge_rx_cons = cons; in sge_rxeof()
1238 int cons, nsegs, prod; in sge_txeof() local
[all …]
/NextBSD/sys/dev/nge/
HDif_nge.c1444 int cons, prog, rx_npkts, total_len; in nge_rxeof() local
1450 cons = sc->nge_cdata.nge_rx_cons; in nge_rxeof()
1459 NGE_INC(cons, NGE_RX_RING_CNT)) { in nge_rxeof()
1467 cur_rx = &sc->nge_rdata.nge_rx_ring[cons]; in nge_rxeof()
1473 rxd = &sc->nge_cdata.nge_rxdesc[cons]; in nge_rxeof()
1478 if (nge_newbuf(sc, cons) != 0) { in nge_rxeof()
1484 nge_discard_rxbuf(sc, cons); in nge_rxeof()
1521 nge_discard_rxbuf(sc, cons); in nge_rxeof()
1528 if (nge_newbuf(sc, cons) != 0) { in nge_rxeof()
1534 nge_discard_rxbuf(sc, cons); in nge_rxeof()
[all …]
/NextBSD/sys/dev/vr/
HDif_vr.c1287 int cons, prog, total_len, rx_npkts; in vr_rxeof() local
1292 cons = sc->vr_cdata.vr_rx_cons; in vr_rxeof()
1299 for (prog = 0; prog < VR_RX_RING_CNT; VR_INC(cons, VR_RX_RING_CNT)) { in vr_rxeof()
1307 cur_rx = &sc->vr_rdata.vr_rx_ring[cons]; in vr_rxeof()
1314 rxd = &sc->vr_cdata.vr_rxdesc[cons]; in vr_rxeof()
1350 if (vr_newbuf(sc, cons) != 0) { in vr_rxeof()
1414 sc->vr_cdata.vr_rx_cons = cons; in vr_rxeof()
1433 int cons, prod; in vr_txeof() local
1437 cons = sc->vr_cdata.vr_tx_cons; in vr_txeof()
1439 if (cons == prod) in vr_txeof()
[all …]
/NextBSD/sys/dev/stge/
HDif_stge.c1533 int cons; in stge_txeof() local
1549 for (cons = sc->sc_cdata.stge_tx_cons;; in stge_txeof()
1550 cons = (cons + 1) % STGE_TX_RING_CNT) { in stge_txeof()
1553 control = le64toh(sc->sc_rdata.stge_tx_ring[cons].tfd_control); in stge_txeof()
1570 sc->sc_cdata.stge_tx_cons = cons; in stge_txeof()
1640 int cons, prog, rx_npkts; in stge_rxeof() local
1651 for (cons = sc->sc_cdata.stge_rx_cons; prog < STGE_RX_RING_CNT; in stge_rxeof()
1652 prog++, cons = (cons + 1) % STGE_RX_RING_CNT) { in stge_rxeof()
1653 status64 = le64toh(sc->sc_rdata.stge_rx_ring[cons].rfd_status); in stge_rxeof()
1665 rxd = &sc->sc_cdata.stge_rxdesc[cons]; in stge_rxeof()
[all …]

12345