Lines Matching refs:virq

170 			  unsigned int *virq)  in ps3_virq_setup()  argument
182 *virq = irq_create_mapping(NULL, outlet); in ps3_virq_setup()
184 if (!*virq) { in ps3_virq_setup()
192 outlet, cpu, *virq); in ps3_virq_setup()
194 result = irq_set_chip_data(*virq, pd); in ps3_virq_setup()
202 ps3_chip_mask(irq_get_irq_data(*virq)); in ps3_virq_setup()
207 irq_dispose_mapping(*virq); in ps3_virq_setup()
219 static int ps3_virq_destroy(unsigned int virq) in ps3_virq_destroy() argument
221 const struct ps3_private *pd = irq_get_chip_data(virq); in ps3_virq_destroy()
224 __LINE__, pd->ppe_id, pd->thread_id, virq); in ps3_virq_destroy()
226 irq_set_chip_data(virq, NULL); in ps3_virq_destroy()
227 irq_dispose_mapping(virq); in ps3_virq_destroy()
244 unsigned int *virq) in ps3_irq_plug_setup() argument
249 result = ps3_virq_setup(cpu, outlet, virq); in ps3_irq_plug_setup()
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()
273 ps3_virq_destroy(*virq); in ps3_irq_plug_setup()
288 int ps3_irq_plug_destroy(unsigned int virq) in ps3_irq_plug_destroy() argument
291 const struct ps3_private *pd = irq_get_chip_data(virq); in ps3_irq_plug_destroy()
294 __LINE__, pd->ppe_id, pd->thread_id, virq); in ps3_irq_plug_destroy()
296 ps3_chip_mask(irq_get_irq_data(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()
304 ps3_virq_destroy(virq); in ps3_irq_plug_destroy()
321 int ps3_event_receive_port_setup(enum ps3_cpu_binding cpu, unsigned int *virq) in ps3_event_receive_port_setup() argument
331 *virq = 0; in ps3_event_receive_port_setup()
335 result = ps3_irq_plug_setup(cpu, outlet, virq); in ps3_event_receive_port_setup()
351 int ps3_event_receive_port_destroy(unsigned int virq) in ps3_event_receive_port_destroy() argument
355 DBG(" -> %s:%d virq %u\n", __func__, __LINE__, virq); in ps3_event_receive_port_destroy()
357 ps3_chip_mask(irq_get_irq_data(virq)); in ps3_event_receive_port_destroy()
359 result = lv1_destruct_event_receive_port(virq_to_hw(virq)); in ps3_event_receive_port_destroy()
374 int ps3_send_event_locally(unsigned int virq) in ps3_send_event_locally() argument
376 return lv1_send_event_locally(virq_to_hw(virq)); in ps3_send_event_locally()
391 enum ps3_cpu_binding cpu, unsigned int *virq) in ps3_sb_event_receive_port_setup() argument
397 result = ps3_event_receive_port_setup(cpu, virq); in ps3_sb_event_receive_port_setup()
403 dev->dev_id, virq_to_hw(*virq), dev->interrupt_id); in ps3_sb_event_receive_port_setup()
409 ps3_event_receive_port_destroy(*virq); in ps3_sb_event_receive_port_setup()
410 *virq = 0; in ps3_sb_event_receive_port_setup()
415 dev->interrupt_id, *virq); in ps3_sb_event_receive_port_setup()
422 unsigned int virq) in ps3_sb_event_receive_port_destroy() argument
429 dev->interrupt_id, virq); in ps3_sb_event_receive_port_destroy()
432 dev->dev_id, virq_to_hw(virq), dev->interrupt_id); in ps3_sb_event_receive_port_destroy()
439 result = ps3_event_receive_port_destroy(virq); in ps3_sb_event_receive_port_destroy()
447 result = ps3_virq_destroy(virq); in ps3_sb_event_receive_port_destroy()
467 unsigned int *virq) in ps3_io_irq_setup() argument
480 result = ps3_irq_plug_setup(cpu, outlet, virq); in ps3_io_irq_setup()
487 int ps3_io_irq_destroy(unsigned int virq) in ps3_io_irq_destroy() argument
490 unsigned long outlet = virq_to_hw(virq); in ps3_io_irq_destroy()
492 ps3_chip_mask(irq_get_irq_data(virq)); in ps3_io_irq_destroy()
499 result = ps3_irq_plug_destroy(virq); in ps3_io_irq_destroy()
524 unsigned int *virq) in ps3_vuart_irq_setup() argument
542 result = ps3_irq_plug_setup(cpu, outlet, virq); in ps3_vuart_irq_setup()
549 int ps3_vuart_irq_destroy(unsigned int virq) in ps3_vuart_irq_destroy() argument
553 ps3_chip_mask(irq_get_irq_data(virq)); in ps3_vuart_irq_destroy()
562 result = ps3_irq_plug_destroy(virq); in ps3_vuart_irq_destroy()
580 unsigned int class, unsigned int *virq) in ps3_spe_irq_setup() argument
595 result = ps3_irq_plug_setup(cpu, outlet, virq); in ps3_spe_irq_setup()
601 int ps3_spe_irq_destroy(unsigned int virq) in ps3_spe_irq_destroy() argument
605 ps3_chip_mask(irq_get_irq_data(virq)); in ps3_spe_irq_destroy()
607 result = ps3_irq_plug_destroy(virq); in ps3_spe_irq_destroy()
659 static int ps3_host_map(struct irq_domain *h, unsigned int virq, in ps3_host_map() argument
663 virq); in ps3_host_map()
665 irq_set_chip_and_handler(virq, &ps3_irq_chip, handle_fasteoi_irq); in ps3_host_map()
682 void __init ps3_register_ipi_debug_brk(unsigned int cpu, unsigned int virq) in ps3_register_ipi_debug_brk() argument
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()
692 void __init ps3_register_ipi_irq(unsigned int cpu, unsigned int virq) in ps3_register_ipi_irq() argument
696 set_bit(63 - virq, &pd->ipi_mask); in ps3_register_ipi_irq()
699 cpu, virq, pd->ipi_mask); in ps3_register_ipi_irq()