Home
last modified time | relevance | path

Searched refs:vtermno (Results 1 – 15 of 15) sorted by relevance

/linux/drivers/tty/hvc/
A Dhvc_opal.c63 struct hvc_opal_priv *pv = hvc_opal_privs[vtermno]; in hvc_opal_hvsi_get_chars()
74 struct hvc_opal_priv *pv = hvc_opal_privs[vtermno]; in hvc_opal_hvsi_put_chars()
84 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_open()
87 pr_devel("HVSI@%x: do open !\n", hp->vtermno); in hvc_opal_hvsi_open()
98 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_close()
100 pr_devel("HVSI@%x: do close !\n", hp->vtermno); in hvc_opal_hvsi_close()
109 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_hangup()
111 pr_devel("HVSI@%x: do hangup !\n", hp->vtermno); in hvc_opal_hvsi_hangup()
120 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_tiocmget()
133 hp->vtermno, set, clear); in hvc_opal_hvsi_tiocmset()
[all …]
A Dhvc_console.h42 uint32_t vtermno; member
55 ssize_t (*get_chars)(uint32_t vtermno, u8 *buf, size_t count);
56 ssize_t (*put_chars)(uint32_t vtermno, const u8 *buf, size_t count);
57 int (*flush)(uint32_t vtermno, bool wait);
73 extern int hvc_instantiate(uint32_t vtermno, int index,
77 extern struct hvc_struct * hvc_alloc(uint32_t vtermno, int data,
A Dhvc_vio.c71 struct hvterm_priv *pv = hvterm_privs[vtermno]; in hvterm_raw_get_chars()
118 static ssize_t hvterm_raw_put_chars(uint32_t vtermno, const u8 *buf, in hvterm_raw_put_chars() argument
121 struct hvterm_priv *pv = hvterm_privs[vtermno]; in hvterm_raw_put_chars()
139 struct hvterm_priv *pv = hvterm_privs[vtermno]; in hvterm_hvsi_get_chars()
147 static ssize_t hvterm_hvsi_put_chars(uint32_t vtermno, const u8 *buf, in hvterm_hvsi_put_chars() argument
150 struct hvterm_priv *pv = hvterm_privs[vtermno]; in hvterm_hvsi_put_chars()
160 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; in hvterm_hvsi_open()
174 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; in hvterm_hvsi_close()
185 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; in hvterm_hvsi_hangup()
196 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; in hvterm_hvsi_tiocmget()
[all …]
A Dhvc_xen.c44 int vtermno; member
54 static struct xencons_info *vtermno_to_xencons(int vtermno) in vtermno_to_xencons() argument
66 if (entry->vtermno == vtermno) { in vtermno_to_xencons()
120 struct xencons_info *cons = vtermno_to_xencons(vtermno); in domU_write_console()
148 static ssize_t domU_read_console(uint32_t vtermno, u8 *buf, size_t len) in domU_read_console() argument
152 struct xencons_info *xencons = vtermno_to_xencons(vtermno); in domU_read_console()
277 info->vtermno = HVC_COOKIE; in xen_hvm_console_init()
295 info->vtermno = vtermno; in xencons_info_pv_init()
346 info->vtermno = HVC_COOKIE; in xen_initial_domain_console_init()
402 info->vtermno = 0; in xencons_free()
[all …]
A Dhvc_riscv_sbi.c18 static ssize_t hvc_sbi_tty_put(uint32_t vtermno, const u8 *buf, size_t count) in hvc_sbi_tty_put() argument
28 static ssize_t hvc_sbi_tty_get(uint32_t vtermno, u8 *buf, size_t count) in hvc_sbi_tty_get() argument
48 static ssize_t hvc_sbi_dbcn_tty_put(uint32_t vtermno, const u8 *buf, size_t count) in hvc_sbi_dbcn_tty_put() argument
53 static ssize_t hvc_sbi_dbcn_tty_get(uint32_t vtermno, u8 *buf, size_t count) in hvc_sbi_dbcn_tty_get() argument
A Dhvc_console.c119 return ops->flush(vtermno, wait); in __hvc_flush()
125 return __hvc_flush(ops, vtermno, false); in hvc_console_flush()
133 return __hvc_flush(hp->ops, hp->vtermno, true); in hvc_flush()
302 vtermnos[index] = vtermno; in hvc_instantiate()
427 hp->vtermno, hp->port.count); in hvc_close()
685 n = hp->ops->get_chars(hp->vtermno, buf, count); in __hvc_poll()
868 n = hp->ops->get_chars(hp->vtermno, &ch, 1); in hvc_poll_get_char()
883 n = hp->ops->put_chars(hp->vtermno, &ch, 1); in hvc_poll_put_char()
929 hp->vtermno = vtermno; in hvc_alloc()
946 if (vtermnos[i] == hp->vtermno && in hvc_alloc()
[all …]
A Dhvsi.c73 uint32_t vtermno; member
220 got = hvc_get_chars(hp->vtermno, buf, count); in hvsi_read()
696 hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len); in hvsi_close_protocol()
719 h_vio_signal(hp->vtermno, VIO_IRQ_ENABLE); in hvsi_open()
780 h_vio_signal(hp->vtermno, VIO_IRQ_DISABLE); /* no more irqs */ in hvsi_close()
971 h_vio_signal(hp->vtermno, VIO_IRQ_DISABLE); in hvsi_throttle()
989 h_vio_signal(hp->vtermno, VIO_IRQ_ENABLE); in hvsi_unthrottle()
1186 const __be32 *vtermno, *irq; in hvsi_console_init() local
1188 vtermno = of_get_property(vty, "reg", NULL); in hvsi_console_init()
1190 if (!vtermno || !irq) in hvsi_console_init()
[all …]
A Dhvc_udbg.c22 static ssize_t hvc_udbg_put(uint32_t vtermno, const u8 *buf, size_t count) in hvc_udbg_put() argument
32 static ssize_t hvc_udbg_get(uint32_t vtermno, u8 *buf, size_t count) in hvc_udbg_get() argument
A Dhvc_rtas.c34 static ssize_t hvc_rtas_write_console(uint32_t vtermno, const u8 *buf, in hvc_rtas_write_console() argument
47 static ssize_t hvc_rtas_read_console(uint32_t vtermno, u8 *buf, size_t count) in hvc_rtas_read_console() argument
A Dhvc_iucv.c315 static ssize_t hvc_iucv_get_chars(uint32_t vtermno, u8 *buf, size_t count) in hvc_iucv_get_chars() argument
317 struct hvc_iucv_private *priv = hvc_iucv_get_private(vtermno); in hvc_iucv_get_chars()
458 static ssize_t hvc_iucv_put_chars(uint32_t vtermno, const u8 *buf, size_t count) in hvc_iucv_put_chars() argument
460 struct hvc_iucv_private *priv = hvc_iucv_get_private(vtermno); in hvc_iucv_put_chars()
678 priv = hvc_iucv_get_private(hp->vtermno); in hvc_iucv_dtr_rts()
/linux/arch/powerpc/platforms/pseries/
A Dhvconsole.c28 ssize_t hvc_get_chars(uint32_t vtermno, u8 *buf, size_t count) in hvc_get_chars() argument
34 ret = plpar_hcall(H_GET_TERM_CHAR, retbuf, vtermno); in hvc_get_chars()
55 ssize_t hvc_put_chars(uint32_t vtermno, const u8 *buf, size_t count) in hvc_put_chars() argument
65 ret = plpar_hcall_norets(H_PUT_TERM_CHAR, vtermno, count, in hvc_put_chars()
/linux/arch/powerpc/platforms/powernv/
A Dopal.c438 rc = opal_console_read(vtermno, &len, buf); in opal_get_chars()
457 rc = opal_console_write_buffer_space(vtermno, &olen); in __opal_put_chars()
469 rc = opal_console_write(vtermno, &olen, data); in __opal_put_chars()
503 return __opal_put_chars(vtermno, data, total_len, false); in opal_put_chars()
515 return __opal_put_chars(vtermno, data, total_len, true); in opal_put_chars_atomic()
518 static s64 __opal_flush_console(uint32_t vtermno) in __opal_flush_console() argument
538 rc = opal_console_flush(vtermno); in __opal_flush_console()
551 int opal_flush_console(uint32_t vtermno) in opal_flush_console() argument
554 s64 rc = __opal_flush_console(vtermno); in opal_flush_console()
570 int opal_flush_chars(uint32_t vtermno, bool wait) in opal_flush_chars() argument
[all …]
/linux/arch/powerpc/include/asm/
A Dhvconsole.h24 extern ssize_t hvc_get_chars(uint32_t vtermno, u8 *buf, size_t count);
25 extern ssize_t hvc_put_chars(uint32_t vtermno, const u8 *buf, size_t count);
A Dopal.h316 extern ssize_t opal_get_chars(uint32_t vtermno, u8 *buf, size_t count);
317 extern ssize_t opal_put_chars(uint32_t vtermno, const u8 *buf,
319 extern ssize_t opal_put_chars_atomic(uint32_t vtermno, const u8 *buf,
321 extern int opal_flush_chars(uint32_t vtermno, bool wait);
322 extern int opal_flush_console(uint32_t vtermno);
/linux/drivers/char/
A Dvirtio_console.c80 u32 vtermno; member
233 static struct port *find_port_by_vtermno(u32 vtermno) in find_port_by_vtermno() argument
241 if (cons->vtermno == vtermno) { in find_port_by_vtermno()
1113 port = find_port_by_vtermno(vtermno); in put_chars()
1134 static ssize_t get_chars(u32 vtermno, u8 *buf, size_t count) in get_chars() argument
1138 port = find_port_by_vtermno(vtermno); in get_chars()
1169 port = find_port_by_vtermno(hp->vtermno); in notifier_add_vio()
1218 port->cons.vtermno = ret; in init_port_console()
1225 ida_free(&vtermno_ida, port->cons.vtermno); in init_port_console()
1345 port->cons.vtermno = 0; in add_port()
[all …]

Completed in 38 milliseconds