Home
last modified time | relevance | path

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

123

/openbmc/linux/drivers/net/ethernet/stmicro/stmmac/
H A Ddwmac_lib.c168 u32 intr_status = readl(ioaddr + DMA_STATUS); in dwmac_dma_interrupt() local
172 pr_debug("%s: [CSR5: 0x%08x]\n", __func__, intr_status); in dwmac_dma_interrupt()
173 show_tx_process_state(intr_status); in dwmac_dma_interrupt()
174 show_rx_process_state(intr_status); in dwmac_dma_interrupt()
178 intr_status &= DMA_STATUS_MSK_RX; in dwmac_dma_interrupt()
180 intr_status &= DMA_STATUS_MSK_TX; in dwmac_dma_interrupt()
183 if (unlikely(intr_status & DMA_STATUS_AIS)) { in dwmac_dma_interrupt()
184 if (unlikely(intr_status & DMA_STATUS_UNF)) { in dwmac_dma_interrupt()
188 if (unlikely(intr_status & DMA_STATUS_TJT)) in dwmac_dma_interrupt()
191 if (unlikely(intr_status & DMA_STATUS_OVF)) in dwmac_dma_interrupt()
[all …]
H A Ddwmac4_lib.c172 u32 intr_status = readl(ioaddr + DMA_CHAN_STATUS(dwmac4_addrs, chan)); in dwmac4_dma_interrupt() local
178 intr_status &= DMA_CHAN_STATUS_MSK_RX; in dwmac4_dma_interrupt()
180 intr_status &= DMA_CHAN_STATUS_MSK_TX; in dwmac4_dma_interrupt()
183 if (unlikely(intr_status & DMA_CHAN_STATUS_AIS)) { in dwmac4_dma_interrupt()
184 if (unlikely(intr_status & DMA_CHAN_STATUS_RBU)) in dwmac4_dma_interrupt()
186 if (unlikely(intr_status & DMA_CHAN_STATUS_RPS)) in dwmac4_dma_interrupt()
188 if (unlikely(intr_status & DMA_CHAN_STATUS_RWT)) in dwmac4_dma_interrupt()
190 if (unlikely(intr_status & DMA_CHAN_STATUS_ETI)) in dwmac4_dma_interrupt()
192 if (unlikely(intr_status & DMA_CHAN_STATUS_TPS)) { in dwmac4_dma_interrupt()
196 if (unlikely(intr_status & DMA_CHAN_STATUS_FBE)) { in dwmac4_dma_interrupt()
[all …]
H A Ddwmac1000_core.c301 u32 intr_status = readl(ioaddr + GMAC_INT_STATUS); in dwmac1000_irq_status() local
306 intr_status &= ~intr_mask; in dwmac1000_irq_status()
309 if ((intr_status & GMAC_INT_STATUS_MMCTIS)) in dwmac1000_irq_status()
311 if (unlikely(intr_status & GMAC_INT_STATUS_MMCRIS)) in dwmac1000_irq_status()
313 if (unlikely(intr_status & GMAC_INT_STATUS_MMCCSUM)) in dwmac1000_irq_status()
315 if (unlikely(intr_status & GMAC_INT_DISABLE_PMT)) { in dwmac1000_irq_status()
322 if (intr_status & GMAC_INT_STATUS_LPIIS) { in dwmac1000_irq_status()
336 dwmac_pcs_isr(ioaddr, GMAC_PCS_BASE, intr_status, x); in dwmac1000_irq_status()
338 if (intr_status & PCS_RGSMIIIS_IRQ) in dwmac1000_irq_status()
H A Ddwxgmac2_dma.c341 u32 intr_status = readl(ioaddr + XGMAC_DMA_CH_STATUS(chan)); in dwxgmac2_dma_interrupt() local
346 intr_status &= XGMAC_DMA_STATUS_MSK_RX; in dwxgmac2_dma_interrupt()
348 intr_status &= XGMAC_DMA_STATUS_MSK_TX; in dwxgmac2_dma_interrupt()
351 if (unlikely(intr_status & XGMAC_AIS)) { in dwxgmac2_dma_interrupt()
352 if (unlikely(intr_status & XGMAC_RBU)) { in dwxgmac2_dma_interrupt()
356 if (unlikely(intr_status & XGMAC_TPS)) { in dwxgmac2_dma_interrupt()
360 if (unlikely(intr_status & XGMAC_FBE)) { in dwxgmac2_dma_interrupt()
367 if (likely(intr_status & XGMAC_NIS)) { in dwxgmac2_dma_interrupt()
368 if (likely(intr_status & XGMAC_RI)) { in dwxgmac2_dma_interrupt()
374 if (likely(intr_status & (XGMAC_TI | XGMAC_TBU))) { in dwxgmac2_dma_interrupt()
[all …]
H A Dstmmac_pcs.h57 unsigned int intr_status, in dwmac_pcs_isr() argument
62 if (intr_status & PCS_ANE_IRQ) { in dwmac_pcs_isr()
68 if (intr_status & PCS_LINK_IRQ) { in dwmac_pcs_isr()
/openbmc/linux/drivers/fpga/
H A Dzynq-fpga.c215 u32 intr_status; in zynq_fpga_isr() local
222 intr_status = zynq_fpga_read(priv, INT_STS_OFFSET); in zynq_fpga_isr()
223 if (!(intr_status & IXR_ERROR_FLAGS_MASK) && in zynq_fpga_isr()
224 (intr_status & IXR_DMA_DONE_MASK) && priv->cur_sg) { in zynq_fpga_isr()
389 u32 intr_status; in zynq_fpga_ops_write() local
438 intr_status = zynq_fpga_read(priv, INT_STS_OFFSET); in zynq_fpga_ops_write()
447 if (intr_status & IXR_ERROR_FLAGS_MASK) { in zynq_fpga_ops_write()
454 !((intr_status & IXR_D_P_DONE_MASK) == IXR_D_P_DONE_MASK)) { in zynq_fpga_ops_write()
470 intr_status, in zynq_fpga_ops_write()
490 u32 intr_status; in zynq_fpga_ops_write_complete() local
[all …]
/openbmc/linux/drivers/mmc/host/
H A Dmvsdio.c348 u32 intr_status, intr_done_mask; in mvsd_irq() local
351 intr_status = mvsd_read(MVSD_NOR_INTR_STATUS); in mvsd_irq()
353 intr_status, mvsd_read(MVSD_NOR_INTR_EN), in mvsd_irq()
374 (intr_status & host->intr_en & in mvsd_irq()
378 while (s >= 32 && (intr_status & MVSD_NOR_RX_FIFO_8W)) { in mvsd_irq()
382 intr_status = mvsd_read(MVSD_NOR_INTR_STATUS); in mvsd_irq()
390 while (s >= 4 && (intr_status & MVSD_NOR_RX_READY)) { in mvsd_irq()
394 intr_status = mvsd_read(MVSD_NOR_INTR_STATUS); in mvsd_irq()
396 if (s && s < 4 && (intr_status & MVSD_NOR_RX_READY)) { in mvsd_irq()
402 intr_status = mvsd_read(MVSD_NOR_INTR_STATUS); in mvsd_irq()
[all …]
/openbmc/linux/drivers/net/wwan/t7xx/
H A Dt7xx_dpmaif.c225 unsigned int intr_status, in t7xx_dpmaif_hw_check_tx_intr() argument
230 value = FIELD_GET(DP_UL_INT_QDONE_MSK, intr_status); in t7xx_dpmaif_hw_check_tx_intr()
240 value = FIELD_GET(DP_UL_INT_EMPTY_MSK, intr_status); in t7xx_dpmaif_hw_check_tx_intr()
244 value = FIELD_GET(DP_UL_INT_MD_NOTREADY_MSK, intr_status); in t7xx_dpmaif_hw_check_tx_intr()
248 value = FIELD_GET(DP_UL_INT_MD_PWR_NOTREADY_MSK, intr_status); in t7xx_dpmaif_hw_check_tx_intr()
252 value = FIELD_GET(DP_UL_INT_ERR_MSK, intr_status); in t7xx_dpmaif_hw_check_tx_intr()
257 iowrite32(intr_status, hw_info->pcie_base + DPMAIF_AP_L2TISAR0); in t7xx_dpmaif_hw_check_tx_intr()
264 unsigned int intr_status, in t7xx_dpmaif_hw_check_rx_intr() argument
268 if (intr_status & DP_DL_INT_SKB_LEN_ERR) in t7xx_dpmaif_hw_check_rx_intr()
271 if (intr_status & DP_DL_INT_BATCNT_LEN_ERR) { in t7xx_dpmaif_hw_check_rx_intr()
[all …]
H A Dt7xx_hif_dpmaif.c83 struct dpmaif_hw_intr_st_para intr_status; in t7xx_dpmaif_irq_cb() local
88 memset(&intr_status, 0, sizeof(intr_status)); in t7xx_dpmaif_irq_cb()
91 if (t7xx_dpmaif_hw_get_intr_cnt(hw_info, &intr_status, isr_para->dlq_id) < 0) { in t7xx_dpmaif_irq_cb()
98 for (i = 0; i < intr_status.intr_cnt; i++) { in t7xx_dpmaif_irq_cb()
99 switch (intr_status.intr_types[i]) { in t7xx_dpmaif_irq_cb()
101 t7xx_dpmaif_irq_tx_done(dpmaif_ctrl, intr_status.intr_queues[i]); in t7xx_dpmaif_irq_cb()
133 t7xx_dpmaif_irq_rx_done(dpmaif_ctrl, intr_status.intr_queues[i]); in t7xx_dpmaif_irq_cb()
138 intr_status.intr_types[i]); in t7xx_dpmaif_irq_cb()
/openbmc/linux/drivers/scsi/qla4xxx/
H A Dql4_isr.c1025 uint32_t intr_status) in qla4_83xx_interrupt_service_routine() argument
1028 if (intr_status) { in qla4_83xx_interrupt_service_routine()
1050 uint32_t intr_status) in qla4_82xx_interrupt_service_routine() argument
1053 if ((intr_status & HSRX_RISC_IOCB_INT) && in qla4_82xx_interrupt_service_routine()
1058 if (intr_status & HSRX_RISC_MB_INT) in qla4_82xx_interrupt_service_routine()
1076 uint32_t intr_status) in qla4xxx_interrupt_service_routine() argument
1079 if (intr_status & CSR_SCSI_COMPLETION_INTR) in qla4xxx_interrupt_service_routine()
1083 if (intr_status & CSR_SCSI_PROCESSOR_INTR) { in qla4xxx_interrupt_service_routine()
1124 uint32_t intr_status; in qla4xxx_intr_handler() local
1148 intr_status = CSR_SCSI_COMPLETION_INTR; in qla4xxx_intr_handler()
[all …]
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Ddenali_spl.c42 uint32_t intr_status; in wait_for_irq() local
45 intr_status = readl(denali_flash_reg + INTR_STATUS(flash_bank)); in wait_for_irq()
47 if (intr_status & INTR__ECC_UNCOR_ERR) { in wait_for_irq()
52 if (intr_status & irq_mask) in wait_for_irq()
60 debug("Timeout with interrupt status %08x\n", intr_status); in wait_for_irq()
/openbmc/linux/drivers/input/serio/
H A Dsun4i-ps2.c98 u32 intr_status; in sun4i_ps2_interrupt() local
107 intr_status = readl(drvdata->reg_base + PS2_REG_LSTS); in sun4i_ps2_interrupt()
111 if (intr_status & PS2_LINE_ERROR_BIT) { in sun4i_ps2_interrupt()
112 rxflags = (intr_status & PS2_LINE_ERROR_BIT) ? SERIO_FRAME : 0; in sun4i_ps2_interrupt()
113 rxflags |= (intr_status & PS2_LSTS_PARERR) ? SERIO_PARITY : 0; in sun4i_ps2_interrupt()
114 rxflags |= (intr_status & PS2_LSTS_PARERR) ? SERIO_TIMEOUT : 0; in sun4i_ps2_interrupt()
134 writel(intr_status, drvdata->reg_base + PS2_REG_LSTS); in sun4i_ps2_interrupt()
/openbmc/qemu/hw/misc/
H A Daspeed_xdma.c86 xdma->regs[TO_REG(axc->intr_status)] |= axc->intr_complete; in aspeed_xdma_write()
100 } else if (addr == axc->intr_status) { in aspeed_xdma_write()
139 xdma->regs[TO_REG(axc->intr_status)] = XDMA_IRQ_ENG_STAT_RESET; in aspeed_xdma_reset()
165 axc->intr_status = XDMA_AST2600_IRQ_STATUS; in aspeed_2600_xdma_class_init()
188 axc->intr_status = XDMA_IRQ_ENG_STAT; in aspeed_2500_xdma_class_init()
210 axc->intr_status = XDMA_IRQ_ENG_STAT; in aspeed_2400_xdma_class_init()
/openbmc/linux/drivers/iio/adc/
H A Dbcm_iproc_adc.c138 u32 intr_status; in iproc_adc_interrupt_thread() local
148 regmap_read(adc_priv->regmap, IPROC_INTERRUPT_STATUS, &intr_status); in iproc_adc_interrupt_thread()
150 intr_status = intr_status & intr_mask; in iproc_adc_interrupt_thread()
151 channel_intr_status = (intr_status & IPROC_ADC_INTR_MASK) >> in iproc_adc_interrupt_thread()
165 u32 intr_status; in iproc_adc_interrupt_handler() local
172 regmap_read(adc_priv->regmap, IPROC_INTERRUPT_STATUS, &intr_status); in iproc_adc_interrupt_handler()
174 intr_status); in iproc_adc_interrupt_handler()
176 intr_channels = (intr_status & IPROC_ADC_INTR_MASK) >> IPROC_ADC_INTR; in iproc_adc_interrupt_handler()
/openbmc/linux/drivers/scsi/bfa/
H A Dbfa_hw_cb.c23 bfa_regs->intr_status = (kva + HOSTFN0_INT_STATUS); in bfa_hwcb_reginit()
26 bfa_regs->intr_status = (kva + HOSTFN1_INT_STATUS); in bfa_hwcb_reginit()
35 bfa->iocfc.bfa_regs.intr_status); in bfa_hwcb_reqq_ack_msix()
49 bfa->iocfc.bfa_regs.intr_status); in bfa_hwcb_rspq_ack_msix()
H A Dbfa_hw_ct.c33 bfa_regs->intr_status = (kva + HOSTFN0_INT_STATUS); in bfa_hwct_reginit()
36 bfa_regs->intr_status = (kva + HOSTFN1_INT_STATUS); in bfa_hwct_reginit()
47 bfa_regs->intr_status = (kva + CT2_HOSTFN_INT_STATUS); in bfa_hwct2_reginit()
/openbmc/linux/drivers/net/ethernet/silan/
H A Dsc92031.c289 u32 intr_status; member
624 priv->intr_status = 0; in _sc92031_reset()
838 u32 intr_status, intr_mask; in sc92031_tasklet() local
840 intr_status = priv->intr_status; in sc92031_tasklet()
847 if (intr_status & TxOK) in sc92031_tasklet()
850 if (intr_status & RxOK) in sc92031_tasklet()
853 if (intr_status & RxOverflow) in sc92031_tasklet()
856 if (intr_status & TimeOut) { in sc92031_tasklet()
861 if (intr_status & (LinkFail | LinkOK)) in sc92031_tasklet()
878 u32 intr_status, intr_mask; in sc92031_interrupt() local
[all …]
/openbmc/linux/drivers/input/touchscreen/
H A Dbcm_iproc_tsc.c191 u32 intr_status; in iproc_touchscreen_interrupt() local
198 regmap_read(priv->regmap, INTERRUPT_STATUS, &intr_status); in iproc_touchscreen_interrupt()
199 intr_status &= TS_PEN_INTR_MASK | TS_FIFO_INTR_MASK; in iproc_touchscreen_interrupt()
200 if (intr_status == 0) in iproc_touchscreen_interrupt()
204 regmap_write(priv->regmap, INTERRUPT_STATUS, intr_status); in iproc_touchscreen_interrupt()
206 if (intr_status & TS_PEN_INTR_MASK) { in iproc_touchscreen_interrupt()
221 if (intr_status & TS_FIFO_INTR_MASK) { in iproc_touchscreen_interrupt()
/openbmc/linux/drivers/spi/
H A Dspi-cadence.c360 u32 intr_status; in cdns_spi_irq() local
363 intr_status = cdns_spi_read(xspi, CDNS_SPI_ISR); in cdns_spi_irq()
364 cdns_spi_write(xspi, CDNS_SPI_ISR, intr_status); in cdns_spi_irq()
366 if (intr_status & CDNS_SPI_IXR_MODF) { in cdns_spi_irq()
374 } else if (intr_status & CDNS_SPI_IXR_TXOW) { in cdns_spi_irq()
539 u32 intr_status; in cdns_target_abort() local
541 intr_status = cdns_spi_read(xspi, CDNS_SPI_ISR); in cdns_target_abort()
542 cdns_spi_write(xspi, CDNS_SPI_ISR, intr_status); in cdns_target_abort()
/openbmc/linux/drivers/net/ethernet/adaptec/
H A Dstarfire.c575 static void netdev_error(struct net_device *dev, int intr_status);
579 static void netdev_error(struct net_device *dev, int intr_status);
1312 u32 intr_status = readl(ioaddr + IntrClear); in intr_handler() local
1316 dev->name, intr_status); in intr_handler()
1318 if (intr_status == 0 || intr_status == (u32) -1) in intr_handler()
1323 if (intr_status & (IntrRxDone | IntrRxEmpty)) { in intr_handler()
1397 if (intr_status & IntrStatsMax) in intr_handler()
1401 if (intr_status & IntrLinkChange) in intr_handler()
1405 if (intr_status & IntrAbnormalSummary) in intr_handler()
1406 netdev_error(dev, intr_status); in intr_handler()
[all …]
/openbmc/linux/drivers/net/ethernet/dec/tulip/
H A Dwinbond-840.c329 static void netdev_error(struct net_device *dev, int intr_status);
1107 u32 intr_status = ioread32(ioaddr + IntrStatus); in intr_handler() local
1110 iowrite32(intr_status & 0x001ffff, ioaddr + IntrStatus); in intr_handler()
1113 netdev_dbg(dev, "Interrupt, status %04x\n", intr_status); in intr_handler()
1115 if ((intr_status & (NormalIntr|AbnormalIntr)) == 0) in intr_handler()
1120 if (intr_status & (RxIntr | RxNoBuf)) in intr_handler()
1122 if (intr_status & RxNoBuf) in intr_handler()
1125 if (intr_status & (TxNoBuf | TxIntr) && in intr_handler()
1133 if (intr_status & (AbnormalIntr | TxFIFOUnderflow | SystemError | in intr_handler()
1135 netdev_error(dev, intr_status); in intr_handler()
[all …]
/openbmc/linux/drivers/net/ethernet/renesas/
H A Dsh_eth.c1584 static int sh_eth_rx(struct net_device *ndev, u32 intr_status, int *quota) in sh_eth_rx() argument
1705 if (intr_status & EESR_RDE && !mdp->cd->no_xdfar) { in sh_eth_rx()
1767 static void sh_eth_error(struct net_device *ndev, u32 intr_status) in sh_eth_error() argument
1772 if (intr_status & EESR_TWB) { in sh_eth_error()
1774 if (intr_status & EESR_TABT) { /* Transmit Abort int */ in sh_eth_error()
1780 if (intr_status & EESR_RABT) { in sh_eth_error()
1782 if (intr_status & EESR_RFRMER) { in sh_eth_error()
1788 if (intr_status & EESR_TDE) { in sh_eth_error()
1794 if (intr_status & EESR_TFE) { in sh_eth_error()
1800 if (intr_status & EESR_RDE) { in sh_eth_error()
[all …]
/openbmc/linux/drivers/net/ethernet/packetengines/
H A Dhamachi.c560 static void hamachi_error(struct net_device *dev, int intr_status);
1320 u32 intr_status = readl(ioaddr + InterruptClear); in hamachi_interrupt() local
1324 dev->name, intr_status); in hamachi_interrupt()
1326 if (intr_status == 0) in hamachi_interrupt()
1331 if (intr_status & IntrRxDone) in hamachi_interrupt()
1334 if (intr_status & IntrTxDone){ in hamachi_interrupt()
1374 if (intr_status & in hamachi_interrupt()
1377 hamachi_error(dev, intr_status); in hamachi_interrupt()
1381 dev->name, intr_status); in hamachi_interrupt()
1626 static void hamachi_error(struct net_device *dev, int intr_status) in hamachi_error() argument
[all …]
/openbmc/linux/drivers/input/misc/
H A Dcma3000_d0x.c107 int datax, datay, dataz, intr_status; in cma3000_thread_irq() local
110 intr_status = CMA3000_READ(data, CMA3000_INTSTATUS, "interrupt status"); in cma3000_thread_irq()
111 if (intr_status < 0) in cma3000_thread_irq()
115 if (intr_status & CMA3000_INTSTATUS_FFDET) { in cma3000_thread_irq()
/openbmc/qemu/hw/scsi/
H A Dmptsas.c62 uint32_t state = s->intr_status & ~(s->intr_mask | MPI_HIS_IOP_DOORBELL_STATUS); in mptsas_update_interrupt()
120 s->intr_status |= MPI_HIS_REPLY_MESSAGE_INTERRUPT; in mptsas_post_reply()
123 s->intr_status |= MPI_HIS_DOORBELL_INTERRUPT; in mptsas_post_reply()
138 s->intr_status |= MPI_HIS_DOORBELL_INTERRUPT; in mptsas_reply()
155 s->intr_status |= MPI_HIS_REPLY_MESSAGE_INTERRUPT; in mptsas_turbo_reply()
811 s->intr_status = 0; in mptsas_soft_reset()
843 assert(s->intr_status & MPI_HIS_DOORBELL_INTERRUPT); in mptsas_doorbell_read()
890 s->intr_status |= MPI_HIS_DOORBELL_INTERRUPT; in mptsas_doorbell_write()
968 s->intr_status &= ~MPI_HIS_DOORBELL_INTERRUPT; in mptsas_interrupt_status_write()
973 assert(s->intr_status & MPI_HIS_DOORBELL_INTERRUPT); in mptsas_interrupt_status_write()
[all …]

123