Home
last modified time | relevance | path

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

12

/linux-2.6.39/arch/x86/include/asm/
Dhardirq.h31 DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
38 #define inc_irq_stat(member) percpu_inc(irq_stat.member)
40 #define local_softirq_pending() percpu_read(irq_stat.__softirq_pending)
44 #define set_softirq_pending(x) percpu_write(irq_stat.__softirq_pending, (x))
45 #define or_softirq_pending(x) percpu_or(irq_stat.__softirq_pending, (x))
/linux-2.6.39/arch/arm/plat-mxc/
Dgpio.c158 static void mxc_gpio_irq_handler(struct mxc_gpio_port *port, u32 irq_stat) in mxc_gpio_irq_handler() argument
162 while (irq_stat != 0) { in mxc_gpio_irq_handler()
163 int irqoffset = fls(irq_stat) - 1; in mxc_gpio_irq_handler()
170 irq_stat &= ~(1 << irqoffset); in mxc_gpio_irq_handler()
177 u32 irq_stat; in mx3_gpio_irq_handler() local
180 irq_stat = __raw_readl(port->base + GPIO_ISR) & in mx3_gpio_irq_handler()
183 mxc_gpio_irq_handler(port, irq_stat); in mx3_gpio_irq_handler()
190 u32 irq_msk, irq_stat; in mx2_gpio_irq_handler() local
199 irq_stat = __raw_readl(port[i].base + GPIO_ISR) & irq_msk; in mx2_gpio_irq_handler()
200 if (irq_stat) in mx2_gpio_irq_handler()
[all …]
/linux-2.6.39/arch/arm/mach-gemini/
Dgpio.c131 unsigned int gpio_irq_no, irq_stat; in gpio_irq_handler() local
133 irq_stat = __raw_readl(GPIO_BASE(port) + GPIO_INT_STAT); in gpio_irq_handler()
136 for (; irq_stat != 0; irq_stat >>= 1, gpio_irq_no++) { in gpio_irq_handler()
138 if ((irq_stat & 1) == 0) in gpio_irq_handler()
/linux-2.6.39/arch/arm/mach-ebsa110/include/mach/
Dsystem.h25 const char *irq_stat = (char *)0xff000000; in arch_idle() local
31 while (!*irq_stat); in arch_idle()
/linux-2.6.39/include/linux/
Dirq_cpustat.h20 extern irq_cpustat_t irq_stat[]; /* defined in asm/hardirq.h */
21 #define __IRQ_STAT(cpu, member) (irq_stat[cpu].member)
/linux-2.6.39/arch/tile/include/asm/
Dhardirq.h38 DECLARE_PER_CPU(irq_cpustat_t, irq_stat);
41 #define __IRQ_STAT(cpu, member) (per_cpu(irq_stat, cpu).member)
/linux-2.6.39/arch/powerpc/include/asm/
Dhardirq.h15 DECLARE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
19 #define local_softirq_pending() __get_cpu_var(irq_stat).__softirq_pending
/linux-2.6.39/drivers/ide/
Dcmd64x.c207 u8 irq_stat = 0; in cmd64x_clear_irq() local
209 (void) pci_read_config_byte(dev, irq_reg, &irq_stat); in cmd64x_clear_irq()
211 (void) pci_write_config_byte(dev, irq_reg, irq_stat | irq_mask); in cmd64x_clear_irq()
234 u8 irq_stat = 0; in cmd64x_test_irq() local
236 (void) pci_read_config_byte(dev, irq_reg, &irq_stat); in cmd64x_test_irq()
239 hwif->name, irq_stat, irq_mask); in cmd64x_test_irq()
241 return (irq_stat & irq_mask) ? 1 : 0; in cmd64x_test_irq()
/linux-2.6.39/arch/x86/kernel/
Dirq_64.c23 DEFINE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
24 EXPORT_PER_CPU_SYMBOL(irq_stat);
Dirq_32.c24 DEFINE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
25 EXPORT_PER_CPU_SYMBOL(irq_stat);
/linux-2.6.39/arch/powerpc/kernel/
Dirq.c80 DEFINE_PER_CPU_SHARED_ALIGNED(irq_cpustat_t, irq_stat);
81 EXPORT_PER_CPU_SYMBOL(irq_stat);
213 seq_printf(p, "%10u ", per_cpu(irq_stat, j).timer_irqs); in arch_show_interrupts()
218 seq_printf(p, "%10u ", per_cpu(irq_stat, j).spurious_irqs); in arch_show_interrupts()
223 seq_printf(p, "%10u ", per_cpu(irq_stat, j).pmu_irqs); in arch_show_interrupts()
228 seq_printf(p, "%10u ", per_cpu(irq_stat, j).mce_exceptions); in arch_show_interrupts()
239 u64 sum = per_cpu(irq_stat, cpu).timer_irqs; in arch_irq_stat_cpu()
241 sum += per_cpu(irq_stat, cpu).pmu_irqs; in arch_irq_stat_cpu()
242 sum += per_cpu(irq_stat, cpu).mce_exceptions; in arch_irq_stat_cpu()
243 sum += per_cpu(irq_stat, cpu).spurious_irqs; in arch_irq_stat_cpu()
[all …]
/linux-2.6.39/drivers/ata/
Dsata_sil24.c614 u32 irq_enabled, irq_mask, irq_stat; in sil24_exec_polled_cmd() local
633 irq_stat = ata_wait_register(ap, port + PORT_IRQ_STAT, irq_mask, 0x0, in sil24_exec_polled_cmd()
637 irq_stat >>= PORT_IRQ_RAW_SHIFT; in sil24_exec_polled_cmd()
639 if (irq_stat & PORT_IRQ_COMPLETE) in sil24_exec_polled_cmd()
645 if (irq_stat & PORT_IRQ_ERROR) in sil24_exec_polled_cmd()
988 u32 irq_stat; in sil24_error_intr() local
991 irq_stat = readl(port + PORT_IRQ_STAT); in sil24_error_intr()
992 writel(irq_stat, port + PORT_IRQ_STAT); in sil24_error_intr()
999 ata_ehi_push_desc(ehi, "irq_stat 0x%08x", irq_stat); in sil24_error_intr()
1001 if (irq_stat & PORT_IRQ_SDB_NOTIFY) { in sil24_error_intr()
[all …]
Dsata_inic162x.c310 static void inic_host_err_intr(struct ata_port *ap, u8 irq_stat, u16 idma_stat) in inic_host_err_intr() argument
319 irq_stat, idma_stat); in inic_host_err_intr()
323 if (irq_stat & (PIRQ_OFFLINE | PIRQ_ONLINE)) { in inic_host_err_intr()
370 u8 irq_stat; in inic_host_intr() local
374 irq_stat = readb(port_base + PORT_IRQ_STAT); in inic_host_intr()
375 writeb(irq_stat, port_base + PORT_IRQ_STAT); in inic_host_intr()
378 if (unlikely((irq_stat & PIRQ_ERR) || (idma_stat & IDMA_STAT_ERR))) in inic_host_intr()
379 inic_host_err_intr(ap, irq_stat, idma_stat); in inic_host_intr()
401 qc ? qc->tf.command : 0xff, irq_stat, idma_stat); in inic_host_intr()
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()
Dsata_nv.c882 static int nv_host_intr(struct ata_port *ap, u8 irq_stat) in nv_host_intr() argument
887 if (unlikely(irq_stat & (NV_INT_ADDED | NV_INT_REMOVED))) { in nv_host_intr()
893 if (!(irq_stat & NV_INT_DEV)) in nv_host_intr()
926 u8 irq_stat = readb(host->iomap[NV_MMIO_BAR] + NV_INT_STATUS_CK804) in nv_adma_interrupt() local
928 handled += nv_host_intr(ap, irq_stat); in nv_adma_interrupt()
934 u8 irq_stat = readb(host->iomap[NV_MMIO_BAR] + NV_INT_STATUS_CK804) in nv_adma_interrupt() local
941 irq_stat |= NV_INT_DEV; in nv_adma_interrupt()
942 handled += nv_host_intr(ap, irq_stat); in nv_adma_interrupt()
1509 static irqreturn_t nv_do_interrupt(struct ata_host *host, u8 irq_stat) in nv_do_interrupt() argument
1514 handled += nv_host_intr(host->ports[i], irq_stat); in nv_do_interrupt()
[all …]
Dlibahci.c1481 static void ahci_error_intr(struct ata_port *ap, u32 irq_stat) in ahci_error_intr() argument
1517 ata_ehi_push_desc(host_ehi, "irq_stat 0x%08x", irq_stat); in ahci_error_intr()
1526 irq_stat &= ~PORT_IRQ_IF_ERR; in ahci_error_intr()
1528 if (irq_stat & PORT_IRQ_TF_ERR) { in ahci_error_intr()
1542 if (irq_stat & PORT_IRQ_UNK_FIS) { in ahci_error_intr()
1552 if (sata_pmp_attached(ap) && (irq_stat & PORT_IRQ_BAD_PMP)) { in ahci_error_intr()
1558 if (irq_stat & (PORT_IRQ_HBUS_ERR | PORT_IRQ_HBUS_DATA_ERR)) { in ahci_error_intr()
1564 if (irq_stat & PORT_IRQ_IF_ERR) { in ahci_error_intr()
1575 if (irq_stat & (PORT_IRQ_CONNECT | PORT_IRQ_PHYRDY)) { in ahci_error_intr()
1578 irq_stat & PORT_IRQ_CONNECT ? in ahci_error_intr()
[all …]
/linux-2.6.39/arch/arm/mach-mxs/
Dgpio.c138 u32 irq_stat; in mxs_gpio_irq_handler() local
144 irq_stat = __raw_readl(port->base + PINCTRL_IRQSTAT(port->id)) & in mxs_gpio_irq_handler()
147 while (irq_stat != 0) { in mxs_gpio_irq_handler()
148 int irqoffset = fls(irq_stat) - 1; in mxs_gpio_irq_handler()
150 irq_stat &= ~(1 << irqoffset); in mxs_gpio_irq_handler()
/linux-2.6.39/arch/tile/kernel/
Dirq.c40 DEFINE_PER_CPU(irq_cpustat_t, irq_stat) ____cacheline_internodealigned_in_smp;
41 EXPORT_PER_CPU_SYMBOL(irq_stat);
127 __get_cpu_var(irq_stat).irq_dev_intr_count++; in tile_dev_intr()
Dmessaging.c99 __get_cpu_var(irq_stat).irq_hv_msg_count++; in hv_message_intr()
/linux-2.6.39/drivers/gpio/
Dadp5588-gpio.c43 uint8_t irq_stat[3]; member
251 ret = adp5588_gpio_read_intstat(dev->client, dev->irq_stat); in adp5588_irq_handler()
253 memset(dev->irq_stat, 0, ARRAY_SIZE(dev->irq_stat)); in adp5588_irq_handler()
257 pending = dev->irq_stat[bank] & dev->irq_mask[bank]; in adp5588_irq_handler()
285 adp5588_gpio_read_intstat(client, dev->irq_stat); /* read to clear */ in adp5588_irq_setup()
Dpca953x.c68 uint16_t irq_stat; member
334 old_stat = chip->irq_stat; in pca953x_irq_pending()
340 chip->irq_stat = cur_stat; in pca953x_irq_pending()
382 &chip->irq_stat); in pca953x_irq_setup()
391 chip->irq_stat &= chip->reg_direction; in pca953x_irq_setup()
/linux-2.6.39/drivers/scsi/
Dnsp32.c1058 unsigned short irq_stat; in DEF_SCSI_QCMD() local
1074 irq_stat = nsp32_read2(base, IRQ_STATUS); in DEF_SCSI_QCMD()
1075 nsp32_dbg(NSP32_DEBUG_INIT, "irq_stat 0x%x", irq_stat); in DEF_SCSI_QCMD()
1076 } while (irq_stat & IRQSTATUS_ANY_IRQ); in DEF_SCSI_QCMD()
1167 unsigned short auto_stat, irq_stat, trans_stat; in do_nsp32_isr() local
1179 irq_stat = nsp32_read2(base, IRQ_STATUS); in do_nsp32_isr()
1181 "enter IRQ: %d, IRQstatus: 0x%x", irq, irq_stat); in do_nsp32_isr()
1183 if ((irq_stat & IRQSTATUS_ANY_IRQ) == 0) { in do_nsp32_isr()
1184 nsp32_dbg(NSP32_DEBUG_INTR, "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 …]
/linux-2.6.39/arch/mn10300/kernel/
Dmn10300-watchdog.c56 memcpy(tmp, irq_stat, sizeof(tmp)); in check_watchdog()
150 sum = irq_stat[cpu].__irq_count; in watchdog_interrupt()
/linux-2.6.39/drivers/media/video/cx25840/
Dcx25840-core.c1690 u8 irq_stat, aud_stat, aud_en, ir_stat, ir_en; in cx23885_irq_handler() local
1695 irq_stat = cx25840_read(c, CX23885_PIN_CTRL_IRQ_REG); in cx23885_irq_handler()
1697 irq_stat & CX23885_PIN_CTRL_IRQ_IR_STAT ? "ir" : " ", in cx23885_irq_handler()
1698 irq_stat & CX23885_PIN_CTRL_IRQ_AUD_STAT ? "aud" : " ", in cx23885_irq_handler()
1699 irq_stat & CX23885_PIN_CTRL_IRQ_VID_STAT ? "vid" : " "); in cx23885_irq_handler()
1707 if (irq_stat & CX23885_PIN_CTRL_IRQ_IR_STAT) { in cx23885_irq_handler()
1726 if (irq_stat & CX23885_PIN_CTRL_IRQ_AUD_STAT) { in cx23885_irq_handler()
1738 if (irq_stat & CX23885_PIN_CTRL_IRQ_VID_STAT) { in cx23885_irq_handler()
1745 irq_stat = cx25840_read(c, CX23885_PIN_CTRL_IRQ_REG); in cx23885_irq_handler()
1747 irq_stat & CX23885_PIN_CTRL_IRQ_IR_STAT ? "ir" : " ", in cx23885_irq_handler()
[all …]
/linux-2.6.39/drivers/mtd/nand/
Domap2.c480 u32 irq_stat; in omap_nand_irq() local
482 irq_stat = gpmc_read_status(GPMC_GET_IRQ_STATUS); in omap_nand_irq()
486 if (irq_stat & 0x2) in omap_nand_irq()
503 if (irq_stat & 0x2) in omap_nand_irq()
506 gpmc_cs_configure(info->gpmc_cs, GPMC_SET_IRQ_STATUS, irq_stat); in omap_nand_irq()
516 gpmc_cs_configure(info->gpmc_cs, GPMC_SET_IRQ_STATUS, irq_stat); in omap_nand_irq()

12