/openbmc/linux/drivers/tty/serial/ |
H A D | qcom_geni_serial.c | 118 struct uart_port uport; member 147 static int qcom_geni_serial_port_setup(struct uart_port *uport); 149 static inline struct qcom_geni_serial_port *to_dev_port(struct uart_port *uport) in to_dev_port() argument 151 return container_of(uport, struct qcom_geni_serial_port, uport); in to_dev_port() 156 .uport = { 164 .uport = { 172 .uport = { 182 .uport = { 190 static int qcom_geni_serial_request_port(struct uart_port *uport) in qcom_geni_serial_request_port() argument 192 struct platform_device *pdev = to_platform_device(uport->dev); in qcom_geni_serial_request_port() [all …]
|
H A D | serial_core.c | 60 static int uart_dcd_enabled(struct uart_port *uport) in uart_dcd_enabled() argument 62 return !!(uport->status & UPSTAT_DCD_ENABLE); in uart_dcd_enabled() 72 static inline void uart_port_deref(struct uart_port *uport) in uart_port_deref() argument 74 if (atomic_dec_and_test(&uport->state->refcount)) in uart_port_deref() 75 wake_up(&uport->state->remove_wait); in uart_port_deref() 86 #define uart_port_unlock(uport, flags) \ argument 88 struct uart_port *__uport = uport; \ 193 static void uart_port_dtr_rts(struct uart_port *uport, bool active) in uart_port_dtr_rts() argument 196 uart_set_mctrl(uport, TIOCM_DTR | TIOCM_RTS); in uart_port_dtr_rts() 198 uart_clear_mctrl(uport, TIOCM_DTR | TIOCM_RTS); in uart_port_dtr_rts() [all …]
|
H A D | sb1250-duart.c | 100 #define to_sport(uport) container_of(uport, struct sbd_port, port) argument 232 static unsigned int sbd_tx_empty(struct uart_port *uport) in sbd_tx_empty() argument 234 struct sbd_port *sport = to_sport(uport); in sbd_tx_empty() 239 static unsigned int sbd_get_mctrl(struct uart_port *uport) in sbd_get_mctrl() argument 241 struct sbd_port *sport = to_sport(uport); in sbd_get_mctrl() 245 status >>= (uport->line) % 2; in sbd_get_mctrl() 253 static void sbd_set_mctrl(struct uart_port *uport, unsigned int mctrl) in sbd_set_mctrl() argument 255 struct sbd_port *sport = to_sport(uport); in sbd_set_mctrl() 266 clr <<= (uport->line) % 2; in sbd_set_mctrl() 267 set <<= (uport->line) % 2; in sbd_set_mctrl() [all …]
|
H A D | dz.c | 85 static inline struct dz_port *to_dport(struct uart_port *uport) in to_dport() argument 87 return container_of(uport, struct dz_port, port); in to_dport() 123 static void dz_stop_tx(struct uart_port *uport) in dz_stop_tx() argument 125 struct dz_port *dport = to_dport(uport); in dz_stop_tx() 133 static void dz_start_tx(struct uart_port *uport) in dz_start_tx() argument 135 struct dz_port *dport = to_dport(uport); in dz_start_tx() 143 static void dz_stop_rx(struct uart_port *uport) in dz_stop_rx() argument 145 struct dz_port *dport = to_dport(uport); in dz_stop_rx() 180 struct uart_port *uport; in dz_receive_chars() local 190 uport = &dport->port; in dz_receive_chars() [all …]
|
H A D | zs.c | 99 #define to_zport(uport) container_of(uport, struct zs_port, port) argument 304 static unsigned int zs_tx_empty(struct uart_port *uport) in zs_tx_empty() argument 306 struct zs_port *zport = to_zport(uport); in zs_tx_empty() 372 static unsigned int zs_get_mctrl(struct uart_port *uport) in zs_get_mctrl() argument 374 struct zs_port *zport = to_zport(uport); in zs_get_mctrl() 385 static void zs_set_mctrl(struct uart_port *uport, unsigned int mctrl) in zs_set_mctrl() argument 387 struct zs_port *zport = to_zport(uport); in zs_set_mctrl() 425 static void zs_stop_tx(struct uart_port *uport) in zs_stop_tx() argument 427 struct zs_port *zport = to_zport(uport); in zs_stop_tx() 437 static void zs_start_tx(struct uart_port *uport) in zs_start_tx() argument [all …]
|
H A D | serial-tegra.c | 107 struct uart_port uport; member 159 return readl(tup->uport.membase + (reg << tup->uport.regshift)); in tegra_uart_read() 165 writel(val, tup->uport.membase + (reg << tup->uport.regshift)); in tegra_uart_write() 170 return container_of(u, struct tegra_uart_port, uport); in to_tegra_uport() 372 dev_err(tup->uport.dev, in tegra_check_rate_in_range() 400 dev_err(tup->uport.dev, in tegra_set_baudrate() 414 spin_lock_irqsave(&tup->uport.lock, flags); in tegra_set_baudrate() 427 spin_unlock_irqrestore(&tup->uport.lock, flags); in tegra_set_baudrate() 445 tup->uport.icount.overrun++; in tegra_uart_decode_rx_error() 446 dev_dbg(tup->uport.dev, "Got overrun errors\n"); in tegra_uart_decode_rx_error() [all …]
|
H A D | sprd_serial.c | 1096 static bool sprd_uart_is_console(struct uart_port *uport) in sprd_uart_is_console() argument 1100 if ((cons && cons->index >= 0 && cons->index == uport->line) || in sprd_uart_is_console() 1101 of_console_check(uport->dev->of_node, SPRD_TTY_NAME, uport->line)) in sprd_uart_is_console() 1107 static int sprd_clk_init(struct uart_port *uport) in sprd_clk_init() argument 1110 struct sprd_uart_port *u = container_of(uport, struct sprd_uart_port, port); in sprd_clk_init() 1112 clk_uart = devm_clk_get(uport->dev, "uart"); in sprd_clk_init() 1114 dev_warn(uport->dev, "uart%d can't get uart clock\n", in sprd_clk_init() 1115 uport->line); in sprd_clk_init() 1119 clk_parent = devm_clk_get(uport->dev, "source"); in sprd_clk_init() 1121 dev_warn(uport->dev, "uart%d can't get source clock\n", in sprd_clk_init() [all …]
|
H A D | arc_uart.c | 100 #define to_arc_port(uport) container_of(uport, struct arc_uart_port, port) argument
|
H A D | pmac_zilog.c | 1850 struct uart_pmac_port *uport = &pmz_ports[i]; in exit_pmz() local 1852 if (uport->node != NULL) in exit_pmz() 1853 pmz_dispose_port(uport); in exit_pmz() 1855 if (uport->pdev != NULL) in exit_pmz() 1856 pmz_dispose_port(uport); in exit_pmz()
|
H A D | fsl_lpuart.c | 3160 struct uart_port *uport = &sport->port; in lpuart_console_fixup() local 3175 termios.c_cflag = uport->cons->cflag; in lpuart_console_fixup() 3178 uport->ops->set_termios(uport, &termios, NULL); in lpuart_console_fixup()
|
/openbmc/qemu/hw/usb/ |
H A D | hcd-xhci.c | 533 static XHCIPort *xhci_lookup_port(XHCIState *xhci, struct USBPort *uport) in xhci_lookup_port() argument 537 if (!uport->dev) { in xhci_lookup_port() 540 switch (uport->dev->speed) { in xhci_lookup_port() 544 index = uport->index + xhci->numports_3; in xhci_lookup_port() 547 index = uport->index; in xhci_lookup_port() 1363 if (!xhci->slots[slotid-1].uport || in xhci_reset_ep() 1364 !xhci->slots[slotid-1].uport->dev || in xhci_reset_ep() 1365 !xhci->slots[slotid-1].uport->dev->attached) { in xhci_reset_ep() 1862 return (xhci->slots[slotid - 1].uport && in xhci_slot_ok() 1863 xhci->slots[slotid - 1].uport->dev && in xhci_slot_ok() [all …]
|
H A D | hcd-dwc2.c | 192 dev = usb_find_device(&s->uport, addr); in dwc2_find_device() 876 USBDevice *dev = s->uport.dev; in dwc2_hreg0_write() 946 usb_port_reset(&s->uport); in dwc2_hreg0_write() 1244 if (s->uport.dev && s->uport.dev->attached) { in dwc2_reset_enter() 1245 usb_detach(&s->uport); in dwc2_reset_enter() 1339 if (s->uport.dev && s->uport.dev->attached) { in dwc2_reset_exit() 1340 usb_attach(&s->uport); in dwc2_reset_exit() 1341 usb_device_reset(s->uport.dev); in dwc2_reset_exit() 1357 usb_register_port(&s->bus, &s->uport, s, 0, &dwc2_port_ops, in dwc2_realize() 1360 s->uport.dev = 0; in dwc2_realize()
|
H A D | hcd-xhci.h | 127 USBPort *uport; member 138 USBPort *uport; member
|
H A D | hcd-dwc2.h | 170 USBPort uport; member
|
/openbmc/linux/include/linux/ |
H A D | serial_core.h | 761 #define __uart_port_tx(uport, ch, flags, tx_ready, put_char, tx_done, \ argument 764 struct uart_port *__port = (uport); \ 1009 static inline bool uart_cts_enabled(struct uart_port *uport) in uart_cts_enabled() argument 1011 return !!(uport->status & UPSTAT_CTS_ENABLE); in uart_cts_enabled() 1014 static inline bool uart_softcts_mode(struct uart_port *uport) in uart_softcts_mode() argument 1018 return ((uport->status & mask) == UPSTAT_CTS_ENABLE); in uart_softcts_mode() 1025 void uart_handle_dcd_change(struct uart_port *uport, bool active); 1026 void uart_handle_cts_change(struct uart_port *uport, bool active); 1031 void uart_xchar_out(struct uart_port *uport, int offset);
|
/openbmc/qemu/io/ |
H A D | dns-resolver.c | 59 char uport[33]; in qio_dns_resolver_lookup_sync_inet() local 111 uaddr, INET6_ADDRSTRLEN, uport, 32, in qio_dns_resolver_lookup_sync_inet() 116 .port = g_strdup(uport), in qio_dns_resolver_lookup_sync_inet()
|
/openbmc/linux/tools/testing/cxl/test/ |
H A D | cxl.c | 1151 struct platform_device *uport = in cxl_single_init() local 1159 pdev->dev.parent = &uport->dev; in cxl_single_init() 1331 struct platform_device *uport = in cxl_test_init() local 1338 pdev->dev.parent = &uport->dev; in cxl_test_init()
|
/openbmc/linux/drivers/tty/serial/8250/ |
H A D | 8250_port.c | 3100 struct uart_port *uport = state->uart_port; in do_get_rxtrig() local 3101 struct uart_8250_port *up = up_to_u8250p(uport); in do_get_rxtrig() 3103 if (!(up->capabilities & UART_CAP_FIFO) || uport->fifosize <= 1) in do_get_rxtrig() 3136 struct uart_port *uport = state->uart_port; in do_set_rxtrig() local 3137 struct uart_8250_port *up = up_to_u8250p(uport); in do_set_rxtrig() 3140 if (!(up->capabilities & UART_CAP_FIFO) || uport->fifosize <= 1) in do_set_rxtrig()
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-cxl | 140 What: /sys/bus/cxl/devices/portX/uport 147 port with CXL component registers. The 'uport' symlink connects 219 for this decoders uport, unlocks / resets the decoder.
|
/openbmc/qemu/util/ |
H A D | qemu-sockets.c | 217 char uport[33]; in inet_listen_saddr() local 284 uaddr,INET6_ADDRSTRLEN,uport,32, in inet_listen_saddr()
|