Home
last modified time | relevance | path

Searched refs:irqidx (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/arch/sparc/kernel/
H A Dleon_pci_grpci1.c318 u32 irqidx; in grpci1_mask_irq() local
321 irqidx = (u32)data->chip_data - 1; in grpci1_mask_irq()
322 if (irqidx > 3) /* only mask PCI interrupts here */ in grpci1_mask_irq()
324 irqidx += IRQ_MASK_BIT; in grpci1_mask_irq()
326 REGSTORE(priv->regs->irq, REGLOAD(priv->regs->irq) & ~(1 << irqidx)); in grpci1_mask_irq()
331 u32 irqidx; in grpci1_unmask_irq() local
334 irqidx = (u32)data->chip_data - 1; in grpci1_unmask_irq()
335 if (irqidx > 3) /* only unmask PCI interrupts here */ in grpci1_unmask_irq()
337 irqidx += IRQ_MASK_BIT; in grpci1_unmask_irq()
339 REGSTORE(priv->regs->irq, REGLOAD(priv->regs->irq) | (1 << irqidx)); in grpci1_unmask_irq()
H A Dleon_pci_grpci2.c457 unsigned int irqidx; in grpci2_mask_irq() local
460 irqidx = (unsigned int)data->chip_data - 1; in grpci2_mask_irq()
461 if (irqidx > 3) /* only mask PCI interrupts here */ in grpci2_mask_irq()
465 REGSTORE(priv->regs->ctrl, REGLOAD(priv->regs->ctrl) & ~(1 << irqidx)); in grpci2_mask_irq()
472 unsigned int irqidx; in grpci2_unmask_irq() local
475 irqidx = (unsigned int)data->chip_data - 1; in grpci2_unmask_irq()
476 if (irqidx > 3) /* only unmask PCI interrupts here */ in grpci2_unmask_irq()
480 REGSTORE(priv->regs->ctrl, REGLOAD(priv->regs->ctrl) | (1 << irqidx)); in grpci2_unmask_irq()