Searched refs:vtermno (Results 1 - 17 of 17) sorted by relevance

/linux-4.4.14/arch/powerpc/platforms/pseries/
H A Dhvconsole.c35 * @vtermno: The vtermno or unit_address of the adapter from which to fetch the
41 int hvc_get_chars(uint32_t vtermno, char *buf, int count) hvc_get_chars() argument
47 ret = plpar_hcall(H_GET_TERM_CHAR, retbuf, vtermno); hvc_get_chars()
62 * @vtermno: The vtermno or unit_address of the adapter from which the data
68 int hvc_put_chars(uint32_t vtermno, const char *buf, int count) hvc_put_chars() argument
78 ret = plpar_hcall_norets(H_PUT_TERM_CHAR, vtermno, count, hvc_put_chars()
/linux-4.4.14/arch/mips/paravirt/
H A Dserial.c25 static int paravirt_put_chars(u32 vtermno, const char *buf, int count) paravirt_put_chars() argument
27 kvm_hypercall3(KVM_HC_MIPS_CONSOLE_OUTPUT, vtermno, paravirt_put_chars()
/linux-4.4.14/drivers/tty/hvc/
H A Dhvc_opal.c74 static int hvc_opal_hvsi_get_chars(uint32_t vtermno, char *buf, int count) hvc_opal_hvsi_get_chars() argument
76 struct hvc_opal_priv *pv = hvc_opal_privs[vtermno]; hvc_opal_hvsi_get_chars()
84 static int hvc_opal_hvsi_put_chars(uint32_t vtermno, const char *buf, int count) hvc_opal_hvsi_put_chars() argument
86 struct hvc_opal_priv *pv = hvc_opal_privs[vtermno]; hvc_opal_hvsi_put_chars()
96 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; hvc_opal_hvsi_open()
99 pr_devel("HVSI@%x: do open !\n", hp->vtermno); hvc_opal_hvsi_open()
110 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; hvc_opal_hvsi_close()
112 pr_devel("HVSI@%x: do close !\n", hp->vtermno); hvc_opal_hvsi_close()
121 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; hvc_opal_hvsi_hangup()
123 pr_devel("HVSI@%x: do hangup !\n", hp->vtermno); hvc_opal_hvsi_hangup()
132 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; hvc_opal_hvsi_tiocmget()
142 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; hvc_opal_hvsi_tiocmset()
145 hp->vtermno, set, clear); hvc_opal_hvsi_tiocmset()
204 /* Instanciate now to establish a mapping index==vtermno */ hvc_opal_probe()
237 termno = hp->vtermno; hvc_opal_remove()
H A Dhvc_vio.c84 static int hvterm_raw_get_chars(uint32_t vtermno, char *buf, int count) hvterm_raw_get_chars() argument
86 struct hvterm_priv *pv = hvterm_privs[vtermno]; hvterm_raw_get_chars()
125 static int hvterm_raw_put_chars(uint32_t vtermno, const char *buf, int count) hvterm_raw_put_chars() argument
127 struct hvterm_priv *pv = hvterm_privs[vtermno]; hvterm_raw_put_chars()
143 static int hvterm_hvsi_get_chars(uint32_t vtermno, char *buf, int count) hvterm_hvsi_get_chars() argument
145 struct hvterm_priv *pv = hvterm_privs[vtermno]; hvterm_hvsi_get_chars()
153 static int hvterm_hvsi_put_chars(uint32_t vtermno, const char *buf, int count) hvterm_hvsi_put_chars() argument
155 struct hvterm_priv *pv = hvterm_privs[vtermno]; hvterm_hvsi_put_chars()
165 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; hvterm_hvsi_open()
179 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; hvterm_hvsi_close()
190 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; hvterm_hvsi_hangup()
201 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; hvterm_hvsi_tiocmget()
211 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; hvterm_hvsi_tiocmset()
371 termno = hp->vtermno; hvc_vio_remove()
H A Dhvc_xen.c54 int vtermno; member in struct:xencons_info
63 static struct xencons_info *vtermno_to_xencons(int vtermno) vtermno_to_xencons() argument
71 if (entry->vtermno == vtermno) { vtermno_to_xencons()
114 static int domU_write_console(uint32_t vtermno, const char *data, int len) domU_write_console() argument
117 struct xencons_info *cons = vtermno_to_xencons(vtermno); domU_write_console()
140 static int domU_read_console(uint32_t vtermno, char *buf, int len) domU_read_console() argument
145 struct xencons_info *xencons = vtermno_to_xencons(vtermno); domU_read_console()
173 static int dom0_read_console(uint32_t vtermno, char *buf, int len) dom0_read_console() argument
182 static int dom0_write_console(uint32_t vtermno, const char *str, int len) dom0_write_console() argument
236 info->vtermno = HVC_COOKIE; xen_hvm_console_init()
270 info->vtermno = HVC_COOKIE; xen_pv_console_init()
294 info->vtermno = HVC_COOKIE; xen_initial_domain_console_init()
346 info->vtermno = 0; xencons_free()
447 info->vtermno = xenbus_devid_to_vtermno(devid); xencons_probe()
H A Dhvc_udbg.c35 static int hvc_udbg_put(uint32_t vtermno, const char *buf, int count) hvc_udbg_put() argument
45 static int hvc_udbg_get(uint32_t vtermno, char *buf, int count) hvc_udbg_get() argument
H A Dhvc_console.h56 uint32_t vtermno; member in struct:hvc_struct
67 int (*get_chars)(uint32_t vtermno, char *buf, int count);
68 int (*put_chars)(uint32_t vtermno, const char *buf, int count);
84 extern int hvc_instantiate(uint32_t vtermno, int index,
88 extern struct hvc_struct * hvc_alloc(uint32_t vtermno, int data,
H A Dhvc_rtas.c47 static inline int hvc_rtas_write_console(uint32_t vtermno, const char *buf, hvc_rtas_write_console() argument
60 static int hvc_rtas_read_console(uint32_t vtermno, char *buf, int count) hvc_rtas_read_console() argument
H A Dhvsi.c86 uint32_t vtermno; member in struct:hvsi_struct
233 got = hvc_get_chars(hp->vtermno, buf, count); hvsi_read()
308 wrote = hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len); hvsi_version_respond()
566 wrote = hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len); hvsi_query()
613 wrote = hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len); hvsi_set_mctrl()
689 ret = hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len); hvsi_put_chars()
709 hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len); hvsi_close_protocol()
732 h_vio_signal(hp->vtermno, VIO_IRQ_ENABLE); hvsi_open()
793 h_vio_signal(hp->vtermno, VIO_IRQ_DISABLE); /* no more irqs */ hvsi_close()
985 h_vio_signal(hp->vtermno, VIO_IRQ_DISABLE); hvsi_throttle()
1003 h_vio_signal(hp->vtermno, VIO_IRQ_ENABLE); hvsi_unthrottle()
1185 const __be32 *vtermno, *irq; hvsi_console_init() local
1187 vtermno = of_get_property(vty, "reg", NULL); hvsi_console_init()
1189 if (!vtermno || !irq) hvsi_console_init()
1207 hp->vtermno = be32_to_cpup(vtermno); hvsi_console_init()
H A Dhvc_console.c272 int hvc_instantiate(uint32_t vtermno, int index, const struct hv_ops *ops) hvc_instantiate() argument
289 vtermnos[index] = vtermno; hvc_instantiate()
425 hp->vtermno, hp->port.count); hvc_close()
478 n = hp->ops->put_chars(hp->vtermno, hp->outbuf, hp->n_outbuf); hvc_push()
654 n = hp->ops->get_chars(hp->vtermno, buf, count); hvc_poll()
815 n = hp->ops->get_chars(hp->vtermno, &ch, 1); hvc_poll_get_char()
830 n = hp->ops->put_chars(hp->vtermno, &ch, 1); hvc_poll_put_char()
858 struct hvc_struct *hvc_alloc(uint32_t vtermno, int data, hvc_alloc() argument
877 hp->vtermno = vtermno; hvc_alloc()
895 if (vtermnos[i] == hp->vtermno && hvc_alloc()
905 vtermnos[i] = vtermno; hvc_alloc()
H A Dhvc_iucv.c126 * @num: The HVC virtual terminal number (vtermno)
303 * @vtermno: HVC virtual terminal number.
315 static int hvc_iucv_get_chars(uint32_t vtermno, char *buf, int count) hvc_iucv_get_chars() argument
317 struct hvc_iucv_private *priv = hvc_iucv_get_private(vtermno); hvc_iucv_get_chars()
450 * @vtermno: HVC virtual terminal number.
460 static int hvc_iucv_put_chars(uint32_t vtermno, const char *buf, int count) hvc_iucv_put_chars() argument
462 struct hvc_iucv_private *priv = hvc_iucv_get_private(vtermno); hvc_iucv_put_chars()
680 priv = hvc_iucv_get_private(hp->vtermno); hvc_iucv_dtr_rts()
/linux-4.4.14/arch/powerpc/include/asm/
H A Dhvconsole.h37 extern int hvc_get_chars(uint32_t vtermno, char *buf, int count);
38 extern int hvc_put_chars(uint32_t vtermno, const char *buf, int count);
H A Dopal.h219 extern int opal_get_chars(uint32_t vtermno, char *buf, int count);
220 extern int opal_put_chars(uint32_t vtermno, const char *buf, int total_len);
/linux-4.4.14/drivers/char/
H A Dvirtio_console.c69 * hooked up via hvc_alloc, we need to pass the same vtermno.
102 u32 vtermno; member in struct:console
250 static struct port *find_port_by_vtermno(u32 vtermno) find_port_by_vtermno() argument
258 if (cons->vtermno == vtermno) { find_port_by_vtermno()
1129 static int put_chars(u32 vtermno, const char *buf, int count) put_chars() argument
1135 return early_put_chars(vtermno, buf, count); put_chars()
1137 port = find_port_by_vtermno(vtermno); put_chars()
1152 static int get_chars(u32 vtermno, char *buf, int count) get_chars() argument
1160 port = find_port_by_vtermno(vtermno); get_chars()
1191 port = find_port_by_vtermno(hp->vtermno); notifier_add_vio()
1251 port->cons.vtermno = pdrvdata.next_vtermno; init_port_console()
1253 port->cons.hvc = hvc_alloc(port->cons.vtermno, 0, &hv_ops, PAGE_SIZE); init_port_console()
1336 "console_vtermno: %u\n", port->cons.vtermno); debugfs_read()
/linux-4.4.14/arch/powerpc/platforms/powernv/
H A Dopal.c318 int opal_get_chars(uint32_t vtermno, char *buf, int count) opal_get_chars() argument
329 rc = opal_console_read(vtermno, &len, buf); opal_get_chars()
335 int opal_put_chars(uint32_t vtermno, const char *data, int total_len) opal_put_chars() argument
356 rc = opal_console_write_buffer_space(vtermno, &olen); opal_put_chars()
375 rc = opal_console_write(vtermno, &olen, data); opal_put_chars()
/linux-4.4.14/drivers/s390/virtio/
H A Dkvm_virtio.c485 static __init int early_put_chars(u32 vtermno, const char *buf, int count) early_put_chars() argument
/linux-4.4.14/arch/x86/lguest/
H A Dboot.c1316 static __init int early_put_chars(u32 vtermno, const char *buf, int count) early_put_chars() argument

Completed in 423 milliseconds