/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 | 112 int devoff, irt; in xlp_irq_to_irt() local 190 irt = -1; in xlp_irq_to_irt() 192 irt = val & 0xffff; in xlp_irq_to_irt() 196 irt = irt + 1; break; in xlp_irq_to_irt() 198 irt = irt + 2; break; in xlp_irq_to_irt() 200 irt = irt + 3; break; in xlp_irq_to_irt() 206 irt = PIC_IRT_PCIE_LINK_INDEX(irq - in xlp_irq_to_irt() 209 irt = -1; in xlp_irq_to_irt() 211 return irt; in xlp_irq_to_irt()
|
/arch/mips/pci/ |
D | msi-xlp.c | 299 int msivec, irt, lirq, xirq, ret; in xlp_setup_msi() local 313 irt = PIC_9XX_IRT_PCIE_LINK_INDEX(link); in xlp_setup_msi() 315 irt = PIC_IRT_PCIE_LINK_INDEX(link); in xlp_setup_msi() 316 nlm_setup_pic_irq(node, lirq, lirq, irt); in xlp_setup_msi() 317 nlm_pic_init_irt(nlm_get_node(node)->picbase, irt, lirq, in xlp_setup_msi() 470 int irq, i, irt, msixvec, val; in xlp_init_node_msi_irqs() local 502 irt = PIC_IRT_PCIE_MSIX_INDEX(msixvec); in xlp_init_node_msi_irqs() 503 nlm_pic_init_irt(nodep->picbase, irt, in xlp_init_node_msi_irqs()
|
/arch/mips/include/asm/netlogic/ |
D | common.h | 95 void nlm_setup_pic_irq(int node, int picirq, int irq, int irt);
|