/drivers/net/bonding/ |
D | bond_3ad.c | 113 static int ad_lacpdu_send(struct port *port); 114 static int ad_marker_send(struct port *port, struct bond_marker *marker); 115 static void ad_mux_machine(struct port *port, bool *update_slave_arr); 116 static void ad_rx_machine(struct lacpdu *lacpdu, struct port *port); 117 static void ad_tx_machine(struct port *port); 118 static void ad_periodic_machine(struct port *port); 119 static void ad_port_selection_logic(struct port *port, bool *update_slave_arr); 124 static void ad_initialize_port(struct port *port, int lacp_fast); 125 static void ad_enable_collecting_distributing(struct port *port, 127 static void ad_disable_collecting_distributing(struct port *port, [all …]
|
/drivers/tty/ |
D | tty_port.c | 20 void tty_port_init(struct tty_port *port) in tty_port_init() argument 22 memset(port, 0, sizeof(*port)); in tty_port_init() 23 tty_buffer_init(port); in tty_port_init() 24 init_waitqueue_head(&port->open_wait); in tty_port_init() 25 init_waitqueue_head(&port->delta_msr_wait); in tty_port_init() 26 mutex_init(&port->mutex); in tty_port_init() 27 mutex_init(&port->buf_mutex); in tty_port_init() 28 spin_lock_init(&port->lock); in tty_port_init() 29 port->close_delay = (50 * HZ) / 100; in tty_port_init() 30 port->closing_wait = (3000 * HZ) / 100; in tty_port_init() [all …]
|
/drivers/mmc/card/ |
D | sdio_uart.c | 68 struct tty_port port; member 90 static int sdio_uart_add_port(struct sdio_uart_port *port) in sdio_uart_add_port() 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 …]
|
/drivers/tty/serial/ |
D | vr41xx_siu.c | 72 #define siu_read(port, offset) readb((port)->membase + (offset)) argument 73 #define siu_write(port, offset, value) writeb((value), (port)->membase + (offset)) argument 77 struct uart_port *port; in vr41xx_select_siu_interface() local 81 port = &siu_uart_ports[0]; in vr41xx_select_siu_interface() 83 spin_lock_irqsave(&port->lock, flags); in vr41xx_select_siu_interface() 85 irsel = siu_read(port, SIUIRSEL); in vr41xx_select_siu_interface() 90 siu_write(port, SIUIRSEL, irsel); in vr41xx_select_siu_interface() 92 spin_unlock_irqrestore(&port->lock, flags); in vr41xx_select_siu_interface() 98 struct uart_port *port; in vr41xx_use_irda() local 102 port = &siu_uart_ports[0]; in vr41xx_use_irda() [all …]
|
D | mpc52xx_uart.c | 80 #define PSC(port) ((struct mpc52xx_psc __iomem *)((port)->membase)) argument 85 static irqreturn_t mpc5xxx_uart_process_int(struct uart_port *port); 92 void (*fifo_init)(struct uart_port *port); 93 int (*raw_rx_rdy)(struct uart_port *port); 94 int (*raw_tx_rdy)(struct uart_port *port); 95 int (*rx_rdy)(struct uart_port *port); 96 int (*tx_rdy)(struct uart_port *port); 97 int (*tx_empty)(struct uart_port *port); 98 void (*stop_rx)(struct uart_port *port); 99 void (*start_tx)(struct uart_port *port); [all …]
|
D | atmel_serial.c | 76 static void atmel_start_rx(struct uart_port *port); 77 static void atmel_stop_rx(struct uart_port *port); 174 int (*prepare_rx)(struct uart_port *port); 175 int (*prepare_tx)(struct uart_port *port); 176 void (*schedule_rx)(struct uart_port *port); 177 void (*schedule_tx)(struct uart_port *port); 178 void (*release_rx)(struct uart_port *port); 179 void (*release_tx)(struct uart_port *port); 205 static inline u32 atmel_uart_readl(struct uart_port *port, u32 reg) in atmel_uart_readl() argument 207 return __raw_readl(port->membase + reg); in atmel_uart_readl() [all …]
|
D | bcm63xx_uart.c | 80 static inline unsigned int bcm_uart_readl(struct uart_port *port, in bcm_uart_readl() argument 83 return __raw_readl(port->membase + offset); in bcm_uart_readl() 86 static inline void bcm_uart_writel(struct uart_port *port, in bcm_uart_writel() argument 89 __raw_writel(value, port->membase + offset); in bcm_uart_writel() 95 static unsigned int bcm_uart_tx_empty(struct uart_port *port) in bcm_uart_tx_empty() argument 99 val = bcm_uart_readl(port, UART_IR_REG); in bcm_uart_tx_empty() 106 static void bcm_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in bcm_uart_set_mctrl() argument 110 val = bcm_uart_readl(port, UART_MCTL_REG); in bcm_uart_set_mctrl() 117 bcm_uart_writel(port, val, UART_MCTL_REG); in bcm_uart_set_mctrl() 119 val = bcm_uart_readl(port, UART_CTL_REG); in bcm_uart_set_mctrl() [all …]
|
D | altera_uart.c | 82 struct uart_port port; member 88 static u32 altera_uart_readl(struct uart_port *port, int reg) in altera_uart_readl() argument 90 return readl(port->membase + (reg << port->regshift)); in altera_uart_readl() 93 static void altera_uart_writel(struct uart_port *port, u32 dat, int reg) in altera_uart_writel() argument 95 writel(dat, port->membase + (reg << port->regshift)); in altera_uart_writel() 98 static unsigned int altera_uart_tx_empty(struct uart_port *port) in altera_uart_tx_empty() argument 100 return (altera_uart_readl(port, ALTERA_UART_STATUS_REG) & in altera_uart_tx_empty() 104 static unsigned int altera_uart_get_mctrl(struct uart_port *port) in altera_uart_get_mctrl() argument 106 struct altera_uart *pp = container_of(port, struct altera_uart, port); in altera_uart_get_mctrl() 109 sigs = (altera_uart_readl(port, ALTERA_UART_STATUS_REG) & in altera_uart_get_mctrl() [all …]
|
D | mcf.c | 57 struct uart_port port; member 64 static unsigned int mcf_tx_empty(struct uart_port *port) in mcf_tx_empty() argument 66 return (readb(port->membase + MCFUART_USR) & MCFUART_USR_TXEMPTY) ? in mcf_tx_empty() 72 static unsigned int mcf_get_mctrl(struct uart_port *port) in mcf_get_mctrl() argument 74 struct mcf_uart *pp = container_of(port, struct mcf_uart, port); in mcf_get_mctrl() 77 sigs = (readb(port->membase + MCFUART_UIPR) & MCFUART_UIPR_CTS) ? in mcf_get_mctrl() 80 sigs |= (mcf_getppdcd(port->line) ? TIOCM_CD : 0); in mcf_get_mctrl() 81 sigs |= (mcf_getppdtr(port->line) ? TIOCM_DTR : 0); in mcf_get_mctrl() 88 static void mcf_set_mctrl(struct uart_port *port, unsigned int sigs) in mcf_set_mctrl() argument 90 struct mcf_uart *pp = container_of(port, struct mcf_uart, port); in mcf_set_mctrl() [all …]
|
D | timbuart.c | 37 struct uart_port port; member 47 static void timbuart_mctrl_check(struct uart_port *port, u32 isr, u32 *ier); 51 static void timbuart_stop_rx(struct uart_port *port) in timbuart_stop_rx() argument 54 u32 ier = ioread32(port->membase + TIMBUART_IER) & ~RXFLAGS; in timbuart_stop_rx() 55 iowrite32(ier, port->membase + TIMBUART_IER); in timbuart_stop_rx() 58 static void timbuart_stop_tx(struct uart_port *port) in timbuart_stop_tx() argument 61 u32 ier = ioread32(port->membase + TIMBUART_IER) & ~TXBAE; in timbuart_stop_tx() 62 iowrite32(ier, port->membase + TIMBUART_IER); in timbuart_stop_tx() 65 static void timbuart_start_tx(struct uart_port *port) in timbuart_start_tx() argument 68 container_of(port, struct timbuart_port, port); in timbuart_start_tx() [all …]
|
D | apbuart.c | 42 static void apbuart_tx_chars(struct uart_port *port); 44 static void apbuart_stop_tx(struct uart_port *port) in apbuart_stop_tx() argument 48 cr = UART_GET_CTRL(port); in apbuart_stop_tx() 50 UART_PUT_CTRL(port, cr); in apbuart_stop_tx() 53 static void apbuart_start_tx(struct uart_port *port) in apbuart_start_tx() argument 57 cr = UART_GET_CTRL(port); in apbuart_start_tx() 59 UART_PUT_CTRL(port, cr); in apbuart_start_tx() 61 if (UART_GET_STATUS(port) & UART_STATUS_THE) in apbuart_start_tx() 62 apbuart_tx_chars(port); in apbuart_start_tx() 65 static void apbuart_stop_rx(struct uart_port *port) in apbuart_stop_rx() argument [all …]
|
D | st-asc.c | 40 struct uart_port port; member 147 static inline struct asc_port *to_asc_port(struct uart_port *port) in to_asc_port() argument 149 return container_of(port, struct asc_port, port); in to_asc_port() 152 static inline u32 asc_in(struct uart_port *port, u32 offset) in asc_in() argument 155 return readl_relaxed(port->membase + offset); in asc_in() 157 return readl(port->membase + offset); in asc_in() 161 static inline void asc_out(struct uart_port *port, u32 offset, u32 value) in asc_out() argument 164 writel_relaxed(value, port->membase + offset); in asc_out() 166 writel(value, port->membase + offset); in asc_out() 174 static inline void asc_disable_tx_interrupts(struct uart_port *port) in asc_disable_tx_interrupts() argument [all …]
|
D | altera_jtaguart.c | 61 struct uart_port port; member 66 static unsigned int altera_jtaguart_tx_empty(struct uart_port *port) in altera_jtaguart_tx_empty() argument 68 return (readl(port->membase + ALTERA_JTAGUART_CONTROL_REG) & in altera_jtaguart_tx_empty() 72 static unsigned int altera_jtaguart_get_mctrl(struct uart_port *port) in altera_jtaguart_get_mctrl() argument 77 static void altera_jtaguart_set_mctrl(struct uart_port *port, unsigned int sigs) in altera_jtaguart_set_mctrl() argument 81 static void altera_jtaguart_start_tx(struct uart_port *port) in altera_jtaguart_start_tx() argument 84 container_of(port, struct altera_jtaguart, port); in altera_jtaguart_start_tx() 87 writel(pp->imr, port->membase + ALTERA_JTAGUART_CONTROL_REG); in altera_jtaguart_start_tx() 90 static void altera_jtaguart_stop_tx(struct uart_port *port) in altera_jtaguart_stop_tx() argument 93 container_of(port, struct altera_jtaguart, port); in altera_jtaguart_stop_tx() [all …]
|
D | sh-sci.c | 72 #define SCIx_IRQ_IS_MUXED(port) \ argument 73 ((port)->irqs[SCIx_ERI_IRQ] == \ 74 (port)->irqs[SCIx_RXI_IRQ]) || \ 75 ((port)->irqs[SCIx_ERI_IRQ] && \ 76 ((port)->irqs[SCIx_RXI_IRQ] < 0)) 79 struct uart_port port; member 128 return container_of(uart, struct sci_port, port); in to_sci_port() 451 if (!sci_port->port.dev) in sci_port_enable() 454 pm_runtime_get_sync(sci_port->port.dev); in sci_port_enable() 457 sci_port->port.uartclk = clk_get_rate(sci_port->iclk); in sci_port_enable() [all …]
|
D | serial_ks8695.c | 65 static inline int tx_enabled(struct uart_port *port) in tx_enabled() argument 67 return port->unused[0] & 1; in tx_enabled() 70 static inline int rx_enabled(struct uart_port *port) in rx_enabled() argument 72 return port->unused[0] & 2; in rx_enabled() 75 static inline int ms_enabled(struct uart_port *port) in ms_enabled() argument 77 return port->unused[0] & 4; in ms_enabled() 80 static inline void ms_enable(struct uart_port *port, int enabled) in ms_enable() argument 83 port->unused[0] |= 4; in ms_enable() 85 port->unused[0] &= ~4; in ms_enable() 88 static inline void rx_enable(struct uart_port *port, int enabled) in rx_enable() argument [all …]
|
D | xilinx_uartps.c | 166 struct uart_port *port; member 184 struct uart_port *port = (struct uart_port *)dev_id; in cdns_uart_isr() local 190 spin_lock_irqsave(&port->lock, flags); in cdns_uart_isr() 195 isrstatus = readl(port->membase + CDNS_UART_ISR_OFFSET); in cdns_uart_isr() 203 while (!(readl(port->membase + CDNS_UART_SR_OFFSET) & in cdns_uart_isr() 205 if (!readl(port->membase + CDNS_UART_FIFO_OFFSET)) { in cdns_uart_isr() 206 port->read_status_mask |= CDNS_UART_IXR_BRK; in cdns_uart_isr() 211 port->membase + CDNS_UART_ISR_OFFSET); in cdns_uart_isr() 215 if (isrstatus & port->ignore_status_mask & CDNS_UART_IXR_PARITY) in cdns_uart_isr() 218 isrstatus &= port->read_status_mask; in cdns_uart_isr() [all …]
|
D | uartlite.c | 95 static inline u32 uart_in32(u32 offset, struct uart_port *port) in uart_in32() argument 97 struct uartlite_reg_ops *reg_ops = port->private_data; in uart_in32() 99 return reg_ops->in(port->membase + offset); in uart_in32() 102 static inline void uart_out32(u32 val, u32 offset, struct uart_port *port) in uart_out32() argument 104 struct uartlite_reg_ops *reg_ops = port->private_data; in uart_out32() 106 reg_ops->out(val, port->membase + offset); in uart_out32() 115 static int ulite_receive(struct uart_port *port, int stat) in ulite_receive() argument 117 struct tty_port *tport = &port->state->port; in ulite_receive() 127 port->icount.rx++; in ulite_receive() 128 ch = uart_in32(ULITE_RX, port); in ulite_receive() [all …]
|
/drivers/parport/ |
D | ieee1284.c | 42 static void parport_ieee1284_wakeup (struct parport *port) in parport_ieee1284_wakeup() argument 44 up (&port->physport->ieee1284.irq); in parport_ieee1284_wakeup() 69 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() 82 port_from_cookie[port->number % PARPORT_MAX] = port; in parport_wait_event() 83 timer.data = port->number; in parport_wait_event() 86 ret = down_interruptible (&port->physport->ieee1284.irq); in parport_wait_event() 120 int parport_poll_peripheral(struct parport *port, in parport_poll_peripheral() argument 130 status = parport_read_status (port); in parport_poll_peripheral() 169 int parport_wait_peripheral(struct parport *port, in parport_wait_peripheral() argument [all …]
|
D | ieee1284_ops.c | 40 size_t parport_ieee1284_write_compat (struct parport *port, in parport_ieee1284_write_compat() argument 48 struct pardevice *dev = port->physport->cad; in parport_ieee1284_write_compat() 52 if (port->irq != PARPORT_IRQ_NONE) { in parport_ieee1284_write_compat() 53 parport_enable_irq (port); in parport_ieee1284_write_compat() 57 port->physport->ieee1284.phase = IEEE1284_PH_FWD_DATA; in parport_ieee1284_write_compat() 58 parport_write_control (port, ctl); in parport_ieee1284_write_compat() 59 parport_data_forward (port); in parport_ieee1284_write_compat() 71 if (!parport_wait_peripheral (port, mask, val)) in parport_ieee1284_write_compat() 76 if ((parport_read_status (port) & in parport_ieee1284_write_compat() 104 parport_wait_event (port, wait); in parport_ieee1284_write_compat() [all …]
|
/drivers/usb/gadget/function/ |
D | u_serial.c | 96 struct tty_port port; member 125 struct gs_port *port; member 334 gs_send_packet(struct gs_port *port, char *packet, unsigned size) in gs_send_packet() argument 338 len = gs_buf_data_avail(&port->port_write_buf); in gs_send_packet() 342 size = gs_buf_get(&port->port_write_buf, packet, size); in gs_send_packet() 357 static int gs_start_tx(struct gs_port *port) in gs_start_tx() argument 363 struct list_head *pool = &port->write_pool; in gs_start_tx() 368 if (!port->port_usb) in gs_start_tx() 371 in = port->port_usb->in; in gs_start_tx() 373 while (!port->write_busy && !list_empty(pool)) { in gs_start_tx() [all …]
|
/drivers/usb/serial/ |
D | generic.c | 80 int usb_serial_generic_open(struct tty_struct *tty, struct usb_serial_port *port) in usb_serial_generic_open() argument 85 spin_lock_irqsave(&port->lock, flags); in usb_serial_generic_open() 86 port->throttled = 0; in usb_serial_generic_open() 87 port->throttle_req = 0; in usb_serial_generic_open() 88 spin_unlock_irqrestore(&port->lock, flags); in usb_serial_generic_open() 90 if (port->bulk_in_size) in usb_serial_generic_open() 91 result = usb_serial_generic_submit_read_urbs(port, GFP_KERNEL); in usb_serial_generic_open() 97 void usb_serial_generic_close(struct usb_serial_port *port) in usb_serial_generic_close() argument 102 if (port->bulk_out_size) { in usb_serial_generic_close() 103 for (i = 0; i < ARRAY_SIZE(port->write_urbs); ++i) in usb_serial_generic_close() [all …]
|
/drivers/scsi/libsas/ |
D | sas_port.c | 31 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_safe(dev, n, &port->dev_list, dev_list_node) { in sas_resume_port() 68 sas_unregister_dev(port, dev); in sas_resume_port() 82 sas_discover_event(port, DISCE_RESUME); in sas_resume_port() 96 struct asd_sas_port *port = phy->port; in sas_form_port() local [all …]
|
/drivers/tty/serial/8250/ |
D | 8250_core.c | 124 struct uart_port *port; in serial8250_interrupt() local 127 port = &up->port; in serial8250_interrupt() 129 if (port->handle_irq(port)) { in serial8250_interrupt() 184 int ret, irq_flags = up->port.flags & UPF_SHARE_IRQ ? IRQF_SHARED : 0; in serial_link_irq_chain() 188 h = &irq_lists[up->port.irq % NR_IRQ_HASH]; in serial_link_irq_chain() 192 if (i->irq == up->port.irq) in serial_link_irq_chain() 203 i->irq = up->port.irq; in serial_link_irq_chain() 219 irq_flags |= up->port.irqflags; in serial_link_irq_chain() 220 ret = request_irq(up->port.irq, serial8250_interrupt, in serial_link_irq_chain() 241 h = &irq_lists[up->port.irq % NR_IRQ_HASH]; in serial_unlink_irq_chain() [all …]
|
/drivers/net/wan/ |
D | hd64572.c | 47 #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 …]
|
/drivers/char/ |
D | virtio_console.c | 180 struct port { struct 250 static struct port *find_port_by_vtermno(u32 vtermno) in find_port_by_vtermno() argument 252 struct port *port; in find_port_by_vtermno() local 259 port = container_of(cons, struct port, cons); in find_port_by_vtermno() 263 port = NULL; in find_port_by_vtermno() 266 return port; in find_port_by_vtermno() 269 static struct port *find_port_by_devt_in_portdev(struct ports_device *portdev, in find_port_by_devt_in_portdev() 272 struct port *port; in find_port_by_devt_in_portdev() local 276 list_for_each_entry(port, &portdev->ports, list) { in find_port_by_devt_in_portdev() 277 if (port->cdev->dev == dev) { in find_port_by_devt_in_portdev() [all …]
|