Lines Matching refs:result

55 	int result;  in ps3_open_hv_device_sb()  local
63 result = 0; in ps3_open_hv_device_sb()
71 result = 0; in ps3_open_hv_device_sb()
76 result = lv1_open_device(dev->bus_id, dev->dev_id, 0); in ps3_open_hv_device_sb()
78 if (result) { in ps3_open_hv_device_sb()
80 __LINE__, ps3_result(result)); in ps3_open_hv_device_sb()
81 result = -EPERM; in ps3_open_hv_device_sb()
86 return result; in ps3_open_hv_device_sb()
91 int result; in ps3_close_hv_device_sb() local
99 result = 0; in ps3_close_hv_device_sb()
107 result = 0; in ps3_close_hv_device_sb()
112 result = lv1_close_device(dev->bus_id, dev->dev_id); in ps3_close_hv_device_sb()
113 BUG_ON(result); in ps3_close_hv_device_sb()
117 return result; in ps3_close_hv_device_sb()
122 int result; in ps3_open_hv_device_gpu() local
128 result = 0; in ps3_open_hv_device_gpu()
132 result = lv1_gpu_open(0); in ps3_open_hv_device_gpu()
134 if (result) { in ps3_open_hv_device_gpu()
136 __LINE__, ps3_result(result)); in ps3_open_hv_device_gpu()
137 result = -EPERM; in ps3_open_hv_device_gpu()
142 return result; in ps3_open_hv_device_gpu()
147 int result; in ps3_close_hv_device_gpu() local
153 result = 0; in ps3_close_hv_device_gpu()
157 result = lv1_gpu_close(); in ps3_close_hv_device_gpu()
158 BUG_ON(result); in ps3_close_hv_device_gpu()
162 return result; in ps3_close_hv_device_gpu()
254 int result; in ps3_sb_mmio_region_create() local
257 result = lv1_map_device_mmio_region(r->dev->bus_id, r->dev->dev_id, in ps3_sb_mmio_region_create()
261 if (result) { in ps3_sb_mmio_region_create()
263 __func__, __LINE__, ps3_result(result)); in ps3_sb_mmio_region_create()
268 return result; in ps3_sb_mmio_region_create()
285 int result; in ps3_sb_free_mmio_region() local
288 result = lv1_unmap_device_mmio_region(r->dev->bus_id, r->dev->dev_id, in ps3_sb_free_mmio_region()
291 if (result) in ps3_sb_free_mmio_region()
293 __func__, __LINE__, ps3_result(result)); in ps3_sb_free_mmio_region()
296 return result; in ps3_sb_free_mmio_region()
349 int result; in ps3_system_bus_match() local
354 result = dev->match_id == drv->match_id; in ps3_system_bus_match()
356 result = dev->match_sub_id == drv->match_sub_id && in ps3_system_bus_match()
359 if (result) in ps3_system_bus_match()
370 return result; in ps3_system_bus_match()
375 int result = 0; in ps3_system_bus_probe() local
386 result = drv->probe(dev); in ps3_system_bus_probe()
392 return result; in ps3_system_bus_probe()
397 int result = 0; in ps3_system_bus_remove() local
408 result = drv->remove(dev); in ps3_system_bus_remove()
414 return result; in ps3_system_bus_remove()
492 int result; in ps3_system_bus_init() local
501 result = device_register(&ps3_system_bus); in ps3_system_bus_init()
502 BUG_ON(result); in ps3_system_bus_init()
504 result = bus_register(&ps3_system_bus_type); in ps3_system_bus_init()
505 BUG_ON(result); in ps3_system_bus_init()
508 return result; in ps3_system_bus_init()
521 int result; in ps3_alloc_coherent() local
535 result = ps3_dma_map(dev->d_region, virt_addr, size, dma_handle, in ps3_alloc_coherent()
539 if (result) { in ps3_alloc_coherent()
541 __func__, __LINE__, result); in ps3_alloc_coherent()
575 int result; in ps3_sb_map_page() local
579 result = ps3_dma_map(dev->d_region, (unsigned long)ptr, size, in ps3_sb_map_page()
584 if (result) { in ps3_sb_map_page()
586 __func__, __LINE__, result); in ps3_sb_map_page()
598 int result; in ps3_ioc0_map_page() local
618 result = ps3_dma_map(dev->d_region, (unsigned long)ptr, size, in ps3_ioc0_map_page()
621 if (result) { in ps3_ioc0_map_page()
623 __func__, __LINE__, result); in ps3_ioc0_map_page()
632 int result; in ps3_unmap_page() local
634 result = ps3_dma_unmap(dev->d_region, dma_addr, size); in ps3_unmap_page()
636 if (result) { in ps3_unmap_page()
638 __func__, __LINE__, result); in ps3_unmap_page()
654 int result = ps3_dma_map(dev->d_region, sg_phys(sg), in ps3_sb_map_sg()
657 if (result) { in ps3_sb_map_sg()
659 __func__, __LINE__, result); in ps3_sb_map_sg()
746 int result; in ps3_system_bus_device_register() local
782 result = device_register(&dev->core); in ps3_system_bus_device_register()
783 return result; in ps3_system_bus_device_register()
790 int result; in ps3_system_bus_driver_register() local
799 result = driver_register(&drv->core); in ps3_system_bus_driver_register()
801 return result; in ps3_system_bus_driver_register()