Home
last modified time | relevance | path

Searched refs:ier (Results 1 – 25 of 70) sorted by relevance

123

/drivers/tty/serial/jsm/
Djsm_cls.c64 u8 ier = readb(&ch->ch_cls_uart->ier); in cls_set_cts_flow_control() local
88 ier |= (UART_EXAR654_IER_CTSDSR); in cls_set_cts_flow_control()
89 ier &= ~(UART_EXAR654_IER_XOFF); in cls_set_cts_flow_control()
90 writeb(ier, &ch->ch_cls_uart->ier); in cls_set_cts_flow_control()
105 u8 ier = readb(&ch->ch_cls_uart->ier); in cls_set_ixon_flow_control() local
135 ier &= ~(UART_EXAR654_IER_CTSDSR); in cls_set_ixon_flow_control()
136 ier |= (UART_EXAR654_IER_XOFF); in cls_set_ixon_flow_control()
137 writeb(ier, &ch->ch_cls_uart->ier); in cls_set_ixon_flow_control()
150 u8 ier = readb(&ch->ch_cls_uart->ier); in cls_set_no_output_flow_control() local
174 ier &= ~(UART_EXAR654_IER_CTSDSR); in cls_set_no_output_flow_control()
[all …]
Djsm_neo.c46 u8 ier, efr; in neo_set_cts_flow_control() local
47 ier = readb(&ch->ch_neo_uart->ier); in neo_set_cts_flow_control()
53 ier |= (UART_17158_IER_CTSDSR); in neo_set_cts_flow_control()
72 writeb(ier, &ch->ch_neo_uart->ier); in neo_set_cts_flow_control()
77 u8 ier, efr; in neo_set_rts_flow_control() local
78 ier = readb(&ch->ch_neo_uart->ier); in neo_set_rts_flow_control()
84 ier |= (UART_17158_IER_RTSDTR); in neo_set_rts_flow_control()
88 ier &= ~(UART_17158_IER_XOFF); in neo_set_rts_flow_control()
103 writeb(ier, &ch->ch_neo_uart->ier); in neo_set_rts_flow_control()
117 u8 ier, efr; in neo_set_ixon_flow_control() local
[all …]
/drivers/staging/dgnc/
Ddgnc_cls.c32 unsigned char ier = readb(&ch->ch_cls_uart->ier); in cls_set_cts_flow_control() local
56 ier |= (UART_EXAR654_IER_CTSDSR); in cls_set_cts_flow_control()
57 ier &= ~(UART_EXAR654_IER_XOFF); in cls_set_cts_flow_control()
58 writeb(ier, &ch->ch_cls_uart->ier); in cls_set_cts_flow_control()
73 unsigned char ier = readb(&ch->ch_cls_uart->ier); in cls_set_ixon_flow_control() local
103 ier &= ~(UART_EXAR654_IER_CTSDSR); in cls_set_ixon_flow_control()
104 ier |= (UART_EXAR654_IER_XOFF); in cls_set_ixon_flow_control()
105 writeb(ier, &ch->ch_cls_uart->ier); in cls_set_ixon_flow_control()
118 unsigned char ier = readb(&ch->ch_cls_uart->ier); in cls_set_no_output_flow_control() local
142 ier &= ~(UART_EXAR654_IER_CTSDSR); in cls_set_no_output_flow_control()
[all …]
Ddgnc_neo.c95 unsigned char ier = readb(&ch->ch_neo_uart->ier); in neo_set_cts_flow_control() local
100 ier |= UART_17158_IER_CTSDSR; in neo_set_cts_flow_control()
102 ier &= ~(UART_17158_IER_CTSDSR); in neo_set_cts_flow_control()
126 writeb(ier, &ch->ch_neo_uart->ier); in neo_set_cts_flow_control()
133 unsigned char ier = readb(&ch->ch_neo_uart->ier); in neo_set_rts_flow_control() local
138 ier |= UART_17158_IER_RTSDTR; in neo_set_rts_flow_control()
140 ier &= ~(UART_17158_IER_RTSDTR); in neo_set_rts_flow_control()
145 ier &= ~UART_17158_IER_XOFF; in neo_set_rts_flow_control()
163 writeb(ier, &ch->ch_neo_uart->ier); in neo_set_rts_flow_control()
178 unsigned char ier = readb(&ch->ch_neo_uart->ier); in neo_set_ixon_flow_control() local
[all …]
/drivers/tty/serial/
Dpxa.c51 unsigned char ier; member
75 up->ier |= UART_IER_MSI; in serial_pxa_enable_ms()
76 serial_out(up, UART_IER, up->ier); in serial_pxa_enable_ms()
83 if (up->ier & UART_IER_THRI) { in serial_pxa_stop_tx()
84 up->ier &= ~UART_IER_THRI; in serial_pxa_stop_tx()
85 serial_out(up, UART_IER, up->ier); in serial_pxa_stop_tx()
93 up->ier &= ~UART_IER_RLSI; in serial_pxa_stop_rx()
95 serial_out(up, UART_IER, up->ier); in serial_pxa_stop_rx()
111 up->ier &= ~UART_IER_RTOIE; in receive_chars()
112 serial_out(up, UART_IER, up->ier); in receive_chars()
[all …]
Dtimbuart.c47 static void timbuart_mctrl_check(struct uart_port *port, u32 isr, u32 *ier);
54 u32 ier = ioread32(port->membase + TIMBUART_IER) & ~RXFLAGS; in timbuart_stop_rx() local
55 iowrite32(ier, port->membase + TIMBUART_IER); in timbuart_stop_rx()
61 u32 ier = ioread32(port->membase + TIMBUART_IER) & ~TXBAE; in timbuart_stop_tx() local
62 iowrite32(ier, port->membase + TIMBUART_IER); in timbuart_stop_tx()
131 static void timbuart_handle_tx_port(struct uart_port *port, u32 isr, u32 *ier) in timbuart_handle_tx_port() argument
152 *ier |= uart->last_ier & TXFLAGS; in timbuart_handle_tx_port()
160 *ier |= TXBAE; in timbuart_handle_tx_port()
165 static void timbuart_handle_rx_port(struct uart_port *port, u32 isr, u32 *ier) in timbuart_handle_rx_port() argument
182 *ier |= RXBAF | RXBF | RXTT; in timbuart_handle_rx_port()
[all …]
Dvr41xx_siu.c242 uint8_t ier; in siu_stop_tx() local
246 ier = siu_read(port, UART_IER); in siu_stop_tx()
247 ier &= ~UART_IER_THRI; in siu_stop_tx()
248 siu_write(port, UART_IER, ier); in siu_stop_tx()
256 uint8_t ier; in siu_start_tx() local
260 ier = siu_read(port, UART_IER); in siu_start_tx()
261 ier |= UART_IER_THRI; in siu_start_tx()
262 siu_write(port, UART_IER, ier); in siu_start_tx()
270 uint8_t ier; in siu_stop_rx() local
274 ier = siu_read(port, UART_IER); in siu_stop_rx()
[all …]
Dvt8500_serial.c112 unsigned int ier; member
140 vt8500_port->ier &= ~TX_FIFO_INTS; in vt8500_stop_tx()
141 vt8500_write(port, vt8500_port->ier, VT8500_URIER); in vt8500_stop_tx()
150 vt8500_port->ier &= ~RX_FIFO_INTS; in vt8500_stop_rx()
151 vt8500_write(port, vt8500_port->ier, VT8500_URIER); in vt8500_stop_rx()
160 vt8500_port->ier |= TCTS; in vt8500_enable_ms()
161 vt8500_write(port, vt8500_port->ier, VT8500_URIER); in vt8500_enable_ms()
241 vt8500_port->ier &= ~TX_FIFO_INTS; in vt8500_start_tx()
242 vt8500_write(port, vt8500_port->ier, VT8500_URIER); in vt8500_start_tx()
244 vt8500_port->ier |= TX_FIFO_INTS; in vt8500_start_tx()
[all …]
Dm32r_sio.c74 unsigned char ier; member
206 if (up->ier & UART_IER_THRI) { in m32r_sio_stop_tx()
207 up->ier &= ~UART_IER_THRI; in m32r_sio_stop_tx()
208 serial_out(up, UART_IER, up->ier); in m32r_sio_stop_tx()
219 if (!(up->ier & UART_IER_THRI)) { in m32r_sio_start_tx()
220 up->ier |= UART_IER_THRI; in m32r_sio_start_tx()
221 serial_out(up, UART_IER, up->ier); in m32r_sio_start_tx()
233 if (!(up->ier & UART_IER_THRI)) { in m32r_sio_start_tx()
234 up->ier |= UART_IER_THRI; in m32r_sio_start_tx()
235 serial_out(up, UART_IER, up->ier); in m32r_sio_start_tx()
[all …]
Domap-serial.c141 unsigned char ier; member
289 up->ier |= UART_IER_MSI; in serial_omap_enable_ms()
290 serial_out(up, UART_IER, up->ier); in serial_omap_enable_ms()
337 if (up->ier & UART_IER_THRI) { in serial_omap_stop_tx()
338 up->ier &= ~UART_IER_THRI; in serial_omap_stop_tx()
339 serial_out(up, UART_IER, up->ier); in serial_omap_stop_tx()
350 up->ier |= UART_IER_RLSI | UART_IER_RDI; in serial_omap_stop_tx()
352 serial_out(up, UART_IER, up->ier); in serial_omap_stop_tx()
364 up->ier &= ~(UART_IER_RLSI | UART_IER_RDI); in serial_omap_stop_rx()
366 serial_out(up, UART_IER, up->ier); in serial_omap_stop_rx()
[all …]
Dar933x_uart.c49 unsigned int ier; /* shadow Interrupt Enable Register */ member
101 up->ier |= AR933X_UART_INT_TX_EMPTY; in ar933x_uart_start_tx_interrupt()
102 ar933x_uart_write(up, AR933X_UART_INT_EN_REG, up->ier); in ar933x_uart_start_tx_interrupt()
107 up->ier &= ~AR933X_UART_INT_TX_EMPTY; in ar933x_uart_stop_tx_interrupt()
108 ar933x_uart_write(up, AR933X_UART_INT_EN_REG, up->ier); in ar933x_uart_stop_tx_interrupt()
164 up->ier &= ~AR933X_UART_INT_RX_VALID; in ar933x_uart_stop_rx()
165 ar933x_uart_write(up, AR933X_UART_INT_EN_REG, up->ier); in ar933x_uart_stop_rx()
430 up->ier = AR933X_UART_INT_RX_VALID; in ar933x_uart_startup()
431 ar933x_uart_write(up, AR933X_UART_INT_EN_REG, up->ier); in ar933x_uart_startup()
444 up->ier = 0; in ar933x_uart_shutdown()
[all …]
Dsunsu.c90 unsigned char ier; member
259 if (p->ier & UART_IER_THRI) { in __stop_tx()
260 p->ier &= ~UART_IER_THRI; in __stop_tx()
261 serial_out(p, UART_IER, p->ier); in __stop_tx()
286 if (!(up->ier & UART_IER_THRI)) { in sunsu_start_tx()
287 up->ier |= UART_IER_THRI; in sunsu_start_tx()
288 serial_out(up, UART_IER, up->ier); in sunsu_start_tx()
305 up->ier &= ~UART_IER_RLSI; in sunsu_stop_rx()
307 serial_out(up, UART_IER, up->ier); in sunsu_stop_rx()
317 up->ier |= UART_IER_MSI; in sunsu_enable_ms()
[all …]
Dserial-tegra.c687 unsigned long ier; in tegra_uart_isr() local
698 ier = tup->ier_shadow; in tegra_uart_isr()
699 ier |= (UART_IER_RLSI | UART_IER_RTOIE | in tegra_uart_isr()
701 tup->ier_shadow = ier; in tegra_uart_isr()
702 tegra_uart_write(tup, ier, UART_IER); in tegra_uart_isr()
726 ier = tup->ier_shadow; in tegra_uart_isr()
727 ier |= UART_IER_RDI; in tegra_uart_isr()
728 tegra_uart_write(tup, ier, UART_IER); in tegra_uart_isr()
729 ier &= ~(UART_IER_RDI | UART_IER_RLSI | in tegra_uart_isr()
731 tup->ier_shadow = ier; in tegra_uart_isr()
[all …]
/drivers/tty/serial/8250/
D8250_early.c113 unsigned int ier; in init_port() local
116 ier = serial8250_early_in(port, UART_IER); in init_port()
117 serial8250_early_out(port, UART_IER, ier & UART_IER_UUE); /* no interrupt */ in init_port()
137 unsigned int ier; in early_serial8250_setup() local
140 ier = serial8250_early_in(port, UART_IER); in early_serial8250_setup()
141 serial8250_early_out(port, UART_IER, ier & UART_IER_UUE); in early_serial8250_setup()
D8250_omap.c300 serial_out(up, UART_IER, up->ier); in omap8250_restore_regs()
408 up->ier &= ~UART_IER_MSI; in omap_8250_set_termios()
410 up->ier |= UART_IER_MSI; in omap_8250_set_termios()
634 up->ier = UART_IER_RLSI | UART_IER_RDI; in omap_8250_startup()
635 serial_out(up, UART_IER, up->ier); in omap_8250_startup()
673 up->ier = 0; in omap_8250_shutdown()
700 up->ier &= ~(UART_IER_RLSI | UART_IER_RDI); in omap_8250_throttle()
701 serial_out(up, UART_IER, up->ier); in omap_8250_throttle()
746 up->ier |= UART_IER_RLSI | UART_IER_RDI; in omap_8250_unthrottle()
747 serial_out(up, UART_IER, up->ier); in omap_8250_unthrottle()
[all …]
D8250_dma.c42 p->ier |= UART_IER_THRI; in __dma_tx_complete()
43 serial_port_out(&p->port, UART_IER, p->ier); in __dma_tx_complete()
102 if (p->ier & UART_IER_THRI) { in serial8250_tx_dma()
103 p->ier &= ~UART_IER_THRI; in serial8250_tx_dma()
104 serial_out(p, UART_IER, p->ier); in serial8250_tx_dma()
D8250_port.c1397 up->ier &= ~(UART_IER_RLSI | UART_IER_RDI); in serial8250_stop_rx()
1399 serial_port_out(port, UART_IER, up->ier); in serial8250_stop_rx()
1416 p->ier |= UART_IER_RLSI | UART_IER_RDI; in __do_stop_tx_rs485()
1417 serial_port_out(&p->port, UART_IER, p->ier); in __do_stop_tx_rs485()
1457 if (p->ier & UART_IER_THRI) { in __do_stop_tx()
1458 p->ier &= ~UART_IER_THRI; in __do_stop_tx()
1459 serial_out(p, UART_IER, p->ier); in __do_stop_tx()
1511 if (!(up->ier & UART_IER_THRI)) { in __start_tx()
1512 up->ier |= UART_IER_THRI; in __start_tx()
1513 serial_port_out(port, UART_IER, up->ier); in __start_tx()
[all …]
/drivers/net/can/rcar/
Drcar_can.c79 u8 ier; /* Interrupt Enable Register */ member
96 u8 ier; member
328 priv->ier = RCAR_CAN_IER_ERSIE; in rcar_can_error()
329 writeb(priv->ier, &priv->regs->ier); in rcar_can_error()
401 if (!(isr & priv->ier)) in rcar_can_interrupt()
413 priv->ier &= ~RCAR_CAN_IER_RXFIE; in rcar_can_interrupt()
414 writeb(priv->ier, &priv->regs->ier); in rcar_can_interrupt()
479 priv->ier = RCAR_CAN_IER_ERSIE | RCAR_CAN_IER_RXFIE | in rcar_can_start()
481 writeb(priv->ier, &priv->regs->ier); in rcar_can_start()
564 writeb(0, &priv->regs->ier); in rcar_can_stop()
[all …]
/drivers/mmc/card/
Dsdio_uart.c83 unsigned char ier; member
337 port->ier &= ~UART_IER_MSI; in sdio_uart_change_speed()
339 port->ier |= UART_IER_MSI; in sdio_uart_change_speed()
343 sdio_out(port, UART_IER, port->ier); in sdio_uart_change_speed()
355 if (!(port->ier & UART_IER_THRI)) { in sdio_uart_start_tx()
356 port->ier |= UART_IER_THRI; in sdio_uart_start_tx()
357 sdio_out(port, UART_IER, port->ier); in sdio_uart_start_tx()
363 if (port->ier & UART_IER_THRI) { in sdio_uart_stop_tx()
364 port->ier &= ~UART_IER_THRI; in sdio_uart_stop_tx()
365 sdio_out(port, UART_IER, port->ier); in sdio_uart_stop_tx()
[all …]
/drivers/i2c/busses/
Di2c-xiic.c241 u32 ier = xiic_getreg32(i2c, XIIC_IIER_OFFSET); in xiic_irq_dis() local
242 xiic_setreg32(i2c, XIIC_IIER_OFFSET, ier & ~mask); in xiic_irq_dis()
247 u32 ier = xiic_getreg32(i2c, XIIC_IIER_OFFSET); in xiic_irq_en() local
248 xiic_setreg32(i2c, XIIC_IIER_OFFSET, ier | mask); in xiic_irq_en()
369 u32 pend, isr, ier; in xiic_process() local
379 ier = xiic_getreg32(i2c, XIIC_IIER_OFFSET); in xiic_process()
380 pend = isr & ier; in xiic_process()
383 __func__, ier, isr, pend); in xiic_process()
607 u32 pend, isr, ier; in xiic_isr() local
616 ier = xiic_getreg32(i2c, XIIC_IIER_OFFSET); in xiic_isr()
[all …]
/drivers/net/irda/
Dnsc-ircc.c1260 __u8 ier; /* Interrupt enable register */ in nsc_ircc_change_speed() local
1340 ier = IER_SFIF_IE; in nsc_ircc_change_speed()
1345 ier = IER_RXHDL_IE; in nsc_ircc_change_speed()
1348 outb(ier, iobase+IER); in nsc_ircc_change_speed()
1354 return ier; in nsc_ircc_change_speed()
1958 self->ier = IER_TXLDL_IE; in nsc_ircc_sir_interrupt()
1963 self->ier = IER_TXEMP_IE; in nsc_ircc_sir_interrupt()
1971 self->ier = IER_RXHDL_IE; in nsc_ircc_sir_interrupt()
1977 self->ier = nsc_ircc_change_speed(self, in nsc_ircc_sir_interrupt()
1995 self->ier = IER_RXHDL_IE; in nsc_ircc_sir_interrupt()
[all …]
Dali-ircc.c697 eir = self->InterruptID & self->ier; /* Mask out the interesting ones */ in ali_ircc_fir_interrupt()
701 pr_debug("%s(), self->ier = %x\n", __func__, self->ier); in ali_ircc_fir_interrupt()
722 self->ier = IER_EOM; in ali_ircc_fir_interrupt()
727 self->ier = IER_EOM; in ali_ircc_fir_interrupt()
748 self->ier = IER_EOM; in ali_ircc_fir_interrupt()
755 self->ier = IER_EOM | IER_TIMER; in ali_ircc_fir_interrupt()
780 self->ier = IER_EOM; in ali_ircc_fir_interrupt()
787 self->ier = IER_EOM; in ali_ircc_fir_interrupt()
791 self->ier = IER_EOM | IER_TIMER; in ali_ircc_fir_interrupt()
930 self->ier = IER_EOM; in ali_ircc_sir_write_wakeup()
[all …]
/drivers/net/can/
Dxilinx_can.c707 u32 isr, ier; in xcan_rx_poll() local
730 ier = priv->read_reg(priv, XCAN_IER_OFFSET); in xcan_rx_poll()
731 ier |= (XCAN_IXR_RXOK_MASK | XCAN_IXR_RXNEMP_MASK); in xcan_rx_poll()
732 priv->write_reg(priv, XCAN_IER_OFFSET, ier); in xcan_rx_poll()
775 u32 isr, ier; in xcan_interrupt() local
804 ier = priv->read_reg(priv, XCAN_IER_OFFSET); in xcan_interrupt()
805 ier &= ~(XCAN_IXR_RXNEMP_MASK | XCAN_IXR_RXOK_MASK); in xcan_interrupt()
806 priv->write_reg(priv, XCAN_IER_OFFSET, ier); in xcan_interrupt()
822 u32 ier; in xcan_chip_stop() local
825 ier = priv->read_reg(priv, XCAN_IER_OFFSET); in xcan_chip_stop()
[all …]
/drivers/mmc/host/
Dsdhci.c129 host->ier |= present ? SDHCI_INT_CARD_REMOVE : in sdhci_set_card_detection()
132 host->ier &= ~(SDHCI_INT_CARD_REMOVE | SDHCI_INT_CARD_INSERT); in sdhci_set_card_detection()
135 sdhci_writel(host, host->ier, SDHCI_INT_ENABLE); in sdhci_set_card_detection()
136 sdhci_writel(host, host->ier, SDHCI_SIGNAL_ENABLE); in sdhci_set_card_detection()
226 host->ier = SDHCI_INT_BUS_POWER | SDHCI_INT_DATA_END_BIT | in sdhci_init()
234 host->ier |= SDHCI_INT_RETUNE; in sdhci_init()
236 sdhci_writel(host, host->ier, SDHCI_INT_ENABLE); in sdhci_init()
237 sdhci_writel(host, host->ier, SDHCI_SIGNAL_ENABLE); in sdhci_init()
731 host->ier = (host->ier & ~pio_irqs) | dma_irqs; in sdhci_set_transfer_irqs()
733 host->ier = (host->ier & ~dma_irqs) | pio_irqs; in sdhci_set_transfer_irqs()
[all …]
/drivers/dma/
Dtimb_dma.c123 u32 ier; in __td_enable_chan_irq() local
126 ier = ioread32(td->membase + TIMBDMA_IER); in __td_enable_chan_irq()
127 ier |= 1 << id; in __td_enable_chan_irq()
129 ier); in __td_enable_chan_irq()
130 iowrite32(ier, td->membase + TIMBDMA_IER); in __td_enable_chan_irq()
579 u32 ier; in td_tasklet() local
598 ier = __td_ier_mask(td); in td_tasklet()
599 iowrite32(ier, td->membase + TIMBDMA_IER); in td_tasklet()

123