• Home
  • Raw
  • Download

Lines Matching refs:result

25 	int result;  in ps3_register_lpm_devices()  local
41 result = ps3_repository_read_be_node_id(0, &dev->lpm.node_id); in ps3_register_lpm_devices()
43 if (result) { in ps3_register_lpm_devices()
49 result = ps3_repository_read_lpm_privileges(dev->lpm.node_id, &tmp1, in ps3_register_lpm_devices()
52 if (result) { in ps3_register_lpm_devices()
63 result = -ENODEV; in ps3_register_lpm_devices()
70 result = -EPERM; in ps3_register_lpm_devices()
78 result = ps3_repository_read_pu_id(0, &dev->lpm.pu_id); in ps3_register_lpm_devices()
80 if (result) { in ps3_register_lpm_devices()
86 result = ps3_system_bus_device_register(dev); in ps3_register_lpm_devices()
88 if (result) { in ps3_register_lpm_devices()
103 return result; in ps3_register_lpm_devices()
116 int result; in ps3_setup_gelic_device() local
130 result = -ENOMEM; in ps3_setup_gelic_device()
140 result = ps3_repository_find_interrupt(repo, in ps3_setup_gelic_device()
143 if (result) { in ps3_setup_gelic_device()
151 result = ps3_dma_region_init(&p->dev, p->dev.d_region, PS3_DMA_64K, in ps3_setup_gelic_device()
154 if (result) { in ps3_setup_gelic_device()
160 result = ps3_system_bus_device_register(&p->dev); in ps3_setup_gelic_device()
162 if (result) { in ps3_setup_gelic_device()
169 return result; in ps3_setup_gelic_device()
177 return result; in ps3_setup_gelic_device()
184 int result; in ps3_setup_uhc_device() local
201 result = -ENOMEM; in ps3_setup_uhc_device()
212 result = ps3_repository_find_interrupt(repo, in ps3_setup_uhc_device()
215 if (result) { in ps3_setup_uhc_device()
221 result = ps3_repository_find_reg(repo, reg_type, in ps3_setup_uhc_device()
224 if (result) { in ps3_setup_uhc_device()
230 result = ps3_dma_region_init(&p->dev, p->dev.d_region, PS3_DMA_64K, in ps3_setup_uhc_device()
233 if (result) { in ps3_setup_uhc_device()
239 result = ps3_mmio_region_init(&p->dev, p->dev.m_region, bus_addr, len, in ps3_setup_uhc_device()
242 if (result) { in ps3_setup_uhc_device()
248 result = ps3_system_bus_device_register(&p->dev); in ps3_setup_uhc_device()
250 if (result) { in ps3_setup_uhc_device()
257 return result; in ps3_setup_uhc_device()
267 return result; in ps3_setup_uhc_device()
287 int result; in ps3_setup_vuart_device() local
304 result = ps3_system_bus_device_register(&p->dev); in ps3_setup_vuart_device()
306 if (result) { in ps3_setup_vuart_device()
317 return result; in ps3_setup_vuart_device()
323 int result; in ps3_setup_storage_dev() local
330 result = ps3_repository_read_stor_dev_info(repo->bus_index, in ps3_setup_storage_dev()
334 if (result) { in ps3_setup_storage_dev()
336 __func__, __LINE__, result); in ps3_setup_storage_dev()
347 result = -ENOMEM; in ps3_setup_storage_dev()
359 result = ps3_repository_find_interrupt(repo, in ps3_setup_storage_dev()
362 if (result) { in ps3_setup_storage_dev()
364 __LINE__, result); in ps3_setup_storage_dev()
365 result = -ENODEV; in ps3_setup_storage_dev()
373 result = ps3_repository_read_stor_dev_region(repo->bus_index, in ps3_setup_storage_dev()
377 if (result) { in ps3_setup_storage_dev()
380 __func__, __LINE__, result); in ps3_setup_storage_dev()
381 result = -ENODEV; in ps3_setup_storage_dev()
392 result = ps3_system_bus_device_register(&p->sbd); in ps3_setup_storage_dev()
393 if (result) { in ps3_setup_storage_dev()
408 return result; in ps3_setup_storage_dev()
413 int result; in ps3_register_vuart_devices() local
418 result = ps3_repository_read_vuart_av_port(&port_number); in ps3_register_vuart_devices()
419 if (result) in ps3_register_vuart_devices()
422 result = ps3_setup_vuart_device(PS3_MATCH_ID_AV_SETTINGS, port_number); in ps3_register_vuart_devices()
423 WARN_ON(result); in ps3_register_vuart_devices()
425 result = ps3_repository_read_vuart_sysmgr_port(&port_number); in ps3_register_vuart_devices()
426 if (result) in ps3_register_vuart_devices()
429 result = ps3_setup_vuart_device(PS3_MATCH_ID_SYSTEM_MANAGER, in ps3_register_vuart_devices()
431 WARN_ON(result); in ps3_register_vuart_devices()
434 return result; in ps3_register_vuart_devices()
439 int result; in ps3_register_sound_devices() local
457 result = ps3_system_bus_device_register(&p->dev); in ps3_register_sound_devices()
459 if (result) { in ps3_register_sound_devices()
470 return result; in ps3_register_sound_devices()
475 int result; in ps3_register_graphics_devices() local
491 result = ps3_system_bus_device_register(&p->dev); in ps3_register_graphics_devices()
493 if (result) { in ps3_register_graphics_devices()
505 return result; in ps3_register_graphics_devices()
510 int result; in ps3_register_ramdisk_device() local
526 result = ps3_system_bus_device_register(&p->dev); in ps3_register_ramdisk_device()
528 if (result) { in ps3_register_ramdisk_device()
540 return result; in ps3_register_ramdisk_device()
549 int result; in ps3_setup_dynamic_device() local
553 result = ps3_setup_storage_dev(repo, PS3_MATCH_ID_STOR_DISK); in ps3_setup_dynamic_device()
556 if (result == -ENODEV) { in ps3_setup_dynamic_device()
557 result = 0; in ps3_setup_dynamic_device()
562 if (result) in ps3_setup_dynamic_device()
568 result = ps3_setup_storage_dev(repo, PS3_MATCH_ID_STOR_ROM); in ps3_setup_dynamic_device()
569 if (result) in ps3_setup_dynamic_device()
575 result = ps3_setup_storage_dev(repo, PS3_MATCH_ID_STOR_FLASH); in ps3_setup_dynamic_device()
576 if (result) in ps3_setup_dynamic_device()
582 result = 0; in ps3_setup_dynamic_device()
587 return result; in ps3_setup_dynamic_device()
596 int result; in ps3_setup_static_device() local
600 result = ps3_setup_gelic_device(repo); in ps3_setup_static_device()
601 if (result) { in ps3_setup_static_device()
610 result = ps3_setup_ehci_device(repo); in ps3_setup_static_device()
612 if (result) { in ps3_setup_static_device()
617 result = ps3_setup_ohci_device(repo); in ps3_setup_static_device()
619 if (result) { in ps3_setup_static_device()
629 return result; in ps3_setup_static_device()
898 int result; in ps3_start_probe_thread() local
908 result = ps3_repository_find_bus(repo.bus_type, 0, &repo.bus_index); in ps3_start_probe_thread()
910 if (result) { in ps3_start_probe_thread()
911 printk(KERN_ERR "%s: Cannot find bus (%d)\n", __func__, result); in ps3_start_probe_thread()
915 result = ps3_repository_read_bus_id(repo.bus_index, &repo.bus_id); in ps3_start_probe_thread()
917 if (result) { in ps3_start_probe_thread()
919 result); in ps3_start_probe_thread()
927 result = PTR_ERR(task); in ps3_start_probe_thread()
929 result); in ps3_start_probe_thread()
930 return result; in ps3_start_probe_thread()
948 int result; in ps3_register_devices() local
957 result = ps3_start_probe_thread(PS3_BUS_TYPE_STORAGE); in ps3_register_devices()