/drivers/tty/serial/ |
D | mpc52xx_uart.c | 73 #define PSC(port) ((struct mpc52xx_psc __iomem *)((port)->membase)) argument 131 static u16 mpc52xx_psc_get_status(struct uart_port *port) in mpc52xx_psc_get_status() 136 static u8 mpc52xx_psc_get_ipcr(struct uart_port *port) in mpc52xx_psc_get_ipcr() 141 static void mpc52xx_psc_command(struct uart_port *port, u8 cmd) in mpc52xx_psc_command() 146 static void mpc52xx_psc_set_mode(struct uart_port *port, u8 mr1, u8 mr2) in mpc52xx_psc_set_mode() 153 static void mpc52xx_psc_set_rts(struct uart_port *port, int state) in mpc52xx_psc_set_rts() 161 static void mpc52xx_psc_enable_ms(struct uart_port *port) in mpc52xx_psc_enable_ms() 174 static void mpc52xx_psc_set_sicr(struct uart_port *port, u32 val) in mpc52xx_psc_set_sicr() 179 static void mpc52xx_psc_set_imr(struct uart_port *port, u16 val) in mpc52xx_psc_set_imr() 184 static u8 mpc52xx_psc_get_mr1(struct uart_port *port) in mpc52xx_psc_get_mr1() [all …]
|
D | vr41xx_siu.c | 55 #define siu_read(port, offset) readb((port)->membase + (offset)) argument 56 #define siu_write(port, offset, value) writeb((value), (port)->membase + (offset)) argument 60 struct uart_port *port; in vr41xx_select_siu_interface() local 81 struct uart_port *port; in vr41xx_use_irda() local 102 struct uart_port *port; in vr41xx_select_irda_module() local 133 static inline void siu_clear_fifo(struct uart_port *port) in siu_clear_fifo() 141 static inline unsigned long siu_port_size(struct uart_port *port) in siu_port_size() 153 static inline unsigned int siu_check_type(struct uart_port *port) in siu_check_type() 163 static inline const char *siu_type_name(struct uart_port *port) in siu_type_name() 175 static unsigned int siu_tx_empty(struct uart_port *port) in siu_tx_empty() [all …]
|
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 …]
|
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 …]
|
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_usart_set_bits(struct uart_port *port, u32 reg, u32 bits) in stm32_usart_set_bits() 54 static void stm32_usart_clr_bits(struct uart_port *port, u32 reg, u32 bits) in stm32_usart_clr_bits() 100 static int stm32_usart_config_rs485(struct uart_port *port, in stm32_usart_config_rs485() 154 static int stm32_usart_init_rs485(struct uart_port *port, in stm32_usart_init_rs485() 169 static int stm32_usart_pending_rx(struct uart_port *port, u32 *sr, in stm32_usart_pending_rx() 193 static unsigned long stm32_usart_get_char(struct uart_port *port, u32 *sr, in stm32_usart_get_char() 213 static void stm32_usart_receive_chars(struct uart_port *port, bool threaded) in stm32_usart_receive_chars() 286 struct uart_port *port = arg; in stm32_usart_tx_dma_complete() local 301 static void stm32_usart_tx_interrupt_enable(struct uart_port *port) in stm32_usart_tx_interrupt_enable() [all …]
|
D | st-asc.c | 37 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 | 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 …]
|
D | apbuart.c | 41 static void apbuart_stop_tx(struct uart_port *port) in apbuart_stop_tx() 50 static void apbuart_start_tx(struct uart_port *port) in apbuart_start_tx() 62 static void apbuart_stop_rx(struct uart_port *port) in apbuart_stop_rx() 71 static void apbuart_rx_chars(struct uart_port *port) in apbuart_rx_chars() 125 static void apbuart_tx_chars(struct uart_port *port) in apbuart_tx_chars() 161 struct uart_port *port = dev_id; in apbuart_int() local 177 static unsigned int apbuart_tx_empty(struct uart_port *port) in apbuart_tx_empty() 183 static unsigned int apbuart_get_mctrl(struct uart_port *port) in apbuart_get_mctrl() 189 static void apbuart_set_mctrl(struct uart_port *port, unsigned int mctrl) in apbuart_set_mctrl() 194 static void apbuart_break_ctl(struct uart_port *port, int break_state) in apbuart_break_ctl() [all …]
|
D | sunhv.c | 42 static void transmit_chars_putchar(struct uart_port *port, struct circ_buf *xmit) in transmit_chars_putchar() 55 static void transmit_chars_write(struct uart_port *port, struct circ_buf *xmit) in transmit_chars_write() 71 static int receive_chars_getchar(struct uart_port *port) in receive_chars_getchar() 114 static int receive_chars_read(struct uart_port *port) in receive_chars_read() 186 static struct tty_port *receive_chars(struct uart_port *port) in receive_chars() 199 static void transmit_chars(struct uart_port *port) in transmit_chars() 218 struct uart_port *port = dev_id; in sunhv_interrupt() local 234 static unsigned int sunhv_tx_empty(struct uart_port *port) in sunhv_tx_empty() 244 static void sunhv_set_mctrl(struct uart_port *port, unsigned int mctrl) in sunhv_set_mctrl() 250 static unsigned int sunhv_get_mctrl(struct uart_port *port) in sunhv_get_mctrl() [all …]
|
D | altera_uart.c | 78 struct uart_port port; member 84 static u32 altera_uart_readl(struct uart_port *port, int reg) in altera_uart_readl() 89 static void altera_uart_writel(struct uart_port *port, u32 dat, int reg) in altera_uart_writel() 94 static unsigned int altera_uart_tx_empty(struct uart_port *port) in altera_uart_tx_empty() 100 static unsigned int altera_uart_get_mctrl(struct uart_port *port) in altera_uart_get_mctrl() 126 static void altera_uart_set_mctrl(struct uart_port *port, unsigned int sigs) in altera_uart_set_mctrl() 138 static void altera_uart_start_tx(struct uart_port *port) in altera_uart_start_tx() 146 static void altera_uart_stop_tx(struct uart_port *port) in altera_uart_stop_tx() 154 static void altera_uart_stop_rx(struct uart_port *port) in altera_uart_stop_rx() 162 static void altera_uart_break_ctl(struct uart_port *port, int break_state) in altera_uart_break_ctl() [all …]
|
D | atmel_serial.c | 205 static inline u32 atmel_uart_readl(struct uart_port *port, u32 reg) in atmel_uart_readl() 210 static inline void atmel_uart_writel(struct uart_port *port, u32 reg, u32 value) in atmel_uart_writel() 215 static inline u8 atmel_uart_read_char(struct uart_port *port) in atmel_uart_read_char() 220 static inline void atmel_uart_write_char(struct uart_port *port, u8 value) in atmel_uart_write_char() 225 static inline int atmel_uart_is_half_duplex(struct uart_port *port) in atmel_uart_is_half_duplex() 233 static bool atmel_use_pdc_rx(struct uart_port *port) in atmel_use_pdc_rx() 240 static bool atmel_use_pdc_tx(struct uart_port *port) in atmel_use_pdc_tx() 247 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() 258 static bool atmel_use_dma_tx(struct uart_port *port) in atmel_use_dma_tx() [all …]
|
D | uartlite.c | 103 static inline u32 uart_in32(u32 offset, struct uart_port *port) in uart_in32() 110 static inline void uart_out32(u32 val, u32 offset, struct uart_port *port) in uart_out32() 123 static int ulite_receive(struct uart_port *port, int stat) in ulite_receive() 173 static int ulite_transmit(struct uart_port *port, int stat) in ulite_transmit() 203 struct uart_port *port = dev_id; in ulite_isr() local 225 static unsigned int ulite_tx_empty(struct uart_port *port) in ulite_tx_empty() 237 static unsigned int ulite_get_mctrl(struct uart_port *port) in ulite_get_mctrl() 242 static void ulite_set_mctrl(struct uart_port *port, unsigned int mctrl) in ulite_set_mctrl() 247 static void ulite_stop_tx(struct uart_port *port) in ulite_stop_tx() 252 static void ulite_start_tx(struct uart_port *port) in ulite_start_tx() [all …]
|
D | altera_jtaguart.c | 57 struct uart_port port; member 62 static unsigned int altera_jtaguart_tx_empty(struct uart_port *port) in altera_jtaguart_tx_empty() 68 static unsigned int altera_jtaguart_get_mctrl(struct uart_port *port) in altera_jtaguart_get_mctrl() 73 static void altera_jtaguart_set_mctrl(struct uart_port *port, unsigned int sigs) in altera_jtaguart_set_mctrl() 77 static void altera_jtaguart_start_tx(struct uart_port *port) in altera_jtaguart_start_tx() 86 static void altera_jtaguart_stop_tx(struct uart_port *port) in altera_jtaguart_stop_tx() 95 static void altera_jtaguart_stop_rx(struct uart_port *port) in altera_jtaguart_stop_rx() 104 static void altera_jtaguart_break_ctl(struct uart_port *port, int break_state) in altera_jtaguart_break_ctl() 108 static void altera_jtaguart_set_termios(struct uart_port *port, in altera_jtaguart_set_termios() 119 struct uart_port *port = &pp->port; in altera_jtaguart_rx_chars() local [all …]
|
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() 98 static void timbuart_tx_chars(struct uart_port *port) in timbuart_tx_chars() 119 static void timbuart_handle_tx_port(struct uart_port *port, u32 isr, u32 *ier) in timbuart_handle_tx_port() 153 static void timbuart_handle_rx_port(struct uart_port *port, u32 isr, u32 *ier) in timbuart_handle_rx_port() [all …]
|
D | sprd_serial.c | 122 struct uart_port port; member 137 static inline unsigned int serial_in(struct uart_port *port, in serial_in() 143 static inline void serial_out(struct uart_port *port, unsigned int offset, in serial_out() 149 static unsigned int sprd_tx_empty(struct uart_port *port) in sprd_tx_empty() 157 static unsigned int sprd_get_mctrl(struct uart_port *port) in sprd_get_mctrl() 162 static void sprd_set_mctrl(struct uart_port *port, unsigned int mctrl) in sprd_set_mctrl() 174 static void sprd_stop_rx(struct uart_port *port) in sprd_stop_rx() 193 static void sprd_uart_dma_enable(struct uart_port *port, bool enable) in sprd_uart_dma_enable() 205 static void sprd_stop_tx_dma(struct uart_port *port) in sprd_stop_tx_dma() 228 static int sprd_tx_buf_remap(struct uart_port *port) in sprd_tx_buf_remap() [all …]
|
/drivers/tty/ |
D | tty_port.c | 23 static int tty_port_default_receive_buf(struct tty_port *port, in tty_port_default_receive_buf() 46 static void tty_port_default_wakeup(struct tty_port *port) in tty_port_default_wakeup() 62 void tty_port_init(struct tty_port *port) in tty_port_init() 89 void tty_port_link_device(struct tty_port *port, in tty_port_link_device() 109 struct device *tty_port_register_device(struct tty_port *port, in tty_port_register_device() 130 struct device *tty_port_register_device_attr(struct tty_port *port, in tty_port_register_device_attr() 153 struct device *tty_port_register_device_attr_serdev(struct tty_port *port, in tty_port_register_device_attr_serdev() 183 struct device *tty_port_register_device_serdev(struct tty_port *port, in tty_port_register_device_serdev() 202 void tty_port_unregister_device(struct tty_port *port, in tty_port_unregister_device() 215 int tty_port_alloc_xmit_buf(struct tty_port *port) in tty_port_alloc_xmit_buf() [all …]
|
D | tty_buffer.c | 56 void tty_buffer_lock_exclusive(struct tty_port *port) in tty_buffer_lock_exclusive() 65 void tty_buffer_unlock_exclusive(struct tty_port *port) in tty_buffer_unlock_exclusive() 91 int tty_buffer_space_avail(struct tty_port *port) in tty_buffer_space_avail() 116 void tty_buffer_free_all(struct tty_port *port) in tty_buffer_free_all() 155 static struct tty_buffer *tty_buffer_alloc(struct tty_port *port, size_t size) in tty_buffer_alloc() 195 static void tty_buffer_free(struct tty_port *port, struct tty_buffer *b) in tty_buffer_free() 222 struct tty_port *port = tty->port; in tty_buffer_flush() local 258 static int __tty_buffer_request_room(struct tty_port *port, size_t size, in __tty_buffer_request_room() 295 int tty_buffer_request_room(struct tty_port *port, size_t size) in tty_buffer_request_room() 312 int tty_insert_flip_string_fixed_flag(struct tty_port *port, in tty_insert_flip_string_fixed_flag() [all …]
|
/drivers/net/dsa/mv88e6xxx/ |
D | port.c | 20 int mv88e6xxx_port_read(struct mv88e6xxx_chip *chip, int port, int reg, in mv88e6xxx_port_read() 28 int mv88e6xxx_port_write(struct mv88e6xxx_chip *chip, int port, int reg, in mv88e6xxx_port_write() 41 int mv88e6185_port_set_pause(struct mv88e6xxx_chip *chip, int port, in mv88e6185_port_set_pause() 68 static int mv88e6xxx_port_set_rgmii_delay(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_set_rgmii_delay() 109 int mv88e6352_port_set_rgmii_delay(struct mv88e6xxx_chip *chip, int port, in mv88e6352_port_set_rgmii_delay() 118 int mv88e6390_port_set_rgmii_delay(struct mv88e6xxx_chip *chip, int port, in mv88e6390_port_set_rgmii_delay() 127 int mv88e6xxx_port_set_link(struct mv88e6xxx_chip *chip, int port, int link) in mv88e6xxx_port_set_link() 166 int port, int speed, bool alt_bit, in mv88e6xxx_port_set_speed_duplex() 253 int mv88e6065_port_set_speed_duplex(struct mv88e6xxx_chip *chip, int port, in mv88e6065_port_set_speed_duplex() 268 int mv88e6185_port_set_speed_duplex(struct mv88e6xxx_chip *chip, int port, in mv88e6185_port_set_speed_duplex() [all …]
|
/drivers/mmc/core/ |
D | sdio_uart.c | 64 struct tty_port port; member 86 static int sdio_uart_add_port(struct sdio_uart_port *port) in sdio_uart_add_port() 111 struct sdio_uart_port *port; in sdio_uart_port_get() local 125 static void sdio_uart_port_put(struct sdio_uart_port *port) in sdio_uart_port_put() 130 static void sdio_uart_port_remove(struct sdio_uart_port *port) in sdio_uart_port_remove() 161 static int sdio_uart_claim_func(struct sdio_uart_port *port) in sdio_uart_claim_func() 174 static inline void sdio_uart_release_func(struct sdio_uart_port *port) in sdio_uart_release_func() 180 static inline unsigned int sdio_in(struct sdio_uart_port *port, int offset) in sdio_in() 187 static inline void sdio_out(struct sdio_uart_port *port, int offset, int value) in sdio_out() 192 static unsigned int sdio_uart_get_mctrl(struct sdio_uart_port *port) in sdio_uart_get_mctrl() [all …]
|
/drivers/usb/typec/tcpm/ |
D | tcpm.c | 492 struct tcpm_port *port; member 506 #define tcpm_port_is_sink(port) \ argument 514 #define tcpm_port_is_source(port) \ argument 520 #define tcpm_port_is_debug(port) \ argument 523 #define tcpm_port_is_audio(port) \ argument 526 #define tcpm_port_is_audio_detached(port) \ argument 530 #define tcpm_try_snk(port) \ argument 534 #define tcpm_try_src(port) \ argument 538 #define tcpm_data_role_for_source(port) \ argument 542 #define tcpm_data_role_for_sink(port) \ argument [all …]
|
/drivers/net/ethernet/marvell/mvpp2/ |
D | mvpp2_main.c | 172 static dma_addr_t mvpp2_txdesc_dma_addr_get(struct mvpp2_port *port, in mvpp2_txdesc_dma_addr_get() 182 static void mvpp2_txdesc_dma_addr_set(struct mvpp2_port *port, in mvpp2_txdesc_dma_addr_set() 203 static size_t mvpp2_txdesc_size_get(struct mvpp2_port *port, in mvpp2_txdesc_size_get() 212 static void mvpp2_txdesc_size_set(struct mvpp2_port *port, in mvpp2_txdesc_size_set() 222 static void mvpp2_txdesc_txq_set(struct mvpp2_port *port, in mvpp2_txdesc_txq_set() 232 static void mvpp2_txdesc_cmd_set(struct mvpp2_port *port, in mvpp2_txdesc_cmd_set() 242 static unsigned int mvpp2_txdesc_offset_get(struct mvpp2_port *port, in mvpp2_txdesc_offset_get() 251 static dma_addr_t mvpp2_rxdesc_dma_addr_get(struct mvpp2_port *port, in mvpp2_rxdesc_dma_addr_get() 261 static unsigned long mvpp2_rxdesc_cookie_get(struct mvpp2_port *port, in mvpp2_rxdesc_cookie_get() 271 static size_t mvpp2_rxdesc_size_get(struct mvpp2_port *port, in mvpp2_rxdesc_size_get() [all …]
|
/drivers/net/dsa/ocelot/ |
D | felix.c | 28 int port, in felix_get_tag_protocol() 44 static int felix_fdb_dump(struct dsa_switch *ds, int port, in felix_fdb_dump() 52 static int felix_fdb_add(struct dsa_switch *ds, int port, in felix_fdb_add() 60 static int felix_fdb_del(struct dsa_switch *ds, int port, in felix_fdb_del() 69 static int felix_mdb_prepare(struct dsa_switch *ds, int port, in felix_mdb_prepare() 75 static void felix_mdb_add(struct dsa_switch *ds, int port, in felix_mdb_add() 83 static int felix_mdb_del(struct dsa_switch *ds, int port, in felix_mdb_del() 91 static void felix_bridge_stp_state_set(struct dsa_switch *ds, int port, in felix_bridge_stp_state_set() 99 static int felix_bridge_join(struct dsa_switch *ds, int port, in felix_bridge_join() 107 static void felix_bridge_leave(struct dsa_switch *ds, int port, in felix_bridge_leave() [all …]
|
/drivers/net/bonding/ |
D | bond_3ad.c | 124 static inline struct bonding *__get_bond_by_port(struct port *port) in __get_bond_by_port() 140 static inline struct aggregator *__get_first_agg(struct port *port) in __get_first_agg() 174 static inline void __disable_port(struct port *port) in __disable_port() 183 static inline void __enable_port(struct port *port) in __enable_port() 195 static inline int __port_is_enabled(struct port *port) in __port_is_enabled() 206 static inline u32 __get_agg_selection_mode(struct port *port) in __get_agg_selection_mode() 220 static inline int __check_agg_selection_timer(struct port *port) in __check_agg_selection_timer() 250 static u16 __get_link_speed(struct port *port) in __get_link_speed() 341 static u8 __get_duplex(struct port *port) in __get_duplex() 367 static void __ad_actor_update_port(struct port *port) in __ad_actor_update_port() [all …]
|
/drivers/char/ |
D | virtio_console.c | 173 struct port { struct 178 struct ports_device *portdev; argument 181 struct port_buffer *inbuf; argument 185 * port. Has to be a spinlock because it can be called from argument 193 /* The IO vqs for this port */ argument 196 /* File in the debugfs directory that exposes this port's information */ argument 201 * this port for accounting and debugging purposes. These argument 204 struct port_stats stats; argument 212 /* Each port associates with a separate char device */ argument 216 /* Reference-counting to handle port hot-unplugs and file operations */ argument [all …]
|
/drivers/staging/fwserial/ |
D | fwserial.c | 67 #define loop_idx(port) (((port)->index) / num_ports) argument 89 struct fwtty_port *port; member 108 static inline void debug_short_write(struct fwtty_port *port, int c, int n) in debug_short_write() 121 #define debug_short_write(port, c, n) argument 129 static void fwtty_profile_fifo(struct fwtty_port *port, unsigned int *stat) in fwtty_profile_fifo() 176 #define fwtty_profile_fifo(port, stat) argument 191 static void fwtty_log_tx_error(struct fwtty_port *port, int rcode) in fwtty_log_tx_error() 218 struct fwtty_port *port = txn->port; in fwtty_common_callback() local 230 struct fwtty_port *port) in fwtty_send_data_async() 254 struct fwtty_port *port) in fwtty_send_txn_async() [all …]
|