Lines Matching refs:result
37 int result;
53 result = ps3_repository_read_be_node_id(0, &dev->lpm.node_id);
55 if (result) {
61 result = ps3_repository_read_lpm_privileges(dev->lpm.node_id, &tmp1,
64 if (result) {
75 result = -ENODEV;
82 result = -EPERM;
90 result = ps3_repository_read_pu_id(0, &dev->lpm.pu_id);
92 if (result) {
98 result = ps3_system_bus_device_register(dev);
100 if (result) {
115 return result;
128 int result;
142 result = -ENOMEM;
152 result = ps3_repository_find_interrupt(repo,
155 if (result) {
163 result = ps3_dma_region_init(&p->dev, p->dev.d_region, PS3_DMA_64K,
166 if (result) {
172 result = ps3_system_bus_device_register(&p->dev);
174 if (result) {
181 return result;
189 return result;
196 int result;
213 result = -ENOMEM;
224 result = ps3_repository_find_interrupt(repo,
227 if (result) {
233 result = ps3_repository_find_reg(repo, reg_type,
236 if (result) {
242 result = ps3_dma_region_init(&p->dev, p->dev.d_region, PS3_DMA_64K,
245 if (result) {
251 result = ps3_mmio_region_init(&p->dev, p->dev.m_region, bus_addr, len,
254 if (result) {
260 result = ps3_system_bus_device_register(&p->dev);
262 if (result) {
269 return result;
279 return result;
299 int result;
316 result = ps3_system_bus_device_register(&p->dev);
318 if (result) {
329 return result;
335 int result;
342 result = ps3_repository_read_stor_dev_info(repo->bus_index,
346 if (result) {
348 __func__, __LINE__, result);
361 result = -ENOMEM;
373 result = ps3_repository_find_interrupt(repo,
376 if (result) {
378 __LINE__, result);
379 result = -ENODEV;
387 result = ps3_repository_read_stor_dev_region(repo->bus_index,
391 if (result) {
394 __func__, __LINE__, result);
395 result = -ENODEV;
406 result = ps3_system_bus_device_register(&p->sbd);
407 if (result) {
422 return result;
427 int result;
432 result = ps3_repository_read_vuart_av_port(&port_number);
433 if (result)
436 result = ps3_setup_vuart_device(PS3_MATCH_ID_AV_SETTINGS, port_number);
437 WARN_ON(result);
439 result = ps3_repository_read_vuart_sysmgr_port(&port_number);
440 if (result)
443 result = ps3_setup_vuart_device(PS3_MATCH_ID_SYSTEM_MANAGER,
445 WARN_ON(result);
448 return result;
453 int result;
471 result = ps3_system_bus_device_register(&p->dev);
473 if (result) {
484 return result;
489 int result;
505 result = ps3_system_bus_device_register(&p->dev);
507 if (result) {
519 return result;
524 int result;
540 result = ps3_system_bus_device_register(&p->dev);
542 if (result) {
554 return result;
563 int result;
567 result = ps3_setup_storage_dev(repo, PS3_MATCH_ID_STOR_DISK);
570 if (result == -ENODEV) {
571 result = 0;
576 if (result)
582 result = ps3_setup_storage_dev(repo, PS3_MATCH_ID_STOR_ROM);
583 if (result)
589 result = ps3_setup_storage_dev(repo, PS3_MATCH_ID_STOR_FLASH);
590 if (result)
596 result = 0;
601 return result;
610 int result;
614 result = ps3_setup_gelic_device(repo);
615 if (result) {
624 result = ps3_setup_ehci_device(repo);
626 if (result) {
631 result = ps3_setup_ohci_device(repo);
633 if (result) {
643 return result;
914 int result;
924 result = ps3_repository_find_bus(repo.bus_type, 0, &repo.bus_index);
926 if (result) {
927 printk(KERN_ERR "%s: Cannot find bus (%d)\n", __func__, result);
931 result = ps3_repository_read_bus_id(repo.bus_index, &repo.bus_id);
933 if (result) {
935 result);
943 result = PTR_ERR(task);
945 result);
946 return result;
964 int result;
973 result = ps3_start_probe_thread(PS3_BUS_TYPE_STORAGE);