Lines Matching refs:result

26 	int result;  in ps3_register_lpm_devices()  local
42 result = ps3_repository_read_be_node_id(0, &dev->lpm.node_id); in ps3_register_lpm_devices()
44 if (result) { in ps3_register_lpm_devices()
50 result = ps3_repository_read_lpm_privileges(dev->lpm.node_id, &tmp1, in ps3_register_lpm_devices()
53 if (result) { in ps3_register_lpm_devices()
64 result = -ENODEV; in ps3_register_lpm_devices()
71 result = -EPERM; in ps3_register_lpm_devices()
79 result = ps3_repository_read_pu_id(0, &dev->lpm.pu_id); in ps3_register_lpm_devices()
81 if (result) { in ps3_register_lpm_devices()
87 result = ps3_system_bus_device_register(dev); in ps3_register_lpm_devices()
89 if (result) { in ps3_register_lpm_devices()
104 return result; in ps3_register_lpm_devices()
117 int result; in ps3_setup_gelic_device() local
131 result = -ENOMEM; in ps3_setup_gelic_device()
141 result = ps3_repository_find_interrupt(repo, in ps3_setup_gelic_device()
144 if (result) { in ps3_setup_gelic_device()
152 result = ps3_dma_region_init(&p->dev, p->dev.d_region, PS3_DMA_64K, in ps3_setup_gelic_device()
155 if (result) { in ps3_setup_gelic_device()
161 result = ps3_system_bus_device_register(&p->dev); in ps3_setup_gelic_device()
163 if (result) { in ps3_setup_gelic_device()
170 return result; in ps3_setup_gelic_device()
178 return result; in ps3_setup_gelic_device()
185 int result; in ps3_setup_uhc_device() local
202 result = -ENOMEM; in ps3_setup_uhc_device()
213 result = ps3_repository_find_interrupt(repo, in ps3_setup_uhc_device()
216 if (result) { in ps3_setup_uhc_device()
222 result = ps3_repository_find_reg(repo, reg_type, in ps3_setup_uhc_device()
225 if (result) { in ps3_setup_uhc_device()
231 result = ps3_dma_region_init(&p->dev, p->dev.d_region, PS3_DMA_64K, in ps3_setup_uhc_device()
234 if (result) { in ps3_setup_uhc_device()
240 result = ps3_mmio_region_init(&p->dev, p->dev.m_region, bus_addr, len, in ps3_setup_uhc_device()
243 if (result) { in ps3_setup_uhc_device()
249 result = ps3_system_bus_device_register(&p->dev); in ps3_setup_uhc_device()
251 if (result) { in ps3_setup_uhc_device()
258 return result; in ps3_setup_uhc_device()
268 return result; in ps3_setup_uhc_device()
288 int result; in ps3_setup_vuart_device() local
305 result = ps3_system_bus_device_register(&p->dev); in ps3_setup_vuart_device()
307 if (result) { in ps3_setup_vuart_device()
318 return result; in ps3_setup_vuart_device()
324 int result; in ps3_setup_storage_dev() local
331 result = ps3_repository_read_stor_dev_info(repo->bus_index, in ps3_setup_storage_dev()
335 if (result) { in ps3_setup_storage_dev()
337 __func__, __LINE__, result); in ps3_setup_storage_dev()
348 result = -ENOMEM; in ps3_setup_storage_dev()
360 result = ps3_repository_find_interrupt(repo, in ps3_setup_storage_dev()
363 if (result) { in ps3_setup_storage_dev()
365 __LINE__, result); in ps3_setup_storage_dev()
366 result = -ENODEV; in ps3_setup_storage_dev()
374 result = ps3_repository_read_stor_dev_region(repo->bus_index, in ps3_setup_storage_dev()
378 if (result) { in ps3_setup_storage_dev()
381 __func__, __LINE__, result); in ps3_setup_storage_dev()
382 result = -ENODEV; in ps3_setup_storage_dev()
393 result = ps3_system_bus_device_register(&p->sbd); in ps3_setup_storage_dev()
394 if (result) { in ps3_setup_storage_dev()
409 return result; in ps3_setup_storage_dev()
414 int result; in ps3_register_vuart_devices() local
419 result = ps3_repository_read_vuart_av_port(&port_number); in ps3_register_vuart_devices()
420 if (result) in ps3_register_vuart_devices()
423 result = ps3_setup_vuart_device(PS3_MATCH_ID_AV_SETTINGS, port_number); in ps3_register_vuart_devices()
424 WARN_ON(result); in ps3_register_vuart_devices()
426 result = ps3_repository_read_vuart_sysmgr_port(&port_number); in ps3_register_vuart_devices()
427 if (result) in ps3_register_vuart_devices()
430 result = ps3_setup_vuart_device(PS3_MATCH_ID_SYSTEM_MANAGER, in ps3_register_vuart_devices()
432 WARN_ON(result); in ps3_register_vuart_devices()
435 return result; in ps3_register_vuart_devices()
440 int result; in ps3_register_sound_devices() local
458 result = ps3_system_bus_device_register(&p->dev); in ps3_register_sound_devices()
460 if (result) { in ps3_register_sound_devices()
471 return result; in ps3_register_sound_devices()
476 int result; in ps3_register_graphics_devices() local
492 result = ps3_system_bus_device_register(&p->dev); in ps3_register_graphics_devices()
494 if (result) { in ps3_register_graphics_devices()
506 return result; in ps3_register_graphics_devices()
511 int result; in ps3_register_ramdisk_device() local
527 result = ps3_system_bus_device_register(&p->dev); in ps3_register_ramdisk_device()
529 if (result) { in ps3_register_ramdisk_device()
541 return result; in ps3_register_ramdisk_device()
550 int result; in ps3_setup_dynamic_device() local
554 result = ps3_setup_storage_dev(repo, PS3_MATCH_ID_STOR_DISK); in ps3_setup_dynamic_device()
557 if (result == -ENODEV) { in ps3_setup_dynamic_device()
558 result = 0; in ps3_setup_dynamic_device()
563 if (result) in ps3_setup_dynamic_device()
569 result = ps3_setup_storage_dev(repo, PS3_MATCH_ID_STOR_ROM); in ps3_setup_dynamic_device()
570 if (result) in ps3_setup_dynamic_device()
576 result = ps3_setup_storage_dev(repo, PS3_MATCH_ID_STOR_FLASH); in ps3_setup_dynamic_device()
577 if (result) in ps3_setup_dynamic_device()
583 result = 0; in ps3_setup_dynamic_device()
588 return result; in ps3_setup_dynamic_device()
597 int result; in ps3_setup_static_device() local
601 result = ps3_setup_gelic_device(repo); in ps3_setup_static_device()
602 if (result) { in ps3_setup_static_device()
611 result = ps3_setup_ehci_device(repo); in ps3_setup_static_device()
613 if (result) { in ps3_setup_static_device()
618 result = ps3_setup_ohci_device(repo); in ps3_setup_static_device()
620 if (result) { in ps3_setup_static_device()
630 return result; in ps3_setup_static_device()
902 int result; in ps3_start_probe_thread() local
912 result = ps3_repository_find_bus(repo.bus_type, 0, &repo.bus_index); in ps3_start_probe_thread()
914 if (result) { in ps3_start_probe_thread()
915 printk(KERN_ERR "%s: Cannot find bus (%d)\n", __func__, result); in ps3_start_probe_thread()
919 result = ps3_repository_read_bus_id(repo.bus_index, &repo.bus_id); in ps3_start_probe_thread()
921 if (result) { in ps3_start_probe_thread()
923 result); in ps3_start_probe_thread()
931 result = PTR_ERR(task); in ps3_start_probe_thread()
933 result); in ps3_start_probe_thread()
934 return result; in ps3_start_probe_thread()
952 int result; in ps3_register_devices() local
961 result = ps3_start_probe_thread(PS3_BUS_TYPE_STORAGE); in ps3_register_devices()