Home
last modified time | relevance | path

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

/Linux-v5.4/arch/sparc/kernel/
Dleon_pci_grpci1.c317 u32 irqidx; in grpci1_mask_irq() local
320 irqidx = (u32)data->chip_data - 1; in grpci1_mask_irq()
321 if (irqidx > 3) /* only mask PCI interrupts here */ in grpci1_mask_irq()
323 irqidx += IRQ_MASK_BIT; in grpci1_mask_irq()
325 REGSTORE(priv->regs->irq, REGLOAD(priv->regs->irq) & ~(1 << irqidx)); in grpci1_mask_irq()
330 u32 irqidx; in grpci1_unmask_irq() local
333 irqidx = (u32)data->chip_data - 1; in grpci1_unmask_irq()
334 if (irqidx > 3) /* only unmask PCI interrupts here */ in grpci1_unmask_irq()
336 irqidx += IRQ_MASK_BIT; in grpci1_unmask_irq()
338 REGSTORE(priv->regs->irq, REGLOAD(priv->regs->irq) | (1 << irqidx)); in grpci1_unmask_irq()
Dleon_pci_grpci2.c455 unsigned int irqidx; in grpci2_mask_irq() local
458 irqidx = (unsigned int)data->chip_data - 1; in grpci2_mask_irq()
459 if (irqidx > 3) /* only mask PCI interrupts here */ in grpci2_mask_irq()
463 REGSTORE(priv->regs->ctrl, REGLOAD(priv->regs->ctrl) & ~(1 << irqidx)); in grpci2_mask_irq()
470 unsigned int irqidx; in grpci2_unmask_irq() local
473 irqidx = (unsigned int)data->chip_data - 1; in grpci2_unmask_irq()
474 if (irqidx > 3) /* only unmask PCI interrupts here */ in grpci2_unmask_irq()
478 REGSTORE(priv->regs->ctrl, REGLOAD(priv->regs->ctrl) | (1 << irqidx)); in grpci2_unmask_irq()