Lines Matching full:pd

97 	struct ps3_private *pd = irq_data_get_irq_chip_data(d);  in ps3_chip_mask()  local
101 pd->thread_id, d->irq); in ps3_chip_mask()
104 clear_bit(63 - d->irq, &pd->bmp.mask); in ps3_chip_mask()
105 lv1_did_update_interrupt_mask(pd->ppe_id, pd->thread_id); in ps3_chip_mask()
118 struct ps3_private *pd = irq_data_get_irq_chip_data(d); in ps3_chip_unmask() local
122 pd->thread_id, d->irq); in ps3_chip_unmask()
125 set_bit(63 - d->irq, &pd->bmp.mask); in ps3_chip_unmask()
126 lv1_did_update_interrupt_mask(pd->ppe_id, pd->thread_id); in ps3_chip_unmask()
139 const struct ps3_private *pd = irq_data_get_irq_chip_data(d); in ps3_chip_eoi() local
143 if (!test_bit(63 - d->irq, &pd->ipi_mask)) in ps3_chip_eoi()
144 lv1_end_of_interrupt_ext(pd->ppe_id, pd->thread_id, d->irq); in ps3_chip_eoi()
173 struct ps3_private *pd; in ps3_virq_setup() local
180 pd = &per_cpu(ps3_private, cpu); in ps3_virq_setup()
194 result = irq_set_chip_data(*virq, pd); in ps3_virq_setup()
221 const struct ps3_private *pd = irq_get_chip_data(virq); in ps3_virq_destroy() local
224 __LINE__, pd->ppe_id, pd->thread_id, virq); in ps3_virq_destroy()
247 struct ps3_private *pd; in ps3_irq_plug_setup() local
256 pd = irq_get_chip_data(*virq); in ps3_irq_plug_setup()
260 result = lv1_connect_irq_plug_ext(pd->ppe_id, pd->thread_id, *virq, in ps3_irq_plug_setup()
291 const struct ps3_private *pd = irq_get_chip_data(virq); in ps3_irq_plug_destroy() local
294 __LINE__, pd->ppe_id, pd->thread_id, virq); in ps3_irq_plug_destroy()
298 result = lv1_disconnect_irq_plug_ext(pd->ppe_id, pd->thread_id, virq); in ps3_irq_plug_destroy()
635 static void _dump_bmp(struct ps3_private* pd, const char* func, int line) in _dump_bmp() argument
639 spin_lock_irqsave(&pd->bmp_lock, flags); in _dump_bmp()
640 _dump_64_bmp("stat", &pd->bmp.status, pd->thread_id, func, line); in _dump_bmp()
641 _dump_64_bmp("mask", (u64*)&pd->bmp.mask, pd->thread_id, func, line); in _dump_bmp()
642 spin_unlock_irqrestore(&pd->bmp_lock, flags); in _dump_bmp()
646 static void __maybe_unused _dump_mask(struct ps3_private *pd, in _dump_mask() argument
651 spin_lock_irqsave(&pd->bmp_lock, flags); in _dump_mask()
652 _dump_64_bmp("mask", (u64*)&pd->bmp.mask, pd->thread_id, func, line); in _dump_mask()
653 spin_unlock_irqrestore(&pd->bmp_lock, flags); in _dump_mask()
656 static void dump_bmp(struct ps3_private* pd) {}; in dump_bmp() argument
684 struct ps3_private *pd = &per_cpu(ps3_private, cpu); in ps3_register_ipi_debug_brk() local
686 set_bit(63 - virq, &pd->ipi_debug_brk_mask); in ps3_register_ipi_debug_brk()
689 cpu, virq, pd->ipi_debug_brk_mask); in ps3_register_ipi_debug_brk()
694 struct ps3_private *pd = &per_cpu(ps3_private, cpu); in ps3_register_ipi_irq() local
696 set_bit(63 - virq, &pd->ipi_mask); in ps3_register_ipi_irq()
699 cpu, virq, pd->ipi_mask); in ps3_register_ipi_irq()
704 struct ps3_private *pd = this_cpu_ptr(&ps3_private); in ps3_get_irq() local
705 u64 x = (pd->bmp.status & pd->bmp.mask); in ps3_get_irq()
710 if (x & pd->ipi_debug_brk_mask) in ps3_get_irq()
711 x &= pd->ipi_debug_brk_mask; in ps3_get_irq()
718 __LINE__, pd->thread_id); in ps3_get_irq()
734 if (test_bit(63 - plug, &pd->ipi_mask)) in ps3_get_irq()
735 lv1_end_of_interrupt_ext(pd->ppe_id, pd->thread_id, plug); in ps3_get_irq()
750 struct ps3_private *pd = &per_cpu(ps3_private, cpu); in ps3_init_IRQ() local
752 lv1_get_logical_ppe_id(&pd->ppe_id); in ps3_init_IRQ()
753 pd->thread_id = get_hard_smp_processor_id(cpu); in ps3_init_IRQ()
754 spin_lock_init(&pd->bmp_lock); in ps3_init_IRQ()
757 __func__, __LINE__, pd->ppe_id, pd->thread_id, in ps3_init_IRQ()
758 ps3_mm_phys_to_lpar(__pa(&pd->bmp))); in ps3_init_IRQ()
760 result = lv1_configure_irq_state_bitmap(pd->ppe_id, in ps3_init_IRQ()
761 pd->thread_id, ps3_mm_phys_to_lpar(__pa(&pd->bmp))); in ps3_init_IRQ()