Home
last modified time | relevance | path

Searched refs:irq_stat (Results 1 – 25 of 27) sorted by relevance

12

/drivers/gpio/
Dgpio-mxc.c248 static void mxc_gpio_irq_handler(struct mxc_gpio_port *port, u32 irq_stat) in mxc_gpio_irq_handler() argument
250 while (irq_stat != 0) { in mxc_gpio_irq_handler()
251 int irqoffset = fls(irq_stat) - 1; in mxc_gpio_irq_handler()
258 irq_stat &= ~(1 << irqoffset); in mxc_gpio_irq_handler()
265 u32 irq_stat; in mx3_gpio_irq_handler() local
271 irq_stat = readl(port->base + GPIO_ISR) & readl(port->base + GPIO_IMR); in mx3_gpio_irq_handler()
273 mxc_gpio_irq_handler(port, irq_stat); in mx3_gpio_irq_handler()
281 u32 irq_msk, irq_stat; in mx2_gpio_irq_handler() local
293 irq_stat = readl(port->base + GPIO_ISR) & irq_msk; in mx2_gpio_irq_handler()
294 if (irq_stat) in mx2_gpio_irq_handler()
[all …]
Dgpio-sodaville.c79 unsigned long irq_stat = readl(sd->gpio_pub_base + GPSTR); in sdv_gpio_pub_irq_handler() local
82 irq_stat &= readl(sd->gpio_pub_base + GPIO_INT); in sdv_gpio_pub_irq_handler()
83 if (!irq_stat) in sdv_gpio_pub_irq_handler()
86 for_each_set_bit(irq_bit, &irq_stat, 32) in sdv_gpio_pub_irq_handler()
Dgpio-mxs.c147 u32 irq_stat; in mxs_gpio_irq_handler() local
152 irq_stat = readl(port->base + PINCTRL_IRQSTAT(port)) & in mxs_gpio_irq_handler()
155 while (irq_stat != 0) { in mxs_gpio_irq_handler()
156 int irqoffset = fls(irq_stat) - 1; in mxs_gpio_irq_handler()
161 irq_stat &= ~(1 << irqoffset); in mxs_gpio_irq_handler()
Dgpio-pca953x.c200 DECLARE_BITMAP(irq_stat, MAX_LINE);
762 bitmap_copy(old_stat, chip->irq_stat, gc->ngpio); in pca953x_irq_pending()
768 bitmap_copy(chip->irq_stat, new_stat, gc->ngpio); in pca953x_irq_pending()
819 DECLARE_BITMAP(irq_stat, MAX_LINE); in pca953x_irq_setup()
838 ret = pca953x_read_regs(chip, chip->regs->input, irq_stat); in pca953x_irq_setup()
848 bitmap_and(chip->irq_stat, irq_stat, reg_direction, chip->gpio_chip.ngpio); in pca953x_irq_setup()
/drivers/ata/
Dsata_sil24.c606 u32 irq_enabled, irq_mask, irq_stat; in sil24_exec_polled_cmd() local
625 irq_stat = ata_wait_register(ap, port + PORT_IRQ_STAT, irq_mask, 0x0, in sil24_exec_polled_cmd()
629 irq_stat >>= PORT_IRQ_RAW_SHIFT; in sil24_exec_polled_cmd()
631 if (irq_stat & PORT_IRQ_COMPLETE) in sil24_exec_polled_cmd()
637 if (irq_stat & PORT_IRQ_ERROR) in sil24_exec_polled_cmd()
981 u32 irq_stat; in sil24_error_intr() local
984 irq_stat = readl(port + PORT_IRQ_STAT); in sil24_error_intr()
985 writel(irq_stat, port + PORT_IRQ_STAT); in sil24_error_intr()
992 ata_ehi_push_desc(ehi, "irq_stat 0x%08x", irq_stat); in sil24_error_intr()
994 if (irq_stat & PORT_IRQ_SDB_NOTIFY) { in sil24_error_intr()
[all …]
Dsata_inic162x.c326 static void inic_host_err_intr(struct ata_port *ap, u8 irq_stat, u16 idma_stat) in inic_host_err_intr() argument
335 irq_stat, idma_stat); in inic_host_err_intr()
339 if (irq_stat & (PIRQ_OFFLINE | PIRQ_ONLINE)) { in inic_host_err_intr()
386 u8 irq_stat; in inic_host_intr() local
390 irq_stat = readb(port_base + PORT_IRQ_STAT); in inic_host_intr()
391 writeb(irq_stat, port_base + PORT_IRQ_STAT); in inic_host_intr()
394 if (unlikely((irq_stat & PIRQ_ERR) || (idma_stat & IDMA_STAT_ERR))) in inic_host_intr()
395 inic_host_err_intr(ap, irq_stat, idma_stat); in inic_host_intr()
416 qc ? qc->tf.command : 0xff, irq_stat, idma_stat); in inic_host_intr()
Dsata_nv.c851 static int nv_host_intr(struct ata_port *ap, u8 irq_stat) in nv_host_intr() argument
856 if (unlikely(irq_stat & (NV_INT_ADDED | NV_INT_REMOVED))) { in nv_host_intr()
862 if (!(irq_stat & NV_INT_DEV)) in nv_host_intr()
895 u8 irq_stat = readb(host->iomap[NV_MMIO_BAR] + NV_INT_STATUS_CK804) in nv_adma_interrupt() local
897 handled += nv_host_intr(ap, irq_stat); in nv_adma_interrupt()
903 u8 irq_stat = readb(host->iomap[NV_MMIO_BAR] + NV_INT_STATUS_CK804) in nv_adma_interrupt() local
910 irq_stat |= NV_INT_DEV; in nv_adma_interrupt()
911 handled += nv_host_intr(ap, irq_stat); in nv_adma_interrupt()
1476 static irqreturn_t nv_do_interrupt(struct ata_host *host, u8 irq_stat) in nv_do_interrupt() argument
1481 handled += nv_host_intr(host->ports[i], irq_stat); in nv_do_interrupt()
[all …]
Dpata_cmd64x.c244 u8 irq_stat; in cmd64x_sff_irq_check() local
247 pci_read_config_byte(pdev, irq_reg, &irq_stat); in cmd64x_sff_irq_check()
249 return irq_stat & irq_mask; in cmd64x_sff_irq_check()
263 u8 irq_stat; in cmd64x_sff_irq_clear() local
268 pci_read_config_byte(pdev, irq_reg, &irq_stat); in cmd64x_sff_irq_clear()
Dpata_cmd640.c168 u8 irq_stat, irq_mask = ap->port_no ? 0x10 : 0x04; in cmd640_sff_irq_check() local
170 pci_read_config_byte(pdev, irq_reg, &irq_stat); in cmd640_sff_irq_check()
172 return irq_stat & irq_mask; in cmd640_sff_irq_check()
Dlibahci.c1708 static void ahci_error_intr(struct ata_port *ap, u32 irq_stat) in ahci_error_intr() argument
1743 ata_ehi_push_desc(host_ehi, "irq_stat 0x%08x", irq_stat); in ahci_error_intr()
1752 irq_stat &= ~PORT_IRQ_IF_ERR; in ahci_error_intr()
1754 if (irq_stat & PORT_IRQ_TF_ERR) { in ahci_error_intr()
1768 if (irq_stat & PORT_IRQ_UNK_FIS) { in ahci_error_intr()
1778 if (sata_pmp_attached(ap) && (irq_stat & PORT_IRQ_BAD_PMP)) { in ahci_error_intr()
1784 if (irq_stat & (PORT_IRQ_HBUS_ERR | PORT_IRQ_HBUS_DATA_ERR)) { in ahci_error_intr()
1790 if (irq_stat & PORT_IRQ_IF_ERR) { in ahci_error_intr()
1801 if (irq_stat & (PORT_IRQ_CONNECT | PORT_IRQ_PHYRDY)) { in ahci_error_intr()
1804 irq_stat & PORT_IRQ_CONNECT ? in ahci_error_intr()
[all …]
Dahci_xgene.c589 u32 irq_stat, irq_masked; in xgene_ahci_irq_intr() local
595 irq_stat = readl(mmio + HOST_IRQ_STAT); in xgene_ahci_irq_intr()
596 if (!irq_stat) in xgene_ahci_irq_intr()
599 irq_masked = irq_stat & hpriv->port_map; in xgene_ahci_irq_intr()
607 writel(irq_stat, mmio + HOST_IRQ_STAT); in xgene_ahci_irq_intr()
Dahci.c1532 u32 irq_stat, irq_masked; in ahci_thunderx_irq_handler() local
1537 irq_stat = readl(mmio + HOST_IRQ_STAT); in ahci_thunderx_irq_handler()
1538 if (!irq_stat) in ahci_thunderx_irq_handler()
1542 irq_masked = irq_stat & hpriv->port_map; in ahci_thunderx_irq_handler()
1547 writel(irq_stat, mmio + HOST_IRQ_STAT); in ahci_thunderx_irq_handler()
1548 irq_stat = readl(mmio + HOST_IRQ_STAT); in ahci_thunderx_irq_handler()
1550 } while (irq_stat); in ahci_thunderx_irq_handler()
/drivers/mailbox/
Dpl320-ipc.c101 u32 irq_stat; in ipc_handler() local
104 irq_stat = readl_relaxed(ipc_base + IPCMMIS(1)); in ipc_handler()
105 if (irq_stat & MBOX_MASK(IPC_TX_MBOX)) { in ipc_handler()
109 if (irq_stat & MBOX_MASK(IPC_RX_MBOX)) { in ipc_handler()
/drivers/scsi/
Dnsp32.c1055 unsigned short irq_stat; in DEF_SCSI_QCMD() local
1071 irq_stat = nsp32_read2(base, IRQ_STATUS); in DEF_SCSI_QCMD()
1072 nsp32_dbg(NSP32_DEBUG_INIT, "irq_stat 0x%x", irq_stat); in DEF_SCSI_QCMD()
1073 } while (irq_stat & IRQSTATUS_ANY_IRQ); in DEF_SCSI_QCMD()
1166 unsigned short auto_stat, irq_stat, trans_stat; in do_nsp32_isr() local
1178 irq_stat = nsp32_read2(base, IRQ_STATUS); in do_nsp32_isr()
1180 "enter IRQ: %d, IRQstatus: 0x%x", irq, irq_stat); in do_nsp32_isr()
1182 if ((irq_stat & IRQSTATUS_ANY_IRQ) == 0) { in do_nsp32_isr()
1184 "shared interrupt: irq other 0x%x", irq_stat); in do_nsp32_isr()
1194 if ((irq_stat == 0xffff) && (trans_stat == 0xffff)) { in do_nsp32_isr()
[all …]
/drivers/thermal/intel/
Dintel_bxt_pmic_thermal.c160 u8 reg_val, mask, irq_stat; in pmic_thermal_irq_handler() local
182 irq_stat = ((u8)ret & mask); in pmic_thermal_irq_handler()
184 if (!irq_stat) in pmic_thermal_irq_handler()
/drivers/gpu/drm/pl111/
Dpl111_display.c28 u32 irq_stat; in pl111_irq() local
31 irq_stat = readl(priv->regs + CLCD_PL111_MIS); in pl111_irq()
33 if (!irq_stat) in pl111_irq()
36 if (irq_stat & CLCD_IRQ_NEXTBASE_UPDATE) { in pl111_irq()
43 writel(irq_stat, priv->regs + CLCD_PL111_ICR); in pl111_irq()
/drivers/dma/
Duniphier-mdmac.c180 u32 irq_stat; in uniphier_mdmac_interrupt() local
184 irq_stat = readl(mc->reg_ch_base + UNIPHIER_MDMAC_CH_IRQ_DET); in uniphier_mdmac_interrupt()
190 if (!irq_stat) { in uniphier_mdmac_interrupt()
196 writel(irq_stat, mc->reg_ch_base + UNIPHIER_MDMAC_CH_IRQ_REQ); in uniphier_mdmac_interrupt()
/drivers/clocksource/
Dtimer-ti-dm-systimer.c40 u8 irq_stat; member
398 t->irq_stat = OMAP_TIMER_V1_STAT_OFFSET; in dmtimer_systimer_setup()
403 t->irq_stat = OMAP_TIMER_V2_IRQSTATUS; in dmtimer_systimer_setup()
441 writel_relaxed(OMAP_TIMER_INT_OVERFLOW, t->base + t->irq_stat); in dmtimer_clockevent_interrupt()
481 writel_relaxed(OMAP_TIMER_INT_OVERFLOW, t->base + t->irq_stat); in dmtimer_clockevent_shutdown()
/drivers/i2c/busses/
Di2c-mt65xx.c248 u16 irq_stat; /* interrupt status */ member
860 i2c->irq_stat = 0; in mtk_i2c_do_transfer()
1056 if (i2c->irq_stat & (I2C_HS_NACKERR | I2C_ACKERR)) { in mtk_i2c_do_transfer()
1147 i2c->irq_stat |= intr_stat; in mtk_i2c_irq()
1149 if (i2c->ignore_restart_irq && (i2c->irq_stat & restart_flag)) { in mtk_i2c_irq()
1151 i2c->irq_stat = 0; in mtk_i2c_irq()
1155 if (i2c->irq_stat & (I2C_TRANSAC_COMP | restart_flag)) in mtk_i2c_irq()
/drivers/pci/controller/
Dpci-ftpci100.c307 unsigned int irq_stat, reg, i; in faraday_pci_irq_handler() local
310 irq_stat = reg >> PCI_CTRL2_INTSTS_SHIFT; in faraday_pci_irq_handler()
315 if ((irq_stat & BIT(i)) == 0) in faraday_pci_irq_handler()
/drivers/isdn/hardware/mISDN/
Dnetjet.c443 recv_tiger(struct tiger_hw *card, u8 irq_stat) in recv_tiger() argument
450 card->last_is0 |= (irq_stat & NJ_IRQM0_WR_MASK); in recv_tiger()
452 if (irq_stat & NJ_IRQM0_WR_END) in recv_tiger()
655 send_tiger(struct tiger_hw *card, u8 irq_stat) in send_tiger() argument
660 if ((irq_stat & card->last_is0) & NJ_IRQM0_RD_MASK) { in send_tiger()
662 card->name, irq_stat, card->last_is0); in send_tiger()
666 card->last_is0 |= (irq_stat & NJ_IRQM0_RD_MASK); in send_tiger()
/drivers/gpu/drm/meson/
Dmeson_dw_hdmi.c144 u32 irq_stat; member
543 dw_hdmi->irq_stat = stat; in dw_hdmi_top_irq()
560 u32 stat = dw_hdmi->irq_stat; in dw_hdmi_top_thread_irq()
/drivers/usb/host/
Disp1362-hcd.c1030 isp1362_hcd->irq_stat[ISP1362_INT_SOF]++; in isp1362_irq()
1050 isp1362_hcd->irq_stat[ISP1362_INT_ISTL0]++; in isp1362_irq()
1064 isp1362_hcd->irq_stat[ISP1362_INT_ISTL1]++; in isp1362_irq()
1089 isp1362_hcd->irq_stat[ISP1362_INT_INTL]++; in isp1362_irq()
1112 isp1362_hcd->irq_stat[ISP1362_INT_ATL]++; in isp1362_irq()
1131 isp1362_hcd->irq_stat[ISP1362_INT_OPR]++; in isp1362_irq()
1156 isp1362_hcd->irq_stat[ISP1362_INT_SUSP]++; in isp1362_irq()
1164 isp1362_hcd->irq_stat[ISP1362_INT_CLKRDY]++; in isp1362_irq()
2090 if (isp1362_hcd->irq_stat[i]) in isp1362_show()
2092 ISP1362_INT_NAME(i), isp1362_hcd->irq_stat[i]); in isp1362_show()
/drivers/mtd/nand/raw/
Ddenali.c1098 u32 irq_stat; in denali_exec_waitrdy() local
1101 irq_stat = denali_wait_for_irq(denali, INTR__INT_ACT); in denali_exec_waitrdy()
1106 return irq_stat & INTR__INT_ACT ? 0 : -EIO; in denali_exec_waitrdy()
/drivers/media/i2c/cx25840/
Dcx25840-core.c2640 u8 irq_stat, aud_stat, aud_en, ir_stat, ir_en; in cx23885_irq_handler() local
2645 irq_stat = cx25840_read(c, CX23885_PIN_CTRL_IRQ_REG); in cx23885_irq_handler()
2647 irq_stat & CX23885_PIN_CTRL_IRQ_IR_STAT ? "ir" : " ", in cx23885_irq_handler()
2648 irq_stat & CX23885_PIN_CTRL_IRQ_AUD_STAT ? "aud" : " ", in cx23885_irq_handler()
2649 irq_stat & CX23885_PIN_CTRL_IRQ_VID_STAT ? "vid" : " "); in cx23885_irq_handler()
2657 if (irq_stat & CX23885_PIN_CTRL_IRQ_IR_STAT) { in cx23885_irq_handler()
2676 if (irq_stat & CX23885_PIN_CTRL_IRQ_AUD_STAT) { in cx23885_irq_handler()
2688 if (irq_stat & CX23885_PIN_CTRL_IRQ_VID_STAT) { in cx23885_irq_handler()
2695 irq_stat = cx25840_read(c, CX23885_PIN_CTRL_IRQ_REG); in cx23885_irq_handler()
2697 irq_stat & CX23885_PIN_CTRL_IRQ_IR_STAT ? "ir" : " ", in cx23885_irq_handler()
[all …]

12