Lines Matching full: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()
480 int result; in ps3_system_bus_init() local
489 result = device_register(&ps3_system_bus); in ps3_system_bus_init()
490 BUG_ON(result); in ps3_system_bus_init()
492 result = bus_register(&ps3_system_bus_type); in ps3_system_bus_init()
493 BUG_ON(result); in ps3_system_bus_init()
496 return result; in ps3_system_bus_init()
509 int result; in ps3_alloc_coherent() local
523 result = ps3_dma_map(dev->d_region, virt_addr, size, dma_handle, in ps3_alloc_coherent()
527 if (result) { in ps3_alloc_coherent()
529 __func__, __LINE__, result); in ps3_alloc_coherent()
563 int result; in ps3_sb_map_page() local
567 result = ps3_dma_map(dev->d_region, (unsigned long)ptr, size, in ps3_sb_map_page()
572 if (result) { in ps3_sb_map_page()
574 __func__, __LINE__, result); in ps3_sb_map_page()
586 int result; in ps3_ioc0_map_page() local
606 result = ps3_dma_map(dev->d_region, (unsigned long)ptr, size, in ps3_ioc0_map_page()
609 if (result) { in ps3_ioc0_map_page()
611 __func__, __LINE__, result); in ps3_ioc0_map_page()
620 int result; in ps3_unmap_page() local
622 result = ps3_dma_unmap(dev->d_region, dma_addr, size); in ps3_unmap_page()
624 if (result) { in ps3_unmap_page()
626 __func__, __LINE__, result); in ps3_unmap_page()
642 int result = ps3_dma_map(dev->d_region, sg_phys(sg), in ps3_sb_map_sg()
645 if (result) { in ps3_sb_map_sg()
647 __func__, __LINE__, result); in ps3_sb_map_sg()
735 int result; in ps3_system_bus_device_register() local
771 result = device_register(&dev->core); in ps3_system_bus_device_register()
772 return result; in ps3_system_bus_device_register()
779 int result; in ps3_system_bus_driver_register() local
788 result = driver_register(&drv->core); in ps3_system_bus_driver_register()
790 return result; in ps3_system_bus_driver_register()