Home
last modified time | relevance | path

Searched refs:uport (Results 1 – 21 of 21) sorted by relevance

/linux-6.1.9/drivers/tty/serial/
Dqcom_geni_serial.c125 struct uart_port uport; member
132 int (*handle_rx)(struct uart_port *uport, u32 bytes, bool drop);
150 static int handle_rx_console(struct uart_port *uport, u32 bytes, bool drop);
151 static int handle_rx_uart(struct uart_port *uport, u32 bytes, bool drop);
153 static void qcom_geni_serial_stop_rx(struct uart_port *uport);
154 static void qcom_geni_serial_handle_rx(struct uart_port *uport, bool drop);
161 .uport = {
169 .uport = {
177 .uport = {
187 .uport = {
[all …]
Dserial_core.c59 static int uart_dcd_enabled(struct uart_port *uport) in uart_dcd_enabled() argument
61 return !!(uport->status & UPSTAT_DCD_ENABLE); in uart_dcd_enabled()
71 static inline void uart_port_deref(struct uart_port *uport) in uart_port_deref() argument
73 if (atomic_dec_and_test(&uport->state->refcount)) in uart_port_deref()
74 wake_up(&uport->state->remove_wait); in uart_port_deref()
85 #define uart_port_unlock(uport, flags) \ argument
87 struct uart_port *__uport = uport; \
172 static void uart_port_dtr_rts(struct uart_port *uport, int raise) in uart_port_dtr_rts() argument
175 uart_set_mctrl(uport, TIOCM_DTR | TIOCM_RTS); in uart_port_dtr_rts()
177 uart_clear_mctrl(uport, TIOCM_DTR | TIOCM_RTS); in uart_port_dtr_rts()
[all …]
Dsb1250-duart.c100 #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 …]
Ddz.c85 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 …]
Dzs.c99 #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 …]
Dserial-tegra.c108 struct uart_port uport; member
160 return readl(tup->uport.membase + (reg << tup->uport.regshift)); in tegra_uart_read()
166 writel(val, tup->uport.membase + (reg << tup->uport.regshift)); in tegra_uart_write()
171 return container_of(u, struct tegra_uart_port, uport); in to_tegra_uport()
373 dev_err(tup->uport.dev, in tegra_check_rate_in_range()
401 dev_err(tup->uport.dev, in tegra_set_baudrate()
415 spin_lock_irqsave(&tup->uport.lock, flags); in tegra_set_baudrate()
428 spin_unlock_irqrestore(&tup->uport.lock, flags); in tegra_set_baudrate()
446 tup->uport.icount.overrun++; in tegra_uart_decode_rx_error()
447 dev_dbg(tup->uport.dev, "Got overrun errors\n"); in tegra_uart_decode_rx_error()
[all …]
Dsprd_serial.c1121 static bool sprd_uart_is_console(struct uart_port *uport) in sprd_uart_is_console() argument
1125 if ((cons && cons->index >= 0 && cons->index == uport->line) || in sprd_uart_is_console()
1126 of_console_check(uport->dev->of_node, SPRD_TTY_NAME, uport->line)) in sprd_uart_is_console()
1132 static int sprd_clk_init(struct uart_port *uport) in sprd_clk_init() argument
1135 struct sprd_uart_port *u = sprd_port[uport->line]; in sprd_clk_init()
1137 clk_uart = devm_clk_get(uport->dev, "uart"); in sprd_clk_init()
1139 dev_warn(uport->dev, "uart%d can't get uart clock\n", in sprd_clk_init()
1140 uport->line); in sprd_clk_init()
1144 clk_parent = devm_clk_get(uport->dev, "source"); in sprd_clk_init()
1146 dev_warn(uport->dev, "uart%d can't get source clock\n", in sprd_clk_init()
[all …]
Darc_uart.c100 #define to_arc_port(uport) container_of(uport, struct arc_uart_port, port) argument
Dpmac_zilog.c1866 struct uart_pmac_port *uport = &pmz_ports[i]; in exit_pmz() local
1868 if (uport->node != NULL) in exit_pmz()
1869 pmz_dispose_port(uport); in exit_pmz()
1871 if (uport->pdev != NULL) in exit_pmz()
1872 pmz_dispose_port(uport); in exit_pmz()
Dsamsung_tty.c1868 struct uart_port *uport; in s3c24xx_serial_cpufreq_transition() local
1871 uport = &port->port; in s3c24xx_serial_cpufreq_transition()
1898 if (uport->state == NULL) in s3c24xx_serial_cpufreq_transition()
1901 tty = uport->state->port.tty; in s3c24xx_serial_cpufreq_transition()
1909 dev_warn(uport->dev, "%s: no termios?\n", __func__); in s3c24xx_serial_cpufreq_transition()
1913 s3c24xx_serial_set_termios(uport, termios, NULL); in s3c24xx_serial_cpufreq_transition()
/linux-6.1.9/drivers/cxl/core/
Dport.c558 lock_dev = port->uport; in unregister_port()
560 lock_dev = parent->uport; in unregister_port()
580 rc = sysfs_create_link(&port->dev.kobj, &port->uport->kobj, "uport"); in devm_cxl_link_uport()
588 static struct cxl_port *cxl_port_alloc(struct device *uport, in cxl_port_alloc() argument
604 port->uport = uport; in cxl_port_alloc()
632 port->host_bridge = iter->uport; in cxl_port_alloc()
633 dev_dbg(uport, "host-bridge: %s\n", dev_name(port->host_bridge)); in cxl_port_alloc()
635 dev->parent = uport; in cxl_port_alloc()
665 struct cxl_port *devm_cxl_add_port(struct device *host, struct device *uport, in devm_cxl_add_port() argument
673 port = cxl_port_alloc(uport, component_reg_phys, parent_dport); in devm_cxl_add_port()
[all …]
Dpci.c465 static struct pci_doe_mb *find_cdat_doe(struct device *uport) in find_cdat_doe() argument
472 cxlmd = to_cxl_memdev(uport); in find_cdat_doe()
596 struct device *uport = port->uport; in read_cdat_data() local
600 cdat_doe = find_cdat_doe(uport); in read_cdat_data()
Dregion.c864 dev_name(port->uport), dev_name(&port->dev), in cxl_port_attach_region()
867 ep ? ep->next ? dev_name(ep->next->uport) : in cxl_port_attach_region()
942 dev_name(port->uport), dev_name(&port->dev), in check_last_peer()
952 dev_name(port->uport), dev_name(&port->dev), in check_last_peer()
984 dev_name(port->uport), dev_name(&port->dev), in cxl_port_setup_targets()
1034 dev_name(parent_port->uport), in cxl_port_setup_targets()
1042 dev_name(parent_port->uport), in cxl_port_setup_targets()
1051 dev_name(port->uport), dev_name(&port->dev), iw); in cxl_port_setup_targets()
1071 dev_name(port->uport), dev_name(&port->dev), in cxl_port_setup_targets()
1082 dev_dbg(&cxlr->dev, "%s:%s iw: %d ig: %d\n", dev_name(port->uport), in cxl_port_setup_targets()
[all …]
/linux-6.1.9/tools/testing/cxl/test/
Dmock.c140 if (ops && ops->is_mock_port(port->uport)) in __wrap_devm_cxl_setup_hdm()
155 if (ops && ops->is_mock_port(port->uport)) in __wrap_devm_cxl_add_passthrough_decoder()
171 if (ops && ops->is_mock_port(port->uport)) in __wrap_devm_cxl_enumerate_decoders()
186 if (ops && ops->is_mock_port(port->uport)) in __wrap_devm_cxl_port_enumerate_dports()
Dcxl.c611 rc = device_for_each_child(port->uport, &ctx, in mock_cxl_enumerate_decoders()
642 if (is_multi_bridge(port->uport)) { in mock_cxl_port_enumerate_dports()
645 } else if (is_single_bridge(port->uport)) { in mock_cxl_port_enumerate_dports()
650 dev_name(port->uport)); in mock_cxl_port_enumerate_dports()
656 if (is_multi_bridge(parent->uport)) { in mock_cxl_port_enumerate_dports()
659 } else if (is_single_bridge(parent->uport)) { in mock_cxl_port_enumerate_dports()
664 dev_name(port->uport)); in mock_cxl_port_enumerate_dports()
677 if (pdev->dev.parent != port->uport) { in mock_cxl_port_enumerate_dports()
679 dev_name(port->uport), in mock_cxl_port_enumerate_dports()
798 struct platform_device *uport = in cxl_single_init() local
[all …]
/linux-6.1.9/include/linux/
Dserial_core.h797 static inline bool uart_cts_enabled(struct uart_port *uport) in uart_cts_enabled() argument
799 return !!(uport->status & UPSTAT_CTS_ENABLE); in uart_cts_enabled()
802 static inline bool uart_softcts_mode(struct uart_port *uport) in uart_softcts_mode() argument
806 return ((uport->status & mask) == UPSTAT_CTS_ENABLE); in uart_softcts_mode()
813 extern void uart_handle_dcd_change(struct uart_port *uport,
815 extern void uart_handle_cts_change(struct uart_port *uport,
821 void uart_xchar_out(struct uart_port *uport, int offset);
/linux-6.1.9/drivers/cxl/
Dcxl.h471 struct device *uport; member
553 return port->uport == port->dev.parent; in is_cxl_root()
559 int devm_cxl_register_pci_bus(struct device *host, struct device *uport,
562 struct cxl_port *devm_cxl_add_port(struct device *host, struct device *uport,
Dcxlmem.h68 return to_cxl_memdev(port->uport); in cxled_to_memdev()
74 return is_cxl_memdev(port->uport); in is_cxl_endpoint()
Dport.c53 struct cxl_memdev *cxlmd = to_cxl_memdev(port->uport); in cxl_port_probe()
/linux-6.1.9/Documentation/ABI/testing/
Dsysfs-bus-cxl81 What: /sys/bus/cxl/devices/portX/uport
88 port with CXL component registers. The 'uport' symlink connects
145 for this decoders uport, unlocks / resets the decoder.
/linux-6.1.9/drivers/tty/serial/8250/
D8250_port.c3078 struct uart_port *uport = state->uart_port; in do_get_rxtrig() local
3079 struct uart_8250_port *up = up_to_u8250p(uport); in do_get_rxtrig()
3081 if (!(up->capabilities & UART_CAP_FIFO) || uport->fifosize <= 1) in do_get_rxtrig()
3114 struct uart_port *uport = state->uart_port; in do_set_rxtrig() local
3115 struct uart_8250_port *up = up_to_u8250p(uport); in do_set_rxtrig()
3118 if (!(up->capabilities & UART_CAP_FIFO) || uport->fifosize <= 1 || in do_set_rxtrig()