/kernel/linux/linux-5.10/drivers/tty/hvc/ |
H A D | hvc_opal.c | 61 static int hvc_opal_hvsi_get_chars(uint32_t vtermno, char *buf, int count) in hvc_opal_hvsi_get_chars() argument 63 struct hvc_opal_priv *pv = hvc_opal_privs[vtermno]; in hvc_opal_hvsi_get_chars() 71 static int hvc_opal_hvsi_put_chars(uint32_t vtermno, const char *buf, int count) in hvc_opal_hvsi_put_chars() argument 73 struct hvc_opal_priv *pv = hvc_opal_privs[vtermno]; in hvc_opal_hvsi_put_chars() 83 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_open() 86 pr_devel("HVSI@%x: do open !\n", hp->vtermno); in hvc_opal_hvsi_open() 97 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_close() 99 pr_devel("HVSI@%x: do close !\n", hp->vtermno); in hvc_opal_hvsi_close() 108 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_hangup() 110 pr_devel("HVSI@%x: do hangup !\n", hp->vtermno); in hvc_opal_hvsi_hangup() [all...] |
H A D | hvc_vio.c | 69 static int hvterm_raw_get_chars(uint32_t vtermno, char *buf, int count) in hvterm_raw_get_chars() argument 71 struct hvterm_priv *pv = hvterm_privs[vtermno]; in hvterm_raw_get_chars() 112 * @vtermno: The virtual terminal number. 118 static int hvterm_raw_put_chars(uint32_t vtermno, const char *buf, int count) in hvterm_raw_put_chars() argument 120 struct hvterm_priv *pv = hvterm_privs[vtermno]; in hvterm_raw_put_chars() 136 static int hvterm_hvsi_get_chars(uint32_t vtermno, char *buf, int count) in hvterm_hvsi_get_chars() argument 138 struct hvterm_priv *pv = hvterm_privs[vtermno]; in hvterm_hvsi_get_chars() 146 static int hvterm_hvsi_put_chars(uint32_t vtermno, const char *buf, int count) in hvterm_hvsi_put_chars() argument 148 struct hvterm_priv *pv = hvterm_privs[vtermno]; in hvterm_hvsi_put_chars() 158 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; in hvterm_hvsi_open() [all...] |
H A D | hvc_console.h | 43 uint32_t vtermno; member 55 int (*get_chars)(uint32_t vtermno, char *buf, int count); 56 int (*put_chars)(uint32_t vtermno, const char *buf, int 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,
|
H A D | hvc_xen.c | 44 int vtermno; member 53 static struct xencons_info *vtermno_to_xencons(int vtermno) in vtermno_to_xencons() argument 65 if (entry->vtermno == vtermno) { in vtermno_to_xencons() 113 static int domU_write_console(uint32_t vtermno, const char *data, int len) in domU_write_console() argument 116 struct xencons_info *cons = vtermno_to_xencons(vtermno); in domU_write_console() 142 static int domU_read_console(uint32_t vtermno, char *buf, int len) in domU_read_console() argument 147 struct xencons_info *xencons = vtermno_to_xencons(vtermno); in domU_read_console() 201 static int dom0_read_console(uint32_t vtermno, char *buf, int len) in dom0_read_console() argument 210 static int dom0_write_console(uint32_t vtermno, cons argument 276 xencons_info_pv_init(struct xencons_info *info, int vtermno) xencons_info_pv_init() argument 660 xen_hvm_early_write(uint32_t vtermno, const char *str, int len) xen_hvm_early_write() argument 666 xen_hvm_early_write(uint32_t vtermno, const char *str, int len) xen_hvm_early_write() argument [all...] |
H A D | hvc_console.c | 113 static int __hvc_flush(const struct hv_ops *ops, uint32_t vtermno, bool wait) in __hvc_flush() argument 119 return ops->flush(vtermno, wait); in __hvc_flush() 123 static int hvc_console_flush(const struct hv_ops *ops, uint32_t vtermno) in hvc_console_flush() argument 125 return __hvc_flush(ops, vtermno, false); in hvc_console_flush() 133 return __hvc_flush(hp->ops, hp->vtermno, true); in hvc_flush() 285 int hvc_instantiate(uint32_t vtermno, int index, const struct hv_ops *ops) in hvc_instantiate() argument 302 vtermnos[index] = vtermno; in hvc_instantiate() 427 hp->vtermno, hp->port.count); in hvc_close() 480 n = hp->ops->put_chars(hp->vtermno, hp->outbuf, hp->n_outbuf); in hvc_push() 685 n = hp->ops->get_chars(hp->vtermno, bu in __hvc_poll() 911 hvc_alloc(uint32_t vtermno, int data, const struct hv_ops *ops, int outbuf_size) hvc_alloc() argument [all...] |
H A D | hvc_riscv_sbi.c | 18 static int hvc_sbi_tty_put(uint32_t vtermno, const char *buf, int count) in hvc_sbi_tty_put() argument 28 static int hvc_sbi_tty_get(uint32_t vtermno, char *buf, int count) in hvc_sbi_tty_get() argument
|
H A D | hvsi.c | 73 uint32_t vtermno; member 220 got = hvc_get_chars(hp->vtermno, buf, count); in hvsi_read() 295 wrote = hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len); in hvsi_version_respond() 553 wrote = hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len); in hvsi_query() 600 wrote = hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len); in hvsi_set_mctrl() 676 ret = hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len); in hvsi_put_chars() 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() 972 h_vio_signal(hp->vtermno, VIO_IRQ_DISABL in hvsi_throttle() 1185 const __be32 *vtermno, *irq; hvsi_console_init() local [all...] |
H A D | hvc_udbg.c | 22 static int hvc_udbg_put(uint32_t vtermno, const char *buf, int count) in hvc_udbg_put() argument 32 static int hvc_udbg_get(uint32_t vtermno, char *buf, int count) in hvc_udbg_get() argument
|
H A D | hvc_rtas.c | 34 static inline int hvc_rtas_write_console(uint32_t vtermno, const char *buf, in hvc_rtas_write_console() argument 47 static int hvc_rtas_read_console(uint32_t vtermno, char *buf, int count) in hvc_rtas_read_console() argument
|
/kernel/linux/linux-6.6/drivers/tty/hvc/ |
H A D | hvc_opal.c | 61 static int hvc_opal_hvsi_get_chars(uint32_t vtermno, char *buf, int count) in hvc_opal_hvsi_get_chars() argument 63 struct hvc_opal_priv *pv = hvc_opal_privs[vtermno]; in hvc_opal_hvsi_get_chars() 71 static int hvc_opal_hvsi_put_chars(uint32_t vtermno, const char *buf, int count) in hvc_opal_hvsi_put_chars() argument 73 struct hvc_opal_priv *pv = hvc_opal_privs[vtermno]; in hvc_opal_hvsi_put_chars() 83 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_open() 86 pr_devel("HVSI@%x: do open !\n", hp->vtermno); in hvc_opal_hvsi_open() 97 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_close() 99 pr_devel("HVSI@%x: do close !\n", hp->vtermno); in hvc_opal_hvsi_close() 108 struct hvc_opal_priv *pv = hvc_opal_privs[hp->vtermno]; in hvc_opal_hvsi_hangup() 110 pr_devel("HVSI@%x: do hangup !\n", hp->vtermno); in hvc_opal_hvsi_hangup() [all...] |
H A D | hvc_vio.c | 69 static int hvterm_raw_get_chars(uint32_t vtermno, char *buf, int count) in hvterm_raw_get_chars() argument 71 struct hvterm_priv *pv = hvterm_privs[vtermno]; in hvterm_raw_get_chars() 112 * @vtermno: The virtual terminal number. 118 static int hvterm_raw_put_chars(uint32_t vtermno, const char *buf, int count) in hvterm_raw_put_chars() argument 120 struct hvterm_priv *pv = hvterm_privs[vtermno]; in hvterm_raw_put_chars() 136 static int hvterm_hvsi_get_chars(uint32_t vtermno, char *buf, int count) in hvterm_hvsi_get_chars() argument 138 struct hvterm_priv *pv = hvterm_privs[vtermno]; in hvterm_hvsi_get_chars() 146 static int hvterm_hvsi_put_chars(uint32_t vtermno, const char *buf, int count) in hvterm_hvsi_put_chars() argument 148 struct hvterm_priv *pv = hvterm_privs[vtermno]; in hvterm_hvsi_put_chars() 158 struct hvterm_priv *pv = hvterm_privs[hp->vtermno]; in hvterm_hvsi_open() [all...] |
H A D | hvc_console.h | 43 uint32_t vtermno; member 55 int (*get_chars)(uint32_t vtermno, char *buf, int count); 56 int (*put_chars)(uint32_t vtermno, const char *buf, int 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,
|
H A D | hvc_xen.c | 44 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() 118 static int domU_write_console(uint32_t vtermno, const char *data, int len) in domU_write_console() argument 121 struct xencons_info *cons = vtermno_to_xencons(vtermno); in domU_write_console() 147 static int domU_read_console(uint32_t vtermno, char *buf, int len) in domU_read_console() argument 152 struct xencons_info *xencons = vtermno_to_xencons(vtermno); in domU_read_console() 212 static int dom0_read_console(uint32_t vtermno, char *buf, int len) in dom0_read_console() argument 221 static int dom0_write_console(uint32_t vtermno, cons argument 288 xencons_info_pv_init(struct xencons_info *info, int vtermno) xencons_info_pv_init() argument 676 xen_hvm_early_write(uint32_t vtermno, const char *str, int len) xen_hvm_early_write() argument 682 xen_hvm_early_write(uint32_t vtermno, const char *str, int len) xen_hvm_early_write() argument [all...] |
H A D | hvc_console.c | 113 static int __hvc_flush(const struct hv_ops *ops, uint32_t vtermno, bool wait) in __hvc_flush() argument 119 return ops->flush(vtermno, wait); in __hvc_flush() 123 static int hvc_console_flush(const struct hv_ops *ops, uint32_t vtermno) in hvc_console_flush() argument 125 return __hvc_flush(ops, vtermno, false); in hvc_console_flush() 133 return __hvc_flush(hp->ops, hp->vtermno, true); in hvc_flush() 285 int hvc_instantiate(uint32_t vtermno, int index, const struct hv_ops *ops) in hvc_instantiate() argument 302 vtermnos[index] = vtermno; in hvc_instantiate() 427 hp->vtermno, hp->port.count); in hvc_close() 480 n = hp->ops->put_chars(hp->vtermno, hp->outbuf, hp->n_outbuf); in hvc_push() 685 n = hp->ops->get_chars(hp->vtermno, bu in __hvc_poll() 911 hvc_alloc(uint32_t vtermno, int data, const struct hv_ops *ops, int outbuf_size) hvc_alloc() argument [all...] |
H A D | hvc_riscv_sbi.c | 18 static int hvc_sbi_tty_put(uint32_t vtermno, const char *buf, int count) in hvc_sbi_tty_put() argument 28 static int hvc_sbi_tty_get(uint32_t vtermno, char *buf, int count) in hvc_sbi_tty_get() argument
|
H A D | hvsi.c | 73 uint32_t vtermno; member 220 got = hvc_get_chars(hp->vtermno, buf, count); in hvsi_read() 295 wrote = hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len); in hvsi_version_respond() 553 wrote = hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len); in hvsi_query() 600 wrote = hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len); in hvsi_set_mctrl() 676 ret = hvc_put_chars(hp->vtermno, (char *)&packet, packet.hdr.len); in hvsi_put_chars() 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_DISABL in hvsi_throttle() 1186 const __be32 *vtermno, *irq; hvsi_console_init() local [all...] |
H A D | hvc_udbg.c | 22 static int hvc_udbg_put(uint32_t vtermno, const char *buf, int count) in hvc_udbg_put() argument 32 static int hvc_udbg_get(uint32_t vtermno, char *buf, int count) in hvc_udbg_get() argument
|
H A D | hvc_rtas.c | 34 static inline int hvc_rtas_write_console(uint32_t vtermno, const char *buf, in hvc_rtas_write_console() argument 47 static int hvc_rtas_read_console(uint32_t vtermno, char *buf, int count) in hvc_rtas_read_console() argument
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/ |
H A D | hvconsole.c | 22 * @vtermno: The vtermno or unit_address of the adapter from which to fetch the 28 int hvc_get_chars(uint32_t vtermno, char *buf, int count) in hvc_get_chars() argument 34 ret = plpar_hcall(H_GET_TERM_CHAR, retbuf, vtermno); in hvc_get_chars() 49 * @vtermno: The vtermno or unit_address of the adapter from which the data 55 int hvc_put_chars(uint32_t vtermno, const char *buf, int count) in hvc_put_chars() argument 65 ret = plpar_hcall_norets(H_PUT_TERM_CHAR, vtermno, count, in hvc_put_chars()
|
/kernel/linux/linux-6.6/arch/powerpc/platforms/pseries/ |
H A D | hvconsole.c | 22 * @vtermno: The vtermno or unit_address of the adapter from which to fetch the 28 int hvc_get_chars(uint32_t vtermno, char *buf, int count) in hvc_get_chars() argument 34 ret = plpar_hcall(H_GET_TERM_CHAR, retbuf, vtermno); in hvc_get_chars() 49 * @vtermno: The vtermno or unit_address of the adapter from which the data 55 int hvc_put_chars(uint32_t vtermno, const char *buf, int count) in hvc_put_chars() argument 65 ret = plpar_hcall_norets(H_PUT_TERM_CHAR, vtermno, count, in hvc_put_chars()
|
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
H A D | hvconsole.h | 24 extern int hvc_get_chars(uint32_t vtermno, char *buf, int count); 25 extern int hvc_put_chars(uint32_t vtermno, const char *buf, int count);
|
/kernel/linux/linux-6.6/arch/powerpc/include/asm/ |
H A D | hvconsole.h | 24 extern int hvc_get_chars(uint32_t vtermno, char *buf, int count); 25 extern int hvc_put_chars(uint32_t vtermno, const char *buf, int count);
|
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
H A D | opal.c | 427 int opal_get_chars(uint32_t vtermno, char *buf, int count) in opal_get_chars() argument 438 rc = opal_console_read(vtermno, &len, buf); in opal_get_chars() 444 static int __opal_put_chars(uint32_t vtermno, const char *data, int total_len, bool atomic) in __opal_put_chars() argument 456 rc = opal_console_write_buffer_space(vtermno, &olen); in __opal_put_chars() 468 rc = opal_console_write(vtermno, &olen, data); in __opal_put_chars() 500 int opal_put_chars(uint32_t vtermno, const char *data, int total_len) in opal_put_chars() argument 502 return __opal_put_chars(vtermno, data, total_len, false); in opal_put_chars() 511 int opal_put_chars_atomic(uint32_t vtermno, const char *data, int total_len) in opal_put_chars_atomic() argument 513 return __opal_put_chars(vtermno, data, total_len, true); in opal_put_chars_atomic() 516 static s64 __opal_flush_console(uint32_t vtermno) in __opal_flush_console() argument 549 opal_flush_console(uint32_t vtermno) opal_flush_console() argument 568 opal_flush_chars(uint32_t vtermno, bool wait) opal_flush_chars() argument [all...] |
/kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/ |
H A D | opal.c | 427 int opal_get_chars(uint32_t vtermno, char *buf, int count) in opal_get_chars() argument 438 rc = opal_console_read(vtermno, &len, buf); in opal_get_chars() 444 static int __opal_put_chars(uint32_t vtermno, const char *data, int total_len, bool atomic) in __opal_put_chars() argument 456 rc = opal_console_write_buffer_space(vtermno, &olen); in __opal_put_chars() 468 rc = opal_console_write(vtermno, &olen, data); in __opal_put_chars() 500 int opal_put_chars(uint32_t vtermno, const char *data, int total_len) in opal_put_chars() argument 502 return __opal_put_chars(vtermno, data, total_len, false); in opal_put_chars() 511 int opal_put_chars_atomic(uint32_t vtermno, const char *data, int total_len) in opal_put_chars_atomic() argument 513 return __opal_put_chars(vtermno, data, total_len, true); in opal_put_chars_atomic() 516 static s64 __opal_flush_console(uint32_t vtermno) in __opal_flush_console() argument 549 opal_flush_console(uint32_t vtermno) opal_flush_console() argument 568 opal_flush_chars(uint32_t vtermno, bool wait) opal_flush_chars() argument [all...] |
/kernel/linux/linux-6.6/drivers/char/ |
H A D | virtio_console.c | 80 u32 vtermno; member 236 static struct port *find_port_by_vtermno(u32 vtermno) in find_port_by_vtermno() argument 244 if (cons->vtermno == vtermno) { in find_port_by_vtermno() 1110 static int put_chars(u32 vtermno, const char *buf, int count) in put_chars() argument 1118 return early_put_chars(vtermno, buf, count); in put_chars() 1120 port = find_port_by_vtermno(vtermno); in put_chars() 1141 static int get_chars(u32 vtermno, char *buf, int count) in get_chars() argument 1149 port = find_port_by_vtermno(vtermno); in get_chars() 1180 port = find_port_by_vtermno(hp->vtermno); in notifier_add_vio() [all...] |