Home
last modified time | relevance | path

Searched refs:port (Results 1 – 25 of 2292) sorted by relevance

12345678910>>...92

/Linux-v4.19/drivers/usb/typec/
Dtcpm.c331 struct tcpm_port *port; member
339 #define tcpm_port_is_sink(port) \ argument
340 ((tcpm_cc_is_sink((port)->cc1) && !tcpm_cc_is_sink((port)->cc2)) || \
341 (tcpm_cc_is_sink((port)->cc2) && !tcpm_cc_is_sink((port)->cc1)))
347 #define tcpm_port_is_source(port) \ argument
348 ((tcpm_cc_is_source((port)->cc1) && \
349 !tcpm_cc_is_source((port)->cc2)) || \
350 (tcpm_cc_is_source((port)->cc2) && \
351 !tcpm_cc_is_source((port)->cc1)))
353 #define tcpm_port_is_debug(port) \ argument
[all …]
/Linux-v4.19/drivers/net/bonding/
Dbond_3ad.c118 static int ad_lacpdu_send(struct port *port);
119 static int ad_marker_send(struct port *port, struct bond_marker *marker);
120 static void ad_mux_machine(struct port *port, bool *update_slave_arr);
121 static void ad_rx_machine(struct lacpdu *lacpdu, struct port *port);
122 static void ad_tx_machine(struct port *port);
123 static void ad_periodic_machine(struct port *port);
124 static void ad_port_selection_logic(struct port *port, bool *update_slave_arr);
129 static void ad_initialize_port(struct port *port, int lacp_fast);
130 static void ad_enable_collecting_distributing(struct port *port,
132 static void ad_disable_collecting_distributing(struct port *port,
[all …]
/Linux-v4.19/drivers/tty/
Dtty_port.c22 static int tty_port_default_receive_buf(struct tty_port *port, in tty_port_default_receive_buf() argument
30 tty = READ_ONCE(port->itty); in tty_port_default_receive_buf()
45 static void tty_port_default_wakeup(struct tty_port *port) in tty_port_default_wakeup() argument
47 struct tty_struct *tty = tty_port_tty_get(port); in tty_port_default_wakeup()
60 void tty_port_init(struct tty_port *port) in tty_port_init() argument
62 memset(port, 0, sizeof(*port)); in tty_port_init()
63 tty_buffer_init(port); in tty_port_init()
64 init_waitqueue_head(&port->open_wait); in tty_port_init()
65 init_waitqueue_head(&port->delta_msr_wait); in tty_port_init()
66 mutex_init(&port->mutex); in tty_port_init()
[all …]
/Linux-v4.19/drivers/mmc/core/
Dsdio_uart.c68 struct tty_port port; member
90 static int sdio_uart_add_port(struct sdio_uart_port *port) in sdio_uart_add_port() argument
94 mutex_init(&port->func_lock); in sdio_uart_add_port()
95 spin_lock_init(&port->write_lock); in sdio_uart_add_port()
96 if (kfifo_alloc(&port->xmit_fifo, FIFO_SIZE, GFP_KERNEL)) in sdio_uart_add_port()
102 port->index = index; in sdio_uart_add_port()
103 sdio_uart_table[index] = port; in sdio_uart_add_port()
115 struct sdio_uart_port *port; in sdio_uart_port_get() local
121 port = sdio_uart_table[index]; in sdio_uart_port_get()
122 if (port) in sdio_uart_port_get()
[all …]
/Linux-v4.19/drivers/tty/serial/
Dvr41xx_siu.c59 #define siu_read(port, offset) readb((port)->membase + (offset)) argument
60 #define siu_write(port, offset, value) writeb((value), (port)->membase + (offset)) argument
64 struct uart_port *port; in vr41xx_select_siu_interface() local
68 port = &siu_uart_ports[0]; in vr41xx_select_siu_interface()
70 spin_lock_irqsave(&port->lock, flags); in vr41xx_select_siu_interface()
72 irsel = siu_read(port, SIUIRSEL); in vr41xx_select_siu_interface()
77 siu_write(port, SIUIRSEL, irsel); in vr41xx_select_siu_interface()
79 spin_unlock_irqrestore(&port->lock, flags); in vr41xx_select_siu_interface()
85 struct uart_port *port; in vr41xx_use_irda() local
89 port = &siu_uart_ports[0]; in vr41xx_use_irda()
[all …]
Dmvebu-uart.c126 struct uart_port *port; member
136 static struct mvebu_uart *to_mvuart(struct uart_port *port) in to_mvuart() argument
138 return (struct mvebu_uart *)port->private_data; in to_mvuart()
141 #define IS_EXTENDED(port) (to_mvuart(port)->data->is_ext) argument
143 #define UART_RBR(port) (to_mvuart(port)->data->regs.rbr) argument
144 #define UART_TSH(port) (to_mvuart(port)->data->regs.tsh) argument
145 #define UART_CTRL(port) (to_mvuart(port)->data->regs.ctrl) argument
146 #define UART_INTR(port) (to_mvuart(port)->data->regs.intr) argument
148 #define CTRL_TX_RDY_INT(port) (to_mvuart(port)->data->flags.ctrl_tx_rdy_int) argument
149 #define CTRL_RX_RDY_INT(port) (to_mvuart(port)->data->flags.ctrl_rx_rdy_int) argument
[all …]
Dmpc52xx_uart.c77 #define PSC(port) ((struct mpc52xx_psc __iomem *)((port)->membase)) argument
82 static irqreturn_t mpc5xxx_uart_process_int(struct uart_port *port);
89 void (*fifo_init)(struct uart_port *port);
90 int (*raw_rx_rdy)(struct uart_port *port);
91 int (*raw_tx_rdy)(struct uart_port *port);
92 int (*rx_rdy)(struct uart_port *port);
93 int (*tx_rdy)(struct uart_port *port);
94 int (*tx_empty)(struct uart_port *port);
95 void (*stop_rx)(struct uart_port *port);
96 void (*start_tx)(struct uart_port *port);
[all …]
Dbcm63xx_uart.c77 static inline unsigned int bcm_uart_readl(struct uart_port *port, in bcm_uart_readl() argument
80 return __raw_readl(port->membase + offset); in bcm_uart_readl()
83 static inline void bcm_uart_writel(struct uart_port *port, in bcm_uart_writel() argument
86 __raw_writel(value, port->membase + offset); in bcm_uart_writel()
92 static unsigned int bcm_uart_tx_empty(struct uart_port *port) in bcm_uart_tx_empty() argument
96 val = bcm_uart_readl(port, UART_IR_REG); in bcm_uart_tx_empty()
103 static void bcm_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in bcm_uart_set_mctrl() argument
107 val = bcm_uart_readl(port, UART_MCTL_REG); in bcm_uart_set_mctrl()
114 bcm_uart_writel(port, val, UART_MCTL_REG); in bcm_uart_set_mctrl()
116 val = bcm_uart_readl(port, UART_CTL_REG); in bcm_uart_set_mctrl()
[all …]
Dtimbuart.c25 struct uart_port port; member
35 static void timbuart_mctrl_check(struct uart_port *port, u32 isr, u32 *ier);
39 static void timbuart_stop_rx(struct uart_port *port) in timbuart_stop_rx() argument
42 u32 ier = ioread32(port->membase + TIMBUART_IER) & ~RXFLAGS; in timbuart_stop_rx()
43 iowrite32(ier, port->membase + TIMBUART_IER); in timbuart_stop_rx()
46 static void timbuart_stop_tx(struct uart_port *port) in timbuart_stop_tx() argument
49 u32 ier = ioread32(port->membase + TIMBUART_IER) & ~TXBAE; in timbuart_stop_tx()
50 iowrite32(ier, port->membase + TIMBUART_IER); in timbuart_stop_tx()
53 static void timbuart_start_tx(struct uart_port *port) in timbuart_start_tx() argument
56 container_of(port, struct timbuart_port, port); in timbuart_start_tx()
[all …]
Dmcf.c53 struct uart_port port; member
60 static unsigned int mcf_tx_empty(struct uart_port *port) in mcf_tx_empty() argument
62 return (readb(port->membase + MCFUART_USR) & MCFUART_USR_TXEMPTY) ? in mcf_tx_empty()
68 static unsigned int mcf_get_mctrl(struct uart_port *port) in mcf_get_mctrl() argument
70 struct mcf_uart *pp = container_of(port, struct mcf_uart, port); in mcf_get_mctrl()
73 sigs = (readb(port->membase + MCFUART_UIPR) & MCFUART_UIPR_CTS) ? in mcf_get_mctrl()
76 sigs |= (mcf_getppdcd(port->line) ? TIOCM_CD : 0); in mcf_get_mctrl()
77 sigs |= (mcf_getppdtr(port->line) ? TIOCM_DTR : 0); in mcf_get_mctrl()
84 static void mcf_set_mctrl(struct uart_port *port, unsigned int sigs) in mcf_set_mctrl() argument
86 struct mcf_uart *pp = container_of(port, struct mcf_uart, port); in mcf_set_mctrl()
[all …]
Dapbuart.c43 static void apbuart_tx_chars(struct uart_port *port);
45 static void apbuart_stop_tx(struct uart_port *port) in apbuart_stop_tx() argument
49 cr = UART_GET_CTRL(port); in apbuart_stop_tx()
51 UART_PUT_CTRL(port, cr); in apbuart_stop_tx()
54 static void apbuart_start_tx(struct uart_port *port) in apbuart_start_tx() argument
58 cr = UART_GET_CTRL(port); in apbuart_start_tx()
60 UART_PUT_CTRL(port, cr); in apbuart_start_tx()
62 if (UART_GET_STATUS(port) & UART_STATUS_THE) in apbuart_start_tx()
63 apbuart_tx_chars(port); in apbuart_start_tx()
66 static void apbuart_stop_rx(struct uart_port *port) in apbuart_stop_rx() argument
[all …]
Daltera_uart.c78 struct uart_port port; member
84 static u32 altera_uart_readl(struct uart_port *port, int reg) in altera_uart_readl() argument
86 return readl(port->membase + (reg << port->regshift)); in altera_uart_readl()
89 static void altera_uart_writel(struct uart_port *port, u32 dat, int reg) in altera_uart_writel() argument
91 writel(dat, port->membase + (reg << port->regshift)); in altera_uart_writel()
94 static unsigned int altera_uart_tx_empty(struct uart_port *port) in altera_uart_tx_empty() argument
96 return (altera_uart_readl(port, ALTERA_UART_STATUS_REG) & in altera_uart_tx_empty()
100 static unsigned int altera_uart_get_mctrl(struct uart_port *port) in altera_uart_get_mctrl() argument
102 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_get_mctrl()
105 sigs = (altera_uart_readl(port, ALTERA_UART_STATUS_REG) & in altera_uart_get_mctrl()
[all …]
Duartlite.c98 static inline u32 uart_in32(u32 offset, struct uart_port *port) in uart_in32() argument
100 struct uartlite_data *pdata = port->private_data; in uart_in32()
102 return pdata->reg_ops->in(port->membase + offset); in uart_in32()
105 static inline void uart_out32(u32 val, u32 offset, struct uart_port *port) in uart_out32() argument
107 struct uartlite_data *pdata = port->private_data; in uart_out32()
109 pdata->reg_ops->out(val, port->membase + offset); in uart_out32()
118 static int ulite_receive(struct uart_port *port, int stat) in ulite_receive() argument
120 struct tty_port *tport = &port->state->port; in ulite_receive()
130 port->icount.rx++; in ulite_receive()
131 ch = uart_in32(ULITE_RX, port); in ulite_receive()
[all …]
Daltera_jtaguart.c57 struct uart_port port; member
62 static unsigned int altera_jtaguart_tx_empty(struct uart_port *port) in altera_jtaguart_tx_empty() argument
64 return (readl(port->membase + ALTERA_JTAGUART_CONTROL_REG) & in altera_jtaguart_tx_empty()
68 static unsigned int altera_jtaguart_get_mctrl(struct uart_port *port) in altera_jtaguart_get_mctrl() argument
73 static void altera_jtaguart_set_mctrl(struct uart_port *port, unsigned int sigs) in altera_jtaguart_set_mctrl() argument
77 static void altera_jtaguart_start_tx(struct uart_port *port) in altera_jtaguart_start_tx() argument
80 container_of(port, struct altera_jtaguart, port); in altera_jtaguart_start_tx()
83 writel(pp->imr, port->membase + ALTERA_JTAGUART_CONTROL_REG); in altera_jtaguart_start_tx()
86 static void altera_jtaguart_stop_tx(struct uart_port *port) in altera_jtaguart_stop_tx() argument
89 container_of(port, struct altera_jtaguart, port); in altera_jtaguart_stop_tx()
[all …]
Dmeson_uart.c83 static void meson_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in meson_uart_set_mctrl() argument
87 static unsigned int meson_uart_get_mctrl(struct uart_port *port) in meson_uart_get_mctrl() argument
92 static unsigned int meson_uart_tx_empty(struct uart_port *port) in meson_uart_tx_empty() argument
96 val = readl(port->membase + AML_UART_STATUS); in meson_uart_tx_empty()
101 static void meson_uart_stop_tx(struct uart_port *port) in meson_uart_stop_tx() argument
105 val = readl(port->membase + AML_UART_CONTROL); in meson_uart_stop_tx()
107 writel(val, port->membase + AML_UART_CONTROL); in meson_uart_stop_tx()
110 static void meson_uart_stop_rx(struct uart_port *port) in meson_uart_stop_rx() argument
114 val = readl(port->membase + AML_UART_CONTROL); in meson_uart_stop_rx()
116 writel(val, port->membase + AML_UART_CONTROL); in meson_uart_stop_rx()
[all …]
Dserial_ks8695.c60 static inline int tx_enabled(struct uart_port *port) in tx_enabled() argument
62 return port->unused[0] & 1; in tx_enabled()
65 static inline int rx_enabled(struct uart_port *port) in rx_enabled() argument
67 return port->unused[0] & 2; in rx_enabled()
70 static inline int ms_enabled(struct uart_port *port) in ms_enabled() argument
72 return port->unused[0] & 4; in ms_enabled()
75 static inline void ms_enable(struct uart_port *port, int enabled) in ms_enable() argument
78 port->unused[0] |= 4; in ms_enable()
80 port->unused[0] &= ~4; in ms_enable()
83 static inline void rx_enable(struct uart_port *port, int enabled) in rx_enable() argument
[all …]
/Linux-v4.19/drivers/parport/
Dieee1284.c42 static void parport_ieee1284_wakeup (struct parport *port) in parport_ieee1284_wakeup() argument
44 up (&port->physport->ieee1284.irq); in parport_ieee1284_wakeup()
49 struct parport *port = from_timer(port, t, timer); in timeout_waiting_on_port() local
51 parport_ieee1284_wakeup (port); in timeout_waiting_on_port()
70 int parport_wait_event (struct parport *port, signed long timeout) in parport_wait_event() argument
74 if (!port->physport->cad->timeout) in parport_wait_event()
79 timer_setup(&port->timer, timeout_waiting_on_port, 0); in parport_wait_event()
80 mod_timer(&port->timer, jiffies + timeout); in parport_wait_event()
81 ret = down_interruptible (&port->physport->ieee1284.irq); in parport_wait_event()
82 if (!del_timer_sync(&port->timer) && !ret) in parport_wait_event()
[all …]
Dieee1284_ops.c41 size_t parport_ieee1284_write_compat (struct parport *port, in parport_ieee1284_write_compat() argument
49 struct pardevice *dev = port->physport->cad; in parport_ieee1284_write_compat()
53 if (port->irq != PARPORT_IRQ_NONE) { in parport_ieee1284_write_compat()
54 parport_enable_irq (port); in parport_ieee1284_write_compat()
58 port->physport->ieee1284.phase = IEEE1284_PH_FWD_DATA; in parport_ieee1284_write_compat()
59 parport_write_control (port, ctl); in parport_ieee1284_write_compat()
60 parport_data_forward (port); in parport_ieee1284_write_compat()
72 if (!parport_wait_peripheral (port, mask, val)) in parport_ieee1284_write_compat()
77 if ((parport_read_status (port) & in parport_ieee1284_write_compat()
105 parport_wait_event (port, wait); in parport_ieee1284_write_compat()
[all …]
/Linux-v4.19/drivers/usb/serial/
Dgeneric.c106 int usb_serial_generic_open(struct tty_struct *tty, struct usb_serial_port *port) in usb_serial_generic_open() argument
111 spin_lock_irqsave(&port->lock, flags); in usb_serial_generic_open()
112 port->throttled = 0; in usb_serial_generic_open()
113 port->throttle_req = 0; in usb_serial_generic_open()
114 spin_unlock_irqrestore(&port->lock, flags); in usb_serial_generic_open()
116 if (port->bulk_in_size) in usb_serial_generic_open()
117 result = usb_serial_generic_submit_read_urbs(port, GFP_KERNEL); in usb_serial_generic_open()
123 void usb_serial_generic_close(struct usb_serial_port *port) in usb_serial_generic_close() argument
128 if (port->bulk_out_size) { in usb_serial_generic_close()
129 for (i = 0; i < ARRAY_SIZE(port->write_urbs); ++i) in usb_serial_generic_close()
[all …]
/Linux-v4.19/drivers/usb/gadget/function/
Du_serial.c86 struct gs_port *port; member
100 struct tty_port port; member
129 struct gs_port *port; member
200 gs_send_packet(struct gs_port *port, char *packet, unsigned size) in gs_send_packet() argument
204 len = kfifo_len(&port->port_write_buf); in gs_send_packet()
208 size = kfifo_out(&port->port_write_buf, packet, size); in gs_send_packet()
223 static int gs_start_tx(struct gs_port *port) in gs_start_tx() argument
229 struct list_head *pool = &port->write_pool; in gs_start_tx()
234 if (!port->port_usb) in gs_start_tx()
237 in = port->port_usb->in; in gs_start_tx()
[all …]
/Linux-v4.19/drivers/scsi/libsas/
Dsas_port.c31 static bool phy_is_wideport_member(struct asd_sas_port *port, struct asd_sas_phy *phy) in phy_is_wideport_member() argument
35 if (memcmp(port->attached_sas_addr, phy->attached_sas_addr, in phy_is_wideport_member()
37 memcmp(port->sas_addr, phy->sas_addr, SAS_ADDR_SIZE) != 0)) in phy_is_wideport_member()
45 struct asd_sas_port *port = phy->port; in sas_resume_port() local
52 if (port->suspended) in sas_resume_port()
53 port->suspended = 0; in sas_resume_port()
63 list_for_each_entry(dev, &port->dev_list, dev_list_node) { in sas_resume_port()
68 sas_unregister_dev(port, dev); in sas_resume_port()
69 sas_destruct_devices(port); in sas_resume_port()
83 sas_discover_event(port, DISCE_RESUME); in sas_resume_port()
[all …]
/Linux-v4.19/drivers/usb/host/
Dxhci-dbgtty.c18 dbc_send_packet(struct dbc_port *port, char *packet, unsigned int size) in dbc_send_packet() argument
22 len = kfifo_len(&port->write_fifo); in dbc_send_packet()
26 size = kfifo_out(&port->write_fifo, packet, size); in dbc_send_packet()
30 static int dbc_start_tx(struct dbc_port *port) in dbc_start_tx() argument
31 __releases(&port->port_lock) in dbc_start_tx()
32 __acquires(&port->port_lock) in dbc_start_tx()
38 struct list_head *pool = &port->write_pool; in dbc_start_tx()
42 len = dbc_send_packet(port, req->buf, DBC_MAX_PACKET); in dbc_start_tx()
50 spin_unlock(&port->port_lock); in dbc_start_tx()
51 status = dbc_ep_queue(port->out, req, GFP_ATOMIC); in dbc_start_tx()
[all …]
/Linux-v4.19/drivers/char/
Dvirtio_console.c185 struct port { struct
255 static struct port *find_port_by_vtermno(u32 vtermno) in find_port_by_vtermno() argument
257 struct port *port; in find_port_by_vtermno() local
264 port = container_of(cons, struct port, cons); in find_port_by_vtermno()
268 port = NULL; in find_port_by_vtermno()
271 return port; in find_port_by_vtermno()
274 static struct port *find_port_by_devt_in_portdev(struct ports_device *portdev, in find_port_by_devt_in_portdev()
277 struct port *port; in find_port_by_devt_in_portdev() local
281 list_for_each_entry(port, &portdev->ports, list) { in find_port_by_devt_in_portdev()
282 if (port->cdev->dev == dev) { in find_port_by_devt_in_portdev()
[all …]
/Linux-v4.19/drivers/net/wan/
Dhd64572.c47 #define get_msci(port) (port->chan ? MSCI1_OFFSET : MSCI0_OFFSET) argument
48 #define get_dmac_rx(port) (port->chan ? DMAC1RX_OFFSET : DMAC0RX_OFFSET) argument
49 #define get_dmac_tx(port) (port->chan ? DMAC1TX_OFFSET : DMAC0TX_OFFSET) argument
65 static inline void enable_intr(port_t *port) in enable_intr() argument
68 sca_outl(sca_inl(IER0, port->card) | in enable_intr()
69 (port->chan ? 0x08002200 : 0x00080022), IER0, port->card); in enable_intr()
72 static inline void disable_intr(port_t *port) in disable_intr() argument
74 sca_outl(sca_inl(IER0, port->card) & in disable_intr()
75 (port->chan ? 0x00FF00FF : 0xFF00FF00), IER0, port->card); in disable_intr()
78 static inline u16 desc_abs_number(port_t *port, u16 desc, int transmit) in desc_abs_number() argument
[all …]
/Linux-v4.19/drivers/tty/serial/8250/
D8250_core.c120 struct uart_port *port; in serial8250_interrupt() local
123 port = &up->port; in serial8250_interrupt()
125 if (port->handle_irq(port)) { in serial8250_interrupt()
180 int ret, irq_flags = up->port.flags & UPF_SHARE_IRQ ? IRQF_SHARED : 0; in serial_link_irq_chain()
184 h = &irq_lists[up->port.irq % NR_IRQ_HASH]; in serial_link_irq_chain()
188 if (i->irq == up->port.irq) in serial_link_irq_chain()
199 i->irq = up->port.irq; in serial_link_irq_chain()
215 irq_flags |= up->port.irqflags; in serial_link_irq_chain()
216 ret = request_irq(up->port.irq, serial8250_interrupt, in serial_link_irq_chain()
217 irq_flags, up->port.name, i); in serial_link_irq_chain()
[all …]

12345678910>>...92