Home
last modified time | relevance | path

Searched defs:port (Results 1 – 25 of 1533) sorted by relevance

12345678910>>...62

/linux/drivers/tty/serial/
H A Dbcm63xx_uart.c73 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 D21285.c51 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 Dst-asc.c36 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 Dliteuart.c46 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 Dsunhv.c42 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 Daltera_uart.c77 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 Dtimbuart.c25 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 Dmcf.c53 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 Duartlite.c118 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 Dserial_core.c113 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()
189 #define uart_set_mctrl(port, set) uart_update_mctrl(port, set, 0) argument
190 #define uart_clear_mctrl(port, clear) uart_update_mctrl(port, 0, clear) argument
244 static int uart_alloc_xmit_buf(struct tty_port *port) in uart_alloc_xmit_buf()
277 static void uart_free_xmit_buf(struct tty_port *port) in uart_free_xmit_buf()
358 struct tty_port *port = &state->port; in uart_startup() local
[all …]
H A Dmux.c47 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 Ddigicolor-usart.c77 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 …]
H A Dmps2-uart.c71 struct uart_port port; member
78 static inline struct mps2_uart_port *to_mps2_port(struct uart_port *port) in to_mps2_port()
83 static void mps2_uart_write8(struct uart_port *port, u8 val, unsigned int off) in mps2_uart_write8()
90 static u8 mps2_uart_read8(struct uart_port *port, unsigned int off) in mps2_uart_read8()
97 static void mps2_uart_write32(struct uart_port *port, u32 val, unsigned int off) in mps2_uart_write32()
104 static unsigned int mps2_uart_tx_empty(struct uart_port *port) in mps2_uart_tx_empty()
111 static void mps2_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in mps2_uart_set_mctrl()
115 static unsigned int mps2_uart_get_mctrl(struct uart_port *port) in mps2_uart_get_mctrl()
120 static void mps2_uart_stop_tx(struct uart_port *port) in mps2_uart_stop_tx()
129 static void mps2_uart_tx_chars(struct uart_port *port) in mps2_uart_tx_chars()
[all …]
H A Dvt8500_serial.c111 static inline void vt8500_write(struct uart_port *port, unsigned int val, in vt8500_write()
117 static inline unsigned int vt8500_read(struct uart_port *port, unsigned int off) in vt8500_read()
122 static void vt8500_stop_tx(struct uart_port *port) in vt8500_stop_tx()
132 static void vt8500_stop_rx(struct uart_port *port) in vt8500_stop_rx()
142 static void vt8500_enable_ms(struct uart_port *port) in vt8500_enable_ms()
152 static void handle_rx(struct uart_port *port) in handle_rx()
190 static unsigned int vt8500_tx_empty(struct uart_port *port) in vt8500_tx_empty()
197 static void handle_tx(struct uart_port *port) in handle_tx()
206 static void vt8500_start_tx(struct uart_port *port) in vt8500_start_tx()
219 static void handle_delta_cts(struct uart_port *port) in handle_delta_cts()
[all …]
/linux/drivers/mmc/core/
H A Dsdio_uart.c65 struct tty_port port; member
87 static int sdio_uart_add_port(struct sdio_uart_port *port) in sdio_uart_add_port()
112 struct sdio_uart_port *port; in sdio_uart_port_get() local
126 static void sdio_uart_port_put(struct sdio_uart_port *port) in sdio_uart_port_put()
131 static void sdio_uart_port_remove(struct sdio_uart_port *port) in sdio_uart_port_remove()
162 static int sdio_uart_claim_func(struct sdio_uart_port *port) in sdio_uart_claim_func()
175 static inline void sdio_uart_release_func(struct sdio_uart_port *port) in sdio_uart_release_func()
181 static inline u8 sdio_in(struct sdio_uart_port *port, int offset) in sdio_in()
186 static inline void sdio_out(struct sdio_uart_port *port, int offset, int value) in sdio_out()
191 static unsigned int sdio_uart_get_mctrl(struct sdio_uart_port *port) in sdio_uart_get_mctrl()
[all …]
/linux/drivers/usb/typec/tcpm/
H A Dtcpm.c697 struct tcpm_port *port; member
704 struct tcpm_port *port; member
722 #define tcpm_port_is_sink(port) \ argument
729 #define tcpm_port_is_source(port) \ argument
735 #define tcpm_port_is_debug_source(port) \ argument
738 #define tcpm_port_is_debug_sink(port) \ argument
741 #define tcpm_port_is_debug(port) \ argument
744 #define tcpm_port_is_audio(port) \ argument
747 #define tcpm_port_is_audio_detached(port) \ argument
751 #define tcpm_try_snk(port) \ argument
[all …]
/linux/drivers/net/ethernet/marvell/mvpp2/
H A Dmvpp2_main.c182 static dma_addr_t mvpp2_txdesc_dma_addr_get(struct mvpp2_port *port, in mvpp2_txdesc_dma_addr_get()
192 static void mvpp2_txdesc_dma_addr_set(struct mvpp2_port *port, in mvpp2_txdesc_dma_addr_set()
213 static size_t mvpp2_txdesc_size_get(struct mvpp2_port *port, in mvpp2_txdesc_size_get()
222 static void mvpp2_txdesc_size_set(struct mvpp2_port *port, in mvpp2_txdesc_size_set()
232 static void mvpp2_txdesc_txq_set(struct mvpp2_port *port, in mvpp2_txdesc_txq_set()
242 static void mvpp2_txdesc_cmd_set(struct mvpp2_port *port, in mvpp2_txdesc_cmd_set()
252 static unsigned int mvpp2_txdesc_offset_get(struct mvpp2_port *port, in mvpp2_txdesc_offset_get()
261 static dma_addr_t mvpp2_rxdesc_dma_addr_get(struct mvpp2_port *port, in mvpp2_rxdesc_dma_addr_get()
271 static unsigned long mvpp2_rxdesc_cookie_get(struct mvpp2_port *port, in mvpp2_rxdesc_cookie_get()
281 static size_t mvpp2_rxdesc_size_get(struct mvpp2_port *port, in mvpp2_rxdesc_size_get()
[all …]
/linux/drivers/tty/serial/8250/
H A D8250_port.c621 int serial8250_em485_config(struct uart_port *port, struct ktermios *termios, in serial8250_em485_config()
703 static void serial8250_clear_interrupts(struct uart_port *port) in serial8250_clear_interrupts()
1072 struct uart_port *port = &up->port; in autoconfig() local
1217 struct uart_port *port = &up->port; in autoconfig_irq() local
1267 static void serial8250_stop_rx(struct uart_port *port) in serial8250_stop_rx()
1400 static void serial8250_stop_tx(struct uart_port *port) in serial8250_stop_tx()
1416 static inline void __start_tx(struct uart_port *port) in __start_tx()
1468 static bool start_tx_rs485(struct uart_port *port) in start_tx_rs485()
1519 static void serial8250_start_tx(struct uart_port *port) in serial8250_start_tx()
1540 static void serial8250_throttle(struct uart_port *port) in serial8250_throttle()
[all …]
/linux/drivers/net/bonding/
H A Dbond_3ad.c129 static inline struct bonding *__get_bond_by_port(struct port *port) in __get_bond_by_port()
145 static inline struct aggregator *__get_first_agg(struct port *port) in __get_first_agg()
182 static void __disable_distributing_port(struct port *port) in __disable_distributing_port()
194 static void __enable_collecting_port(struct port *port) in __enable_collecting_port()
208 static inline void __disable_port(struct port *port) in __disable_port()
219 static inline void __enable_port(struct port *port) in __enable_port()
232 static bool __port_move_to_attached_state(struct port *port) in __port_move_to_attached_state()
248 static int __port_is_collecting_distributing(struct port *port) in __port_is_collecting_distributing()
259 static inline u32 __get_agg_selection_mode(struct port *port) in __get_agg_selection_mode()
273 static inline int __check_agg_selection_timer(struct port *port) in __check_agg_selection_timer()
[all …]
/linux/drivers/char/
H A Dvirtio_console.c167 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/usb/host/
H A Dxhci-dbgtty.c28 dbc_kfifo_to_req(struct dbc_port *port, char *packet) in dbc_kfifo_to_req()
50 static int dbc_do_start_tx(struct dbc_port *port) in dbc_do_start_tx()
91 static int dbc_start_tx(struct dbc_port *port) in dbc_start_tx()
101 static void dbc_start_rx(struct dbc_port *port) in dbc_start_rx()
135 static int dbc_rx_push_buffer(struct dbc_port *port, struct dbc_request *req) in dbc_rx_push_buffer()
167 struct dbc_port *port = dbc_to_port(dbc); in dbc_read_complete() local
202 struct dbc_port *port = dbc_to_port(dbc); in dbc_write_complete() local
267 struct dbc_port *port; in dbc_tty_install() local
283 struct dbc_port *port = tty->driver_data; in dbc_tty_open() local
290 struct dbc_port *port = tty->driver_data; in dbc_tty_close() local
[all …]
/linux/drivers/thunderbolt/
H A Dusb4.c167 struct tb_port *port; in usb4_switch_check_wakes() local
213 static bool link_is_usb4(struct tb_port *port) in link_is_usb4()
423 struct tb_port *port; in usb4_switch_set_wake() local
757 const struct tb_port *port; in usb4_switch_credits_init() local
977 int usb4_port_index(const struct tb_switch *sw, const struct tb_port *port) in usb4_port_index()
1011 const struct tb_port *port) in usb4_switch_map_pcie_down()
1044 const struct tb_port *port) in usb4_switch_map_usb3_down()
1075 struct tb_port *port; in usb4_switch_add_ports() local
1108 struct tb_port *port; in usb4_switch_remove_ports() local
1127 int usb4_port_unlock(struct tb_port *port) in usb4_port_unlock()
[all …]
/linux/drivers/usb/serial/
H A Dgeneric.c105 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 …]
H A Dusb-serial.c64 struct usb_serial_port *port; in usb_serial_port_get_by_minor() local
86 struct usb_serial_port *port; in allocate_minors() local
165 struct usb_serial_port *port; in destroy_serial() local
218 struct usb_serial_port *port; in serial_install() local
256 struct usb_serial_port *port = in serial_port_activate() local
285 struct usb_serial_port *port = tty->driver_data; in serial_open() local
304 struct usb_serial_port *port = in serial_port_shutdown() local
316 struct usb_serial_port *port = tty->driver_data; in serial_hangup() local
325 struct usb_serial_port *port = tty->driver_data; in serial_close() local
343 struct usb_serial_port *port = tty->driver_data; in serial_cleanup() local
[all …]
/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_main.c50 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 …]

12345678910>>...62