Home
last modified time | relevance | path

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

123

/linux-6.1.9/drivers/tty/serial/jsm/
Djsm_cls.c55 u8 ier = readb(&ch->ch_cls_uart->ier); in cls_set_cts_flow_control() local
79 ier |= (UART_EXAR654_IER_CTSDSR); in cls_set_cts_flow_control()
80 ier &= ~(UART_EXAR654_IER_XOFF); in cls_set_cts_flow_control()
81 writeb(ier, &ch->ch_cls_uart->ier); in cls_set_cts_flow_control()
96 u8 ier = readb(&ch->ch_cls_uart->ier); in cls_set_ixon_flow_control() local
126 ier &= ~(UART_EXAR654_IER_CTSDSR); in cls_set_ixon_flow_control()
127 ier |= (UART_EXAR654_IER_XOFF); in cls_set_ixon_flow_control()
128 writeb(ier, &ch->ch_cls_uart->ier); in cls_set_ixon_flow_control()
141 u8 ier = readb(&ch->ch_cls_uart->ier); in cls_set_no_output_flow_control() local
165 ier &= ~(UART_EXAR654_IER_CTSDSR); in cls_set_no_output_flow_control()
[all …]
Djsm_neo.c37 u8 ier, efr; in neo_set_cts_flow_control() local
38 ier = readb(&ch->ch_neo_uart->ier); in neo_set_cts_flow_control()
44 ier |= (UART_17158_IER_CTSDSR); in neo_set_cts_flow_control()
63 writeb(ier, &ch->ch_neo_uart->ier); in neo_set_cts_flow_control()
68 u8 ier, efr; in neo_set_rts_flow_control() local
69 ier = readb(&ch->ch_neo_uart->ier); in neo_set_rts_flow_control()
75 ier |= (UART_17158_IER_RTSDTR); in neo_set_rts_flow_control()
79 ier &= ~(UART_17158_IER_XOFF); in neo_set_rts_flow_control()
94 writeb(ier, &ch->ch_neo_uart->ier); in neo_set_rts_flow_control()
108 u8 ier, efr; in neo_set_ixon_flow_control() local
[all …]
/linux-6.1.9/drivers/tty/serial/
Dpxa.c44 unsigned char ier; member
68 up->ier |= UART_IER_MSI; in serial_pxa_enable_ms()
69 serial_out(up, UART_IER, up->ier); in serial_pxa_enable_ms()
76 if (up->ier & UART_IER_THRI) { in serial_pxa_stop_tx()
77 up->ier &= ~UART_IER_THRI; in serial_pxa_stop_tx()
78 serial_out(up, UART_IER, up->ier); in serial_pxa_stop_tx()
86 up->ier &= ~UART_IER_RLSI; in serial_pxa_stop_rx()
88 serial_out(up, UART_IER, up->ier); in serial_pxa_stop_rx()
104 up->ier &= ~UART_IER_RTOIE; in receive_chars()
105 serial_out(up, UART_IER, up->ier); in receive_chars()
[all …]
Dtimbuart.c35 static void timbuart_mctrl_check(struct uart_port *port, u32 isr, u32 *ier);
42 u32 ier = ioread32(port->membase + TIMBUART_IER) & ~RXFLAGS; in timbuart_stop_rx() local
43 iowrite32(ier, port->membase + TIMBUART_IER); in timbuart_stop_rx()
49 u32 ier = ioread32(port->membase + TIMBUART_IER) & ~TXBAE; in timbuart_stop_tx() local
50 iowrite32(ier, port->membase + TIMBUART_IER); in timbuart_stop_tx()
117 static void timbuart_handle_tx_port(struct uart_port *port, u32 isr, u32 *ier) in timbuart_handle_tx_port() argument
138 *ier |= uart->last_ier & TXFLAGS; in timbuart_handle_tx_port()
146 *ier |= TXBAE; in timbuart_handle_tx_port()
151 static void timbuart_handle_rx_port(struct uart_port *port, u32 isr, u32 *ier) in timbuart_handle_rx_port() argument
168 *ier |= RXBAF | RXBF | RXTT; in timbuart_handle_rx_port()
[all …]
Dfsl_linflexuart.c145 unsigned long ier; in linflex_stop_tx() local
147 ier = readl(port->membase + LINIER); in linflex_stop_tx()
148 ier &= ~(LINFLEXD_LINIER_DTIE); in linflex_stop_tx()
149 writel(ier, port->membase + LINIER); in linflex_stop_tx()
154 unsigned long ier; in linflex_stop_rx() local
156 ier = readl(port->membase + LINIER); in linflex_stop_rx()
157 writel(ier & ~LINFLEXD_LINIER_DRIE, port->membase + LINIER); in linflex_stop_rx()
194 unsigned long ier; in linflex_start_tx() local
197 ier = readl(port->membase + LINIER); in linflex_start_tx()
198 writel(ier | LINFLEXD_LINIER_DTIE, port->membase + LINIER); in linflex_start_tx()
[all …]
Dvt8500_serial.c100 unsigned int ier; member
128 vt8500_port->ier &= ~TX_FIFO_INTS; in vt8500_stop_tx()
129 vt8500_write(port, vt8500_port->ier, VT8500_URIER); in vt8500_stop_tx()
138 vt8500_port->ier &= ~RX_FIFO_INTS; in vt8500_stop_rx()
139 vt8500_write(port, vt8500_port->ier, VT8500_URIER); in vt8500_stop_rx()
148 vt8500_port->ier |= TCTS; in vt8500_enable_ms()
149 vt8500_write(port, vt8500_port->ier, VT8500_URIER); in vt8500_enable_ms()
234 vt8500_port->ier &= ~TX_FIFO_INTS; in vt8500_start_tx()
235 vt8500_write(port, vt8500_port->ier, VT8500_URIER); in vt8500_start_tx()
237 vt8500_port->ier |= TX_FIFO_INTS; in vt8500_start_tx()
[all …]
Dsifive.c150 unsigned char ier; member
329 if (ssp->ier & SIFIVE_SERIAL_IE_TXWM_MASK) in __ssp_enable_txwm()
332 ssp->ier |= SIFIVE_SERIAL_IE_TXWM_MASK; in __ssp_enable_txwm()
333 __ssp_writel(ssp->ier, SIFIVE_SERIAL_IE_OFFS, ssp); in __ssp_enable_txwm()
345 if (ssp->ier & SIFIVE_SERIAL_IE_RXWM_MASK) in __ssp_enable_rxwm()
348 ssp->ier |= SIFIVE_SERIAL_IE_RXWM_MASK; in __ssp_enable_rxwm()
349 __ssp_writel(ssp->ier, SIFIVE_SERIAL_IE_OFFS, ssp); in __ssp_enable_rxwm()
361 if (!(ssp->ier & SIFIVE_SERIAL_IE_TXWM_MASK)) in __ssp_disable_txwm()
364 ssp->ier &= ~SIFIVE_SERIAL_IE_TXWM_MASK; in __ssp_disable_txwm()
365 __ssp_writel(ssp->ier, SIFIVE_SERIAL_IE_OFFS, ssp); in __ssp_disable_txwm()
[all …]
Domap-serial.c131 unsigned char ier; member
280 up->ier |= UART_IER_MSI; in serial_omap_enable_ms()
281 serial_out(up, UART_IER, up->ier); in serial_omap_enable_ms()
324 if (up->ier & UART_IER_THRI) { in serial_omap_stop_tx()
325 up->ier &= ~UART_IER_THRI; in serial_omap_stop_tx()
326 serial_out(up, UART_IER, up->ier); in serial_omap_stop_tx()
334 up->ier &= ~(UART_IER_RLSI | UART_IER_RDI); in serial_omap_stop_rx()
336 serial_out(up, UART_IER, up->ier); in serial_omap_stop_rx()
382 if (!(up->ier & UART_IER_THRI)) { in serial_omap_enable_ier_thri()
383 up->ier |= UART_IER_THRI; in serial_omap_enable_ier_thri()
[all …]
Dsunsu.c87 unsigned char ier; member
257 if (p->ier & UART_IER_THRI) { in __stop_tx()
258 p->ier &= ~UART_IER_THRI; in __stop_tx()
259 serial_out(p, UART_IER, p->ier); in __stop_tx()
284 if (!(up->ier & UART_IER_THRI)) { in sunsu_start_tx()
285 up->ier |= UART_IER_THRI; in sunsu_start_tx()
286 serial_out(up, UART_IER, up->ier); in sunsu_start_tx()
303 up->ier &= ~UART_IER_RLSI; in sunsu_stop_rx()
305 serial_out(up, UART_IER, up->ier); in sunsu_stop_rx()
315 up->ier |= UART_IER_MSI; in sunsu_enable_ms()
[all …]
Dar933x_uart.c49 unsigned int ier; /* shadow Interrupt Enable Register */ member
98 up->ier |= AR933X_UART_INT_TX_EMPTY; in ar933x_uart_start_tx_interrupt()
99 ar933x_uart_write(up, AR933X_UART_INT_EN_REG, up->ier); in ar933x_uart_start_tx_interrupt()
104 up->ier &= ~AR933X_UART_INT_TX_EMPTY; in ar933x_uart_stop_tx_interrupt()
105 ar933x_uart_write(up, AR933X_UART_INT_EN_REG, up->ier); in ar933x_uart_stop_tx_interrupt()
110 up->ier |= AR933X_UART_INT_RX_VALID; in ar933x_uart_start_rx_interrupt()
111 ar933x_uart_write(up, AR933X_UART_INT_EN_REG, up->ier); in ar933x_uart_start_rx_interrupt()
116 up->ier &= ~AR933X_UART_INT_RX_VALID; in ar933x_uart_stop_rx_interrupt()
117 ar933x_uart_write(up, AR933X_UART_INT_EN_REG, up->ier); in ar933x_uart_stop_rx_interrupt()
513 up->ier = 0; in ar933x_uart_shutdown()
[all …]
/linux-6.1.9/drivers/tty/serial/8250/
D8250_early.c137 unsigned int ier; in init_port() local
140 ier = serial8250_early_in(port, UART_IER); in init_port()
141 serial8250_early_out(port, UART_IER, ier & UART_IER_UUE); /* no interrupt */ in init_port()
163 unsigned int ier; in early_serial8250_setup() local
166 ier = serial8250_early_in(port, UART_IER); in early_serial8250_setup()
167 serial8250_early_out(port, UART_IER, ier & UART_IER_UUE); in early_serial8250_setup()
D8250.h182 if (up->ier & UART_IER_THRI) in serial8250_set_THRI()
184 up->ier |= UART_IER_THRI; in serial8250_set_THRI()
185 serial_out(up, UART_IER, up->ier); in serial8250_set_THRI()
191 if (!(up->ier & UART_IER_THRI)) in serial8250_clear_THRI()
193 up->ier &= ~UART_IER_THRI; in serial8250_clear_THRI()
194 serial_out(up, UART_IER, up->ier); in serial8250_clear_THRI()
D8250_fsl.c53 (up->ier & (UART_IER_RLSI | UART_IER_RDI))) { in fsl8250_handle_irq()
61 up->ier = port->serial_in(port, UART_IER); in fsl8250_handle_irq()
62 if (up->ier & (UART_IER_RLSI | UART_IER_RDI)) { in fsl8250_handle_irq()
77 if ((lsr & UART_LSR_THRE) && (up->ier & UART_IER_THRI)) in fsl8250_handle_irq()
D8250_omap.c331 serial_out(up, UART_IER, up->ier); in omap8250_restore_regs()
428 up->ier &= ~UART_IER_MSI; in omap_8250_set_termios()
430 up->ier |= UART_IER_MSI; in omap_8250_set_termios()
642 up->ier = port->serial_in(port, UART_IER); in omap8250_irq()
643 if (up->ier & (UART_IER_RLSI | UART_IER_RDI)) { in omap8250_irq()
700 up->ier = UART_IER_RLSI | UART_IER_RDI; in omap_8250_startup()
701 serial_out(up, UART_IER, up->ier); in omap_8250_startup()
741 up->ier = 0; in omap_8250_shutdown()
788 up->ier |= UART_IER_RLSI | UART_IER_RDI; in omap_8250_unthrottle()
790 serial_out(up, UART_IER, up->ier); in omap_8250_unthrottle()
[all …]
/linux-6.1.9/drivers/net/can/rcar/
Drcar_can.c84 u8 ier; /* Interrupt Enable Register */ member
100 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()
402 if (!(isr & priv->ier)) in rcar_can_interrupt()
414 priv->ier &= ~RCAR_CAN_IER_RXFIE; in rcar_can_interrupt()
415 writeb(priv->ier, &priv->regs->ier); in rcar_can_interrupt()
480 priv->ier = RCAR_CAN_IER_ERSIE | RCAR_CAN_IER_RXFIE | in rcar_can_start()
482 writeb(priv->ier, &priv->regs->ier); in rcar_can_start()
564 writeb(0, &priv->regs->ier); in rcar_can_stop()
[all …]
/linux-6.1.9/drivers/gpu/drm/i915/gvt/
Dinterrupt.c46 #define ier_to_regbase(ier) (ier - 0xC) argument
213 u32 ier = *(u32 *)p_data; in intel_vgpu_reg_master_irq_handler() local
216 trace_write_ir(vgpu->id, "MASTER_IRQ", reg, ier, virtual_ier, in intel_vgpu_reg_master_irq_handler()
217 (virtual_ier ^ ier)); in intel_vgpu_reg_master_irq_handler()
224 ier &= GEN8_MASTER_IRQ_CONTROL; in intel_vgpu_reg_master_irq_handler()
227 vgpu_vreg(vgpu, reg) |= ier; in intel_vgpu_reg_master_irq_handler()
254 u32 ier = *(u32 *)p_data; in intel_vgpu_reg_ier_handler() local
256 trace_write_ir(vgpu->id, "IER", reg, ier, vgpu_vreg(vgpu, reg), in intel_vgpu_reg_ier_handler()
257 (vgpu_vreg(vgpu, reg) ^ ier)); in intel_vgpu_reg_ier_handler()
259 vgpu_vreg(vgpu, reg) = ier; in intel_vgpu_reg_ier_handler()
/linux-6.1.9/drivers/mmc/core/
Dsdio_uart.c80 unsigned char ier; member
318 port->ier &= ~UART_IER_MSI; in sdio_uart_change_speed()
320 port->ier |= UART_IER_MSI; in sdio_uart_change_speed()
324 sdio_out(port, UART_IER, port->ier); in sdio_uart_change_speed()
336 if (!(port->ier & UART_IER_THRI)) { in sdio_uart_start_tx()
337 port->ier |= UART_IER_THRI; in sdio_uart_start_tx()
338 sdio_out(port, UART_IER, port->ier); in sdio_uart_start_tx()
344 if (port->ier & UART_IER_THRI) { in sdio_uart_stop_tx()
345 port->ier &= ~UART_IER_THRI; in sdio_uart_stop_tx()
346 sdio_out(port, UART_IER, port->ier); in sdio_uart_stop_tx()
[all …]
/linux-6.1.9/arch/x86/platform/ce4100/
Dce4100.c54 unsigned int ret, ier, lsr; in ce4100_mem_serial_in() local
61 ier = mem_serial_in(p, UART_IER); in ce4100_mem_serial_in()
63 if (ier & UART_IER_THRI) { in ce4100_mem_serial_in()
/linux-6.1.9/drivers/mmc/host/
Dsdhci.c166 host->ier |= present ? SDHCI_INT_CARD_REMOVE : in sdhci_set_card_detection()
169 host->ier &= ~(SDHCI_INT_CARD_REMOVE | SDHCI_INT_CARD_INSERT); in sdhci_set_card_detection()
172 sdhci_writel(host, host->ier, SDHCI_INT_ENABLE); in sdhci_set_card_detection()
173 sdhci_writel(host, host->ier, SDHCI_SIGNAL_ENABLE); in sdhci_set_card_detection()
299 host->ier = SDHCI_INT_BUS_POWER | SDHCI_INT_DATA_END_BIT | in sdhci_set_default_irqs()
307 host->ier |= SDHCI_INT_RETUNE; in sdhci_set_default_irqs()
309 sdhci_writel(host, host->ier, SDHCI_INT_ENABLE); in sdhci_set_default_irqs()
310 sdhci_writel(host, host->ier, SDHCI_SIGNAL_ENABLE); in sdhci_set_default_irqs()
388 u32 cd = host->ier & (SDHCI_INT_CARD_REMOVE | SDHCI_INT_CARD_INSERT); in sdhci_reinit()
399 if (cd != (host->ier & (SDHCI_INT_CARD_REMOVE | SDHCI_INT_CARD_INSERT))) in sdhci_reinit()
[all …]
Dsdhci-omap.c364 if (host->ier & SDHCI_INT_DATA_CRC) { in sdhci_omap_execute_tuning()
365 host->ier &= ~SDHCI_INT_DATA_CRC; in sdhci_omap_execute_tuning()
494 host->ier |= SDHCI_INT_DATA_CRC; in sdhci_omap_execute_tuning()
495 sdhci_writel(host, host->ier, SDHCI_INT_ENABLE); in sdhci_omap_execute_tuning()
496 sdhci_writel(host, host->ier, SDHCI_SIGNAL_ENABLE); in sdhci_omap_execute_tuning()
507 u32 ier = host->ier; in sdhci_omap_card_busy() local
521 ier |= SDHCI_INT_CARD_INT; in sdhci_omap_card_busy()
522 sdhci_writel(host, ier, SDHCI_INT_ENABLE); in sdhci_omap_card_busy()
523 sdhci_writel(host, ier, SDHCI_SIGNAL_ENABLE); in sdhci_omap_card_busy()
538 sdhci_writel(host, host->ier, SDHCI_INT_ENABLE); in sdhci_omap_card_busy()
[all …]
/linux-6.1.9/drivers/dma/
Dtimb_dma.c115 u32 ier; in __td_enable_chan_irq() local
118 ier = ioread32(td->membase + TIMBDMA_IER); in __td_enable_chan_irq()
119 ier |= 1 << id; in __td_enable_chan_irq()
121 ier); in __td_enable_chan_irq()
122 iowrite32(ier, td->membase + TIMBDMA_IER); in __td_enable_chan_irq()
571 u32 ier; in td_tasklet() local
590 ier = __td_ier_mask(td); in td_tasklet()
591 iowrite32(ier, td->membase + TIMBDMA_IER); in td_tasklet()
/linux-6.1.9/arch/sh/include/asm/
Dsmc37c93x.h73 volatile __u16 ier; member
91 #define dlm ier
/linux-6.1.9/drivers/gpio/
Dgpio-adnp.c190 u8 ddr, plr, ier, isr; in adnp_gpio_dbg_show() local
202 err = adnp_read(adnp, GPIO_IER(adnp) + i, &ier); in adnp_gpio_dbg_show()
225 if (ier & BIT(j)) in adnp_gpio_dbg_show()
251 u8 changed, level, isr, ier; in adnp_irq() local
269 err = adnp_read(adnp, GPIO_IER(adnp) + i, &ier); in adnp_irq()
289 pending &= isr & ier; in adnp_irq()
/linux-6.1.9/drivers/i2c/busses/
Di2c-xiic.c234 u32 ier = xiic_getreg32(i2c, XIIC_IIER_OFFSET); in xiic_irq_dis() local
236 xiic_setreg32(i2c, XIIC_IIER_OFFSET, ier & ~mask); in xiic_irq_dis()
241 u32 ier = xiic_getreg32(i2c, XIIC_IIER_OFFSET); in xiic_irq_en() local
243 xiic_setreg32(i2c, XIIC_IIER_OFFSET, ier | mask); in xiic_irq_en()
382 u32 pend, isr, ier; in xiic_process() local
396 ier = xiic_getreg32(i2c, XIIC_IIER_OFFSET); in xiic_process()
397 pend = isr & ier; in xiic_process()
400 __func__, ier, isr, pend); in xiic_process()
/linux-6.1.9/sound/soc/stm/
Dstm32_i2s.c457 u32 sr, ier; in stm32_i2s_isr() local
462 regmap_read(i2s->regmap, STM32_I2S_IER_REG, &ier); in stm32_i2s_isr()
464 flags = sr & ier; in stm32_i2s_isr()
467 sr, ier); in stm32_i2s_isr()
817 u32 cfg1_mask, ier; in stm32_i2s_trigger() local
852 ier = I2S_IER_UDRIE; in stm32_i2s_trigger()
854 ier = I2S_IER_OVRIE; in stm32_i2s_trigger()
864 ier |= I2S_IER_TIFREIE; in stm32_i2s_trigger()
866 regmap_update_bits(i2s->regmap, STM32_I2S_IER_REG, ier, ier); in stm32_i2s_trigger()

123