Searched refs:irt (Results 1 – 4 of 4) sorted by relevance
/arch/mips/netlogic/xlp/ |
D | nlm_hal.c | 65 int devoff, irt; in nlm_irq_to_irt() local 108 irt = nlm_read_reg(pcibase, XLP_PCI_IRTINFO_REG) & 0xffff; in nlm_irq_to_irt() 111 irt = irt + 1; in nlm_irq_to_irt() 114 irt = PIC_IRT_PCIE_LINK_INDEX(irq - PIC_PCIE_LINK_0_IRQ); in nlm_irq_to_irt() 116 irt = -1; in nlm_irq_to_irt() 118 return irt; in nlm_irq_to_irt()
|
/arch/mips/netlogic/common/ |
D | irq.c | 79 int irt; member 90 nlm_pic_enable_irt(pd->node->picbase, pd->irt); in xlp_pic_enable() 101 nlm_pic_disable_irt(pd->node->picbase, pd->irt); in xlp_pic_disable() 126 nlm_pic_ack(pd->node->picbase, pd->irt); in xlp_pic_unmask() 179 void nlm_setup_pic_irq(int node, int picirq, int irq, int irt) in nlm_setup_pic_irq() argument 187 pic_data->irt = irt; in nlm_setup_pic_irq() 206 int i, irt; in nlm_init_node_irqs() local 214 irt = nlm_irq_to_irt(i); in nlm_init_node_irqs() 215 if (irt == -1) in nlm_init_node_irqs() 217 nlm_setup_pic_irq(node, i, i, irt); in nlm_init_node_irqs() [all …]
|
/arch/mips/include/asm/netlogic/xlr/ |
D | pic.h | 214 nlm_irt_to_irq(int irt) in nlm_irt_to_irq() argument 217 return PIC_INTR_TO_IRQ(irt); in nlm_irt_to_irq() 221 nlm_pic_enable_irt(uint64_t base, int irt) in nlm_pic_enable_irt() argument 225 reg = nlm_read_reg(base, PIC_IRT_1(irt)); in nlm_pic_enable_irt() 226 nlm_write_reg(base, PIC_IRT_1(irt), reg | (1u << 31)); in nlm_pic_enable_irt() 230 nlm_pic_disable_irt(uint64_t base, int irt) in nlm_pic_disable_irt() argument 234 reg = nlm_read_reg(base, PIC_IRT_1(irt)); in nlm_pic_disable_irt() 235 nlm_write_reg(base, PIC_IRT_1(irt), reg & ~(1u << 31)); in nlm_pic_disable_irt() 250 nlm_pic_ack(uint64_t base, int irt) in nlm_pic_ack() argument 252 nlm_write_reg(base, PIC_INT_ACK, 1u << irt); in nlm_pic_ack() [all …]
|
/arch/mips/include/asm/netlogic/xlp-hal/ |
D | pic.h | 226 nlm_set_irt_to_cpu(uint64_t base, int irt, int cpu) in nlm_set_irt_to_cpu() argument 230 val = nlm_read_pic_reg(base, PIC_IRT(irt)); in nlm_set_irt_to_cpu() 235 nlm_write_pic_reg(base, PIC_IRT(irt), val); in nlm_set_irt_to_cpu() 296 nlm_pic_enable_irt(uint64_t base, int irt) in nlm_pic_enable_irt() argument 300 reg = nlm_read_pic_reg(base, PIC_IRT(irt)); in nlm_pic_enable_irt() 301 nlm_write_pic_reg(base, PIC_IRT(irt), reg | (1u << 31)); in nlm_pic_enable_irt() 305 nlm_pic_disable_irt(uint64_t base, int irt) in nlm_pic_disable_irt() argument 309 reg = nlm_read_pic_reg(base, PIC_IRT(irt)); in nlm_pic_disable_irt() 310 nlm_write_pic_reg(base, PIC_IRT(irt), reg & ~((uint64_t)1 << 31)); in nlm_pic_disable_irt() 334 nlm_pic_init_irt(uint64_t base, int irt, int irq, int hwt, int en) in nlm_pic_init_irt() argument [all …]
|