Lines Matching refs:retval
220 int retval; in pdc_add_valid() local
224 retval = mem_pdc_call(PDC_ADD_VALID, PDC_ADD_VALID_VERIFY, address); in pdc_add_valid()
227 return retval; in pdc_add_valid()
239 int retval; in pdc_instr() local
243 retval = mem_pdc_call(PDC_INSTR, 0UL, __pa(pdc_result)); in pdc_instr()
248 return retval; in pdc_instr()
261 int retval; in pdc_chassis_info() local
267 retval = mem_pdc_call(PDC_CHASSIS, PDC_RETURN_CHASSIS_INFO, in pdc_chassis_info()
273 return retval; in pdc_chassis_info()
285 int retval = 0; in pdc_pat_chassis_send_log() local
292 retval = mem_pdc_call(PDC_PAT_CHASSIS_LOG, PDC_PAT_CHASSIS_WRITE_LOG, __pa(&state), __pa(&data)); in pdc_pat_chassis_send_log()
295 return retval; in pdc_pat_chassis_send_log()
305 int retval = 0; in pdc_chassis_disp() local
309 retval = mem_pdc_call(PDC_CHASSIS, PDC_CHASSIS_DISP, disp); in pdc_chassis_disp()
312 return retval; in pdc_chassis_disp()
334 int retval = 0; in pdc_chassis_warn() local
338 retval = mem_pdc_call(PDC_CHASSIS, PDC_CHASSIS_WARN, __pa(pdc_result)); in pdc_chassis_warn()
342 return retval; in pdc_chassis_warn()
392 int retval; in pdc_iodc_read() local
396 retval = mem_pdc_call(PDC_IODC, PDC_IODC_READ, __pa(pdc_result), hpa, in pdc_iodc_read()
403 return retval; in pdc_iodc_read()
419 int retval; in pdc_system_map_find_mods() local
423 retval = mem_pdc_call(PDC_SYSTEM_MAP, PDC_FIND_MODULE, __pa(pdc_result), in pdc_system_map_find_mods()
431 return retval; in pdc_system_map_find_mods()
446 int retval; in pdc_system_map_find_addrs() local
450 retval = mem_pdc_call(PDC_SYSTEM_MAP, PDC_FIND_ADDRESS, __pa(pdc_result), in pdc_system_map_find_addrs()
457 return retval; in pdc_system_map_find_addrs()
468 int retval; in pdc_model_info() local
472 retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_INFO, __pa(pdc_result), 0); in pdc_model_info()
477 return retval; in pdc_model_info()
490 int retval; in pdc_model_sysmodel() local
494 retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_SYSMODEL, __pa(pdc_result), in pdc_model_sysmodel()
498 if (retval == PDC_OK) { in pdc_model_sysmodel()
505 return retval; in pdc_model_sysmodel()
520 int retval; in pdc_model_versions() local
524 retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_VERSIONS, __pa(pdc_result), id); in pdc_model_versions()
529 return retval; in pdc_model_versions()
541 int retval; in pdc_model_cpuid() local
546 retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_CPU_ID, __pa(pdc_result), 0); in pdc_model_cpuid()
551 return retval; in pdc_model_cpuid()
563 int retval; in pdc_model_capabilities() local
568 retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_CAPABILITIES, __pa(pdc_result), 0); in pdc_model_capabilities()
570 if (retval == PDC_OK) { in pdc_model_capabilities()
577 return retval; in pdc_model_capabilities()
592 int retval; in pdc_model_platform_info() local
596 retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_GET_PLATFORM_INFO, in pdc_model_platform_info()
601 return retval; in pdc_model_platform_info()
612 int retval; in pdc_cache_info() local
616 retval = mem_pdc_call(PDC_CACHE, PDC_CACHE_INFO, __pa(pdc_result), 0); in pdc_cache_info()
621 return retval; in pdc_cache_info()
632 int retval; in pdc_spaceid_bits() local
637 retval = mem_pdc_call(PDC_CACHE, PDC_CACHE_RET_SPID, __pa(pdc_result), 0); in pdc_spaceid_bits()
642 return retval; in pdc_spaceid_bits()
654 int retval; in pdc_btlb_info() local
658 retval = mem_pdc_call(PDC_BLOCK_TLB, PDC_BTLB_INFO, __pa(pdc_result), 0); in pdc_btlb_info()
662 if(retval < 0) { in pdc_btlb_info()
665 return retval; in pdc_btlb_info()
683 int retval; in pdc_mem_map_hpa() local
688 retval = mem_pdc_call(PDC_MEM_MAP, PDC_MEM_MAP_HPA, __pa(pdc_result), in pdc_mem_map_hpa()
693 return retval; in pdc_mem_map_hpa()
706 int retval; in pdc_lan_station_id() local
710 retval = mem_pdc_call(PDC_LAN_STATION_ID, PDC_LAN_STATION_ID_READ, in pdc_lan_station_id()
712 if (retval < 0) { in pdc_lan_station_id()
720 return retval; in pdc_lan_station_id()
736 int retval; in pdc_stable_read() local
740 retval = mem_pdc_call(PDC_STABLE, PDC_STABLE_READ, staddr, in pdc_stable_read()
746 return retval; in pdc_stable_read()
762 int retval; in pdc_stable_write() local
768 retval = mem_pdc_call(PDC_STABLE, PDC_STABLE_WRITE, staddr, in pdc_stable_write()
772 return retval; in pdc_stable_write()
787 int retval; in pdc_stable_get_size() local
791 retval = mem_pdc_call(PDC_STABLE, PDC_STABLE_RETURN_SIZE, __pa(pdc_result)); in pdc_stable_get_size()
795 return retval; in pdc_stable_get_size()
807 int retval; in pdc_stable_verify_contents() local
811 retval = mem_pdc_call(PDC_STABLE, PDC_STABLE_VERIFY_CONTENTS); in pdc_stable_verify_contents()
814 return retval; in pdc_stable_verify_contents()
826 int retval; in pdc_stable_initialize() local
830 retval = mem_pdc_call(PDC_STABLE, PDC_STABLE_INITIALIZE); in pdc_stable_initialize()
833 return retval; in pdc_stable_initialize()
853 int retval; in pdc_get_initiator() local
862 retval = mem_pdc_call(PDC_INITIATOR, PDC_GET_INITIATOR, in pdc_get_initiator()
864 if (retval < PDC_OK) in pdc_get_initiator()
898 return (retval >= PDC_OK); in pdc_get_initiator()
914 int retval; in pdc_pci_irt_size() local
918 retval = mem_pdc_call(PDC_PCI_INDEX, PDC_PCI_GET_INT_TBL_SIZE, in pdc_pci_irt_size()
924 return retval; in pdc_pci_irt_size()
938 int retval; in pdc_pci_irt() local
945 retval = mem_pdc_call(PDC_PCI_INDEX, PDC_PCI_GET_INT_TBL, in pdc_pci_irt()
949 return retval; in pdc_pci_irt()
964 int retval;
970 retval = mem_pdc_call(PDC_PCI_INDEX, PDC_PCI_READ_CONFIG,
974 return retval ? ~0 : (unsigned int) pdc_result[0];
988 int retval;
993 retval = mem_pdc_call(PDC_PCI_INDEX, PDC_PCI_WRITE_CONFIG,
998 return retval;
1010 int retval; in pdc_tod_read() local
1014 retval = mem_pdc_call(PDC_TOD, PDC_TOD_READ, __pa(pdc_result), 0); in pdc_tod_read()
1019 return retval; in pdc_tod_read()
1025 int retval; in pdc_mem_pdt_info() local
1029 retval = mem_pdc_call(PDC_MEM, PDC_MEM_MEMINFO, __pa(pdc_result), 0); in pdc_mem_pdt_info()
1034 return retval; in pdc_mem_pdt_info()
1040 int retval; in pdc_mem_pdt_read_entries() local
1044 retval = mem_pdc_call(PDC_MEM, PDC_MEM_READ_PDT, __pa(pdc_result), in pdc_mem_pdt_read_entries()
1046 if (retval == PDC_OK) { in pdc_mem_pdt_read_entries()
1057 if (WARN_ON_ONCE((retval == PDC_OK) && parisc_narrow_firmware)) in pdc_mem_pdt_read_entries()
1061 return retval; in pdc_mem_pdt_read_entries()
1070 int retval; in pdc_pim_toc11() local
1074 retval = mem_pdc_call(PDC_PIM, PDC_PIM_TOC, __pa(pdc_result), in pdc_pim_toc11()
1077 return retval; in pdc_pim_toc11()
1086 int retval; in pdc_pim_toc20() local
1090 retval = mem_pdc_call(PDC_PIM, PDC_PIM_TOC, __pa(pdc_result), in pdc_pim_toc20()
1093 return retval; in pdc_pim_toc20()
1105 int retval; in pdc_tod_set() local
1109 retval = mem_pdc_call(PDC_TOD, PDC_TOD_WRITE, sec, usec); in pdc_tod_set()
1112 return retval; in pdc_tod_set()
1120 int retval; in pdc_mem_mem_table() local
1124 retval = mem_pdc_call(PDC_MEM, PDC_MEM_TABLE, __pa(pdc_result), __pa(pdc_result2), entries); in pdc_mem_mem_table()
1130 return retval; in pdc_mem_mem_table()
1140 int retval; in pdc_do_firm_test_reset() local
1144 retval = mem_pdc_call(PDC_BROADCAST_RESET, PDC_DO_FIRM_TEST_RESET, in pdc_do_firm_test_reset()
1148 return retval; in pdc_do_firm_test_reset()
1158 int retval; in pdc_do_reset() local
1162 retval = mem_pdc_call(PDC_BROADCAST_RESET, PDC_DO_RESET); in pdc_do_reset()
1165 return retval; in pdc_do_reset()
1176 int retval; in pdc_soft_power_info() local
1182 retval = mem_pdc_call(PDC_SOFT_POWER, PDC_SOFT_POWER_INFO, __pa(pdc_result), 0); in pdc_soft_power_info()
1183 if (retval == PDC_OK) { in pdc_soft_power_info()
1189 return retval; in pdc_soft_power_info()
1205 int retval; in pdc_soft_power_button() local
1209 retval = mem_pdc_call(PDC_SOFT_POWER, PDC_SOFT_POWER_ENABLE, __pa(pdc_result), sw_control); in pdc_soft_power_button()
1212 return retval; in pdc_soft_power_button()
1331 int retval; in pdc_sti_call() local
1335 retval = real32_call(func, flags, inptr, outputr, glob_cfg); in pdc_sti_call()
1338 return retval; in pdc_sti_call()
1352 int retval; in pdc_pat_cell_get_number() local
1356 retval = mem_pdc_call(PDC_PAT_CELL, PDC_PAT_CELL_GET_NUMBER, __pa(pdc_result)); in pdc_pat_cell_get_number()
1360 return retval; in pdc_pat_cell_get_number()
1377 int retval; in pdc_pat_cell_module() local
1382 retval = mem_pdc_call(PDC_PAT_CELL, PDC_PAT_CELL_MODULE, __pa(pdc_result), in pdc_pat_cell_module()
1384 if(!retval) { in pdc_pat_cell_module()
1390 return retval; in pdc_pat_cell_module()
1406 int retval; in pdc_pat_cell_info() local
1411 retval = mem_pdc_call(PDC_PAT_CELL, PDC_PAT_CELL_GET_INFO, in pdc_pat_cell_info()
1414 if (!retval) { in pdc_pat_cell_info()
1420 return retval; in pdc_pat_cell_info()
1432 int retval; in pdc_pat_cpu_get_number() local
1436 retval = mem_pdc_call(PDC_PAT_CPU, PDC_PAT_CPU_GET_NUMBER, in pdc_pat_cpu_get_number()
1441 return retval; in pdc_pat_cpu_get_number()
1454 int retval; in pdc_pat_get_irt_size() local
1458 retval = mem_pdc_call(PDC_PAT_IO, PDC_PAT_IO_GET_PCI_ROUTING_TABLE_SIZE, in pdc_pat_get_irt_size()
1463 return retval; in pdc_pat_get_irt_size()
1475 int retval; in pdc_pat_get_irt() local
1479 retval = mem_pdc_call(PDC_PAT_IO, PDC_PAT_IO_GET_PCI_ROUTING_TABLE, in pdc_pat_get_irt()
1483 return retval; in pdc_pat_get_irt()
1497 int retval; in pdc_pat_pd_get_addr_map() local
1501 retval = mem_pdc_call(PDC_PAT_PD, PDC_PAT_PD_GET_ADDR_MAP, __pa(pdc_result), in pdc_pat_pd_get_addr_map()
1507 return retval; in pdc_pat_pd_get_addr_map()
1520 int retval; in pdc_pat_pd_get_pdc_revisions() local
1524 retval = mem_pdc_call(PDC_PAT_PD, PDC_PAT_PD_GET_PDC_INTERF_REV, in pdc_pat_pd_get_pdc_revisions()
1526 if (retval == PDC_OK) { in pdc_pat_pd_get_pdc_revisions()
1533 return retval; in pdc_pat_pd_get_pdc_revisions()
1546 int retval; in pdc_pat_io_pci_cfg_read() local
1550 retval = mem_pdc_call(PDC_PAT_IO, PDC_PAT_IO_PCI_CONFIG_READ, in pdc_pat_io_pci_cfg_read()
1559 return retval; in pdc_pat_io_pci_cfg_read()
1572 int retval; in pdc_pat_io_pci_cfg_write() local
1576 retval = mem_pdc_call(PDC_PAT_IO, PDC_PAT_IO_PCI_CONFIG_WRITE, in pdc_pat_io_pci_cfg_write()
1580 return retval; in pdc_pat_io_pci_cfg_write()
1590 int retval; in pdc_pat_mem_pdt_info() local
1594 retval = mem_pdc_call(PDC_PAT_MEM, PDC_PAT_MEM_PD_INFO, in pdc_pat_mem_pdt_info()
1596 if (retval == PDC_OK) in pdc_pat_mem_pdt_info()
1600 return retval; in pdc_pat_mem_pdt_info()
1613 int retval; in pdc_pat_mem_pdt_cell_info() local
1617 retval = mem_pdc_call(PDC_PAT_MEM, PDC_PAT_MEM_CELL_INFO, in pdc_pat_mem_pdt_cell_info()
1619 if (retval == PDC_OK) in pdc_pat_mem_pdt_cell_info()
1623 return retval; in pdc_pat_mem_pdt_cell_info()
1636 int retval; in pdc_pat_mem_read_cell_pdt() local
1641 retval = mem_pdc_call(PDC_PAT_MEM, PDC_PAT_MEM_CELL_READ, in pdc_pat_mem_read_cell_pdt()
1645 if (retval == PDC_OK) { in pdc_pat_mem_read_cell_pdt()
1653 WARN_ON(retval == PDC_OK && pdc_result[0] > max_entries); in pdc_pat_mem_read_cell_pdt()
1655 return retval; in pdc_pat_mem_read_cell_pdt()
1669 int retval; in pdc_pat_mem_read_pd_pdt() local
1673 retval = mem_pdc_call(PDC_PAT_MEM, PDC_PAT_MEM_PD_READ, in pdc_pat_mem_read_pd_pdt()
1677 if (retval == PDC_OK) { in pdc_pat_mem_read_pd_pdt()
1685 return retval; in pdc_pat_mem_read_pd_pdt()
1698 int retval; in pdc_pat_mem_get_dimm_phys_location() local
1702 retval = mem_pdc_call(PDC_PAT_MEM, PDC_PAT_MEM_ADDRESS, in pdc_pat_mem_get_dimm_phys_location()
1705 if (retval == PDC_OK) in pdc_pat_mem_get_dimm_phys_location()
1710 return retval; in pdc_pat_mem_get_dimm_phys_location()