Home
last modified time | relevance | path

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

12

/titanic_41/usr/src/uts/common/xen/io/
H A Dxenbus_comms.c106 check_indexes(XENSTORE_RING_IDX cons, XENSTORE_RING_IDX prod) in check_indexes() argument
108 return ((prod - cons) <= XENSTORE_RING_SIZE); in check_indexes()
112 get_output_chunk(XENSTORE_RING_IDX cons, XENSTORE_RING_IDX prod, in get_output_chunk() argument
116 if ((XENSTORE_RING_SIZE - (prod - cons)) < *len) in get_output_chunk()
117 *len = XENSTORE_RING_SIZE - (prod - cons); in get_output_chunk()
122 get_input_chunk(XENSTORE_RING_IDX cons, XENSTORE_RING_IDX prod, in get_input_chunk() argument
125 *len = XENSTORE_RING_SIZE - MASK_XENSTORE_IDX(cons); in get_input_chunk()
126 if ((prod - cons) < *len) in get_input_chunk()
127 *len = prod - cons; in get_input_chunk()
128 return ((void *)(buf + MASK_XENSTORE_IDX(cons))); in get_input_chunk()
[all …]
H A Dxencons.c543 XENCONS_RING_IDX cons, prod; in xencons_rxint() local
578 cons = 0; in xencons_rxint()
580 cons = ifp->in_cons; in xencons_rxint()
583 cc = prod - cons; in xencons_rxint()
604 c = cp[INBUF_IX(cons + i, ifp)]; in xencons_rxint()
612 ifp->in_cons = cons + i; in xencons_rxint()
614 cons += i; in xencons_rxint()
646 c = cp[INBUF_IX(cons++, ifp)]; in xencons_rxint()
671 ifp->in_cons = cons; in xencons_rxint()
861 XENCONS_RING_IDX cons, prod; in xcasync_start() local
[all …]
/titanic_41/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()
/titanic_41/usr/src/uts/i86pc/io/
H A Dconsplat.c85 char *cons; in console_type() local
112 DDI_PROP_DONTPASS, "console", &cons) == DDI_SUCCESS) || in console_type()
114 DDI_PROP_DONTPASS, "input-device", &cons) == DDI_SUCCESS) || in console_type()
116 DDI_PROP_DONTPASS, "output-device", &cons) == DDI_SUCCESS)) { in console_type()
117 if (strlen(cons) == 4 && strncmp(cons, "tty", 3) == 0 && in console_type()
118 cons[3] >= 'a' && cons[3] <= 'd') { in console_type()
120 tty_num = cons[3] - 'a'; in console_type()
121 } else if (strcmp(cons, "usb-serial") == 0) { in console_type()
132 } else if (strcmp(cons, "hypervisor") == 0) { in console_type()
136 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()
1242 if (cons == CONS_TTY && ttyn == i) in isa_enumerate()
1295 int cons, ttyn; in enumerate_BIOS_serial() local
1297 cons = console_hypervisor_dev_type(&ttyn); in enumerate_BIOS_serial()
1385 if (cons == CONS_TTY && ttyn == i) { in enumerate_BIOS_serial()
/titanic_41/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()
133 if ((vntsd_write_fd(clientp->cons->vcc_fd, brkseq, sizeof (brkseq))) == 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()
[all …]
H A Dread.c61 assert(clientp->cons); in write_vcc()
63 n = write(clientp->cons->vcc_fd, &c, 1); in write_vcc()
94 consp = clientp->cons; in acquire_writer()
227 assert(clientp->cons); in vntsd_read()
235 if (clientp->cons->clientpq->handle != clientp) { in vntsd_read()
H A Dconsole.c380 clientp->cons = consp; in connect_cons()
519 clientp->cons = NULL; in client_init()
645 if (clientp->cons == NULL) { in console_chk_status()
657 (groupp->conspq->handle == clientp->cons))) { in console_chk_status()
672 status = vntsd_vcc_err(clientp->cons); in console_chk_status()
699 clientp->cons = vntsd_que_pos(groupp->conspq, in console_chk_status()
700 clientp->cons, in console_chk_status()
796 if ((num_cons > 1) && (clientp->cons == NULL)) { in vntsd_console_thread()
831 if (clientp->cons == NULL) { in vntsd_console_thread()
841 consp = clientp->cons; in vntsd_console_thread()
[all …]
H A Dwrite.c200 assert(clientp->cons); in write_one_client()
/titanic_41/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()
/titanic_41/usr/src/uts/i86pc/boot/
H A Dboot_console.c674 int cons = CONS_INVALID; in bcons_init2() local
702 cons = consolep->value; in bcons_init2()
703 if (cons == CONS_TTY) in bcons_init2()
707 if (cons != CONS_INVALID) in bcons_init2()
717 if (cons == console_hypervisor_device) { in bcons_init2()
718 cons = CONS_HYPERVISOR; in bcons_init2()
723 if ((cons == CONS_INVALID) || (cons == console)) { in bcons_init2()
730 console = cons; in bcons_init2()
731 if (cons == CONS_TTY) { in bcons_init2()
/titanic_41/usr/src/uts/sun4v/io/
H A Dvcc.c1325 vcc_console_t cons; in i_vcc_cons_tbl() local
1356 bzero(&cons, sizeof (vcc_console_t)); in i_vcc_cons_tbl()
1359 cons.cons_no = vport->number; in i_vcc_cons_tbl()
1360 cons.tcp_port = vport->tcp_port; in i_vcc_cons_tbl()
1361 (void) memcpy(cons.domain_name, in i_vcc_cons_tbl()
1364 (void) memcpy(cons.group_name, vport->group_name, in i_vcc_cons_tbl()
1369 (void) snprintf(cons.dev_name, MAXPATHLEN-1, "%s:%s%s", in i_vcc_cons_tbl()
1370 pathname, VCC_MINOR_NAME_PREFIX, cons.domain_name); in i_vcc_cons_tbl()
1373 if (ddi_copyout(&cons, (void *)buf, in i_vcc_cons_tbl()
1399 bzero(&cons, sizeof (vcc_console_t)); in i_vcc_cons_tbl()
[all …]
/titanic_41/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()
/titanic_41/usr/src/cmd/od/
H A Dod.c82 int cons; /* consumer index */ member
858 buffer.cons = 0; in main()
870 j = buffer.cons; in main()
887 buffer.cons += blocksize; in main()
888 buffer.cons &= buffer.mask; in main()
905 for (i = 0, j = buffer.cons; i < mx; i += out->width) { in main()
912 buffer.cons += mx; in main()
913 buffer.cons &= buffer.mask; in main()
/titanic_41/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()
H A Dnis_parse_ldap_util.c65 extern FILE *cons;
2628 if (cons != NULL) { in report_error()
2631 fprintf(cons, fmt_buf, str == NULL ? "" : str); in report_error()
2646 if (cons != NULL) { in report_error2()
2649 fprintf(cons, fmt_buf, str1, str2); in report_error2()
2663 if (cons != NULL) { in report_conn_error()
2666 fprintf(cons, fmt_buf, in report_conn_error()
2682 if (cons != NULL) { in report_info()
2683 fputs(str, cons); in report_info()
2685 fputs(arg, cons); in report_info()
[all …]
/titanic_41/usr/src/uts/common/xen/dtrace/
H A Dxdt.c650 tbuf.meta[i]->cons = tbuf.meta[i]->prod; in xdt_attach_trace_buffers()
1746 uint32_t prod, cons, offset; in xdt_get_first_rec() local
1752 cons = tbuf.meta[cpuid]->cons; in xdt_get_first_rec()
1755 if (prod == cons) in xdt_get_first_rec()
1758 offset = cons % tbuf_data_size; in xdt_get_first_rec()
1779 *consp = cons; in xdt_get_first_rec()
1793 uint32_t bytes_done, cons; in xdt_tbuf_scan() local
1799 nrecs < xdt_max_recs && xdt_get_first_rec(&cpuid, &rec, &cons) > 0; in xdt_tbuf_scan()
1808 cons += bytes_done; in xdt_tbuf_scan()
1813 if (cons >= 2 * tbuf_data_size) in xdt_tbuf_scan()
[all …]
/titanic_41/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
/titanic_41/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()
/titanic_41/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()
/titanic_41/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()
1862 PUTCTRL(ring, cons, port->p_framesize | OP_PACKET | HW_OWNER); in yge_rxeof()
1863 SYNCENTRY(ring, cons, DDI_DMA_SYNC_FORDEV); 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()
[all …]
/titanic_41/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