/arch/mips/netlogic/common/ |
D | irq.c | 83 int irt; member 94 nlm_pic_enable_irt(pd->node->picbase, pd->irt); in xlp_pic_enable() 105 nlm_pic_disable_irt(pd->node->picbase, pd->irt); in xlp_pic_disable() 130 nlm_pic_ack(pd->node->picbase, pd->irt); in xlp_pic_unmask() 184 void nlm_setup_pic_irq(int node, int picirq, int irq, int irt) in nlm_setup_pic_irq() argument 192 pic_data->irt = irt; in nlm_setup_pic_irq() 214 int i, irt; in nlm_init_node_irqs() local 220 irt = nlm_irq_to_irt(i); in nlm_init_node_irqs() 221 if (irt == -1) /* unused irq */ in nlm_init_node_irqs() 224 if (irt == -2) /* not a direct PIC irq */ in nlm_init_node_irqs() [all …]
|
/arch/mips/include/asm/netlogic/xlr/ |
D | pic.h | 216 nlm_irt_to_irq(int irt) in nlm_irt_to_irq() argument 219 return PIC_INTR_TO_IRQ(irt); in nlm_irt_to_irq() 223 nlm_pic_enable_irt(uint64_t base, int irt) in nlm_pic_enable_irt() argument 227 reg = nlm_read_reg(base, PIC_IRT_1(irt)); in nlm_pic_enable_irt() 228 nlm_write_reg(base, PIC_IRT_1(irt), reg | (1u << 31)); in nlm_pic_enable_irt() 232 nlm_pic_disable_irt(uint64_t base, int irt) in nlm_pic_disable_irt() argument 236 reg = nlm_read_reg(base, PIC_IRT_1(irt)); in nlm_pic_disable_irt() 237 nlm_write_reg(base, PIC_IRT_1(irt), reg & ~(1u << 31)); in nlm_pic_disable_irt() 252 nlm_pic_ack(uint64_t base, int irt) in nlm_pic_ack() argument 254 nlm_write_reg(base, PIC_INT_ACK, 1u << irt); in nlm_pic_ack() [all …]
|
/arch/mips/include/asm/netlogic/xlp-hal/ |
D | pic.h | 303 nlm_pic_enable_irt(uint64_t base, int irt) in nlm_pic_enable_irt() argument 308 reg = nlm_read_pic_reg(base, PIC_9XX_IRT(irt)); in nlm_pic_enable_irt() 309 nlm_write_pic_reg(base, PIC_9XX_IRT(irt), reg | (1 << 22)); in nlm_pic_enable_irt() 311 reg = nlm_read_pic_reg(base, PIC_IRT(irt)); in nlm_pic_enable_irt() 312 nlm_write_pic_reg(base, PIC_IRT(irt), reg | (1u << 31)); in nlm_pic_enable_irt() 317 nlm_pic_disable_irt(uint64_t base, int irt) in nlm_pic_disable_irt() argument 322 reg = nlm_read_pic_reg(base, PIC_9XX_IRT(irt)); in nlm_pic_disable_irt() 324 nlm_write_pic_reg(base, PIC_9XX_IRT(irt), reg); in nlm_pic_disable_irt() 326 reg = nlm_read_pic_reg(base, PIC_IRT(irt)); in nlm_pic_disable_irt() 328 nlm_write_pic_reg(base, PIC_IRT(irt), reg); in nlm_pic_disable_irt() [all …]
|
/arch/mips/netlogic/xlp/ |
D | nlm_hal.c | 100 int devoff, irt; in xlp_irq_to_irt() local 174 irt = nlm_read_reg(pcibase, XLP_PCI_IRTINFO_REG) & 0xffff; in xlp_irq_to_irt() 178 irt = irt + 1; break; in xlp_irq_to_irt() 180 irt = irt + 2; break; in xlp_irq_to_irt() 182 irt = irt + 3; break; in xlp_irq_to_irt() 187 irt = PIC_IRT_PCIE_LINK_INDEX(irq - in xlp_irq_to_irt() 190 irt = -1; in xlp_irq_to_irt() 192 return irt; in xlp_irq_to_irt()
|
/arch/mips/pci/ |
D | msi-xlp.c | 308 int msivec, irt, lirq, xirq, ret; in xlp_setup_msi() local 322 irt = PIC_9XX_IRT_PCIE_LINK_INDEX(link); in xlp_setup_msi() 324 irt = PIC_IRT_PCIE_LINK_INDEX(link); in xlp_setup_msi() 325 nlm_setup_pic_irq(node, lirq, lirq, irt); in xlp_setup_msi() 326 nlm_pic_init_irt(nlm_get_node(node)->picbase, irt, lirq, in xlp_setup_msi() 479 int irq, i, irt, msixvec, val; in xlp_init_node_msi_irqs() local 511 irt = PIC_IRT_PCIE_MSIX_INDEX(msixvec); in xlp_init_node_msi_irqs() 512 nlm_pic_init_irt(nodep->picbase, irt, in xlp_init_node_msi_irqs()
|
/arch/mips/include/asm/netlogic/ |
D | common.h | 98 void nlm_setup_pic_irq(int node, int picirq, int irq, int irt);
|