/drivers/tty/serial/ |
D | mpc52xx_uart.c | 80 #define PSC(port) ((struct mpc52xx_psc __iomem *)((port)->membase)) argument 138 static u16 mpc52xx_psc_get_status(struct uart_port *port) in mpc52xx_psc_get_status() 143 static u8 mpc52xx_psc_get_ipcr(struct uart_port *port) in mpc52xx_psc_get_ipcr() 148 static void mpc52xx_psc_command(struct uart_port *port, u8 cmd) in mpc52xx_psc_command() 153 static void mpc52xx_psc_set_mode(struct uart_port *port, u8 mr1, u8 mr2) in mpc52xx_psc_set_mode() 160 static void mpc52xx_psc_set_rts(struct uart_port *port, int state) in mpc52xx_psc_set_rts() 168 static void mpc52xx_psc_enable_ms(struct uart_port *port) in mpc52xx_psc_enable_ms() 181 static void mpc52xx_psc_set_sicr(struct uart_port *port, u32 val) in mpc52xx_psc_set_sicr() 186 static void mpc52xx_psc_set_imr(struct uart_port *port, u16 val) in mpc52xx_psc_set_imr() 191 static u8 mpc52xx_psc_get_mr1(struct uart_port *port) in mpc52xx_psc_get_mr1() [all …]
|
D | vr41xx_siu.c | 72 #define siu_read(port, offset) readb((port)->membase + (offset)) argument 73 #define siu_write(port, offset, value) writeb((value), (port)->membase + (offset)) argument 77 struct uart_port *port; in vr41xx_select_siu_interface() local 98 struct uart_port *port; in vr41xx_use_irda() local 119 struct uart_port *port; in vr41xx_select_irda_module() local 150 static inline void siu_clear_fifo(struct uart_port *port) in siu_clear_fifo() 158 static inline unsigned long siu_port_size(struct uart_port *port) in siu_port_size() 170 static inline unsigned int siu_check_type(struct uart_port *port) in siu_check_type() 180 static inline const char *siu_type_name(struct uart_port *port) in siu_type_name() 192 static unsigned int siu_tx_empty(struct uart_port *port) in siu_tx_empty() [all …]
|
D | serial_ks8695.c | 65 static inline int tx_enabled(struct uart_port *port) in tx_enabled() 70 static inline int rx_enabled(struct uart_port *port) in rx_enabled() 75 static inline int ms_enabled(struct uart_port *port) in ms_enabled() 80 static inline void ms_enable(struct uart_port *port, int enabled) in ms_enable() 88 static inline void rx_enable(struct uart_port *port, int enabled) in rx_enable() 96 static inline void tx_enable(struct uart_port *port, int enabled) in tx_enable() 109 static void ks8695uart_stop_tx(struct uart_port *port) in ks8695uart_stop_tx() 121 static void ks8695uart_start_tx(struct uart_port *port) in ks8695uart_start_tx() 129 static void ks8695uart_stop_rx(struct uart_port *port) in ks8695uart_stop_rx() 137 static void ks8695uart_enable_ms(struct uart_port *port) in ks8695uart_enable_ms() [all …]
|
D | bcm63xx_uart.c | 80 static inline unsigned int bcm_uart_readl(struct uart_port *port, in bcm_uart_readl() 86 static inline void bcm_uart_writel(struct uart_port *port, in bcm_uart_writel() 95 static unsigned int bcm_uart_tx_empty(struct uart_port *port) in bcm_uart_tx_empty() 106 static void bcm_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in bcm_uart_set_mctrl() 130 static unsigned int bcm_uart_get_mctrl(struct uart_port *port) in bcm_uart_get_mctrl() 150 static void bcm_uart_stop_tx(struct uart_port *port) in bcm_uart_stop_tx() 166 static void bcm_uart_start_tx(struct uart_port *port) in bcm_uart_start_tx() 182 static void bcm_uart_stop_rx(struct uart_port *port) in bcm_uart_stop_rx() 194 static void bcm_uart_enable_ms(struct uart_port *port) in bcm_uart_enable_ms() 206 static void bcm_uart_break_ctl(struct uart_port *port, int ctl) in bcm_uart_break_ctl() [all …]
|
D | altera_jtaguart.c | 61 struct uart_port port; member 66 static unsigned int altera_jtaguart_tx_empty(struct uart_port *port) in altera_jtaguart_tx_empty() 72 static unsigned int altera_jtaguart_get_mctrl(struct uart_port *port) in altera_jtaguart_get_mctrl() 77 static void altera_jtaguart_set_mctrl(struct uart_port *port, unsigned int sigs) in altera_jtaguart_set_mctrl() 81 static void altera_jtaguart_start_tx(struct uart_port *port) in altera_jtaguart_start_tx() 90 static void altera_jtaguart_stop_tx(struct uart_port *port) in altera_jtaguart_stop_tx() 99 static void altera_jtaguart_stop_rx(struct uart_port *port) in altera_jtaguart_stop_rx() 108 static void altera_jtaguart_break_ctl(struct uart_port *port, int break_state) in altera_jtaguart_break_ctl() 112 static void altera_jtaguart_set_termios(struct uart_port *port, in altera_jtaguart_set_termios() 123 struct uart_port *port = &pp->port; in altera_jtaguart_rx_chars() local [all …]
|
D | mcf.c | 57 struct uart_port port; member 64 static unsigned int mcf_tx_empty(struct uart_port *port) in mcf_tx_empty() 72 static unsigned int mcf_get_mctrl(struct uart_port *port) in mcf_get_mctrl() 88 static void mcf_set_mctrl(struct uart_port *port, unsigned int sigs) in mcf_set_mctrl() 102 static void mcf_start_tx(struct uart_port *port) in mcf_start_tx() 118 static void mcf_stop_tx(struct uart_port *port) in mcf_stop_tx() 128 static void mcf_stop_rx(struct uart_port *port) in mcf_stop_rx() 138 static void mcf_break_ctl(struct uart_port *port, int break_state) in mcf_break_ctl() 152 static int mcf_startup(struct uart_port *port) in mcf_startup() 178 static void mcf_shutdown(struct uart_port *port) in mcf_shutdown() [all …]
|
D | st-asc.c | 40 struct uart_port port; member 147 static inline struct asc_port *to_asc_port(struct uart_port *port) in to_asc_port() 152 static inline u32 asc_in(struct uart_port *port, u32 offset) in asc_in() 161 static inline void asc_out(struct uart_port *port, u32 offset, u32 value) in asc_out() 174 static inline void asc_disable_tx_interrupts(struct uart_port *port) in asc_disable_tx_interrupts() 181 static inline void asc_enable_tx_interrupts(struct uart_port *port) in asc_enable_tx_interrupts() 187 static inline void asc_disable_rx_interrupts(struct uart_port *port) in asc_disable_rx_interrupts() 194 static inline void asc_enable_rx_interrupts(struct uart_port *port) in asc_enable_rx_interrupts() 200 static inline u32 asc_txfifo_is_empty(struct uart_port *port) in asc_txfifo_is_empty() 205 static inline u32 asc_txfifo_is_half_empty(struct uart_port *port) in asc_txfifo_is_half_empty() [all …]
|
D | apbuart.c | 44 static void apbuart_stop_tx(struct uart_port *port) in apbuart_stop_tx() 53 static void apbuart_start_tx(struct uart_port *port) in apbuart_start_tx() 65 static void apbuart_stop_rx(struct uart_port *port) in apbuart_stop_rx() 74 static void apbuart_rx_chars(struct uart_port *port) in apbuart_rx_chars() 128 static void apbuart_tx_chars(struct uart_port *port) in apbuart_tx_chars() 164 struct uart_port *port = dev_id; in apbuart_int() local 180 static unsigned int apbuart_tx_empty(struct uart_port *port) in apbuart_tx_empty() 186 static unsigned int apbuart_get_mctrl(struct uart_port *port) in apbuart_get_mctrl() 192 static void apbuart_set_mctrl(struct uart_port *port, unsigned int mctrl) in apbuart_set_mctrl() 197 static void apbuart_break_ctl(struct uart_port *port, int break_state) in apbuart_break_ctl() [all …]
|
D | sunhv.c | 45 static void transmit_chars_putchar(struct uart_port *port, struct circ_buf *xmit) in transmit_chars_putchar() 58 static void transmit_chars_write(struct uart_port *port, struct circ_buf *xmit) 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() 185 static struct tty_port *receive_chars(struct uart_port *port) in receive_chars() 198 static void transmit_chars(struct uart_port *port) in transmit_chars() 217 struct uart_port *port = dev_id; in sunhv_interrupt() local 233 static unsigned int sunhv_tx_empty(struct uart_port *port) in sunhv_tx_empty() 243 static void sunhv_set_mctrl(struct uart_port *port, unsigned int mctrl) in sunhv_set_mctrl() 249 static unsigned int sunhv_get_mctrl(struct uart_port *port) in sunhv_get_mctrl() [all …]
|
D | atmel_serial.c | 207 static inline u32 atmel_uart_readl(struct uart_port *port, u32 reg) in atmel_uart_readl() 212 static inline void atmel_uart_writel(struct uart_port *port, u32 reg, u32 value) in atmel_uart_writel() 220 static inline u8 atmel_uart_read_char(struct uart_port *port) in atmel_uart_read_char() 225 static inline void atmel_uart_write_char(struct uart_port *port, u8 value) in atmel_uart_write_char() 232 static inline u8 atmel_uart_read_char(struct uart_port *port) in atmel_uart_read_char() 237 static inline void atmel_uart_write_char(struct uart_port *port, u8 value) in atmel_uart_write_char() 245 static bool atmel_use_pdc_rx(struct uart_port *port) in atmel_use_pdc_rx() 252 static bool atmel_use_pdc_tx(struct uart_port *port) in atmel_use_pdc_tx() 259 static bool atmel_use_pdc_rx(struct uart_port *port) in atmel_use_pdc_rx() 264 static bool atmel_use_pdc_tx(struct uart_port *port) in atmel_use_pdc_tx() [all …]
|
D | timbuart.c | 37 struct uart_port port; member 51 static void timbuart_stop_rx(struct uart_port *port) in timbuart_stop_rx() 58 static void timbuart_stop_tx(struct uart_port *port) in timbuart_stop_tx() 65 static void timbuart_start_tx(struct uart_port *port) in timbuart_start_tx() 74 static unsigned int timbuart_tx_empty(struct uart_port *port) in timbuart_tx_empty() 81 static void timbuart_flush_buffer(struct uart_port *port) in timbuart_flush_buffer() 92 static void timbuart_rx_chars(struct uart_port *port) in timbuart_rx_chars() 110 static void timbuart_tx_chars(struct uart_port *port) in timbuart_tx_chars() 131 static void timbuart_handle_tx_port(struct uart_port *port, u32 isr, u32 *ier) in timbuart_handle_tx_port() 165 static void timbuart_handle_rx_port(struct uart_port *port, u32 isr, u32 *ier) in timbuart_handle_rx_port() [all …]
|
D | 21285.c | 43 #define tx_enabled(port) ((port)->unused[0]) argument 44 #define rx_enabled(port) ((port)->unused[1]) argument 57 static void serial21285_stop_tx(struct uart_port *port) in serial21285_stop_tx() 65 static void serial21285_start_tx(struct uart_port *port) in serial21285_start_tx() 73 static void serial21285_stop_rx(struct uart_port *port) in serial21285_stop_rx() 83 struct uart_port *port = dev_id; in serial21285_rx_chars() local 120 struct uart_port *port = dev_id; in serial21285_tx_chars() local 153 static unsigned int serial21285_tx_empty(struct uart_port *port) in serial21285_tx_empty() 159 static unsigned int serial21285_get_mctrl(struct uart_port *port) in serial21285_get_mctrl() 164 static void serial21285_set_mctrl(struct uart_port *port, unsigned int mctrl) in serial21285_set_mctrl() [all …]
|
D | tilegx.c | 72 struct tty_port *port = tty->port; in receive_chars() local 87 struct tty_port *port = &tile_uart->uart.state->port; in handle_receive() local 135 struct uart_port *port; in handle_transmit() local 181 struct uart_port *port = dev_id; in tilegx_interrupt() local 207 static u_int tilegx_tx_empty(struct uart_port *port) in tilegx_tx_empty() 230 static void tilegx_set_mctrl(struct uart_port *port, u_int mctrl) in tilegx_set_mctrl() 239 static u_int tilegx_get_mctrl(struct uart_port *port) in tilegx_get_mctrl() 248 static void tilegx_stop_tx(struct uart_port *port) in tilegx_stop_tx() 257 static void tilegx_start_tx(struct uart_port *port) in tilegx_start_tx() 299 static void tilegx_stop_rx(struct uart_port *port) in tilegx_stop_rx() [all …]
|
D | pic32_uart.c | 64 static unsigned int pic32_uart_tx_empty(struct uart_port *port) in pic32_uart_tx_empty() 73 static void pic32_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in pic32_uart_set_mctrl() 97 static unsigned int pic32_uart_get_mctrl(struct uart_port *port) in pic32_uart_get_mctrl() 135 static void pic32_uart_stop_tx(struct uart_port *port) in pic32_uart_stop_tx() 154 static void pic32_uart_start_tx(struct uart_port *port) in pic32_uart_start_tx() 164 static void pic32_uart_stop_rx(struct uart_port *port) in pic32_uart_stop_rx() 177 static void pic32_uart_break_ctl(struct uart_port *port, int ctl) in pic32_uart_break_ctl() 195 static const char *pic32_uart_type(struct uart_port *port) in pic32_uart_type() 201 static void pic32_uart_do_rx(struct uart_port *port) in pic32_uart_do_rx() 278 static void pic32_uart_do_tx(struct uart_port *port) in pic32_uart_do_tx() [all …]
|
D | uartlite.c | 95 static inline u32 uart_in32(u32 offset, struct uart_port *port) in uart_in32() 102 static inline void uart_out32(u32 val, u32 offset, struct uart_port *port) in uart_out32() 115 static int ulite_receive(struct uart_port *port, int stat) in ulite_receive() 165 static int ulite_transmit(struct uart_port *port, int stat) in ulite_transmit() 195 struct uart_port *port = dev_id; in ulite_isr() local 217 static unsigned int ulite_tx_empty(struct uart_port *port) in ulite_tx_empty() 229 static unsigned int ulite_get_mctrl(struct uart_port *port) in ulite_get_mctrl() 234 static void ulite_set_mctrl(struct uart_port *port, unsigned int mctrl) in ulite_set_mctrl() 239 static void ulite_stop_tx(struct uart_port *port) in ulite_stop_tx() 244 static void ulite_start_tx(struct uart_port *port) in ulite_start_tx() [all …]
|
D | altera_uart.c | 82 struct uart_port port; member 88 static u32 altera_uart_readl(struct uart_port *port, int reg) in altera_uart_readl() 93 static void altera_uart_writel(struct uart_port *port, u32 dat, int reg) in altera_uart_writel() 98 static unsigned int altera_uart_tx_empty(struct uart_port *port) in altera_uart_tx_empty() 104 static unsigned int altera_uart_get_mctrl(struct uart_port *port) in altera_uart_get_mctrl() 116 static void altera_uart_set_mctrl(struct uart_port *port, unsigned int sigs) in altera_uart_set_mctrl() 128 static void altera_uart_start_tx(struct uart_port *port) in altera_uart_start_tx() 136 static void altera_uart_stop_tx(struct uart_port *port) in altera_uart_stop_tx() 144 static void altera_uart_stop_rx(struct uart_port *port) in altera_uart_stop_rx() 152 static void altera_uart_break_ctl(struct uart_port *port, int break_state) in altera_uart_break_ctl() [all …]
|
D | samsung.c | 89 #define tx_enabled(port) ((port)->unused[0]) argument 90 #define rx_enabled(port) ((port)->unused[1]) argument 95 static inline struct s3c24xx_uart_port *to_ourport(struct uart_port *port) in to_ourport() 102 static inline const char *s3c24xx_serial_portname(struct uart_port *port) in s3c24xx_serial_portname() 107 static int s3c24xx_serial_txempty_nofifo(struct uart_port *port) in s3c24xx_serial_txempty_nofifo() 117 static int s3c24xx_serial_has_interrupt_mask(struct uart_port *port) in s3c24xx_serial_has_interrupt_mask() 122 static void s3c24xx_serial_rx_enable(struct uart_port *port) in s3c24xx_serial_rx_enable() 145 static void s3c24xx_serial_rx_disable(struct uart_port *port) in s3c24xx_serial_rx_disable() 160 static void s3c24xx_serial_stop_tx(struct uart_port *port) in s3c24xx_serial_stop_tx() 202 struct uart_port *port = &ourport->port; in s3c24xx_serial_tx_dma_complete() local [all …]
|
D | stm32-usart.c | 40 static inline struct stm32_port *to_stm32_port(struct uart_port *port) in to_stm32_port() 45 static void stm32_set_bits(struct uart_port *port, u32 reg, u32 bits) in stm32_set_bits() 54 static void stm32_clr_bits(struct uart_port *port, u32 reg, u32 bits) in stm32_clr_bits() 63 static int stm32_pending_rx(struct uart_port *port, u32 *sr, int *last_res, in stm32_pending_rx() 89 stm32_get_char(struct uart_port *port, u32 *sr, int *last_res) in stm32_get_char() 105 static void stm32_receive_chars(struct uart_port *port, bool threaded) in stm32_receive_chars() 163 struct uart_port *port = arg; in stm32_tx_dma_complete() local 189 static void stm32_transmit_chars_pio(struct uart_port *port) in stm32_transmit_chars_pio() 217 static void stm32_transmit_chars_dma(struct uart_port *port) in stm32_transmit_chars_dma() 279 static void stm32_transmit_chars(struct uart_port *port) in stm32_transmit_chars() [all …]
|
D | mps2-uart.c | 72 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 …]
|
/drivers/tty/ |
D | tty_port.c | 20 void tty_port_init(struct tty_port *port) in tty_port_init() 46 void tty_port_link_device(struct tty_port *port, in tty_port_link_device() 66 struct device *tty_port_register_device(struct tty_port *port, in tty_port_register_device() 88 struct device *tty_port_register_device_attr(struct tty_port *port, in tty_port_register_device_attr() 99 int tty_port_alloc_xmit_buf(struct tty_port *port) in tty_port_alloc_xmit_buf() 112 void tty_port_free_xmit_buf(struct tty_port *port) in tty_port_free_xmit_buf() 131 void tty_port_destroy(struct tty_port *port) in tty_port_destroy() 140 struct tty_port *port = container_of(kref, struct tty_port, kref); in tty_port_destructor() local 154 void tty_port_put(struct tty_port *port) in tty_port_put() 169 struct tty_struct *tty_port_tty_get(struct tty_port *port) in tty_port_tty_get() [all …]
|
D | tty_buffer.c | 55 void tty_buffer_lock_exclusive(struct tty_port *port) in tty_buffer_lock_exclusive() 64 void tty_buffer_unlock_exclusive(struct tty_port *port) in tty_buffer_unlock_exclusive() 90 int tty_buffer_space_avail(struct tty_port *port) in tty_buffer_space_avail() 115 void tty_buffer_free_all(struct tty_port *port) in tty_buffer_free_all() 149 static struct tty_buffer *tty_buffer_alloc(struct tty_port *port, size_t size) in tty_buffer_alloc() 188 static void tty_buffer_free(struct tty_port *port, struct tty_buffer *b) in tty_buffer_free() 215 struct tty_port *port = tty->port; in tty_buffer_flush() local 251 static int __tty_buffer_request_room(struct tty_port *port, size_t size, in __tty_buffer_request_room() 288 int tty_buffer_request_room(struct tty_port *port, size_t size) in tty_buffer_request_room() 305 int tty_insert_flip_string_fixed_flag(struct tty_port *port, in tty_insert_flip_string_fixed_flag() [all …]
|
/drivers/mmc/card/ |
D | sdio_uart.c | 68 struct tty_port port; member 90 static int sdio_uart_add_port(struct sdio_uart_port *port) in sdio_uart_add_port() 115 struct sdio_uart_port *port; in sdio_uart_port_get() local 129 static void sdio_uart_port_put(struct sdio_uart_port *port) in sdio_uart_port_put() 134 static void sdio_uart_port_remove(struct sdio_uart_port *port) in sdio_uart_port_remove() 167 static int sdio_uart_claim_func(struct sdio_uart_port *port) in sdio_uart_claim_func() 180 static inline void sdio_uart_release_func(struct sdio_uart_port *port) in sdio_uart_release_func() 186 static inline unsigned int sdio_in(struct sdio_uart_port *port, int offset) in sdio_in() 193 static inline void sdio_out(struct sdio_uart_port *port, int offset, int value) in sdio_out() 198 static unsigned int sdio_uart_get_mctrl(struct sdio_uart_port *port) in sdio_uart_get_mctrl() [all …]
|
/drivers/net/bonding/ |
D | bond_3ad.c | 145 static inline struct bonding *__get_bond_by_port(struct port *port) in __get_bond_by_port() 161 static inline struct aggregator *__get_first_agg(struct port *port) in __get_first_agg() 195 static inline void __disable_port(struct port *port) in __disable_port() 204 static inline void __enable_port(struct port *port) in __enable_port() 216 static inline int __port_is_enabled(struct port *port) in __port_is_enabled() 227 static inline u32 __get_agg_selection_mode(struct port *port) in __get_agg_selection_mode() 241 static inline int __check_agg_selection_timer(struct port *port) in __check_agg_selection_timer() 267 static u16 __get_link_speed(struct port *port) in __get_link_speed() 337 static u8 __get_duplex(struct port *port) in __get_duplex() 363 static void __ad_actor_update_port(struct port *port) in __ad_actor_update_port() [all …]
|
/drivers/char/ |
D | virtio_console.c | 185 struct port { struct 190 struct ports_device *portdev; argument 193 struct port_buffer *inbuf; argument 197 * port. Has to be a spinlock because it can be called from argument 205 /* The IO vqs for this port */ argument 208 /* File in the debugfs directory that exposes this port's information */ argument 213 * this port for accounting and debugging purposes. These argument 216 struct port_stats stats; argument 224 /* Each port associates with a separate char device */ argument 228 /* Reference-counting to handle port hot-unplugs and file operations */ argument [all …]
|
/drivers/usb/serial/ |
D | generic.c | 80 int usb_serial_generic_open(struct tty_struct *tty, struct usb_serial_port *port) in usb_serial_generic_open() 97 void usb_serial_generic_close(struct usb_serial_port *port) in usb_serial_generic_close() 117 int usb_serial_generic_prepare_write_buffer(struct usb_serial_port *port, in usb_serial_generic_prepare_write_buffer() 132 int usb_serial_generic_write_start(struct usb_serial_port *port, in usb_serial_generic_write_start() 192 struct usb_serial_port *port, const unsigned char *buf, int count) in usb_serial_generic_write() 213 struct usb_serial_port *port = tty->driver_data; in usb_serial_generic_write_room() local 230 struct usb_serial_port *port = tty->driver_data; in usb_serial_generic_chars_in_buffer() local 248 struct usb_serial_port *port = tty->driver_data; in usb_serial_generic_wait_until_sent() local 278 static int usb_serial_generic_submit_read_urb(struct usb_serial_port *port, in usb_serial_generic_submit_read_urb() 302 int usb_serial_generic_submit_read_urbs(struct usb_serial_port *port, in usb_serial_generic_submit_read_urbs() [all …]
|