Lines Matching refs:result
43 int result; in ps3_open_hv_device_sb() local
51 result = 0; in ps3_open_hv_device_sb()
59 result = 0; in ps3_open_hv_device_sb()
64 result = lv1_open_device(dev->bus_id, dev->dev_id, 0); in ps3_open_hv_device_sb()
66 if (result) { in ps3_open_hv_device_sb()
69 dev_name(&dev->core), ps3_result(result)); in ps3_open_hv_device_sb()
70 result = -EPERM; in ps3_open_hv_device_sb()
75 return result; in ps3_open_hv_device_sb()
80 int result; in ps3_close_hv_device_sb() local
88 result = 0; in ps3_close_hv_device_sb()
96 result = 0; in ps3_close_hv_device_sb()
101 result = lv1_close_device(dev->bus_id, dev->dev_id); in ps3_close_hv_device_sb()
102 BUG_ON(result); in ps3_close_hv_device_sb()
106 return result; in ps3_close_hv_device_sb()
111 int result; in ps3_open_hv_device_gpu() local
117 result = 0; in ps3_open_hv_device_gpu()
121 result = lv1_gpu_open(0); in ps3_open_hv_device_gpu()
123 if (result) { in ps3_open_hv_device_gpu()
125 __LINE__, ps3_result(result)); in ps3_open_hv_device_gpu()
126 result = -EPERM; in ps3_open_hv_device_gpu()
131 return result; in ps3_open_hv_device_gpu()
136 int result; in ps3_close_hv_device_gpu() local
142 result = 0; in ps3_close_hv_device_gpu()
146 result = lv1_gpu_close(); in ps3_close_hv_device_gpu()
147 BUG_ON(result); in ps3_close_hv_device_gpu()
151 return result; in ps3_close_hv_device_gpu()
243 int result; in ps3_sb_mmio_region_create() local
246 result = lv1_map_device_mmio_region(r->dev->bus_id, r->dev->dev_id, in ps3_sb_mmio_region_create()
250 if (result) { in ps3_sb_mmio_region_create()
252 __func__, __LINE__, ps3_result(result)); in ps3_sb_mmio_region_create()
257 return result; in ps3_sb_mmio_region_create()
274 int result; in ps3_sb_free_mmio_region() local
277 result = lv1_unmap_device_mmio_region(r->dev->bus_id, r->dev->dev_id, in ps3_sb_free_mmio_region()
280 if (result) in ps3_sb_free_mmio_region()
282 __func__, __LINE__, ps3_result(result)); in ps3_sb_free_mmio_region()
285 return result; in ps3_sb_free_mmio_region()
338 int result; in ps3_system_bus_match() local
343 result = dev->match_id == drv->match_id; in ps3_system_bus_match()
345 result = dev->match_sub_id == drv->match_sub_id && in ps3_system_bus_match()
348 if (result) in ps3_system_bus_match()
359 return result; in ps3_system_bus_match()
364 int result = 0; in ps3_system_bus_probe() local
375 result = drv->probe(dev); in ps3_system_bus_probe()
381 return result; in ps3_system_bus_probe()
481 int result; in ps3_system_bus_init() local
490 result = device_register(&ps3_system_bus); in ps3_system_bus_init()
491 BUG_ON(result); in ps3_system_bus_init()
493 result = bus_register(&ps3_system_bus_type); in ps3_system_bus_init()
494 BUG_ON(result); in ps3_system_bus_init()
497 return result; in ps3_system_bus_init()
510 int result; in ps3_alloc_coherent() local
524 result = ps3_dma_map(dev->d_region, virt_addr, size, dma_handle, in ps3_alloc_coherent()
528 if (result) { in ps3_alloc_coherent()
530 __func__, __LINE__, result); in ps3_alloc_coherent()
564 int result; in ps3_sb_map_page() local
568 result = ps3_dma_map(dev->d_region, (unsigned long)ptr, size, in ps3_sb_map_page()
573 if (result) { in ps3_sb_map_page()
575 __func__, __LINE__, result); in ps3_sb_map_page()
587 int result; in ps3_ioc0_map_page() local
607 result = ps3_dma_map(dev->d_region, (unsigned long)ptr, size, in ps3_ioc0_map_page()
610 if (result) { in ps3_ioc0_map_page()
612 __func__, __LINE__, result); in ps3_ioc0_map_page()
621 int result; in ps3_unmap_page() local
623 result = ps3_dma_unmap(dev->d_region, dma_addr, size); in ps3_unmap_page()
625 if (result) { in ps3_unmap_page()
627 __func__, __LINE__, result); in ps3_unmap_page()
643 int result = ps3_dma_map(dev->d_region, sg_phys(sg), in ps3_sb_map_sg()
646 if (result) { in ps3_sb_map_sg()
648 __func__, __LINE__, result); in ps3_sb_map_sg()
736 int result; in ps3_system_bus_device_register() local
772 result = device_register(&dev->core); in ps3_system_bus_device_register()
773 return result; in ps3_system_bus_device_register()
780 int result; in ps3_system_bus_driver_register() local
789 result = driver_register(&drv->core); in ps3_system_bus_driver_register()
791 return result; in ps3_system_bus_driver_register()