Lines Matching refs:result
172 int result; in ps3_virq_setup() local
187 result = -ENOMEM; in ps3_virq_setup()
194 result = irq_set_chip_data(*virq, pd); in ps3_virq_setup()
196 if (result) { in ps3_virq_setup()
204 return result; in ps3_virq_setup()
209 return result; in ps3_virq_setup()
246 int result; in ps3_irq_plug_setup() local
249 result = ps3_virq_setup(cpu, outlet, virq); in ps3_irq_plug_setup()
251 if (result) { in ps3_irq_plug_setup()
260 result = lv1_connect_irq_plug_ext(pd->ppe_id, pd->thread_id, *virq, in ps3_irq_plug_setup()
263 if (result) { in ps3_irq_plug_setup()
265 __func__, __LINE__, ps3_result(result)); in ps3_irq_plug_setup()
266 result = -EPERM; in ps3_irq_plug_setup()
270 return result; in ps3_irq_plug_setup()
275 return result; in ps3_irq_plug_setup()
290 int result; in ps3_irq_plug_destroy() local
298 result = lv1_disconnect_irq_plug_ext(pd->ppe_id, pd->thread_id, virq); in ps3_irq_plug_destroy()
300 if (result) in ps3_irq_plug_destroy()
302 __func__, __LINE__, ps3_result(result)); in ps3_irq_plug_destroy()
306 return result; in ps3_irq_plug_destroy()
323 int result; in ps3_event_receive_port_setup() local
326 result = lv1_construct_event_receive_port(&outlet); in ps3_event_receive_port_setup()
328 if (result) { in ps3_event_receive_port_setup()
330 __func__, __LINE__, ps3_result(result)); in ps3_event_receive_port_setup()
332 return result; in ps3_event_receive_port_setup()
335 result = ps3_irq_plug_setup(cpu, outlet, virq); in ps3_event_receive_port_setup()
336 BUG_ON(result); in ps3_event_receive_port_setup()
338 return result; in ps3_event_receive_port_setup()
353 int result; in ps3_event_receive_port_destroy() local
359 result = lv1_destruct_event_receive_port(virq_to_hw(virq)); in ps3_event_receive_port_destroy()
361 if (result) in ps3_event_receive_port_destroy()
363 __func__, __LINE__, ps3_result(result)); in ps3_event_receive_port_destroy()
371 return result; in ps3_event_receive_port_destroy()
395 int result; in ps3_sb_event_receive_port_setup() local
397 result = ps3_event_receive_port_setup(cpu, virq); in ps3_sb_event_receive_port_setup()
399 if (result) in ps3_sb_event_receive_port_setup()
400 return result; in ps3_sb_event_receive_port_setup()
402 result = lv1_connect_interrupt_event_receive_port(dev->bus_id, in ps3_sb_event_receive_port_setup()
405 if (result) { in ps3_sb_event_receive_port_setup()
408 ps3_result(result)); in ps3_sb_event_receive_port_setup()
411 return result; in ps3_sb_event_receive_port_setup()
426 int result; in ps3_sb_event_receive_port_destroy() local
431 result = lv1_disconnect_interrupt_event_receive_port(dev->bus_id, in ps3_sb_event_receive_port_destroy()
434 if (result) in ps3_sb_event_receive_port_destroy()
437 ps3_result(result)); in ps3_sb_event_receive_port_destroy()
439 result = ps3_event_receive_port_destroy(virq); in ps3_sb_event_receive_port_destroy()
440 BUG_ON(result); in ps3_sb_event_receive_port_destroy()
447 result = ps3_virq_destroy(virq); in ps3_sb_event_receive_port_destroy()
448 BUG_ON(result); in ps3_sb_event_receive_port_destroy()
451 return result; in ps3_sb_event_receive_port_destroy()
469 int result; in ps3_io_irq_setup() local
472 result = lv1_construct_io_irq_outlet(interrupt_id, &outlet); in ps3_io_irq_setup()
474 if (result) { in ps3_io_irq_setup()
476 __func__, __LINE__, ps3_result(result)); in ps3_io_irq_setup()
477 return result; in ps3_io_irq_setup()
480 result = ps3_irq_plug_setup(cpu, outlet, virq); in ps3_io_irq_setup()
481 BUG_ON(result); in ps3_io_irq_setup()
483 return result; in ps3_io_irq_setup()
489 int result; in ps3_io_irq_destroy() local
499 result = ps3_irq_plug_destroy(virq); in ps3_io_irq_destroy()
500 BUG_ON(result); in ps3_io_irq_destroy()
502 result = lv1_destruct_io_irq_outlet(outlet); in ps3_io_irq_destroy()
504 if (result) in ps3_io_irq_destroy()
506 __func__, __LINE__, ps3_result(result)); in ps3_io_irq_destroy()
508 return result; in ps3_io_irq_destroy()
526 int result; in ps3_vuart_irq_setup() local
534 result = lv1_configure_virtual_uart_irq(lpar_addr, &outlet); in ps3_vuart_irq_setup()
536 if (result) { in ps3_vuart_irq_setup()
538 __func__, __LINE__, ps3_result(result)); in ps3_vuart_irq_setup()
539 return result; in ps3_vuart_irq_setup()
542 result = ps3_irq_plug_setup(cpu, outlet, virq); in ps3_vuart_irq_setup()
543 BUG_ON(result); in ps3_vuart_irq_setup()
545 return result; in ps3_vuart_irq_setup()
551 int result; in ps3_vuart_irq_destroy() local
554 result = lv1_deconfigure_virtual_uart_irq(); in ps3_vuart_irq_destroy()
556 if (result) { in ps3_vuart_irq_destroy()
558 __func__, __LINE__, ps3_result(result)); in ps3_vuart_irq_destroy()
559 return result; in ps3_vuart_irq_destroy()
562 result = ps3_irq_plug_destroy(virq); in ps3_vuart_irq_destroy()
563 BUG_ON(result); in ps3_vuart_irq_destroy()
565 return result; in ps3_vuart_irq_destroy()
582 int result; in ps3_spe_irq_setup() local
587 result = lv1_get_spe_irq_outlet(spe_id, class, &outlet); in ps3_spe_irq_setup()
589 if (result) { in ps3_spe_irq_setup()
591 __func__, __LINE__, ps3_result(result)); in ps3_spe_irq_setup()
592 return result; in ps3_spe_irq_setup()
595 result = ps3_irq_plug_setup(cpu, outlet, virq); in ps3_spe_irq_setup()
596 BUG_ON(result); in ps3_spe_irq_setup()
598 return result; in ps3_spe_irq_setup()
603 int result; in ps3_spe_irq_destroy() local
607 result = ps3_irq_plug_destroy(virq); in ps3_spe_irq_destroy()
608 BUG_ON(result); in ps3_spe_irq_destroy()
610 return result; in ps3_spe_irq_destroy()
742 int result; in ps3_init_IRQ() local
760 result = lv1_configure_irq_state_bitmap(pd->ppe_id, in ps3_init_IRQ()
763 if (result) in ps3_init_IRQ()
766 ps3_result(result)); in ps3_init_IRQ()
774 int result; in ps3_shutdown_IRQ() local
779 result = lv1_configure_irq_state_bitmap(ppe_id, thread_id, 0); in ps3_shutdown_IRQ()
782 __LINE__, ppe_id, thread_id, cpu, ps3_result(result)); in ps3_shutdown_IRQ()