/linux/drivers/tty/ |
H A D | tty_port.c | 23 static size_t tty_port_default_receive_buf(struct tty_port *port, const u8 *p, in tty_port_default_receive_buf() 44 static void tty_port_default_lookahead_buf(struct tty_port *port, const u8 *p, in tty_port_default_lookahead_buf() 64 static void tty_port_default_wakeup(struct tty_port *port) in tty_port_default_wakeup() 90 void tty_port_init(struct tty_port *port) in tty_port_init() 117 void tty_port_link_device(struct tty_port *port, in tty_port_link_device() 137 struct device *tty_port_register_device(struct tty_port *port, in tty_port_register_device() 158 struct device *tty_port_register_device_attr(struct tty_port *port, in tty_port_register_device_attr() 182 struct device *tty_port_register_device_attr_serdev(struct tty_port *port, in tty_port_register_device_attr_serdev() 212 void tty_port_unregister_device(struct tty_port *port, in tty_port_unregister_device() 225 int tty_port_alloc_xmit_buf(struct tty_port *port) in tty_port_alloc_xmit_buf() [all …]
|
H A D | tty_buffer.c | 53 void tty_buffer_lock_exclusive(struct tty_port *port) in tty_buffer_lock_exclusive() 70 void tty_buffer_unlock_exclusive(struct tty_port *port) in tty_buffer_unlock_exclusive() 94 unsigned int tty_buffer_space_avail(struct tty_port *port) in tty_buffer_space_avail() 120 void tty_buffer_free_all(struct tty_port *port) in tty_buffer_free_all() 159 static struct tty_buffer *tty_buffer_alloc(struct tty_port *port, size_t size) in tty_buffer_alloc() 198 static void tty_buffer_free(struct tty_port *port, struct tty_buffer *b) in tty_buffer_free() 223 struct tty_port *port = tty->port; in tty_buffer_flush() local 261 static int __tty_buffer_request_room(struct tty_port *port, size_t size, in __tty_buffer_request_room() 294 int tty_buffer_request_room(struct tty_port *port, size_t size) in tty_buffer_request_room() 300 size_t __tty_insert_flip_string_flags(struct tty_port *port, const u8 *chars, in __tty_insert_flip_string_flags() [all …]
|
/linux/drivers/tty/serial/ |
H A D | bcm63xx_uart.c | 73 static inline unsigned int bcm_uart_readl(struct uart_port *port, in bcm_uart_readl() 79 static inline void bcm_uart_writel(struct uart_port *port, in bcm_uart_writel() 88 static unsigned int bcm_uart_tx_empty(struct uart_port *port) in bcm_uart_tx_empty() 99 static void bcm_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in bcm_uart_set_mctrl() 123 static unsigned int bcm_uart_get_mctrl(struct uart_port *port) in bcm_uart_get_mctrl() 143 static void bcm_uart_stop_tx(struct uart_port *port) in bcm_uart_stop_tx() 159 static void bcm_uart_start_tx(struct uart_port *port) in bcm_uart_start_tx() 175 static void bcm_uart_stop_rx(struct uart_port *port) in bcm_uart_stop_rx() 187 static void bcm_uart_enable_ms(struct uart_port *port) in bcm_uart_enable_ms() 199 static void bcm_uart_break_ctl(struct uart_port *port, int ctl) in bcm_uart_break_ctl() [all …]
|
H A D | 21285.c | 51 static bool is_enabled(struct uart_port *port, int bit) in is_enabled() 60 static void enable(struct uart_port *port, int bit) in enable() 67 static void disable(struct uart_port *port, int bit) in disable() 74 #define is_tx_enabled(port) is_enabled(port, tx_enabled_bit) argument 75 #define tx_enable(port) enable(port, tx_enabled_bit) argument 76 #define tx_disable(port) disable(port, tx_enabled_bit) argument 78 #define is_rx_enabled(port) is_enabled(port, rx_enabled_bit) argument 79 #define rx_enable(port) enable(port, rx_enabled_bit) argument 80 #define rx_disable(port) disable(port, rx_enabled_bit) argument 93 static void serial21285_stop_tx(struct uart_port *port) in serial21285_stop_tx() [all …]
|
H A D | esp32_acm.c | 48 static void esp32s3_acm_write(struct uart_port *port, unsigned long reg, u32 v) in esp32s3_acm_write() 53 static u32 esp32s3_acm_read(struct uart_port *port, unsigned long reg) in esp32s3_acm_read() 58 static u32 esp32s3_acm_tx_fifo_free(struct uart_port *port) in esp32s3_acm_tx_fifo_free() 65 static u32 esp32s3_acm_tx_fifo_cnt(struct uart_port *port) in esp32s3_acm_tx_fifo_cnt() 72 static u32 esp32s3_acm_rx_fifo_cnt(struct uart_port *port) in esp32s3_acm_rx_fifo_cnt() 80 static unsigned int esp32s3_acm_tx_empty(struct uart_port *port) in esp32s3_acm_tx_empty() 85 static void esp32s3_acm_set_mctrl(struct uart_port *port, unsigned int mctrl) in esp32s3_acm_set_mctrl() 89 static unsigned int esp32s3_acm_get_mctrl(struct uart_port *port) in esp32s3_acm_get_mctrl() 94 static void esp32s3_acm_stop_tx(struct uart_port *port) in esp32s3_acm_stop_tx() 103 static void esp32s3_acm_rxint(struct uart_port *port) in esp32s3_acm_rxint() [all …]
|
H A D | apbuart.c | 38 static void apbuart_stop_tx(struct uart_port *port) in apbuart_stop_tx() 47 static void apbuart_start_tx(struct uart_port *port) in apbuart_start_tx() 59 static void apbuart_stop_rx(struct uart_port *port) in apbuart_stop_rx() 68 static void apbuart_rx_chars(struct uart_port *port) in apbuart_rx_chars() 121 static void apbuart_tx_chars(struct uart_port *port) in apbuart_tx_chars() 133 struct uart_port *port = dev_id; in apbuart_int() local 149 static unsigned int apbuart_tx_empty(struct uart_port *port) in apbuart_tx_empty() 155 static unsigned int apbuart_get_mctrl(struct uart_port *port) in apbuart_get_mctrl() 161 static void apbuart_set_mctrl(struct uart_port *port, unsigned int mctrl) in apbuart_set_mctrl() 166 static void apbuart_break_ctl(struct uart_port *port, int break_state) in apbuart_break_ctl() [all …]
|
H A D | st-asc.c | 36 struct uart_port port; member 146 static inline struct asc_port *to_asc_port(struct uart_port *port) in to_asc_port() 151 static inline u32 asc_in(struct uart_port *port, u32 offset) in asc_in() 160 static inline void asc_out(struct uart_port *port, u32 offset, u32 value) in asc_out() 173 static inline void asc_disable_tx_interrupts(struct uart_port *port) in asc_disable_tx_interrupts() 180 static inline void asc_enable_tx_interrupts(struct uart_port *port) in asc_enable_tx_interrupts() 186 static inline void asc_disable_rx_interrupts(struct uart_port *port) in asc_disable_rx_interrupts() 193 static inline void asc_enable_rx_interrupts(struct uart_port *port) in asc_enable_rx_interrupts() 199 static inline u32 asc_txfifo_is_empty(struct uart_port *port) in asc_txfifo_is_empty() 204 static inline u32 asc_txfifo_is_half_empty(struct uart_port *port) in asc_txfifo_is_half_empty() [all …]
|
H A D | liteuart.c | 46 struct uart_port port; member 51 #define to_liteuart_port(port) container_of(port, struct liteuart_port, port) argument 71 static void liteuart_update_irq_reg(struct uart_port *port, bool set, u8 mask) in liteuart_update_irq_reg() 84 static void liteuart_stop_tx(struct uart_port *port) in liteuart_stop_tx() 89 static void liteuart_start_tx(struct uart_port *port) in liteuart_start_tx() 94 static void liteuart_stop_rx(struct uart_port *port) in liteuart_stop_rx() 102 static void liteuart_rx_chars(struct uart_port *port) in liteuart_rx_chars() 122 static void liteuart_tx_chars(struct uart_port *port) in liteuart_tx_chars() 134 struct uart_port *port = &uart->port; in liteuart_interrupt() local 156 struct uart_port *port = &uart->port; in liteuart_timer() local [all …]
|
H A D | sunhv.c | 42 static void transmit_chars_putchar(struct uart_port *port, in transmit_chars_putchar() 57 static void transmit_chars_write(struct uart_port *port, struct tty_port *tport) in transmit_chars_write() 74 static int receive_chars_getchar(struct uart_port *port) in receive_chars_getchar() 117 static int receive_chars_read(struct uart_port *port) in receive_chars_read() 189 static struct tty_port *receive_chars(struct uart_port *port) in receive_chars() 202 static void transmit_chars(struct uart_port *port) in transmit_chars() 221 struct uart_port *port = dev_id; in sunhv_interrupt() local 237 static unsigned int sunhv_tx_empty(struct uart_port *port) in sunhv_tx_empty() 247 static void sunhv_set_mctrl(struct uart_port *port, unsigned int mctrl) in sunhv_set_mctrl() 253 static unsigned int sunhv_get_mctrl(struct uart_port *port) in sunhv_get_mctrl() [all …]
|
H A D | altera_uart.c | 77 struct uart_port port; member 83 static u32 altera_uart_readl(struct uart_port *port, int reg) in altera_uart_readl() 88 static void altera_uart_writel(struct uart_port *port, u32 dat, int reg) in altera_uart_writel() 93 static unsigned int altera_uart_tx_empty(struct uart_port *port) in altera_uart_tx_empty() 99 static unsigned int altera_uart_get_mctrl(struct uart_port *port) in altera_uart_get_mctrl() 125 static void altera_uart_set_mctrl(struct uart_port *port, unsigned int sigs) in altera_uart_set_mctrl() 137 static void altera_uart_start_tx(struct uart_port *port) in altera_uart_start_tx() 145 static void altera_uart_stop_tx(struct uart_port *port) in altera_uart_stop_tx() 153 static void altera_uart_stop_rx(struct uart_port *port) in altera_uart_stop_rx() 161 static void altera_uart_break_ctl(struct uart_port *port, int break_state) in altera_uart_break_ctl() [all …]
|
H A D | timbuart.c | 25 struct uart_port port; member 39 static void timbuart_stop_rx(struct uart_port *port) in timbuart_stop_rx() 46 static void timbuart_stop_tx(struct uart_port *port) in timbuart_stop_tx() 53 static void timbuart_start_tx(struct uart_port *port) in timbuart_start_tx() 62 static unsigned int timbuart_tx_empty(struct uart_port *port) in timbuart_tx_empty() 69 static void timbuart_flush_buffer(struct uart_port *port) in timbuart_flush_buffer() 80 static void timbuart_rx_chars(struct uart_port *port) in timbuart_rx_chars() 96 static void timbuart_tx_chars(struct uart_port *port) in timbuart_tx_chars() 113 static void timbuart_handle_tx_port(struct uart_port *port, u32 isr, u32 *ier) in timbuart_handle_tx_port() 147 static void timbuart_handle_rx_port(struct uart_port *port, u32 isr, u32 *ier) in timbuart_handle_rx_port() [all …]
|
H A D | mcf.c | 53 struct uart_port port; member 60 static unsigned int mcf_tx_empty(struct uart_port *port) in mcf_tx_empty() 68 static unsigned int mcf_get_mctrl(struct uart_port *port) in mcf_get_mctrl() 84 static void mcf_set_mctrl(struct uart_port *port, unsigned int sigs) in mcf_set_mctrl() 98 static void mcf_start_tx(struct uart_port *port) in mcf_start_tx() 114 static void mcf_stop_tx(struct uart_port *port) in mcf_stop_tx() 124 static void mcf_stop_rx(struct uart_port *port) in mcf_stop_rx() 134 static void mcf_break_ctl(struct uart_port *port, int break_state) in mcf_break_ctl() 148 static int mcf_startup(struct uart_port *port) in mcf_startup() 174 static void mcf_shutdown(struct uart_port *port) in mcf_shutdown() [all …]
|
H A D | uartlite.c | 118 static inline u32 uart_in32(u32 offset, struct uart_port *port) in uart_in32() 125 static inline void uart_out32(u32 val, u32 offset, struct uart_port *port) in uart_out32() 140 static int ulite_receive(struct uart_port *port, int stat) in ulite_receive() 190 static int ulite_transmit(struct uart_port *port, int stat) in ulite_transmit() 222 struct uart_port *port = dev_id; in ulite_isr() local 244 static unsigned int ulite_tx_empty(struct uart_port *port) in ulite_tx_empty() 256 static unsigned int ulite_get_mctrl(struct uart_port *port) in ulite_get_mctrl() 261 static void ulite_set_mctrl(struct uart_port *port, unsigned int mctrl) in ulite_set_mctrl() 266 static void ulite_stop_tx(struct uart_port *port) in ulite_stop_tx() 271 static void ulite_start_tx(struct uart_port *port) in ulite_start_tx() [all …]
|
H A D | atmel_serial.c | 208 static inline u32 atmel_uart_readl(struct uart_port *port, u32 reg) in atmel_uart_readl() 213 static inline void atmel_uart_writel(struct uart_port *port, u32 reg, u32 value) in atmel_uart_writel() 218 static inline u8 atmel_uart_read_char(struct uart_port *port) in atmel_uart_read_char() 223 static inline void atmel_uart_write_char(struct uart_port *port, u8 value) in atmel_uart_write_char() 228 static inline int atmel_uart_is_half_duplex(struct uart_port *port) in atmel_uart_is_half_duplex() 241 static bool atmel_use_pdc_rx(struct uart_port *port) in atmel_use_pdc_rx() 248 static bool atmel_use_pdc_tx(struct uart_port *port) in atmel_use_pdc_tx() 255 static bool atmel_use_pdc_rx(struct uart_port *port) in atmel_use_pdc_rx() 260 static bool atmel_use_pdc_tx(struct uart_port *port) in atmel_use_pdc_tx() 266 static bool atmel_use_dma_tx(struct uart_port *port) in atmel_use_dma_tx() [all …]
|
H A D | serial_core.c | 113 void uart_write_wakeup(struct uart_port *port) in uart_write_wakeup() 128 struct uart_port *port; in uart_stop() local 139 struct uart_port *port = state->uart_port; in __uart_start() local 169 struct uart_port *port; in uart_start() local 178 uart_update_mctrl(struct uart_port *port, unsigned int set, unsigned int clear) in uart_update_mctrl() 191 #define uart_set_mctrl(port, set) uart_update_mctrl(port, set, 0) argument 192 #define uart_clear_mctrl(port, clear) uart_update_mctrl(port, 0, clear) argument 247 static int uart_alloc_xmit_buf(struct tty_port *port) in uart_alloc_xmit_buf() 280 static void uart_free_xmit_buf(struct tty_port *port) in uart_free_xmit_buf() 361 struct tty_port *port = &state->port; in uart_startup() local [all …]
|
H A D | mux.c | 47 struct uart_port port; member 104 static unsigned int mux_tx_empty(struct uart_port *port) in mux_tx_empty() 117 static void mux_set_mctrl(struct uart_port *port, unsigned int mctrl) in mux_set_mctrl() 128 static unsigned int mux_get_mctrl(struct uart_port *port) in mux_get_mctrl() 139 static void mux_stop_tx(struct uart_port *port) in mux_stop_tx() 149 static void mux_start_tx(struct uart_port *port) in mux_start_tx() 159 static void mux_stop_rx(struct uart_port *port) in mux_stop_rx() 170 static void mux_break_ctl(struct uart_port *port, int break_state) in mux_break_ctl() 174 static void mux_tx_done(struct uart_port *port) in mux_tx_done() 188 static void mux_write(struct uart_port *port) in mux_write() [all …]
|
H A D | digicolor-usart.c | 77 struct uart_port port; member 83 static bool digicolor_uart_tx_full(struct uart_port *port) in digicolor_uart_tx_full() 89 static bool digicolor_uart_rx_empty(struct uart_port *port) in digicolor_uart_rx_empty() 95 static void digicolor_uart_stop_tx(struct uart_port *port) in digicolor_uart_stop_tx() 103 static void digicolor_uart_start_tx(struct uart_port *port) in digicolor_uart_start_tx() 111 static void digicolor_uart_stop_rx(struct uart_port *port) in digicolor_uart_stop_rx() 132 static void digicolor_uart_rx(struct uart_port *port) in digicolor_uart_rx() 180 static void digicolor_uart_tx(struct uart_port *port) in digicolor_uart_tx() 219 struct uart_port *port = dev_id; in digicolor_uart_int() local 233 static unsigned int digicolor_uart_tx_empty(struct uart_port *port) in digicolor_uart_tx_empty() [all …]
|
/linux/drivers/usb/typec/tcpm/ |
H A D | tcpm.c | 599 struct tcpm_port *port; member 606 struct tcpm_port *port; member 624 #define tcpm_port_is_sink(port) \ argument 631 #define tcpm_port_is_source(port) \ argument 637 #define tcpm_port_is_debug(port) \ argument 641 #define tcpm_port_is_audio(port) \ argument 644 #define tcpm_port_is_audio_detached(port) \ argument 648 #define tcpm_try_snk(port) \ argument 652 #define tcpm_try_src(port) \ argument 656 #define tcpm_data_role_for_source(port) \ argument [all …]
|
/linux/drivers/net/bonding/ |
H A D | bond_3ad.c | 127 static inline struct bonding *__get_bond_by_port(struct port *port) in __get_bond_by_port() 143 static inline struct aggregator *__get_first_agg(struct port *port) in __get_first_agg() 180 static void __disable_distributing_port(struct port *port) in __disable_distributing_port() 192 static void __enable_collecting_port(struct port *port) in __enable_collecting_port() 206 static inline void __disable_port(struct port *port) in __disable_port() 217 static inline void __enable_port(struct port *port) in __enable_port() 230 static bool __port_move_to_attached_state(struct port *port) in __port_move_to_attached_state() 246 static int __port_is_collecting_distributing(struct port *port) in __port_is_collecting_distributing() 257 static inline u32 __get_agg_selection_mode(struct port *port) in __get_agg_selection_mode() 271 static inline int __check_agg_selection_timer(struct port *port) in __check_agg_selection_timer() [all …]
|
/linux/drivers/char/ |
H A D | virtio_console.c | 167 struct port { struct 172 struct ports_device *portdev; argument 175 struct port_buffer *inbuf; argument 179 * port. Has to be a spinlock because it can be called from argument 187 /* The IO vqs for this port */ argument 190 /* File in the debugfs directory that exposes this port's information */ argument 195 * this port for accounting and debugging purposes. These argument 198 struct port_stats stats; argument 206 /* Each port associates with a separate char device */ argument 210 /* Reference-counting to handle port hot-unplugs and file operations */ argument [all …]
|
/linux/drivers/thunderbolt/ |
H A D | usb4.c | 166 struct tb_port *port; in usb4_switch_check_wakes() local 212 static bool link_is_usb4(struct tb_port *port) in link_is_usb4() 412 struct tb_port *port; in usb4_switch_set_wake() local 733 const struct tb_port *port; in usb4_switch_credits_init() local 946 int usb4_port_index(const struct tb_switch *sw, const struct tb_port *port) in usb4_port_index() 978 const struct tb_port *port) in usb4_switch_map_pcie_down() 1009 const struct tb_port *port) in usb4_switch_map_usb3_down() 1040 struct tb_port *port; in usb4_switch_add_ports() local 1073 struct tb_port *port; in usb4_switch_remove_ports() local 1090 int usb4_port_unlock(struct tb_port *port) in usb4_port_unlock() [all …]
|
/linux/drivers/tty/serial/8250/ |
H A D | 8250_port.c | 626 int serial8250_em485_config(struct uart_port *port, struct ktermios *termios, in serial8250_em485_config() 1154 struct uart_port *port = &up->port; in autoconfig() local 1321 struct uart_port *port = &up->port; in autoconfig_irq() local 1377 static void serial8250_stop_rx(struct uart_port *port) in serial8250_stop_rx() 1514 static void serial8250_stop_tx(struct uart_port *port) in serial8250_stop_tx() 1531 static inline void __start_tx(struct uart_port *port) in __start_tx() 1583 static bool start_tx_rs485(struct uart_port *port) in start_tx_rs485() 1635 static void serial8250_start_tx(struct uart_port *port) in serial8250_start_tx() 1656 static void serial8250_throttle(struct uart_port *port) in serial8250_throttle() 1661 static void serial8250_unthrottle(struct uart_port *port) in serial8250_unthrottle() [all …]
|
/linux/drivers/usb/host/ |
H A D | xhci-dbgtty.c | 28 dbc_kfifo_to_req(struct dbc_port *port, char *packet) in dbc_kfifo_to_req() 50 static int dbc_start_tx(struct dbc_port *port) in dbc_start_tx() 86 static void dbc_start_rx(struct dbc_port *port) in dbc_start_rx() 120 static int dbc_rx_push_buffer(struct dbc_port *port, struct dbc_request *req) in dbc_rx_push_buffer() 152 struct dbc_port *port = dbc_to_port(dbc); in dbc_read_complete() local 187 struct dbc_port *port = dbc_to_port(dbc); in dbc_write_complete() local 252 struct dbc_port *port; in dbc_tty_install() local 268 struct dbc_port *port = tty->driver_data; in dbc_tty_open() local 275 struct dbc_port *port = tty->driver_data; in dbc_tty_close() local 283 struct dbc_port *port = tty->driver_data; in dbc_tty_write() local [all …]
|
/linux/drivers/usb/serial/ |
H A D | generic.c | 105 int usb_serial_generic_open(struct tty_struct *tty, struct usb_serial_port *port) in usb_serial_generic_open() 118 void usb_serial_generic_close(struct usb_serial_port *port) in usb_serial_generic_close() 138 int usb_serial_generic_prepare_write_buffer(struct usb_serial_port *port, in usb_serial_generic_prepare_write_buffer() 153 int usb_serial_generic_write_start(struct usb_serial_port *port, in usb_serial_generic_write_start() 213 struct usb_serial_port *port, const unsigned char *buf, int count) in usb_serial_generic_write() 234 struct usb_serial_port *port = tty->driver_data; in usb_serial_generic_write_room() local 251 struct usb_serial_port *port = tty->driver_data; in usb_serial_generic_chars_in_buffer() local 269 struct usb_serial_port *port = tty->driver_data; in usb_serial_generic_wait_until_sent() local 299 static int usb_serial_generic_submit_read_urb(struct usb_serial_port *port, in usb_serial_generic_submit_read_urb() 323 int usb_serial_generic_submit_read_urbs(struct usb_serial_port *port, in usb_serial_generic_submit_read_urbs() [all …]
|
/linux/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_main.c | 50 int prestera_port_learning_set(struct prestera_port *port, bool learn) in prestera_port_learning_set() 55 int prestera_port_uc_flood_set(struct prestera_port *port, bool flood) in prestera_port_uc_flood_set() 60 int prestera_port_mc_flood_set(struct prestera_port *port, bool flood) in prestera_port_mc_flood_set() 65 int prestera_port_br_locked_set(struct prestera_port *port, bool br_locked) in prestera_port_br_locked_set() 70 int prestera_port_pvid_set(struct prestera_port *port, u16 vid) in prestera_port_pvid_set() 96 struct prestera_port *port = NULL, *tmp; in prestera_port_find_by_hwid() local 112 struct prestera_port *port = NULL, *tmp; in prestera_find_port() local 128 struct prestera_port *port; in prestera_switch_get() local 134 int prestera_port_cfg_mac_read(struct prestera_port *port, in prestera_port_cfg_mac_read() 141 int prestera_port_cfg_mac_write(struct prestera_port *port, in prestera_port_cfg_mac_write() [all …]
|