Home
last modified time | relevance | path

Searched defs:port (Results 26 – 50 of 2432) sorted by relevance

12345678910>>...98

/OK3568_Linux_fs/kernel/drivers/tty/serial/
H A Daltera_uart.c78 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 …]
H A Dsprd_serial.c122 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 …]
H A Dmvebu-uart.c128 struct uart_port *port; member
138 static struct mvebu_uart *to_mvuart(struct uart_port *port) in to_mvuart()
143 #define IS_EXTENDED(port) (to_mvuart(port)->data->is_ext) argument
145 #define UART_RBR(port) (to_mvuart(port)->data->regs.rbr) argument
146 #define UART_TSH(port) (to_mvuart(port)->data->regs.tsh) argument
147 #define UART_CTRL(port) (to_mvuart(port)->data->regs.ctrl) argument
148 #define UART_INTR(port) (to_mvuart(port)->data->regs.intr) argument
150 #define CTRL_TX_RDY_INT(port) (to_mvuart(port)->data->flags.ctrl_tx_rdy_int) argument
151 #define CTRL_RX_RDY_INT(port) (to_mvuart(port)->data->flags.ctrl_rx_rdy_int) argument
152 #define STAT_TX_RDY(port) (to_mvuart(port)->data->flags.stat_tx_rdy) argument
[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()
181 static void digicolor_uart_tx(struct uart_port *port) in digicolor_uart_tx()
221 struct uart_port *port = dev_id; in digicolor_uart_int() local
235 static unsigned int digicolor_uart_tx_empty(struct uart_port *port) in digicolor_uart_tx_empty()
[all …]
H A Dserial_core.c103 void uart_write_wakeup(struct uart_port *port) in uart_write_wakeup()
117 struct uart_port *port; in uart_stop() local
129 struct uart_port *port = state->uart_port; in __uart_start() local
138 struct uart_port *port; in uart_start() local
147 uart_update_mctrl(struct uart_port *port, unsigned int set, unsigned int clear) in uart_update_mctrl()
160 #define uart_set_mctrl(port, set) uart_update_mctrl(port, set, 0) argument
161 #define uart_clear_mctrl(port, clear) uart_update_mctrl(port, 0, clear) argument
246 struct tty_port *port = &state->port; in uart_startup() local
269 struct tty_port *port = &state->port; in uart_shutdown() local
326 uart_update_timeout(struct uart_port *port, unsigned int cflag, in uart_update_timeout()
[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()
192 static void handle_tx(struct uart_port *port) in handle_tx()
223 static void vt8500_start_tx(struct uart_port *port) in vt8500_start_tx()
236 static void handle_delta_cts(struct uart_port *port) in handle_delta_cts()
244 struct uart_port *port = dev_id; in vt8500_irq() local
[all …]
H A Dmps2-uart.c72 struct uart_port port; member
79 static inline struct mps2_uart_port *to_mps2_port(struct uart_port *port) in to_mps2_port()
84 static void mps2_uart_write8(struct uart_port *port, u8 val, unsigned int off) in mps2_uart_write8()
91 static u8 mps2_uart_read8(struct uart_port *port, unsigned int off) in mps2_uart_read8()
98 static void mps2_uart_write32(struct uart_port *port, u32 val, unsigned int off) in mps2_uart_write32()
105 static unsigned int mps2_uart_tx_empty(struct uart_port *port) in mps2_uart_tx_empty()
112 static void mps2_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in mps2_uart_set_mctrl()
116 static unsigned int mps2_uart_get_mctrl(struct uart_port *port) in mps2_uart_get_mctrl()
121 static void mps2_uart_stop_tx(struct uart_port *port) in mps2_uart_stop_tx()
130 static void mps2_uart_tx_chars(struct uart_port *port) in mps2_uart_tx_chars()
[all …]
H A Dmeson_uart.c83 static void meson_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in meson_uart_set_mctrl()
87 static unsigned int meson_uart_get_mctrl(struct uart_port *port) in meson_uart_get_mctrl()
92 static unsigned int meson_uart_tx_empty(struct uart_port *port) in meson_uart_tx_empty()
101 static void meson_uart_stop_tx(struct uart_port *port) in meson_uart_stop_tx()
110 static void meson_uart_stop_rx(struct uart_port *port) in meson_uart_stop_rx()
119 static void meson_uart_shutdown(struct uart_port *port) in meson_uart_shutdown()
136 static void meson_uart_start_tx(struct uart_port *port) in meson_uart_start_tx()
174 static void meson_receive_chars(struct uart_port *port) in meson_receive_chars()
236 struct uart_port *port = (struct uart_port *)dev_id; in meson_uart_interrupt() local
253 static const char *meson_uart_type(struct uart_port *port) in meson_uart_type()
[all …]
H A Darc_uart.c68 #define RBASE(port, reg) (port->membase + reg) argument
96 struct uart_port port; member
122 static void arc_serial_stop_rx(struct uart_port *port) in arc_serial_stop_rx()
127 static void arc_serial_stop_tx(struct uart_port *port) in arc_serial_stop_tx()
138 static unsigned int arc_serial_tx_empty(struct uart_port *port) in arc_serial_tx_empty()
156 static void arc_serial_tx_chars(struct uart_port *port) in arc_serial_tx_chars()
192 static void arc_serial_start_tx(struct uart_port *port) in arc_serial_start_tx()
197 static void arc_serial_rx_chars(struct uart_port *port, unsigned int status) in arc_serial_rx_chars()
275 struct uart_port *port = dev_id; in arc_serial_isr() local
311 static unsigned int arc_serial_get_mctrl(struct uart_port *port) in arc_serial_get_mctrl()
[all …]
H A Dapbuart.h46 #define APBBASE(port) ((struct grlib_apbuart_regs_map *)((port)->membase)) argument
48 #define APBBASE_DATA_P(port) (&(APBBASE(port)->data)) argument
49 #define APBBASE_STATUS_P(port) (&(APBBASE(port)->status)) argument
50 #define APBBASE_CTRL_P(port) (&(APBBASE(port)->ctrl)) argument
51 #define APBBASE_SCALAR_P(port) (&(APBBASE(port)->scaler)) argument
53 #define UART_GET_CHAR(port) (__raw_readl(APBBASE_DATA_P(port))) argument
54 #define UART_PUT_CHAR(port, v) (__raw_writel(v, APBBASE_DATA_P(port))) argument
55 #define UART_GET_STATUS(port) (__raw_readl(APBBASE_STATUS_P(port))) argument
56 #define UART_PUT_STATUS(port, v)(__raw_writel(v, APBBASE_STATUS_P(port))) argument
57 #define UART_GET_CTRL(port) (__raw_readl(APBBASE_CTRL_P(port))) argument
[all …]
/OK3568_Linux_fs/kernel/drivers/staging/fwserial/
H A Dfwserial.c67 #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 …]
/OK3568_Linux_fs/kernel/drivers/usb/serial/
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
127 struct usb_serial_port *port; in destroy_serial() local
180 struct usb_serial_port *port; in serial_install() local
224 struct usb_serial_port *port = in serial_port_activate() local
244 struct usb_serial_port *port = tty->driver_data; in serial_open() local
263 struct usb_serial_port *port = in serial_port_shutdown() local
273 struct usb_serial_port *port = tty->driver_data; in serial_hangup() local
282 struct usb_serial_port *port = tty->driver_data; in serial_close() local
300 struct usb_serial_port *port = tty->driver_data; in serial_cleanup() local
[all …]
H A Dgeneric.c106 int usb_serial_generic_open(struct tty_struct *tty, struct usb_serial_port *port) in usb_serial_generic_open()
119 void usb_serial_generic_close(struct usb_serial_port *port) in usb_serial_generic_close()
139 int usb_serial_generic_prepare_write_buffer(struct usb_serial_port *port, in usb_serial_generic_prepare_write_buffer()
154 int usb_serial_generic_write_start(struct usb_serial_port *port, in usb_serial_generic_write_start()
214 struct usb_serial_port *port, const unsigned char *buf, int count) in usb_serial_generic_write()
235 struct usb_serial_port *port = tty->driver_data; in usb_serial_generic_write_room() local
252 struct usb_serial_port *port = tty->driver_data; in usb_serial_generic_chars_in_buffer() local
270 struct usb_serial_port *port = tty->driver_data; in usb_serial_generic_wait_until_sent() local
300 static int usb_serial_generic_submit_read_urb(struct usb_serial_port *port, in usb_serial_generic_submit_read_urb()
324 int usb_serial_generic_submit_read_urbs(struct usb_serial_port *port, in usb_serial_generic_submit_read_urbs()
[all …]
H A Dftdi_sio.c1235 #define set_mctrl(port, set) update_mctrl((port), (set), 0) argument
1236 #define clear_mctrl(port, clear) update_mctrl((port), 0, (clear)) argument
1238 static int update_mctrl(struct usb_serial_port *port, unsigned int set, in update_mctrl()
1285 struct usb_serial_port *port) in get_ftdi_divisor()
1390 static int change_speed(struct tty_struct *tty, struct usb_serial_port *port) in change_speed()
1418 static int write_latency_timer(struct usb_serial_port *port) in write_latency_timer()
1444 static int _read_latency_timer(struct usb_serial_port *port) in _read_latency_timer()
1473 static int read_latency_timer(struct usb_serial_port *port) in read_latency_timer()
1495 struct usb_serial_port *port = tty->driver_data; in get_serial_info() local
1507 struct usb_serial_port *port = tty->driver_data; in set_serial_info() local
[all …]
H A Diuu_phoenix.c65 static int iuu_port_probe(struct usb_serial_port *port) in iuu_port_probe()
103 static int iuu_port_remove(struct usb_serial_port *port) in iuu_port_remove()
118 struct usb_serial_port *port = tty->driver_data; in iuu_tiocmset() local
146 struct usb_serial_port *port = tty->driver_data; in iuu_tiocmget() local
160 struct usb_serial_port *port = urb->context; in iuu_rxcmd() local
179 static int iuu_reset(struct usb_serial_port *port, u8 wt) in iuu_reset()
212 struct usb_serial_port *port = urb->context; in iuu_update_status_callback() local
242 struct usb_serial_port *port = urb->context; in iuu_status_callback() local
254 static int iuu_status(struct usb_serial_port *port) in iuu_status()
269 static int bulk_immediate(struct usb_serial_port *port, u8 *buf, u8 count) in bulk_immediate()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/host/
H A Dxhci-dbgtty.c28 dbc_send_packet(struct dbc_port *port, char *packet, unsigned int size) in dbc_send_packet()
40 static int dbc_start_tx(struct dbc_port *port) in dbc_start_tx()
76 static void dbc_start_rx(struct dbc_port *port) in dbc_start_rx()
107 struct dbc_port *port = dbc_to_port(dbc); in dbc_read_complete() local
118 struct dbc_port *port = dbc_to_port(dbc); in dbc_write_complete() local
183 struct dbc_port *port = driver->driver_state; in dbc_tty_install() local
192 struct dbc_port *port = tty->driver_data; in dbc_tty_open() local
199 struct dbc_port *port = tty->driver_data; in dbc_tty_close() local
208 struct dbc_port *port = tty->driver_data; in dbc_tty_write() local
222 struct dbc_port *port = tty->driver_data; in dbc_tty_put_char() local
[all …]
/OK3568_Linux_fs/u-boot/drivers/serial/
H A Dserial_sh.c27 static int scif_rxfill(struct uart_port *port) in scif_rxfill()
32 static int scif_rxfill(struct uart_port *port) in scif_rxfill()
44 static int scif_rxfill(struct uart_port *port) in scif_rxfill()
52 static int scif_rxfill(struct uart_port *port) in scif_rxfill()
58 static void sh_serial_init_generic(struct uart_port *port) in sh_serial_init_generic()
70 sh_serial_setbrg_generic(struct uart_port *port, int clk, int baudrate) in sh_serial_setbrg_generic()
82 static void handle_error(struct uart_port *port) in handle_error()
90 static int serial_raw_putc(struct uart_port *port, const char c) in serial_raw_putc()
102 static int serial_rx_fifo_level(struct uart_port *port) in serial_rx_fifo_level()
107 static int sh_serial_tstc_generic(struct uart_port *port) in sh_serial_tstc_generic()
[all …]
H A Dserial_sh.h28 # define SCSCR_INIT(port) 0x30 /* TIE=0,RIE=0,TE=1,RE=1 */ argument
41 # define SCSCR_INIT(port) (port->mapbase == SCIF2) ? 0xF3 : 0xF0 argument
49 # define SCSCR_INIT(port) 0x0030 /* TIE=0,RIE=0,TE=1,RE=1 */ argument
57 # define SCSCR_INIT(port) 0x3a /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument
67 # define SCSCR_INIT(port) (((port)->type == PORT_SCI) ? \ argument
75 # define SCSCR_INIT(port) 0x38 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument
81 # define SCSCR_INIT(port) 0x3B argument
87 # define SCSCR_INIT(port) 0x32 /* TIE=0,RIE=0,TE=1,RE=1,REIE=0,CKE=1 */ argument
95 # define SCSCR_INIT(port) 0x0038 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument
100 # define SCSCR_INIT(port) 0x0038 /* TIE=0,RIE=0,TE=1,RE=1,REIE=1 */ argument
[all …]
/OK3568_Linux_fs/kernel/drivers/tty/serial/8250/
H A D8250_port.c661 int serial8250_em485_config(struct uart_port *port, struct serial_rs485 *rs485) in serial8250_em485_config()
1182 struct uart_port *port = &up->port; in autoconfig() local
1353 struct uart_port *port = &up->port; in autoconfig_irq() local
1406 static void serial8250_stop_rx(struct uart_port *port) in serial8250_stop_rx()
1526 static void serial8250_stop_tx(struct uart_port *port) in serial8250_stop_tx()
1543 static inline void __start_tx(struct uart_port *port) in __start_tx()
1600 static inline void start_tx_rs485(struct uart_port *port) in start_tx_rs485()
1653 static void serial8250_start_tx(struct uart_port *port) in serial8250_start_tx()
1670 static void serial8250_throttle(struct uart_port *port) in serial8250_throttle()
1675 static void serial8250_unthrottle(struct uart_port *port) in serial8250_unthrottle()
[all …]
/OK3568_Linux_fs/kernel/arch/m68k/include/asm/
H A Dio_mm.h203 #define isa_inb(port) in_8(isa_itb(port)) argument
204 #define isa_inw(port) (ISA_SEX ? in_be16(isa_itw(port)) : in_le16(isa_itw(port))) argument
205 #define isa_inl(port) (ISA_SEX ? in_be32(isa_itl(port)) : in_le32(isa_itl(port))) argument
206 #define isa_outb(val,port) out_8(isa_itb(port),(val)) argument
207 #define isa_outw(val,port) (ISA_SEX ? out_be16(isa_itw(port),(val)) : out_le16(isa_itw(port),(val))) argument
208 #define isa_outl(val,port) (ISA_SEX ? out_be32(isa_itl(port),(val)) : out_le32(isa_itl(port),(val))) argument
220 #define isa_rom_inb(port) rom_in_8(isa_itb(port)) argument
221 #define isa_rom_inw(port) \ argument
225 #define isa_rom_outb(val, port) rom_out_8(isa_itb(port), (val)) argument
226 #define isa_rom_outw(val, port) \ argument
[all …]
/OK3568_Linux_fs/kernel/drivers/tty/serial/jsm/
H A Djsm_tty.c55 static unsigned int jsm_tty_tx_empty(struct uart_port *port) in jsm_tty_tx_empty()
63 static unsigned int jsm_tty_get_mctrl(struct uart_port *port) in jsm_tty_get_mctrl()
86 static void jsm_tty_set_mctrl(struct uart_port *port, unsigned int mctrl) in jsm_tty_set_mctrl()
115 static void jsm_tty_write(struct uart_port *port) in jsm_tty_write()
123 static void jsm_tty_start_tx(struct uart_port *port) in jsm_tty_start_tx()
136 static void jsm_tty_stop_tx(struct uart_port *port) in jsm_tty_stop_tx()
148 static void jsm_tty_send_xchar(struct uart_port *port, char ch) in jsm_tty_send_xchar()
165 static void jsm_tty_stop_rx(struct uart_port *port) in jsm_tty_stop_rx()
173 static void jsm_tty_break(struct uart_port *port, int break_state) in jsm_tty_break()
188 static int jsm_tty_open(struct uart_port *port) in jsm_tty_open()
[all …]
/OK3568_Linux_fs/kernel/drivers/usb/gadget/function/
H A Du_serial.c99 struct tty_port port; member
132 struct gs_port *port; member
203 gs_send_packet(struct gs_port *port, char *packet, unsigned size) in gs_send_packet()
226 static int gs_start_tx(struct gs_port *port) in gs_start_tx()
298 static unsigned gs_start_rx(struct gs_port *port) in gs_start_rx()
359 struct gs_port *port = container_of(w, struct gs_port, push); in gs_rx_push() local
451 struct gs_port *port = ep->driver_data; in gs_read_complete() local
462 struct gs_port *port = ep->driver_data; in gs_write_complete() local
535 static int gs_start_io(struct gs_port *port) in gs_start_io()
591 struct gs_port *port; in gs_open() local
[all …]
/OK3568_Linux_fs/u-boot/drivers/gpio/
H A Dat91_gpio.c23 static struct at91_port *at91_pio_get_port(unsigned port) in at91_pio_get_port()
59 int at91_set_pio_pullup(unsigned port, unsigned pin, int use_pullup) in at91_set_pio_pullup()
72 int at91_set_pio_periph(unsigned port, unsigned pin, int use_pullup) in at91_set_pio_periph()
90 int at91_set_a_periph(unsigned port, unsigned pin, int use_pullup) in at91_set_a_periph()
109 int at91_set_b_periph(unsigned port, unsigned pin, int use_pullup) in at91_set_b_periph()
128 int at91_pio3_set_a_periph(unsigned port, unsigned pin, int use_pullup) in at91_pio3_set_a_periph()
151 int at91_pio3_set_b_periph(unsigned port, unsigned pin, int use_pullup) in at91_pio3_set_b_periph()
173 int at91_pio3_set_c_periph(unsigned port, unsigned pin, int use_pullup) in at91_pio3_set_c_periph()
195 int at91_pio3_set_d_periph(unsigned port, unsigned pin, int use_pullup) in at91_pio3_set_d_periph()
241 int at91_set_pio_input(unsigned port, u32 pin, int use_pullup) in at91_set_pio_input()
[all …]
/OK3568_Linux_fs/kernel/arch/mips/include/asm/mach-generic/
H A Dide.h59 static inline void __ide_insw(unsigned long port, void *addr, in __ide_insw()
68 static inline void __ide_insl(unsigned long port, void *addr, unsigned int count) in __ide_insl()
76 static inline void __ide_outsw(unsigned long port, const void *addr, in __ide_outsw()
85 static inline void __ide_outsl(unsigned long port, const void *addr, in __ide_outsl()
94 static inline void __ide_mm_insw(void __iomem *port, void *addr, u32 count) in __ide_mm_insw()
102 static inline void __ide_mm_insl(void __iomem *port, void *addr, u32 count) in __ide_mm_insl()
110 static inline void __ide_mm_outsw(void __iomem *port, void *addr, u32 count) in __ide_mm_outsw()
118 static inline void __ide_mm_outsl(void __iomem * port, void *addr, u32 count) in __ide_mm_outsl()
131 #define insw(port, addr, count) __ide_insw(port, addr, count) argument
132 #define insl(port, addr, count) __ide_insl(port, addr, count) argument
[all …]
/OK3568_Linux_fs/u-boot/drivers/bios_emulator/
H A Dbesys.c249 #define IS_TIMER_PORT(port) (0x40 <= port && port <= 0x43) argument
250 #define IS_CMOS_PORT(port) (0x70 <= port && port <= 0x71) argument
252 #define IS_VGA_PORT(port) (0x3C0 <= port && port <= 0x3DA) argument
253 #define IS_PCI_PORT(port) (0xCF8 <= port && port <= 0xCFF) argument
254 #define IS_SPKR_PORT(port) (port == 0x61) argument
267 static u8 VGA_inpb (const int port) in VGA_inpb()
343 static void VGA_outpb (int port, u8 val) in VGA_outpb()
501 static u32 PCI_inp(int port, int type) in PCI_inp()
532 static void PCI_outp(int port, u32 val, int type) in PCI_outp()
570 u8 X86API BE_inb(X86EMU_pioAddr port) in BE_inb()
[all …]

12345678910>>...98