/linux-3.3/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 | atmel_serial.c | 55 /* Revisit: We should calculate this based on the actual port settings */ 64 static void atmel_start_rx(struct uart_port *port); 65 static void atmel_stop_rx(struct uart_port *port); 78 /* Use device name ttyS, major 4, minor 64-68. This is the usual serial port 89 #define UART_PUT_CR(port,v) __raw_writel(v, (port)->membase + ATMEL_US_CR) argument 90 #define UART_GET_MR(port) __raw_readl((port)->membase + ATMEL_US_MR) argument 91 #define UART_PUT_MR(port,v) __raw_writel(v, (port)->membase + ATMEL_US_MR) argument 92 #define UART_PUT_IER(port,v) __raw_writel(v, (port)->membase + ATMEL_US_IER) argument 93 #define UART_PUT_IDR(port,v) __raw_writel(v, (port)->membase + ATMEL_US_IDR) argument 94 #define UART_GET_IMR(port) __raw_readl((port)->membase + ATMEL_US_IMR) argument [all …]
|
D | sirfsoc_uart.c | 32 sirfsoc_uart_pio_rx_chars(struct uart_port *port, unsigned int max_rx_count); 58 .port = { 65 .port = { 72 .port = { 80 static inline struct sirfsoc_uart_port *to_sirfport(struct uart_port *port) in to_sirfport() argument 82 return container_of(port, struct sirfsoc_uart_port, port); in to_sirfport() 85 static inline unsigned int sirfsoc_uart_tx_empty(struct uart_port *port) in sirfsoc_uart_tx_empty() argument 88 reg = rd_regl(port, SIRFUART_TX_FIFO_STATUS); in sirfsoc_uart_tx_empty() 89 if (reg & SIRFUART_FIFOEMPTY_MASK(port)) in sirfsoc_uart_tx_empty() 95 static unsigned int sirfsoc_uart_get_mctrl(struct uart_port *port) in sirfsoc_uart_get_mctrl() argument [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 | bcm63xx_uart.c | 82 static inline unsigned int bcm_uart_readl(struct uart_port *port, in bcm_uart_readl() argument 85 return bcm_readl(port->membase + offset); in bcm_uart_readl() 88 static inline void bcm_uart_writel(struct uart_port *port, in bcm_uart_writel() argument 91 bcm_writel(value, port->membase + offset); in bcm_uart_writel() 97 static unsigned int bcm_uart_tx_empty(struct uart_port *port) in bcm_uart_tx_empty() argument 101 val = bcm_uart_readl(port, UART_IR_REG); in bcm_uart_tx_empty() 108 static void bcm_uart_set_mctrl(struct uart_port *port, unsigned int mctrl) in bcm_uart_set_mctrl() argument 112 val = bcm_uart_readl(port, UART_MCTL_REG); in bcm_uart_set_mctrl() 119 bcm_uart_writel(port, val, UART_MCTL_REG); in bcm_uart_set_mctrl() 121 val = bcm_uart_readl(port, UART_CTL_REG); in bcm_uart_set_mctrl() [all …]
|
D | msm_serial.c | 53 static inline void wait_for_xmitr(struct uart_port *port, int bits) in wait_for_xmitr() argument 55 if (!(msm_read(port, UART_SR) & UART_SR_TX_EMPTY)) in wait_for_xmitr() 56 while ((msm_read(port, UART_ISR) & bits) != bits) in wait_for_xmitr() 60 static void msm_stop_tx(struct uart_port *port) in msm_stop_tx() argument 62 struct msm_port *msm_port = UART_TO_MSM(port); in msm_stop_tx() 65 msm_write(port, msm_port->imr, UART_IMR); in msm_stop_tx() 68 static void msm_start_tx(struct uart_port *port) in msm_start_tx() argument 70 struct msm_port *msm_port = UART_TO_MSM(port); in msm_start_tx() 73 msm_write(port, msm_port->imr, UART_IMR); in msm_start_tx() 76 static void msm_stop_rx(struct uart_port *port) in msm_stop_rx() argument [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 | 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); 88 /* Simple macro to test if a port is console or not. This one is taken 91 #define uart_console(port) \ argument 92 ((port)->cons && (port)->cons->index == (port)->line) 94 #define uart_console(port) (0) argument 102 void (*fifo_init)(struct uart_port *port); 103 int (*raw_rx_rdy)(struct uart_port *port); 104 int (*raw_tx_rdy)(struct uart_port *port); 105 int (*rx_rdy)(struct uart_port *port); [all …]
|
D | clps711x.c | 54 #define UBRLCR(port) ((port)->iobase + UBRLCR1 - SYSCON1) argument 55 #define UARTDR(port) ((port)->iobase + UARTDR1 - SYSCON1) argument 56 #define SYSFLG(port) ((port)->iobase + SYSFLG1 - SYSCON1) argument 57 #define SYSCON(port) ((port)->iobase + SYSCON1 - SYSCON1) argument 59 #define TX_IRQ(port) ((port)->irq) argument 60 #define RX_IRQ(port) ((port)->irq + 1) argument 64 #define tx_enabled(port) ((port)->unused[0]) argument 66 static void clps711xuart_stop_tx(struct uart_port *port) in clps711xuart_stop_tx() argument 68 if (tx_enabled(port)) { in clps711xuart_stop_tx() 69 disable_irq(TX_IRQ(port)); in clps711xuart_stop_tx() [all …]
|
/linux-3.3/drivers/tty/ |
D | tty_port.c | 2 * Tty port functions 21 void tty_port_init(struct tty_port *port) in tty_port_init() argument 23 memset(port, 0, sizeof(*port)); in tty_port_init() 24 init_waitqueue_head(&port->open_wait); in tty_port_init() 25 init_waitqueue_head(&port->close_wait); in tty_port_init() 26 init_waitqueue_head(&port->delta_msr_wait); in tty_port_init() 27 mutex_init(&port->mutex); in tty_port_init() 28 mutex_init(&port->buf_mutex); in tty_port_init() 29 spin_lock_init(&port->lock); in tty_port_init() 30 port->close_delay = (50 * HZ) / 100; in tty_port_init() [all …]
|
/linux-3.3/drivers/net/bonding/ |
D | bond_3ad.c | 52 // Port state definitions(43.4.2.2 in the 802.3ad standard) 62 // Port Variables definitions used by the State Machines(43.4.7 in the 802.3ad standard) 74 // Port Key definitions 78 // Port key : | User key | Speed |Duplex| 103 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); 108 static void ad_periodic_machine(struct port *port); [all …]
|
/linux-3.3/drivers/mmc/card/ |
D | sdio_uart.c | 26 * concurrent access to the same port. 68 struct tty_port port; member 92 static int sdio_uart_add_port(struct sdio_uart_port *port) in sdio_uart_add_port() argument 96 kref_init(&port->kref); in sdio_uart_add_port() 97 mutex_init(&port->func_lock); in sdio_uart_add_port() 98 spin_lock_init(&port->write_lock); in sdio_uart_add_port() 99 if (kfifo_alloc(&port->xmit_fifo, FIFO_SIZE, GFP_KERNEL)) in sdio_uart_add_port() 105 port->index = index; in sdio_uart_add_port() 106 sdio_uart_table[index] = port; in sdio_uart_add_port() 118 struct sdio_uart_port *port; in sdio_uart_port_get() local [all …]
|
/linux-3.3/arch/m32r/platforms/mappi3/ |
D | io.c | 29 #define PORT2ADDR(port) _port2addr(port) argument 30 #define PORT2ADDR_NE(port) _port2addr_ne(port) argument 31 #define PORT2ADDR_USB(port) _port2addr_usb(port) argument 33 static inline void *_port2addr(unsigned long port) in _port2addr() argument 35 return (void *)(port | NONCACHE_OFFSET); in _port2addr() 39 static inline void *__port2addr_ata(unsigned long port) in __port2addr_ata() argument 43 switch (port) { in __port2addr_ata() 81 static inline void *_port2addr_ne(unsigned long port) in _port2addr_ne() argument 83 return (void *)(port + 0x10000000); in _port2addr_ne() 86 static inline void *_port2addr_usb(unsigned long port) in _port2addr_usb() argument [all …]
|
/linux-3.3/arch/m32r/platforms/mappi/ |
D | io.c | 29 #define PORT2ADDR(port) _port2addr(port) argument 31 static inline void *_port2addr(unsigned long port) in _port2addr() argument 33 return (void *)(port | NONCACHE_OFFSET); in _port2addr() 36 static inline void *_port2addr_ne(unsigned long port) in _port2addr_ne() argument 38 return (void *)((port<<1) + NONCACHE_OFFSET + 0x0C000000); in _port2addr_ne() 50 #define PORT2ADDR_NE(port) _port2addr_ne(port) argument 75 unsigned char _inb(unsigned long port) in _inb() argument 77 if (port >= 0x300 && port < 0x320) in _inb() 78 return _ne_inb(PORT2ADDR_NE(port)); in _inb() 81 if (port >= M32R_PCC_IOSTART0 && port <= M32R_PCC_IOEND0) { in _inb() [all …]
|
/linux-3.3/arch/cris/arch-v10/drivers/ |
D | sync_serial.c | 2 * Simple synchronous serial port driver for ETRAX 100LX. 37 /* responsible for port->bufchunk of a common buffer. */ 114 char started; /* 1 if port has been started */ 115 char port_nbr; /* Port 0 or 1 */ 116 char busy; /* 1 if port is busy */ 118 char enabled; /* 1 if port is enabled */ 119 char use_dma; /* 1 if port uses dma */ 155 static inline int sync_data_avail(struct sync_port *port); 175 static void send_word(struct sync_port *port); 176 static void start_dma(struct sync_port *port, const char *data, int count); [all …]
|
/linux-3.3/arch/cris/arch-v32/drivers/ |
D | sync_serial.c | 2 * Simple synchronous serial port driver for ETRAX FS and Artpec-3. 39 /* responsible for port->bufchunk of a common buffer. */ 93 char started; /* 1 if port has been started */ 94 char port_nbr; /* Port 0 or 1 */ 95 char busy; /* 1 if port is busy */ 97 char enabled; /* 1 if port is enabled */ 98 char use_dma; /* 1 if port uses dma */ 151 static inline int sync_data_avail(struct sync_port *port); 171 static void send_word(sync_port* port); 172 static void start_dma_out(struct sync_port *port, const char *data, int count); [all …]
|
/linux-3.3/arch/m32r/platforms/mappi2/ |
D | io.c | 29 #define PORT2ADDR(port) _port2addr(port) argument 30 #define PORT2ADDR_NE(port) _port2addr_ne(port) argument 31 #define PORT2ADDR_USB(port) _port2addr_usb(port) argument 33 static inline void *_port2addr(unsigned long port) in _port2addr() argument 35 return (void *)(port | NONCACHE_OFFSET); in _port2addr() 39 static inline void *__port2addr_ata(unsigned long port) in __port2addr_ata() argument 43 switch (port) { in __port2addr_ata() 61 static inline void *_port2addr_ne(unsigned long port) in _port2addr_ne() argument 63 return (void *)(port + 0x10000000); in _port2addr_ne() 66 static inline void *_port2addr_ne(unsigned long port) in _port2addr_ne() argument [all …]
|
/linux-3.3/drivers/usb/serial/ |
D | generic.c | 120 int usb_serial_generic_open(struct tty_struct *tty, struct usb_serial_port *port) in usb_serial_generic_open() argument 125 dbg("%s - port %d", __func__, port->number); in usb_serial_generic_open() 128 spin_lock_irqsave(&port->lock, flags); in usb_serial_generic_open() 129 port->throttled = 0; in usb_serial_generic_open() 130 port->throttle_req = 0; in usb_serial_generic_open() 131 spin_unlock_irqrestore(&port->lock, flags); in usb_serial_generic_open() 134 if (port->bulk_in_size) in usb_serial_generic_open() 135 result = usb_serial_generic_submit_read_urbs(port, GFP_KERNEL); in usb_serial_generic_open() 141 static void generic_cleanup(struct usb_serial_port *port) in generic_cleanup() argument 143 struct usb_serial *serial = port->serial; in generic_cleanup() [all …]
|
/linux-3.3/drivers/gpu/drm/nouveau/ |
D | nouveau_i2c.c | 39 struct nouveau_i2c_chan *port = data; in i2c_drive_scl() local 40 if (port->type == 0) { in i2c_drive_scl() 41 u8 val = NVReadVgaCrtc(port->dev, 0, port->drive); in i2c_drive_scl() 44 NVWriteVgaCrtc(port->dev, 0, port->drive, val | 0x01); in i2c_drive_scl() 46 if (port->type == 4) { in i2c_drive_scl() 47 nv_mask(port->dev, port->drive, 0x2f, state ? 0x21 : 0x01); in i2c_drive_scl() 49 if (port->type == 5) { in i2c_drive_scl() 50 if (state) port->state |= 0x01; in i2c_drive_scl() 51 else port->state &= 0xfe; in i2c_drive_scl() 52 nv_wr32(port->dev, port->drive, 4 | port->state); in i2c_drive_scl() [all …]
|
/linux-3.3/drivers/scsi/libsas/ |
D | sas_port.c | 2 * Serial Attached SCSI (SAS) Port class 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() 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; in sas_form_port() local 58 if (port) { in sas_form_port() 59 if (!phy_is_wideport_member(port, phy)) in sas_form_port() [all …]
|
/linux-3.3/arch/m32r/platforms/m32700ut/ |
D | io.c | 33 #define PORT2ADDR(port) _port2addr(port) argument 34 #define PORT2ADDR_USB(port) _port2addr_usb(port) argument 36 static inline void *_port2addr(unsigned long port) in _port2addr() argument 38 return (void *)(port | NONCACHE_OFFSET); in _port2addr() 42 static inline void *__port2addr_ata(unsigned long port) in __port2addr_ata() argument 46 switch (port) { in __port2addr_ata() 68 static inline void *_port2addr_ne(unsigned long port) in _port2addr_ne() argument 70 return (void *)(port + 0x10000000); in _port2addr_ne() 72 static inline void *_port2addr_usb(unsigned long port) in _port2addr_usb() argument 74 return (void *)((port & 0x0f) + NONCACHE_OFFSET + 0x10303000); in _port2addr_usb() [all …]
|
/linux-3.3/arch/m32r/platforms/opsput/ |
D | io.c | 33 #define PORT2ADDR(port) _port2addr(port) argument 34 #define PORT2ADDR_USB(port) _port2addr_usb(port) argument 36 static inline void *_port2addr(unsigned long port) in _port2addr() argument 38 return (void *)(port | NONCACHE_OFFSET); in _port2addr() 42 static inline void *__port2addr_ata(unsigned long port) in __port2addr_ata() argument 46 switch (port) { in __port2addr_ata() 68 static inline void *_port2addr_ne(unsigned long port) in _port2addr_ne() argument 70 return (void *)(port + 0x10000000); in _port2addr_ne() 72 static inline void *_port2addr_usb(unsigned long port) in _port2addr_usb() argument 74 return (void *)((port & 0x0f) + NONCACHE_OFFSET + 0x10303000); in _port2addr_usb() [all …]
|
/linux-3.3/drivers/char/ |
D | virtio_console.c | 52 /* 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 argument 183 /* The IO vqs for this port */ argument 186 /* File in the debugfs directory that exposes this port's information */ argument 191 * this port for accounting and debugging purposes. These argument [all …]
|
/linux-3.3/drivers/net/wan/ |
D | hd64572.c | 49 #define get_msci(port) (port->chan ? MSCI1_OFFSET : MSCI0_OFFSET) argument 50 #define get_dmac_rx(port) (port->chan ? DMAC1RX_OFFSET : DMAC0RX_OFFSET) argument 51 #define get_dmac_tx(port) (port->chan ? DMAC1TX_OFFSET : DMAC0TX_OFFSET) argument 67 static inline void enable_intr(port_t *port) in enable_intr() argument 70 sca_outl(sca_inl(IER0, port->card) | in enable_intr() 71 (port->chan ? 0x08002200 : 0x00080022), IER0, port->card); in enable_intr() 74 static inline void disable_intr(port_t *port) in disable_intr() argument 76 sca_outl(sca_inl(IER0, port->card) & in disable_intr() 77 (port->chan ? 0x00FF00FF : 0xFF00FF00), IER0, port->card); in disable_intr() 80 static inline u16 desc_abs_number(port_t *port, u16 desc, int transmit) in desc_abs_number() argument [all …]
|
/linux-3.3/arch/mn10300/kernel/ |
D | mn10300-serial.c | 1 /* MN10300 On-chip serial port UART driver 154 * the first on-chip serial port: ttySM0 (aka SIF0) 216 * the second on-chip serial port: ttySM1 (aka SIF1) 278 * the third on-chip serial port: ttySM2 (aka SIF2) 418 static void mn10300_serial_dis_tx_intr(struct mn10300_serial_port *port) in mn10300_serial_dis_tx_intr() argument 424 *port->tx_icr = NUM2GxICR_LEVEL(CONFIG_MN10300_SERIAL_IRQ_LEVEL); in mn10300_serial_dis_tx_intr() 425 x = *port->tx_icr; in mn10300_serial_dis_tx_intr() 429 static void mn10300_serial_en_tx_intr(struct mn10300_serial_port *port) in mn10300_serial_en_tx_intr() argument 435 *port->tx_icr = in mn10300_serial_en_tx_intr() 437 x = *port->tx_icr; in mn10300_serial_en_tx_intr() [all …]
|