Searched refs:port (Results 1 - 25 of 1114) sorted by relevance

1234567891011>>

/drivers/net/ethernet/xscale/ixp2000/
H A Dpm3386.h17 void pm3386_init_port(int port);
18 void pm3386_get_mac(int port, u8 *mac);
19 void pm3386_set_mac(int port, u8 *mac);
20 void pm3386_get_stats(int port, struct net_device_stats *stats);
21 void pm3386_set_carrier(int port, int state);
22 int pm3386_is_link_up(int port);
23 void pm3386_enable_rx(int port);
24 void pm3386_disable_rx(int port);
25 void pm3386_enable_tx(int port);
26 void pm3386_disable_tx(int port);
[all...]
H A Dcaleb.h16 void caleb_enable_rx(int port);
17 void caleb_disable_rx(int port);
18 void caleb_enable_tx(int port);
19 void caleb_disable_tx(int port);
H A Dpm3386.c59 * Read from port 'port' register 'reg', where the registers
62 static u16 pm3386_port_reg_read(int port, int _reg, int spacing) argument
67 if (port & 1)
70 return pm3386_reg_read(port >> 1, reg);
74 * Write to port 'port' register 'reg', where the registers
77 static void pm3386_port_reg_write(int port, int _reg, int spacing, u16 value) argument
82 if (port & 1)
85 pm3386_reg_write(port >>
147 pm3386_init_port(int port) argument
248 pm3386_get_mac(int port, u8 *mac) argument
265 pm3386_set_mac(int port, u8 *mac) argument
272 pm3386_get_stat(int port, u16 base) argument
282 pm3386_get_stats(int port, struct net_device_stats *stats) argument
300 pm3386_set_carrier(int port, int state) argument
305 pm3386_is_link_up(int port) argument
315 pm3386_enable_rx(int port) argument
324 pm3386_disable_rx(int port) argument
333 pm3386_enable_tx(int port) argument
342 pm3386_disable_tx(int port) argument
[all...]
/drivers/tty/serial/
H A Dsh-sci.h5 #define SCxSR_TEND(port) (((port)->type == PORT_SCI) ? SCI_TEND : SCIF_TEND)
6 #define SCxSR_RDxF(port) (((port)->type == PORT_SCI) ? SCI_RDRF : SCIF_RDF)
7 #define SCxSR_TDxE(port) (((port)->type == PORT_SCI) ? SCI_TDRE : SCIF_TDFE)
8 #define SCxSR_FER(port) (((port)->type == PORT_SCI) ? SCI_FER : SCIF_FER)
9 #define SCxSR_PER(port) (((port)
[all...]
H A Dapbuart.h45 #define APBBASE(port) ((struct grlib_apbuart_regs_map *)((port)->membase))
47 #define APBBASE_DATA_P(port) (&(APBBASE(port)->data))
48 #define APBBASE_STATUS_P(port) (&(APBBASE(port)->status))
49 #define APBBASE_CTRL_P(port) (&(APBBASE(port)->ctrl))
50 #define APBBASE_SCALAR_P(port) (&(APBBASE(port)
[all...]
H A Dtimbuart.c37 struct uart_port port; member in struct:timbuart_port
47 static void timbuart_mctrl_check(struct uart_port *port, u32 isr, u32 *ier);
51 static void timbuart_stop_rx(struct uart_port *port) argument
54 u32 ier = ioread32(port->membase + TIMBUART_IER) & ~RXFLAGS;
55 iowrite32(ier, port->membase + TIMBUART_IER);
58 static void timbuart_stop_tx(struct uart_port *port) argument
61 u32 ier = ioread32(port->membase + TIMBUART_IER) & ~TXBAE;
62 iowrite32(ier, port->membase + TIMBUART_IER);
65 static void timbuart_start_tx(struct uart_port *port) argument
68 container_of(port, struc
74 timbuart_tx_empty(struct uart_port *port) argument
81 timbuart_flush_buffer(struct uart_port *port) argument
92 timbuart_rx_chars(struct uart_port *port) argument
110 timbuart_tx_chars(struct uart_port *port) argument
131 timbuart_handle_tx_port(struct uart_port *port, u32 isr, u32 *ier) argument
165 timbuart_handle_rx_port(struct uart_port *port, u32 isr, u32 *ier) argument
211 timbuart_get_mctrl(struct uart_port *port) argument
222 timbuart_set_mctrl(struct uart_port *port, unsigned int mctrl) argument
232 timbuart_mctrl_check(struct uart_port *port, u32 isr, u32 *ier) argument
247 timbuart_enable_ms(struct uart_port *port) argument
252 timbuart_break_ctl(struct uart_port *port, int ctl) argument
257 timbuart_startup(struct uart_port *port) argument
274 timbuart_shutdown(struct uart_port *port) argument
294 timbuart_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old) argument
322 timbuart_type(struct uart_port *port) argument
330 timbuart_release_port(struct uart_port *port) argument
344 timbuart_request_port(struct uart_port *port) argument
385 timbuart_config_port(struct uart_port *port, int flags) argument
393 timbuart_verify_port(struct uart_port *port, struct serial_struct *ser) argument
[all...]
H A Dbcm63xx_uart.c82 static inline unsigned int bcm_uart_readl(struct uart_port *port, argument
85 return bcm_readl(port->membase + offset);
88 static inline void bcm_uart_writel(struct uart_port *port, argument
91 bcm_writel(value, port->membase + offset);
97 static unsigned int bcm_uart_tx_empty(struct uart_port *port) argument
101 val = bcm_uart_readl(port, UART_IR_REG);
108 static void bcm_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) argument
112 val = bcm_uart_readl(port, UART_MCTL_REG);
119 bcm_uart_writel(port, val, UART_MCTL_REG);
121 val = bcm_uart_readl(port, UART_CTL_RE
132 bcm_uart_get_mctrl(struct uart_port *port) argument
152 bcm_uart_stop_tx(struct uart_port *port) argument
168 bcm_uart_start_tx(struct uart_port *port) argument
184 bcm_uart_stop_rx(struct uart_port *port) argument
196 bcm_uart_enable_ms(struct uart_port *port) argument
208 bcm_uart_break_ctl(struct uart_port *port, int ctl) argument
228 bcm_uart_type(struct uart_port *port) argument
236 bcm_uart_do_rx(struct uart_port *port) argument
314 bcm_uart_do_tx(struct uart_port *port) argument
370 struct uart_port *port; local
402 bcm_uart_enable(struct uart_port *port) argument
414 bcm_uart_disable(struct uart_port *port) argument
427 bcm_uart_flush(struct uart_port *port) argument
444 bcm_uart_startup(struct uart_port *port) argument
489 bcm_uart_shutdown(struct uart_port *port) argument
505 bcm_uart_set_termios(struct uart_port *port, struct ktermios *new, struct ktermios *old) argument
590 bcm_uart_request_port(struct uart_port *port) argument
612 bcm_uart_release_port(struct uart_port *port) argument
621 bcm_uart_config_port(struct uart_port *port, int flags) argument
634 bcm_uart_verify_port(struct uart_port *port, struct serial_struct *serinfo) argument
671 wait_for_xmitr(struct uart_port *port) argument
703 bcm_console_putchar(struct uart_port *port, int ch) argument
715 struct uart_port *port; local
749 struct uart_port *port; local
807 struct uart_port *port; local
853 struct uart_port *port; local
[all...]
H A Dvr41xx_siu.c72 #define siu_read(port, offset) readb((port)->membase + (offset))
73 #define siu_write(port, offset, value) writeb((value), (port)->membase + (offset))
77 struct uart_port *port; local
81 port = &siu_uart_ports[0];
83 spin_lock_irqsave(&port->lock, flags);
85 irsel = siu_read(port, SIUIRSEL);
90 siu_write(port, SIUIRSEL, irsel);
92 spin_unlock_irqrestore(&port
98 struct uart_port *port; local
119 struct uart_port *port; local
150 siu_clear_fifo(struct uart_port *port) argument
158 siu_port_size(struct uart_port *port) argument
170 siu_check_type(struct uart_port *port) argument
180 siu_type_name(struct uart_port *port) argument
192 siu_tx_empty(struct uart_port *port) argument
203 siu_set_mctrl(struct uart_port *port, unsigned int mctrl) argument
221 siu_get_mctrl(struct uart_port *port) argument
239 siu_stop_tx(struct uart_port *port) argument
253 siu_start_tx(struct uart_port *port) argument
267 siu_stop_rx(struct uart_port *port) argument
283 siu_enable_ms(struct uart_port *port) argument
297 siu_break_ctl(struct uart_port *port, int ctl) argument
314 receive_chars(struct uart_port *port, uint8_t *status) argument
373 check_modem_status(struct uart_port *port) argument
392 transmit_chars(struct uart_port *port) argument
428 struct uart_port *port; local
449 siu_startup(struct uart_port *port) argument
489 siu_shutdown(struct uart_port *port) argument
517 siu_set_termios(struct uart_port *port, struct ktermios *new, struct ktermios *old) argument
599 siu_pm(struct uart_port *port, unsigned int state, unsigned int oldstate) argument
625 siu_type(struct uart_port *port) argument
630 siu_release_port(struct uart_port *port) argument
643 siu_request_port(struct uart_port *port) argument
664 siu_config_port(struct uart_port *port, int flags) argument
672 siu_verify_port(struct uart_port *port, struct serial_struct *serial) argument
708 struct uart_port *port; local
740 wait_for_xmitr(struct uart_port *port) argument
765 siu_console_putchar(struct uart_port *port, int ch) argument
773 struct uart_port *port; local
789 struct uart_port *port; local
828 struct uart_port *port; local
843 vr41xx_siu_early_setup(struct uart_port *port) argument
872 struct uart_port *port; local
906 struct uart_port *port; local
924 struct uart_port *port; local
940 struct uart_port *port; local
[all...]
H A Dclps711x.c54 #define UBRLCR(port) ((port)->iobase + UBRLCR1 - SYSCON1)
55 #define UARTDR(port) ((port)->iobase + UARTDR1 - SYSCON1)
56 #define SYSFLG(port) ((port)->iobase + SYSFLG1 - SYSCON1)
57 #define SYSCON(port) ((port)->iobase + SYSCON1 - SYSCON1)
59 #define TX_IRQ(port) ((port)
66 clps711xuart_stop_tx(struct uart_port *port) argument
74 clps711xuart_start_tx(struct uart_port *port) argument
82 clps711xuart_stop_rx(struct uart_port *port) argument
87 clps711xuart_enable_ms(struct uart_port *port) argument
93 struct uart_port *port = dev_id; local
147 struct uart_port *port = dev_id; local
182 clps711xuart_tx_empty(struct uart_port *port) argument
188 clps711xuart_get_mctrl(struct uart_port *port) argument
209 clps711xuart_set_mctrl_null(struct uart_port *port, unsigned int mctrl) argument
213 clps711xuart_break_ctl(struct uart_port *port, int break_state) argument
228 clps711xuart_startup(struct uart_port *port) argument
246 free_irq(TX_IRQ(port), port); local
260 clps711xuart_shutdown(struct uart_port *port) argument
267 free_irq(TX_IRQ(port), port); /* TX interrupt */ local
268 free_irq(RX_IRQ(port), port); /* RX interrupt */ local
286 clps711xuart_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old) argument
360 clps711xuart_type(struct uart_port *port) argument
368 clps711xuart_config_port(struct uart_port *port, int flags) argument
374 clps711xuart_release_port(struct uart_port *port) argument
378 clps711xuart_request_port(struct uart_port *port) argument
423 clps711xuart_console_putchar(struct uart_port *port, int ch) argument
442 struct uart_port *port = clps711x_ports + co->index; local
465 clps711xuart_console_get_options(struct uart_port *port, int *baud, int *parity, int *bits) argument
493 struct uart_port *port; local
[all...]
H A Daltera_jtaguart.c61 struct uart_port port; member in struct:altera_jtaguart
66 static unsigned int altera_jtaguart_tx_empty(struct uart_port *port) argument
68 return (readl(port->membase + ALTERA_JTAGUART_CONTROL_REG) &
72 static unsigned int altera_jtaguart_get_mctrl(struct uart_port *port) argument
77 static void altera_jtaguart_set_mctrl(struct uart_port *port, unsigned int sigs) argument
81 static void altera_jtaguart_start_tx(struct uart_port *port) argument
84 container_of(port, struct altera_jtaguart, port);
87 writel(pp->imr, port->membase + ALTERA_JTAGUART_CONTROL_REG);
90 static void altera_jtaguart_stop_tx(struct uart_port *port) argument
99 altera_jtaguart_stop_rx(struct uart_port *port) argument
108 altera_jtaguart_break_ctl(struct uart_port *port, int break_state) argument
112 altera_jtaguart_enable_ms(struct uart_port *port) argument
116 altera_jtaguart_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old) argument
127 struct uart_port *port = &pp->port; local
147 struct uart_port *port = &pp->port; local
187 struct uart_port *port = data; local
207 altera_jtaguart_config_port(struct uart_port *port, int flags) argument
215 altera_jtaguart_startup(struct uart_port *port) argument
241 altera_jtaguart_shutdown(struct uart_port *port) argument
258 altera_jtaguart_type(struct uart_port *port) argument
263 altera_jtaguart_request_port(struct uart_port *port) argument
269 altera_jtaguart_release_port(struct uart_port *port) argument
274 altera_jtaguart_verify_port(struct uart_port *port, struct serial_struct *ser) argument
312 struct uart_port *port = &(altera_jtaguart_ports + co->index)->port; local
333 struct uart_port *port = &(altera_jtaguart_ports + co->index)->port; local
361 struct uart_port *port; local
412 struct uart_port *port; local
458 struct uart_port *port; local
[all...]
H A Dmpc52xx_uart.c80 #define PSC(port) ((struct mpc52xx_psc __iomem *)((port)->membase))
85 static irqreturn_t mpc5xxx_uart_process_int(struct uart_port *port);
88 /* Simple macro to test if a port is console or not. This one is taken
91 #define uart_console(port) \
92 ((port)->cons && (port)->cons->index == (port)->line)
94 #define uart_console(port) (0)
102 void (*fifo_init)(struct uart_port *port);
139 mpc52xx_psc_fifo_init(struct uart_port *port) argument
153 mpc52xx_psc_raw_rx_rdy(struct uart_port *port) argument
159 mpc52xx_psc_raw_tx_rdy(struct uart_port *port) argument
166 mpc52xx_psc_rx_rdy(struct uart_port *port) argument
173 mpc52xx_psc_tx_rdy(struct uart_port *port) argument
180 mpc52xx_psc_tx_empty(struct uart_port *port) argument
186 mpc52xx_psc_start_tx(struct uart_port *port) argument
192 mpc52xx_psc_stop_tx(struct uart_port *port) argument
198 mpc52xx_psc_stop_rx(struct uart_port *port) argument
204 mpc52xx_psc_rx_clr_irq(struct uart_port *port) argument
208 mpc52xx_psc_tx_clr_irq(struct uart_port *port) argument
212 mpc52xx_psc_write_char(struct uart_port *port, unsigned char c) argument
217 mpc52xx_psc_read_char(struct uart_port *port) argument
222 mpc52xx_psc_cw_disable_ints(struct uart_port *port) argument
227 mpc52xx_psc_cw_restore_ints(struct uart_port *port) argument
232 mpc5200_psc_set_baudrate(struct uart_port *port, struct ktermios *new, struct ktermios *old) argument
250 mpc5200b_psc_set_baudrate(struct uart_port *port, struct ktermios *new, struct ktermios *old) argument
276 mpc52xx_psc_get_irq(struct uart_port *port, struct device_node *np) argument
283 mpc52xx_psc_handle_irq(struct uart_port *port) argument
347 mpc512x_psc_fifo_init(struct uart_port *port) argument
366 mpc512x_psc_raw_rx_rdy(struct uart_port *port) argument
371 mpc512x_psc_raw_tx_rdy(struct uart_port *port) argument
376 mpc512x_psc_rx_rdy(struct uart_port *port) argument
383 mpc512x_psc_tx_rdy(struct uart_port *port) argument
390 mpc512x_psc_tx_empty(struct uart_port *port) argument
396 mpc512x_psc_stop_rx(struct uart_port *port) argument
405 mpc512x_psc_start_tx(struct uart_port *port) argument
414 mpc512x_psc_stop_tx(struct uart_port *port) argument
423 mpc512x_psc_rx_clr_irq(struct uart_port *port) argument
428 mpc512x_psc_tx_clr_irq(struct uart_port *port) argument
433 mpc512x_psc_write_char(struct uart_port *port, unsigned char c) argument
438 mpc512x_psc_read_char(struct uart_port *port) argument
443 mpc512x_psc_cw_disable_ints(struct uart_port *port) argument
452 mpc512x_psc_cw_restore_ints(struct uart_port *port) argument
459 mpc512x_psc_set_baudrate(struct uart_port *port, struct ktermios *new, struct ktermios *old) argument
526 mpc512x_psc_handle_irq(struct uart_port *port) argument
543 mpc512x_psc_clock(struct uart_port *port, int enable) argument
570 mpc512x_psc_get_irq(struct uart_port *port, struct device_node *np) argument
608 mpc52xx_uart_tx_empty(struct uart_port *port) argument
614 mpc52xx_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) argument
623 mpc52xx_uart_get_mctrl(struct uart_port *port) argument
637 mpc52xx_uart_stop_tx(struct uart_port *port) argument
644 mpc52xx_uart_start_tx(struct uart_port *port) argument
651 mpc52xx_uart_send_xchar(struct uart_port *port, char ch) argument
667 mpc52xx_uart_stop_rx(struct uart_port *port) argument
674 mpc52xx_uart_enable_ms(struct uart_port *port) argument
688 mpc52xx_uart_break_ctl(struct uart_port *port, int ctl) argument
702 mpc52xx_uart_startup(struct uart_port *port) argument
734 mpc52xx_uart_shutdown(struct uart_port *port) argument
754 mpc52xx_uart_set_termios(struct uart_port *port, struct ktermios *new, struct ktermios *old) argument
841 mpc52xx_uart_type(struct uart_port *port) argument
851 mpc52xx_uart_release_port(struct uart_port *port) argument
863 mpc52xx_uart_request_port(struct uart_port *port) argument
886 mpc52xx_uart_config_port(struct uart_port *port, int flags) argument
894 mpc52xx_uart_verify_port(struct uart_port *port, struct serial_struct *ser) argument
938 mpc52xx_uart_int_rx_chars(struct uart_port *port) argument
1005 mpc52xx_uart_int_tx_chars(struct uart_port *port) argument
1046 mpc5xxx_uart_process_int(struct uart_port *port) argument
1084 struct uart_port *port = dev_id; local
1103 mpc52xx_console_get_options(struct uart_port *port, int *baud, int *parity, int *bits, int *flow) argument
1143 struct uart_port *port = &mpc52xx_uart_ports[co->index]; local
1177 struct uart_port *port = &mpc52xx_uart_ports[co->index]; local
1311 struct uart_port *port = NULL; local
1378 struct uart_port *port = dev_get_drvdata(&op->dev); local
1391 struct uart_port *port = (struct uart_port *) dev_get_drvdata(&op->dev); local
1402 struct uart_port *port = (struct uart_port *) dev_get_drvdata(&op->dev); local
[all...]
H A Daltera_uart.c82 struct uart_port port; member in struct:altera_uart
88 static u32 altera_uart_readl(struct uart_port *port, int reg) argument
90 return readl(port->membase + (reg << port->regshift));
93 static void altera_uart_writel(struct uart_port *port, u32 dat, int reg) argument
95 writel(dat, port->membase + (reg << port->regshift));
98 static unsigned int altera_uart_tx_empty(struct uart_port *port) argument
100 return (altera_uart_readl(port, ALTERA_UART_STATUS_REG) &
104 static unsigned int altera_uart_get_mctrl(struct uart_port *port) argument
116 altera_uart_set_mctrl(struct uart_port *port, unsigned int sigs) argument
128 altera_uart_start_tx(struct uart_port *port) argument
136 altera_uart_stop_tx(struct uart_port *port) argument
144 altera_uart_stop_rx(struct uart_port *port) argument
152 altera_uart_break_ctl(struct uart_port *port, int break_state) argument
166 altera_uart_enable_ms(struct uart_port *port) argument
170 altera_uart_set_termios(struct uart_port *port, struct ktermios *termios, struct ktermios *old) argument
192 struct uart_port *port = &pp->port; local
239 struct uart_port *port = &pp->port; local
271 struct uart_port *port = data; local
289 struct uart_port *port = (void *)data; local
296 altera_uart_config_port(struct uart_port *port, int flags) argument
306 altera_uart_startup(struct uart_port *port) argument
337 altera_uart_shutdown(struct uart_port *port) argument
356 altera_uart_type(struct uart_port *port) argument
361 altera_uart_request_port(struct uart_port *port) argument
367 altera_uart_release_port(struct uart_port *port) argument
372 altera_uart_verify_port(struct uart_port *port, struct serial_struct *ser) argument
381 altera_uart_poll_get_char(struct uart_port *port) argument
390 altera_uart_poll_put_char(struct uart_port *port, unsigned char c) argument
430 altera_uart_console_putc(struct uart_port *port, const char c) argument
442 struct uart_port *port = &(altera_uart_ports + co->index)->port; local
453 struct uart_port *port; local
513 altera_uart_get_of_uartclk(struct platform_device *pdev, struct uart_port *port) argument
528 altera_uart_get_of_uartclk(struct platform_device *pdev, struct uart_port *port) argument
538 struct uart_port *port; local
603 struct uart_port *port = dev_get_drvdata(&pdev->dev); local
[all...]
/drivers/tty/
H A Dtty_port.c2 * Tty port functions
21 void tty_port_init(struct tty_port *port) argument
23 memset(port, 0, sizeof(*port));
24 init_waitqueue_head(&port->open_wait);
25 init_waitqueue_head(&port->close_wait);
26 init_waitqueue_head(&port->delta_msr_wait);
27 mutex_init(&port->mutex);
28 mutex_init(&port->buf_mutex);
29 spin_lock_init(&port
36 tty_port_alloc_xmit_buf(struct tty_port *port) argument
49 tty_port_free_xmit_buf(struct tty_port *port) argument
62 struct tty_port *port = container_of(kref, struct tty_port, kref); local
71 tty_port_put(struct tty_port *port) argument
86 tty_port_tty_get(struct tty_port *port) argument
107 tty_port_tty_set(struct tty_port *port, struct tty_struct *tty) argument
119 tty_port_shutdown(struct tty_port *port) argument
136 tty_port_hangup(struct tty_port *port) argument
164 tty_port_carrier_raised(struct tty_port *port) argument
181 tty_port_raise_dtr_rts(struct tty_port *port) argument
197 tty_port_lower_dtr_rts(struct tty_port *port) argument
224 tty_port_block_til_ready(struct tty_port *port, struct tty_struct *tty, struct file *filp) argument
318 tty_port_close_start(struct tty_port *port, struct tty_struct *tty, struct file *filp) argument
382 tty_port_close_end(struct tty_port *port, struct tty_struct *tty) argument
404 tty_port_close(struct tty_port *port, struct tty_struct *tty, struct file *filp) argument
416 tty_port_open(struct tty_port *port, struct tty_struct *tty, struct file *filp) argument
[all...]
/drivers/scsi/libsas/
H A Dsas_dump.c48 SAS_DPRINTK("phy%d: port event: %s\n", phyid, sas_porte_str[pe]);
61 void sas_dump_port(struct asd_sas_port *port) argument
63 SAS_DPRINTK("port%d: class:0x%x\n", port->id, port->class);
64 SAS_DPRINTK("port%d: sas_addr:%llx\n", port->id,
65 SAS_ADDR(port->sas_addr));
66 SAS_DPRINTK("port%d: attached_sas_addr:%llx\n", port
[all...]
H A Dsas_port.c31 static bool phy_is_wideport_member(struct asd_sas_port *port, struct asd_sas_phy *phy) argument
35 if (memcmp(port->attached_sas_addr, phy->attached_sas_addr,
37 memcmp(port->sas_addr, phy->sas_addr, SAS_ADDR_SIZE) != 0))
43 * sas_form_port -- add this phy to a port
46 * This function adds this phy to an existing port, thus creating a wide
47 * port, or it creates a port and adds the phy to the port.
53 struct asd_sas_port *port = phy->port; local
157 struct asd_sas_port *port = phy->port; local
268 sas_init_port(struct asd_sas_port *port, struct sas_ha_struct *sas_ha, int i) argument
289 struct asd_sas_port *port = sas_ha->sas_port[i]; local
[all...]
/drivers/usb/serial/
H A Dgeneric.c115 int usb_serial_generic_open(struct tty_struct *tty, struct usb_serial_port *port) argument
120 dbg("%s - port %d", __func__, port->number);
123 spin_lock_irqsave(&port->lock, flags);
124 port->throttled = 0;
125 port->throttle_req = 0;
126 spin_unlock_irqrestore(&port->lock, flags);
129 if (port->bulk_in_size)
130 result = usb_serial_generic_submit_read_urbs(port, GFP_KERNEL);
136 static void generic_cleanup(struct usb_serial_port *port) argument
162 usb_serial_generic_close(struct usb_serial_port *port) argument
169 usb_serial_generic_prepare_write_buffer(struct usb_serial_port *port, void *dest, size_t size) argument
181 usb_serial_generic_write_start(struct usb_serial_port *port) argument
247 usb_serial_generic_write(struct tty_struct *tty, struct usb_serial_port *port, const unsigned char *buf, int count) argument
272 struct usb_serial_port *port = tty->driver_data; local
291 struct usb_serial_port *port = tty->driver_data; local
308 usb_serial_generic_submit_read_urb(struct usb_serial_port *port, int index, gfp_t mem_flags) argument
332 usb_serial_generic_submit_read_urbs(struct usb_serial_port *port, gfp_t mem_flags) argument
357 struct usb_serial_port *port = urb->context; local
387 struct usb_serial_port *port = urb->context; local
423 struct usb_serial_port *port = urb->context; local
454 struct usb_serial_port *port = tty->driver_data; local
469 struct usb_serial_port *port = tty->driver_data; local
486 usb_serial_handle_sysrq_char(struct usb_serial_port *port, unsigned int ch) argument
499 usb_serial_handle_sysrq_char(struct usb_serial_port *port, unsigned int ch) argument
506 usb_serial_handle_break(struct usb_serial_port *port) argument
526 struct tty_port *port = &usb_port->port; local
539 struct usb_serial_port *port; local
[all...]
/drivers/net/bonding/
H A Dbond_3ad.c103 static int ad_lacpdu_send(struct port *port);
104 static int ad_marker_send(struct port *port, struct bond_marker *marker);
105 static void ad_mux_machine(struct port *port);
106 static void ad_rx_machine(struct lacpdu *lacpdu, struct port *port);
107 static void ad_tx_machine(struct port *port);
130 __get_bond_by_port(struct port *port) argument
159 __get_next_port(struct port *port) argument
178 __get_first_agg(struct port *port) argument
224 __disable_port(struct port *port) argument
234 __enable_port(struct port *port) argument
247 __port_is_enabled(struct port *port) argument
258 __get_agg_selection_mode(struct port *port) argument
273 __check_agg_selection_timer(struct port *port) argument
288 __get_state_machine_lock(struct port *port) argument
298 __release_state_machine_lock(struct port *port) argument
314 __get_link_speed(struct port *port) argument
362 __get_duplex(struct port *port) argument
395 __initialize_port_locks(struct port *port) argument
467 __choose_matched(struct lacpdu *lacpdu, struct port *port) argument
495 __record_pdu(struct lacpdu *lacpdu, struct port *port) argument
529 __record_default(struct port *port) argument
554 __update_selected(struct lacpdu *lacpdu, struct port *port) argument
584 __update_default_selected(struct port *port) argument
616 __update_ntt(struct lacpdu *lacpdu, struct port *port) argument
645 __attach_bond_to_agg(struct port *port) argument
660 __detach_bond_from_agg(struct port *port) argument
674 struct port *port; local
700 struct port *port; local
768 __update_lacpdu_from_port(struct port *port) argument
821 ad_lacpdu_send(struct port *port) argument
861 ad_marker_send(struct port *port, struct bond_marker *marker) argument
899 ad_mux_machine(struct port *port) argument
1022 ad_rx_machine(struct lacpdu *lacpdu, struct port *port) argument
1150 ad_tx_machine(struct port *port) argument
1179 ad_periodic_machine(struct port *port) argument
1266 ad_port_selection_logic(struct port *port) argument
1476 struct port *port = agg->lag_ports; local
1511 struct port *port; local
1665 ad_initialize_port(struct port *port, int lacp_fast) argument
1730 ad_enable_collecting_distributing(struct port *port) argument
1745 ad_disable_collecting_distributing(struct port *port) argument
1803 ad_marker_info_received(struct bond_marker *marker_info, struct port *port) argument
1830 ad_marker_response_received(struct bond_marker *marker, struct port *port) argument
1896 struct port *port; local
1963 struct port *port, *prev_port, *temp_port; local
2108 struct port *port; local
2178 struct port *port; local
2236 struct port *port; local
2264 struct port *port; local
2293 struct port *port; local
2374 struct port *port; local
2491 struct port *port = NULL; local
[all...]
/drivers/tty/serial/8250/
H A D8250_fsl.c26 int fsl8250_handle_irq(struct uart_port *port) argument
32 container_of(port, struct uart_8250_port, port);
34 spin_lock_irqsave(&up->port.lock, flags);
36 iir = port->serial_in(port, UART_IIR);
38 spin_unlock_irqrestore(&up->port.lock, flags);
45 port->serial_in(port, UART_RX);
46 spin_unlock_irqrestore(&up->port
[all...]
H A D8250_early.c17 * we locate the device directly by its MMIO or I/O port address.
44 struct uart_port port; member in struct:early_serial8250_device
51 static unsigned int __init serial_in(struct uart_port *port, int offset) argument
53 switch (port->iotype) {
55 return readb(port->membase + offset);
57 return readl(port->membase + (offset << 2));
59 return inb(port->iobase + offset);
65 static void __init serial_out(struct uart_port *port, int offset, int value) argument
67 switch (port->iotype) {
69 writeb(value, port
82 wait_for_xmitr(struct uart_port *port) argument
94 serial_putc(struct uart_port *port, int c) argument
103 struct uart_port *port = &early_device.port; local
117 probe_baud(struct uart_port *port) argument
134 struct uart_port *port = &device->port; local
154 struct uart_port *port = &device->port; local
267 struct uart_port *port = &device->port; local
[all...]
/drivers/parport/
H A Dieee1284.c42 static void parport_ieee1284_wakeup (struct parport *port) argument
44 up (&port->physport->ieee1284.irq);
54 * parport_wait_event - wait for an event on a parallel port
55 * @port: port to wait on
59 * interrupt to occur on a parallel port. If the port timeout is
69 int parport_wait_event (struct parport *port, signed long timeout) argument
74 if (!port->physport->cad->timeout)
82 port_from_cookie[port
120 parport_poll_peripheral(struct parport *port, unsigned char mask, unsigned char result, int usec) argument
169 parport_wait_peripheral(struct parport *port, unsigned char mask, unsigned char result) argument
227 parport_ieee1284_terminate(struct parport *port) argument
334 parport_negotiate(struct parport *port, int mode) argument
560 parport_ieee1284_ack_data_avail(struct parport *port) argument
576 struct parport *port = handle; local
607 parport_write(struct parport *port, const void *buffer, size_t len) argument
700 parport_read(struct parport *port, void *buffer, size_t len) argument
[all...]
H A Ddaisy.c2 * IEEE 1284.3 Parallel port daisy chain and multiplexor code
12 * 31-01-1999: Make port-cloning transparent.
41 struct parport *port; member in struct:daisydev
50 static int mux_present(struct parport *port);
51 static int num_mux_ports(struct parport *port);
52 static int select_port(struct parport *port);
53 static int assign_addrs(struct parport *port);
56 static void add_dev(int devnum, struct parport *port, int daisy) argument
61 newdev->port = port;
92 parport_daisy_init(struct parport *port) argument
175 parport_daisy_fini(struct parport *port) argument
216 struct parport *port; local
271 cpp_daisy(struct parport *port, int cmd) argument
319 cpp_mux(struct parport *port, int cmd) argument
348 parport_daisy_deselect_all(struct parport *port) argument
353 parport_daisy_select(struct parport *port, int daisy, int mode) argument
384 mux_present(struct parport *port) argument
389 num_mux_ports(struct parport *port) argument
394 select_port(struct parport *port) argument
400 assign_addrs(struct parport *port) argument
[all...]
H A Dieee1284_ops.c6 * the function pointers in port->ops); if not, they can just use these
40 size_t parport_ieee1284_write_compat (struct parport *port, argument
48 struct pardevice *dev = port->physport->cad;
52 if (port->irq != PARPORT_IRQ_NONE) {
53 parport_enable_irq (port);
57 port->physport->ieee1284.phase = IEEE1284_PH_FWD_DATA;
58 parport_write_control (port, ctl);
59 parport_data_forward (port);
71 if (!parport_wait_peripheral (port, mask, val))
76 if ((parport_read_status (port)
149 parport_ieee1284_read_nibble(struct parport *port, void *buffer, size_t len, int flags) argument
240 parport_ieee1284_read_byte(struct parport *port, void *buffer, size_t len, int flags) argument
334 ecp_forward_to_reverse(struct parport *port) argument
368 ecp_reverse_to_forward(struct parport *port) argument
403 parport_ieee1284_ecp_write_data(struct parport *port, const void *buffer, size_t len, int flags) argument
490 parport_ieee1284_ecp_read_data(struct parport *port, void *buffer, size_t len, int flags) argument
638 parport_ieee1284_ecp_write_addr(struct parport *port, const void *buffer, size_t len, int flags) argument
730 parport_ieee1284_epp_write_data(struct parport *port, const void *buffer, size_t len, int flags) argument
774 parport_ieee1284_epp_read_data(struct parport *port, void *buffer, size_t len, int flags) argument
818 parport_ieee1284_epp_write_addr(struct parport *port, const void *buffer, size_t len, int flags) argument
862 parport_ieee1284_epp_read_addr(struct parport *port, void *buffer, size_t len, int flags) argument
[all...]
/drivers/mmc/card/
H A Dsdio_uart.c26 * concurrent access to the same port.
68 struct tty_port port; member in struct:sdio_uart_port
92 static int sdio_uart_add_port(struct sdio_uart_port *port) argument
96 kref_init(&port->kref);
97 mutex_init(&port->func_lock);
98 spin_lock_init(&port->write_lock);
99 if (kfifo_alloc(&port->xmit_fifo, FIFO_SIZE, GFP_KERNEL))
105 port->index = index;
106 sdio_uart_table[index] = port;
118 struct sdio_uart_port *port; local
134 struct sdio_uart_port *port = local
140 sdio_uart_port_put(struct sdio_uart_port *port) argument
145 sdio_uart_port_remove(struct sdio_uart_port *port) argument
183 sdio_uart_claim_func(struct sdio_uart_port *port) argument
196 sdio_uart_release_func(struct sdio_uart_port *port) argument
202 sdio_in(struct sdio_uart_port *port, int offset) argument
209 sdio_out(struct sdio_uart_port *port, int offset, int value) argument
214 sdio_uart_get_mctrl(struct sdio_uart_port *port) argument
235 sdio_uart_write_mctrl(struct sdio_uart_port *port, unsigned int mctrl) argument
254 sdio_uart_update_mctrl(struct sdio_uart_port *port, unsigned int set, unsigned int clear) argument
268 sdio_uart_change_speed(struct sdio_uart_port *port, struct ktermios *termios, struct ktermios *old) argument
369 sdio_uart_start_tx(struct sdio_uart_port *port) argument
377 sdio_uart_stop_tx(struct sdio_uart_port *port) argument
385 sdio_uart_stop_rx(struct sdio_uart_port *port) argument
392 sdio_uart_receive_chars(struct sdio_uart_port *port, unsigned int *status) argument
451 sdio_uart_transmit_chars(struct sdio_uart_port *port) argument
490 sdio_uart_check_modem_status(struct sdio_uart_port *port) argument
545 struct sdio_uart_port *port = sdio_get_drvdata(func); local
575 struct sdio_uart_port *port = local
598 struct sdio_uart_port *port = local
627 struct sdio_uart_port *port = local
710 struct sdio_uart_port *port = local
752 struct sdio_uart_port *port = sdio_uart_port_get(idx); local
773 struct sdio_uart_port *port = tty->driver_data; local
784 struct sdio_uart_port *port = tty->driver_data; local
790 struct sdio_uart_port *port = tty->driver_data; local
796 struct sdio_uart_port *port = tty->driver_data; local
803 struct sdio_uart_port *port = tty->driver_data; local
825 struct sdio_uart_port *port = tty->driver_data; local
831 struct sdio_uart_port *port = tty->driver_data; local
837 struct sdio_uart_port *port = tty->driver_data; local
851 struct sdio_uart_port *port = tty->driver_data; local
873 struct sdio_uart_port *port = tty->driver_data; local
900 struct sdio_uart_port *port = tty->driver_data; local
939 struct sdio_uart_port *port = tty->driver_data; local
958 struct sdio_uart_port *port = tty->driver_data; local
973 struct sdio_uart_port *port = tty->driver_data; local
992 struct sdio_uart_port *port = sdio_uart_port_get(i); local
1074 struct sdio_uart_port *port; local
1148 struct sdio_uart_port *port = sdio_get_drvdata(func); local
[all...]
/drivers/gpu/drm/nouveau/
H A Dnouveau_i2c.c35 struct nouveau_i2c_chan *port = data; local
36 if (port->type == 0) {
37 u8 val = NVReadVgaCrtc(port->dev, 0, port->drive);
40 NVWriteVgaCrtc(port->dev, 0, port->drive, val | 0x01);
42 if (port->type == 4) {
43 nv_mask(port->dev, port->drive, 0x2f, state ? 0x21 : 0x01);
45 if (port
55 struct nouveau_i2c_chan *port = data; local
75 struct nouveau_i2c_chan *port = data; local
95 struct nouveau_i2c_chan *port = data; local
144 struct nouveau_i2c_chan *port; local
292 struct nouveau_i2c_chan *port, *tmp; local
304 struct nouveau_i2c_chan *port; local
[all...]
/drivers/char/
H A Dvirtio_console.c52 /* Used for exporting per-port information to debugfs */
86 /* The hvc device associated with this console port */
148 /* Array of per-port IO virtqueues */
162 /* This struct holds the per-port data */
163 struct port { struct
164 /* Next port in the list, head is in the ports_device */
175 * port. Has to be a spinlock because it can be called from
183 /* The IO vqs for this port */
186 /* File in the debugfs directory that exposes this port's information */
191 * this port fo
235 struct port *port; local
255 struct port *port; local
272 struct port *port; local
289 struct port *port; local
306 struct port *port; local
319 is_console_port(struct port *port) argument
365 get_inbuf(struct port *port) argument
401 discard_port_data(struct port *port) argument
427 port_has_data(struct port *port) argument
468 send_control_msg(struct port *port, unsigned int event, unsigned int value) argument
478 reclaim_consumed_buffers(struct port *port) argument
493 send_buf(struct port *port, void *in_buf, size_t in_count, bool nonblock) argument
551 fill_readbuf(struct port *port, char *out_buf, size_t out_count, bool to_user) argument
593 will_read_block(struct port *port) argument
602 will_write_block(struct port *port) argument
628 struct port *port; local
671 struct port *port; local
730 struct port *port; local
755 struct port *port; local
789 struct port *port; local
842 struct port *port; local
875 struct port *port; local
896 struct port *port; local
912 resize_console(struct port *port) argument
928 struct port *port; local
969 init_port_console(struct port *port) argument
1022 struct port *port; local
1044 struct port *port; local
1088 set_console_size(struct port *port, u16 rows, u16 cols) argument
1123 send_sigio_to_port(struct port *port) argument
1132 struct port *port; local
1253 struct port *port; local
1268 remove_port_data(struct port *port) argument
1287 unplug_port(struct port *port) argument
1331 struct port *port; local
1489 struct port *port; local
1500 struct port *port; local
1546 struct port *port; local
1800 struct port *port, *port2; local
1845 struct port *port; local
1878 struct port *port; local
[all...]

Completed in 456 milliseconds

1234567891011>>