Lines Matching refs:result

112 	int result;  in read_node()  local
122 result = lv1_read_repository_node(lpar_id, n1, n2, n3, n4, &v1, in read_node()
125 if (result) { in read_node()
127 __func__, __LINE__, ps3_result(result)); in read_node()
168 int result; in ps3_repository_read_bus_type() local
171 result = read_node(PS3_LPAR_ID_PME, in ps3_repository_read_bus_type()
177 return result; in ps3_repository_read_bus_type()
183 int result; in ps3_repository_read_bus_num_dev() local
186 result = read_node(PS3_LPAR_ID_PME, in ps3_repository_read_bus_num_dev()
192 return result; in ps3_repository_read_bus_num_dev()
217 int result; in ps3_repository_read_dev_type() local
220 result = read_node(PS3_LPAR_ID_PME, in ps3_repository_read_dev_type()
227 return result; in ps3_repository_read_dev_type()
234 int result; in ps3_repository_read_dev_intr() local
238 result = read_node(PS3_LPAR_ID_PME, in ps3_repository_read_dev_intr()
246 return result; in ps3_repository_read_dev_intr()
253 int result; in ps3_repository_read_dev_reg_type() local
256 result = read_node(PS3_LPAR_ID_PME, in ps3_repository_read_dev_reg_type()
263 return result; in ps3_repository_read_dev_reg_type()
281 int result = ps3_repository_read_dev_reg_type(bus_index, dev_index, in ps3_repository_read_dev_reg() local
283 return result ? result in ps3_repository_read_dev_reg()
292 int result; in ps3_repository_find_device() local
299 result = ps3_repository_read_bus_num_dev(tmp.bus_index, &num_dev); in ps3_repository_find_device()
301 if (result) { in ps3_repository_find_device()
303 return result; in ps3_repository_find_device()
315 result = ps3_repository_read_dev_type(tmp.bus_index, tmp.dev_index, in ps3_repository_find_device()
318 if (result) { in ps3_repository_find_device()
320 return result; in ps3_repository_find_device()
323 result = ps3_repository_read_dev_id(tmp.bus_index, tmp.dev_index, in ps3_repository_find_device()
326 if (result) { in ps3_repository_find_device()
329 return result; in ps3_repository_find_device()
342 int result = -ENODEV; in ps3_repository_find_device_by_id() local
350 result = ps3_repository_read_bus_id(tmp.bus_index, in ps3_repository_find_device_by_id()
352 if (result) { in ps3_repository_find_device_by_id()
355 return result; in ps3_repository_find_device_by_id()
365 return result; in ps3_repository_find_device_by_id()
368 result = ps3_repository_read_bus_type(tmp.bus_index, &tmp.bus_type); in ps3_repository_find_device_by_id()
369 if (result) { in ps3_repository_find_device_by_id()
372 return result; in ps3_repository_find_device_by_id()
375 result = ps3_repository_read_bus_num_dev(tmp.bus_index, &num_dev); in ps3_repository_find_device_by_id()
376 if (result) { in ps3_repository_find_device_by_id()
379 return result; in ps3_repository_find_device_by_id()
383 result = ps3_repository_read_dev_id(tmp.bus_index, in ps3_repository_find_device_by_id()
386 if (result) { in ps3_repository_find_device_by_id()
389 return result; in ps3_repository_find_device_by_id()
399 return result; in ps3_repository_find_device_by_id()
402 result = ps3_repository_read_dev_type(tmp.bus_index, tmp.dev_index, in ps3_repository_find_device_by_id()
404 if (result) { in ps3_repository_find_device_by_id()
406 return result; in ps3_repository_find_device_by_id()
419 int result = 0; in ps3_repository_find_devices() local
425 result = ps3_repository_find_bus(repo.bus_type, 0, &repo.bus_index); in ps3_repository_find_devices()
426 if (result) { in ps3_repository_find_devices()
428 return result; in ps3_repository_find_devices()
431 result = ps3_repository_read_bus_id(repo.bus_index, &repo.bus_id); in ps3_repository_find_devices()
432 if (result) { in ps3_repository_find_devices()
435 return result; in ps3_repository_find_devices()
439 result = ps3_repository_find_device(&repo); in ps3_repository_find_devices()
440 if (result == -ENODEV) { in ps3_repository_find_devices()
441 result = 0; in ps3_repository_find_devices()
443 } else if (result) in ps3_repository_find_devices()
446 result = callback(&repo); in ps3_repository_find_devices()
447 if (result) { in ps3_repository_find_devices()
455 return result; in ps3_repository_find_devices()
485 int result = 0; in ps3_repository_find_interrupt() local
496 result = ps3_repository_read_dev_intr(repo->bus_index, in ps3_repository_find_interrupt()
499 if (result) { in ps3_repository_find_interrupt()
502 return result; in ps3_repository_find_interrupt()
517 return result; in ps3_repository_find_interrupt()
523 int result = 0; in ps3_repository_find_reg() local
535 result = ps3_repository_read_dev_reg(repo->bus_index, in ps3_repository_find_reg()
538 if (result) { in ps3_repository_find_reg()
541 return result; in ps3_repository_find_reg()
557 return result; in ps3_repository_find_reg()
593 int result; in ps3_repository_read_stor_dev_num_regions() local
596 result = read_node(PS3_LPAR_ID_PME, in ps3_repository_read_stor_dev_num_regions()
602 return result; in ps3_repository_read_stor_dev_num_regions()
609 int result; in ps3_repository_read_stor_dev_region_id() local
612 result = read_node(PS3_LPAR_ID_PME, in ps3_repository_read_stor_dev_region_id()
619 return result; in ps3_repository_read_stor_dev_region_id()
648 int result; in ps3_repository_read_stor_dev_info() local
650 result = ps3_repository_read_stor_dev_port(bus_index, dev_index, port); in ps3_repository_read_stor_dev_info()
651 if (result) in ps3_repository_read_stor_dev_info()
652 return result; in ps3_repository_read_stor_dev_info()
654 result = ps3_repository_read_stor_dev_blk_size(bus_index, dev_index, in ps3_repository_read_stor_dev_info()
656 if (result) in ps3_repository_read_stor_dev_info()
657 return result; in ps3_repository_read_stor_dev_info()
659 result = ps3_repository_read_stor_dev_num_blocks(bus_index, dev_index, in ps3_repository_read_stor_dev_info()
661 if (result) in ps3_repository_read_stor_dev_info()
662 return result; in ps3_repository_read_stor_dev_info()
664 result = ps3_repository_read_stor_dev_num_regions(bus_index, dev_index, in ps3_repository_read_stor_dev_info()
666 return result; in ps3_repository_read_stor_dev_info()
673 int result; in ps3_repository_read_stor_dev_region() local
675 result = ps3_repository_read_stor_dev_region_id(bus_index, dev_index, in ps3_repository_read_stor_dev_region()
677 if (result) in ps3_repository_read_stor_dev_region()
678 return result; in ps3_repository_read_stor_dev_region()
680 result = ps3_repository_read_stor_dev_region_start(bus_index, dev_index, in ps3_repository_read_stor_dev_region()
682 if (result) in ps3_repository_read_stor_dev_region()
683 return result; in ps3_repository_read_stor_dev_region()
685 result = ps3_repository_read_stor_dev_region_size(bus_index, dev_index, in ps3_repository_read_stor_dev_region()
687 return result; in ps3_repository_read_stor_dev_region()
747 int result; in ps3_repository_read_mm_info() local
752 result = ps3_repository_read_rm_size(ppe_id, rm_size); in ps3_repository_read_mm_info()
753 return result ? result in ps3_repository_read_mm_info()
766 int result; in ps3_repository_read_highmem_region_count() local
769 result = read_node(PS3_LPAR_ID_CURRENT, in ps3_repository_read_highmem_region_count()
776 return result; in ps3_repository_read_highmem_region_count()
815 int result; in ps3_repository_read_highmem_info() local
818 result = ps3_repository_read_highmem_base(region_index, highmem_base); in ps3_repository_read_highmem_info()
819 return result ? result in ps3_repository_read_highmem_info()
830 int result; in ps3_repository_read_num_spu_reserved() local
833 result = read_node(PS3_LPAR_ID_CURRENT, in ps3_repository_read_num_spu_reserved()
839 return result; in ps3_repository_read_num_spu_reserved()
849 int result; in ps3_repository_read_num_spu_resource_id() local
852 result = read_node(PS3_LPAR_ID_CURRENT, in ps3_repository_read_num_spu_resource_id()
858 return result; in ps3_repository_read_num_spu_resource_id()
871 int result; in ps3_repository_read_spu_resource_id() local
875 result = read_node(PS3_LPAR_ID_CURRENT, in ps3_repository_read_spu_resource_id()
883 return result; in ps3_repository_read_spu_resource_id()
898 int result; in ps3_repository_read_boot_dat_size() local
901 result = read_node(PS3_LPAR_ID_CURRENT, in ps3_repository_read_boot_dat_size()
908 return result; in ps3_repository_read_boot_dat_size()
913 int result; in ps3_repository_read_vuart_av_port() local
916 result = read_node(PS3_LPAR_ID_CURRENT, in ps3_repository_read_vuart_av_port()
923 return result; in ps3_repository_read_vuart_av_port()
928 int result; in ps3_repository_read_vuart_sysmgr_port() local
931 result = read_node(PS3_LPAR_ID_CURRENT, in ps3_repository_read_vuart_sysmgr_port()
938 return result; in ps3_repository_read_vuart_sysmgr_port()
949 int result; in ps3_repository_read_boot_dat_info() local
952 result = ps3_repository_read_boot_dat_address(lpar_addr); in ps3_repository_read_boot_dat_info()
953 return result ? result in ps3_repository_read_boot_dat_info()
963 int result; in ps3_repository_read_num_be() local
966 result = read_node(PS3_LPAR_ID_PME, in ps3_repository_read_num_be()
973 return result; in ps3_repository_read_num_be()
1020 int result; in ps3_repository_read_be_tb_freq() local
1024 result = ps3_repository_read_be_node_id(be_index, &node_id); in ps3_repository_read_be_tb_freq()
1025 return result ? result in ps3_repository_read_be_tb_freq()
1032 int result; in ps3_repository_read_lpm_privileges() local
1037 result = ps3_repository_read_be_node_id(be_index, &node_id); in ps3_repository_read_lpm_privileges()
1038 return result ? result in ps3_repository_read_lpm_privileges()
1051 int result; in create_node() local
1055 result = lv1_create_repository_node(n1, n2, n3, n4, v1, v2); in create_node()
1057 if (result) { in create_node()
1059 __func__, __LINE__, ps3_result(result)); in create_node()
1068 int result; in delete_node() local
1072 result = lv1_delete_repository_node(n1, n2, n3, n4); in delete_node()
1074 if (result) { in delete_node()
1076 __func__, __LINE__, ps3_result(result)); in delete_node()
1085 int result; in write_node() local
1087 result = create_node(n1, n2, n3, n4, v1, v2); in write_node()
1089 if (!result) in write_node()
1092 result = lv1_write_repository_node(n1, n2, n3, n4, v1, v2); in write_node()
1094 if (result) { in write_node()
1096 __func__, __LINE__, ps3_result(result)); in write_node()
1105 int result; in ps3_repository_write_highmem_region_count() local
1108 result = write_node( in ps3_repository_write_highmem_region_count()
1114 return result; in ps3_repository_write_highmem_region_count()
1142 int result; in ps3_repository_write_highmem_info() local
1144 result = ps3_repository_write_highmem_base(region_index, highmem_base); in ps3_repository_write_highmem_info()
1145 return result ? result in ps3_repository_write_highmem_info()
1169 int result; in ps3_repository_delete_highmem_info() local
1171 result = ps3_repository_delete_highmem_base(region_index); in ps3_repository_delete_highmem_info()
1172 result += ps3_repository_delete_highmem_size(region_index); in ps3_repository_delete_highmem_info()
1174 return result ? -1 : 0; in ps3_repository_delete_highmem_info()
1183 int result = 0; in ps3_repository_dump_resource_info() local
1193 result = ps3_repository_read_dev_intr(repo->bus_index, in ps3_repository_dump_resource_info()
1196 if (result) { in ps3_repository_dump_resource_info()
1197 if (result != LV1_NO_ENTRY) in ps3_repository_dump_resource_info()
1214 result = ps3_repository_read_dev_reg(repo->bus_index, in ps3_repository_dump_resource_info()
1217 if (result) { in ps3_repository_dump_resource_info()
1218 if (result != LV1_NO_ENTRY) in ps3_repository_dump_resource_info()
1231 return result; in ps3_repository_dump_resource_info()
1236 int result = 0; in dump_stor_dev_info() local
1243 result = ps3_repository_read_stor_dev_info(repo->bus_index, in dump_stor_dev_info()
1245 if (result) { in dump_stor_dev_info()
1261 result = ps3_repository_read_stor_dev_region(repo->bus_index, in dump_stor_dev_info()
1264 if (result) { in dump_stor_dev_info()
1279 return result; in dump_stor_dev_info()
1285 int result = 0; in dump_device_info() local
1292 result = ps3_repository_read_dev_type(repo->bus_index, in dump_device_info()
1295 if (result) { in dump_device_info()
1302 result = ps3_repository_read_dev_id(repo->bus_index, in dump_device_info()
1305 if (result) { in dump_device_info()
1323 return result; in dump_device_info()
1328 int result = 0; in ps3_repository_dump_bus_info() local
1338 result = ps3_repository_read_bus_type(repo.bus_index, in ps3_repository_dump_bus_info()
1341 if (result) { in ps3_repository_dump_bus_info()
1347 result = ps3_repository_read_bus_id(repo.bus_index, in ps3_repository_dump_bus_info()
1350 if (result) { in ps3_repository_dump_bus_info()
1360 result = ps3_repository_read_bus_num_dev(repo.bus_index, in ps3_repository_dump_bus_info()
1363 if (result) { in ps3_repository_dump_bus_info()
1377 return result; in ps3_repository_dump_bus_info()