Home
last modified time | relevance | path

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

12

/illumos-gate/usr/src/boot/common/
H A Dconsole.c60 for (cons = 0; consoles[cons] != NULL; cons++) { in cons_probe()
90 for (cons = 0; consoles[cons] != NULL; cons++) in cons_probe()
107 for (cons = 0; consoles[cons] != NULL; cons++) { in cons_mode()
128 for (cons = 0; consoles[cons] != NULL; cons++) { in getchar()
142 for (cons = 0; consoles[cons] != NULL; cons++) in ischar()
156 for (cons = 0; consoles[cons] != NULL; cons++) in putchar()
174 for (cons = 0; consoles[cons] != NULL; cons++) in cons_find()
206 for (cons = 0; consoles[cons] != NULL; cons++) { in cons_set()
271 for (cons = 0; consoles[cons] != NULL; cons++) { in cons_check()
293 for (cons = 0; consoles[cons] != NULL; cons++) { in cons_change()
[all …]
/illumos-gate/usr/src/uts/common/xen/io/
H A Dxenbus_comms.c105 return ((prod - cons) <= XENSTORE_RING_SIZE); in check_indexes()
113 if ((XENSTORE_RING_SIZE - (prod - cons)) < *len) in get_output_chunk()
114 *len = XENSTORE_RING_SIZE - (prod - cons); in get_output_chunk()
123 if ((prod - cons) < *len) in get_input_chunk()
124 *len = prod - cons; in get_input_chunk()
134 XENSTORE_RING_IDX cons, prod; in xb_write() local
156 cons = intf->req_cons; in xb_write()
159 if (!check_indexes(cons, prod)) in xb_write()
188 XENSTORE_RING_IDX cons, prod; in xb_read() local
209 cons = intf->rsp_cons; in xb_read()
[all …]
H A Dxencons.c543 XENCONS_RING_IDX cons, prod; in xencons_rxint() local
582 cons = 0; in xencons_rxint()
584 cons = ifp->in_cons; in xencons_rxint()
587 cc = prod - cons; in xencons_rxint()
616 ifp->in_cons = cons + i; in xencons_rxint()
618 cons += i; in xencons_rxint()
675 ifp->in_cons = cons; in xencons_rxint()
867 cons = ifp->out_cons; in xcasync_start()
1343 XENCONS_RING_IDX cons; in xenconsischar() local
1345 cons = ifp->in_cons; in xenconsischar()
[all …]
H A Dxnf.c1432 RING_IDX cons, prod, i; in xnf_tx_clean_ring() local
1434 cons = xnfp->xnf_tx_ring.rsp_cons; in xnf_tx_clean_ring()
1441 DTRACE_PROBE2(xnf_tx_clean_range, int, cons, int, prod); in xnf_tx_clean_ring()
1442 for (i = cons; i != prod; i++) { in xnf_tx_clean_ring()
2277 RING_IDX cons = *consp; in xnf_rx_one_packet() local
2290 while (cons != prod) { in xnf_rx_one_packet()
2293 int rxidx = cons & (NET_RX_RING_SIZE - 1); in xnf_rx_one_packet()
2438 cons++; in xnf_rx_one_packet()
2452 rsp = *RING_GET_RESPONSE(&xnfp->xnf_rx_ring, cons); in xnf_rx_one_packet()
2458 ASSERT3U(*consp, !=, cons); in xnf_rx_one_packet()
[all …]
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dmbftowc.c43 size_t cons = 0; in _mbftowc() local
56 cons = mbrtowc(wc, start, s - start, &mbs); in _mbftowc()
57 if ((int)cons >= 0) { in _mbftowc()
59 return (cons); in _mbftowc()
61 if (cons == (size_t)-2) { in _mbftowc()
71 cons = (s - start); in _mbftowc()
76 return (cons); in _mbftowc()
/illumos-gate/usr/src/cmd/vntsd/
H A Dcmd.c85 assert(clientp->cons); in genbrk()
87 consp = clientp->cons; in genbrk()
115 assert(clientp->cons); in genaltbrk()
117 consp = clientp->cons; in genaltbrk()
148 if (clientp->cons->group->num_cons > 1) in console_forward()
163 if (clientp->cons->group->num_cons > 1) in console_backward()
179 consp = clientp->cons; in acquire_write()
360 clientp->cons->vcc_fd, clientp->sockfd); in vntsd_process_daemon_cmd()
518 clientp->cons->vcc_fd, clientp->sockfd); in vntsd_ctrl_cmd()
531 if (ioctl(clientp->cons->vcc_fd, TCXONC, &cmd)) { in vntsd_ctrl_cmd()
[all …]
H A Dread.c60 assert(clientp->cons); in write_vcc()
62 n = write(clientp->cons->vcc_fd, &c, 1); in write_vcc()
93 consp = clientp->cons; in acquire_writer()
226 assert(clientp->cons); in vntsd_read()
234 if (clientp->cons->clientpq->handle != clientp) { in vntsd_read()
H A Dconsole.c378 clientp->cons = consp; in connect_cons()
517 clientp->cons = NULL; in client_init()
643 if (clientp->cons == NULL) { in console_chk_status()
670 status = vntsd_vcc_err(clientp->cons); in console_chk_status()
697 clientp->cons = vntsd_que_pos(groupp->conspq, in console_chk_status()
698 clientp->cons, in console_chk_status()
794 if ((num_cons > 1) && (clientp->cons == NULL)) { in vntsd_console_thread()
829 if (clientp->cons == NULL) { in vntsd_console_thread()
839 consp = clientp->cons; in vntsd_console_thread()
850 if (clientp->cons == NULL) { in vntsd_console_thread()
[all …]
/illumos-gate/usr/src/uts/i86pc/io/
H A Dconsplat.c88 char *cons; in console_type() local
115 DDI_PROP_DONTPASS, "console", &cons) == DDI_SUCCESS) || in console_type()
117 DDI_PROP_DONTPASS, "input-device", &cons) == DDI_SUCCESS) || in console_type()
119 DDI_PROP_DONTPASS, "output-device", &cons) == DDI_SUCCESS)) { in console_type()
120 if (strlen(cons) == 4 && strncmp(cons, "tty", 3) == 0 && in console_type()
121 cons[3] >= 'a' && cons[3] <= 'd') { in console_type()
123 tty_num = cons[3] - 'a'; in console_type()
124 } else if (strcmp(cons, "usb-serial") == 0) { in console_type()
136 } else if (strcmp(cons, "hypervisor") == 0) { in console_type()
140 ddi_prop_free(cons); in console_type()
H A Disa.c778 int cons, ttyn; in isa_intr_ops() local
780 cons = console_hypervisor_dev_type(&ttyn); in isa_intr_ops()
855 if (cons == CONS_TTY && ispec->intrspec_vec == asy_intrs[ttyn]) in isa_intr_ops()
1198 int cons, ttyn; in isa_enumerate() local
1200 cons = console_hypervisor_dev_type(&ttyn); in isa_enumerate()
1249 if (cons == CONS_TTY && ttyn == i) in isa_enumerate()
1300 int cons, ttyn; in enumerate_BIOS_serial() local
1302 cons = console_hypervisor_dev_type(&ttyn); in enumerate_BIOS_serial()
1389 if (cons == CONS_TTY && ttyn == i) { in enumerate_BIOS_serial()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.talkd/
H A Din.talkd.c126 FILE *cons; in print_error() local
139 cons = fopen(err_dev, "a"); in print_error()
140 if (cons != NULL) { in print_error()
141 (void) fprintf(cons, "Talkd : %s : %s(%d)\n\r", string, in print_error()
143 (void) fclose(cons); in print_error()
/illumos-gate/usr/src/uts/sun4v/io/
H A Dvcc.c1328 vcc_console_t cons; in i_vcc_cons_tbl() local
1362 cons.cons_no = vport->number; in i_vcc_cons_tbl()
1363 cons.tcp_port = vport->tcp_port; in i_vcc_cons_tbl()
1364 (void) memcpy(cons.domain_name, in i_vcc_cons_tbl()
1403 cons.cons_no = -1; in i_vcc_cons_tbl()
1458 vcc_console_t cons; in i_vcc_cons_info() local
1486 cons.cons_no = vport->number; in i_vcc_cons_info()
1487 cons.tcp_port = vport->tcp_port; in i_vcc_cons_info()
1501 if (ddi_copyout(&cons, (void *)buf, in i_vcc_cons_info()
1508 cons.cons_no, cons.domain_name, in i_vcc_cons_info()
[all …]
/illumos-gate/usr/src/uts/i86pc/boot/
H A Dboot_console.c699 int n, cons; in lookup_console_device() local
703 cons = CONS_INVALID; in lookup_console_device()
714 cons = consolep->value; in lookup_console_device()
715 if (cons == CONS_TTY) in lookup_console_device()
721 return (cons); in lookup_console_device()
1203 int cons = CONS_INVALID; in bcons_post_bootenvrc() local
1224 if (cons != CONS_INVALID) in bcons_post_bootenvrc()
1228 if (cons == CONS_INVALID) { in bcons_post_bootenvrc()
1243 if (cons == console_hypervisor_device) { in bcons_post_bootenvrc()
1244 cons = CONS_HYPERVISOR; in bcons_post_bootenvrc()
[all …]
/illumos-gate/usr/src/uts/i86pc/os/
H A Dgraphics.c98 char cons[10]; in progressbar_init() local
103 (void) BOP_GETPROP(bootops, "console", cons); in progressbar_init()
104 if (strncmp(cons, "graphics", strlen("graphics")) != 0) in progressbar_init()
/illumos-gate/usr/src/cmd/od/
H A Dod.c86 int cons; /* consumer index */ member
861 buffer.cons = 0; in main()
873 j = buffer.cons; in main()
890 buffer.cons += blocksize; in main()
891 buffer.cons &= buffer.mask; in main()
908 for (i = 0, j = buffer.cons; i < mx; i += out->width) { in main()
915 buffer.cons += mx; in main()
916 buffer.cons &= buffer.mask; in main()
/illumos-gate/usr/src/uts/common/xen/dtrace/
H A Dxdt.c650 tbuf.meta[i]->cons = tbuf.meta[i]->prod; in xdt_attach_trace_buffers()
1747 uint32_t prod, cons, offset; in xdt_get_first_rec() local
1753 cons = tbuf.meta[cpuid]->cons; in xdt_get_first_rec()
1756 if (prod == cons) in xdt_get_first_rec()
1759 offset = cons % tbuf_data_size; in xdt_get_first_rec()
1780 *consp = cons; in xdt_get_first_rec()
1794 uint32_t bytes_done, cons; in xdt_tbuf_scan() local
1809 cons += bytes_done; in xdt_tbuf_scan()
1814 if (cons >= 2 * tbuf_data_size) in xdt_tbuf_scan()
1815 cons -= 2 * tbuf_data_size; in xdt_tbuf_scan()
[all …]
/illumos-gate/usr/src/lib/libnisdb/
H A Dldap_glob.c32 FILE *cons = 0; variable
95 #pragma weak cons
H A Dldap_glob.h43 extern FILE *cons;
H A Dnis_parse_ldap_attr.c44 extern FILE *cons;
1208 if (cons != NULL) { in warn_duplicate_val()
1209 fprintf(cons, in warn_duplicate_val()
1237 if (cons != NULL) { in warn_duplicate_map()
1238 fprintf(cons, in warn_duplicate_map()
H A Dldap_util.c71 if (cons == 0) { in logmsg()
76 vfprintf(cons, fmt, ap); in logmsg()
82 fprintf(cons, "\n"); in logmsg()
/illumos-gate/usr/src/cmd/bc/
H A Dbc.y58 %type <iptr> slist, re, fprefix, cargs, eora, cons, constant, lora
309 | cons
311 | DOT cons
313 | cons DOT cons
315 | cons DOT
377 cons : constant
/illumos-gate/usr/src/uts/common/io/atge/
H A Datge_l1e.c425 uint32_t cons, current_page; in atge_l1e_receive() local
470 cons = l1e->atge_l1e_rx_page_cons; in atge_l1e_receive()
471 if (cons >= l1e->atge_l1e_rx_page_prods[l1e->atge_l1e_rx_curp]) in atge_l1e_receive()
476 pageaddr = pageaddr + cons; in atge_l1e_receive()
912 int cons; in atge_l1e_interrupt() local
915 cons = INW(atgep, L1E_TPD_CONS_IDX); in atge_l1e_interrupt()
916 atge_tx_reclaim(atgep, cons); in atge_l1e_interrupt()
/illumos-gate/usr/src/lib/libsecdb/common/
H A Dchkauthattr.c401 struct stat cons; in is_cons_user() local
408 if (stat(CONSOLE_USER_LINK, &cons) == -1) { in is_cons_user()
415 return (pw.pw_uid == cons.st_uid); in is_cons_user()
/illumos-gate/usr/src/uts/common/io/yge/
H A Dyge.c1815 int cons, rxlen; in yge_rxeof() local
1825 cons = port->p_rx_cons; in yge_rxeof()
1827 rxb = &port->p_rx_buf[cons]; in yge_rxeof()
1867 cons); in yge_rxeof()
1878 int16_t cons; in yge_txeof_locked() local
1885 cons = port->p_tx_cons; in yge_txeof_locked()
1887 for (; cons != idx; YGE_INC(cons, YGE_TX_RING_CNT)) { in yge_txeof_locked()
1895 port->p_tx_cons = cons; in yge_txeof_locked()
2178 int cons, idx, len, pnum; in yge_handle_events() local
2191 for (cons = dev->d_stat_cons; cons != idx; ) { in yge_handle_events()
[all …]
/illumos-gate/usr/src/cmd/power/
H A Dparse.c82 set_perm(char *defstr, char *user, int *perm, int cons) in set_perm() argument
103 *perm = cons; in set_perm()

12