• Home
  • Raw
  • Download

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()
68 __LINE__, ps3_result(result)); in ps3_open_hv_device_sb()
69 result = -EPERM; in ps3_open_hv_device_sb()
74 return result; in ps3_open_hv_device_sb()
79 int result; in ps3_close_hv_device_sb() local
87 result = 0; in ps3_close_hv_device_sb()
95 result = 0; in ps3_close_hv_device_sb()
100 result = lv1_close_device(dev->bus_id, dev->dev_id); in ps3_close_hv_device_sb()
101 BUG_ON(result); in ps3_close_hv_device_sb()
105 return result; in ps3_close_hv_device_sb()
110 int result; in ps3_open_hv_device_gpu() local
116 result = 0; in ps3_open_hv_device_gpu()
120 result = lv1_gpu_open(0); in ps3_open_hv_device_gpu()
122 if (result) { in ps3_open_hv_device_gpu()
124 __LINE__, ps3_result(result)); in ps3_open_hv_device_gpu()
125 result = -EPERM; in ps3_open_hv_device_gpu()
130 return result; in ps3_open_hv_device_gpu()
135 int result; in ps3_close_hv_device_gpu() local
141 result = 0; in ps3_close_hv_device_gpu()
145 result = lv1_gpu_close(); in ps3_close_hv_device_gpu()
146 BUG_ON(result); in ps3_close_hv_device_gpu()
150 return result; in ps3_close_hv_device_gpu()
242 int result; in ps3_sb_mmio_region_create() local
245 result = lv1_map_device_mmio_region(r->dev->bus_id, r->dev->dev_id, in ps3_sb_mmio_region_create()
249 if (result) { in ps3_sb_mmio_region_create()
251 __func__, __LINE__, ps3_result(result)); in ps3_sb_mmio_region_create()
256 return result; in ps3_sb_mmio_region_create()
273 int result; in ps3_sb_free_mmio_region() local
276 result = lv1_unmap_device_mmio_region(r->dev->bus_id, r->dev->dev_id, in ps3_sb_free_mmio_region()
279 if (result) in ps3_sb_free_mmio_region()
281 __func__, __LINE__, ps3_result(result)); in ps3_sb_free_mmio_region()
284 return result; in ps3_sb_free_mmio_region()
337 int result; in ps3_system_bus_match() local
342 result = dev->match_id == drv->match_id; in ps3_system_bus_match()
344 result = dev->match_sub_id == drv->match_sub_id && in ps3_system_bus_match()
347 if (result) in ps3_system_bus_match()
358 return result; in ps3_system_bus_match()
363 int result = 0; in ps3_system_bus_probe() local
374 result = drv->probe(dev); in ps3_system_bus_probe()
380 return result; in ps3_system_bus_probe()
385 int result = 0; in ps3_system_bus_remove() local
396 result = drv->remove(dev); in ps3_system_bus_remove()
402 return result; in ps3_system_bus_remove()
482 int result; in ps3_system_bus_init() local
491 result = device_register(&ps3_system_bus); in ps3_system_bus_init()
492 BUG_ON(result); in ps3_system_bus_init()
494 result = bus_register(&ps3_system_bus_type); in ps3_system_bus_init()
495 BUG_ON(result); in ps3_system_bus_init()
498 return result; in ps3_system_bus_init()
511 int result; in ps3_alloc_coherent() local
525 result = ps3_dma_map(dev->d_region, virt_addr, size, dma_handle, in ps3_alloc_coherent()
529 if (result) { in ps3_alloc_coherent()
531 __func__, __LINE__, result); in ps3_alloc_coherent()
565 int result; in ps3_sb_map_page() local
569 result = ps3_dma_map(dev->d_region, (unsigned long)ptr, size, in ps3_sb_map_page()
574 if (result) { in ps3_sb_map_page()
576 __func__, __LINE__, result); in ps3_sb_map_page()
588 int result; in ps3_ioc0_map_page() local
608 result = ps3_dma_map(dev->d_region, (unsigned long)ptr, size, in ps3_ioc0_map_page()
611 if (result) { in ps3_ioc0_map_page()
613 __func__, __LINE__, result); in ps3_ioc0_map_page()
622 int result; in ps3_unmap_page() local
624 result = ps3_dma_unmap(dev->d_region, dma_addr, size); in ps3_unmap_page()
626 if (result) { in ps3_unmap_page()
628 __func__, __LINE__, result); in ps3_unmap_page()
644 int result = ps3_dma_map(dev->d_region, sg_phys(sg), in ps3_sb_map_sg()
647 if (result) { in ps3_sb_map_sg()
649 __func__, __LINE__, result); in ps3_sb_map_sg()
733 int result; in ps3_system_bus_device_register() local
769 result = device_register(&dev->core); in ps3_system_bus_device_register()
770 return result; in ps3_system_bus_device_register()
777 int result; in ps3_system_bus_driver_register() local
786 result = driver_register(&drv->core); in ps3_system_bus_driver_register()
788 return result; in ps3_system_bus_driver_register()