Lines Matching refs:chiplet
323 static unsigned long gru_chiplet_cpu_to_mmr(int chiplet, int cpu, int *corep) in gru_chiplet_cpu_to_mmr() argument
338 if (chiplet == 0) { in gru_chiplet_cpu_to_mmr()
341 } else if (chiplet == 1) { in gru_chiplet_cpu_to_mmr()
368 static int gru_chiplet_setup_tlb_irq(int chiplet, char *irq_name, in gru_chiplet_setup_tlb_irq() argument
372 int irq = IRQ_GRU + chiplet; in gru_chiplet_setup_tlb_irq()
375 mmr = gru_chiplet_cpu_to_mmr(chiplet, cpu, &core); in gru_chiplet_setup_tlb_irq()
379 if (gru_irq_count[chiplet] == 0) { in gru_chiplet_setup_tlb_irq()
380 gru_chip[chiplet].name = irq_name; in gru_chiplet_setup_tlb_irq()
381 ret = irq_set_chip(irq, &gru_chip[chiplet]); in gru_chiplet_setup_tlb_irq()
395 gru_irq_count[chiplet]++; in gru_chiplet_setup_tlb_irq()
400 static void gru_chiplet_teardown_tlb_irq(int chiplet, int cpu, int blade) in gru_chiplet_teardown_tlb_irq() argument
403 int core, irq = IRQ_GRU + chiplet; in gru_chiplet_teardown_tlb_irq()
405 if (gru_irq_count[chiplet] == 0) in gru_chiplet_teardown_tlb_irq()
408 mmr = gru_chiplet_cpu_to_mmr(chiplet, cpu, &core); in gru_chiplet_teardown_tlb_irq()
412 if (--gru_irq_count[chiplet] == 0) in gru_chiplet_teardown_tlb_irq()
418 static int gru_chiplet_setup_tlb_irq(int chiplet, char *irq_name, in gru_chiplet_setup_tlb_irq() argument
425 mmr = gru_chiplet_cpu_to_mmr(chiplet, cpu, &core); in gru_chiplet_setup_tlb_irq()
443 gru_base[blade]->bs_grus[chiplet].gs_irq[core] = irq; in gru_chiplet_setup_tlb_irq()
447 static void gru_chiplet_teardown_tlb_irq(int chiplet, int cpu, int blade) in gru_chiplet_teardown_tlb_irq() argument
452 mmr = gru_chiplet_cpu_to_mmr(chiplet, cpu, &core); in gru_chiplet_teardown_tlb_irq()
454 irq = gru_base[blade]->bs_grus[chiplet].gs_irq[core]; in gru_chiplet_teardown_tlb_irq()