Lines Matching refs:retval
227 int retval; in pdc_add_valid() local
231 retval = mem_pdc_call(PDC_ADD_VALID, PDC_ADD_VALID_VERIFY, address); in pdc_add_valid()
234 return retval; in pdc_add_valid()
246 int retval; in pdc_instr() local
250 retval = mem_pdc_call(PDC_INSTR, 0UL, __pa(pdc_result)); in pdc_instr()
255 return retval; in pdc_instr()
268 int retval; in pdc_chassis_info() local
274 retval = mem_pdc_call(PDC_CHASSIS, PDC_RETURN_CHASSIS_INFO, in pdc_chassis_info()
280 return retval; in pdc_chassis_info()
293 int retval = 0; in pdc_pat_chassis_send_log() local
300 retval = mem_pdc_call(PDC_PAT_CHASSIS_LOG, PDC_PAT_CHASSIS_WRITE_LOG, __pa(&state), __pa(&data)); in pdc_pat_chassis_send_log()
303 return retval; in pdc_pat_chassis_send_log()
313 int retval = 0; in pdc_chassis_disp() local
317 retval = mem_pdc_call(PDC_CHASSIS, PDC_CHASSIS_DISP, disp); in pdc_chassis_disp()
320 return retval; in pdc_chassis_disp()
356 int retval = 0; in pdc_pat_get_PDC_entrypoint() local
365 retval = mem_pdc_call(PDC_PAT_CPU, PDC_PAT_CPU_GET_PDC_ENTRYPOINT, in pdc_pat_get_PDC_entrypoint()
370 return retval; in pdc_pat_get_PDC_entrypoint()
378 int retval = 0; in pdc_chassis_warn() local
382 retval = mem_pdc_call(PDC_CHASSIS, PDC_CHASSIS_WARN, __pa(pdc_result)); in pdc_chassis_warn()
386 return retval; in pdc_chassis_warn()
436 int retval; in pdc_iodc_read() local
440 retval = mem_pdc_call(PDC_IODC, PDC_IODC_READ, __pa(pdc_result), hpa, in pdc_iodc_read()
447 return retval; in pdc_iodc_read()
463 int retval; in pdc_system_map_find_mods() local
467 retval = mem_pdc_call(PDC_SYSTEM_MAP, PDC_FIND_MODULE, __pa(pdc_result), in pdc_system_map_find_mods()
475 return retval; in pdc_system_map_find_mods()
490 int retval; in pdc_system_map_find_addrs() local
494 retval = mem_pdc_call(PDC_SYSTEM_MAP, PDC_FIND_ADDRESS, __pa(pdc_result), in pdc_system_map_find_addrs()
501 return retval; in pdc_system_map_find_addrs()
512 int retval; in pdc_model_info() local
516 retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_INFO, __pa(pdc_result), 0); in pdc_model_info()
521 return retval; in pdc_model_info()
535 int retval; in pdc_model_sysmodel() local
539 retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_SYSMODEL, __pa(pdc_result), in pdc_model_sysmodel()
543 if (retval == PDC_OK) { in pdc_model_sysmodel()
550 return retval; in pdc_model_sysmodel()
565 int retval; in pdc_model_versions() local
569 retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_VERSIONS, __pa(pdc_result), id); in pdc_model_versions()
574 return retval; in pdc_model_versions()
586 int retval; in pdc_model_cpuid() local
591 retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_CPU_ID, __pa(pdc_result), 0); in pdc_model_cpuid()
596 return retval; in pdc_model_cpuid()
608 int retval; in pdc_model_capabilities() local
613 retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_CAPABILITIES, __pa(pdc_result), 0); in pdc_model_capabilities()
615 if (retval == PDC_OK) { in pdc_model_capabilities()
622 return retval; in pdc_model_capabilities()
637 int retval; in pdc_model_platform_info() local
641 retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_GET_PLATFORM_INFO, in pdc_model_platform_info()
646 return retval; in pdc_model_platform_info()
657 int retval; in pdc_cache_info() local
661 retval = mem_pdc_call(PDC_CACHE, PDC_CACHE_INFO, __pa(pdc_result), 0); in pdc_cache_info()
666 return retval; in pdc_cache_info()
677 int retval; in pdc_spaceid_bits() local
682 retval = mem_pdc_call(PDC_CACHE, PDC_CACHE_RET_SPID, __pa(pdc_result), 0); in pdc_spaceid_bits()
687 return retval; in pdc_spaceid_bits()
698 int retval; in pdc_btlb_info() local
705 retval = mem_pdc_call(PDC_BLOCK_TLB, PDC_BTLB_INFO, __pa(pdc_result), 0); in pdc_btlb_info()
709 if(retval < 0) { in pdc_btlb_info()
712 return retval; in pdc_btlb_info()
718 int retval; in pdc_btlb_insert() local
725 retval = mem_pdc_call(PDC_BLOCK_TLB, PDC_BTLB_INSERT, (unsigned long) (vpage >> 32), in pdc_btlb_insert()
728 return retval; in pdc_btlb_insert()
733 int retval; in pdc_btlb_purge_all() local
740 retval = mem_pdc_call(PDC_BLOCK_TLB, PDC_BTLB_PURGE_ALL); in pdc_btlb_purge_all()
742 return retval; in pdc_btlb_purge_all()
760 int retval; in pdc_mem_map_hpa() local
768 retval = mem_pdc_call(PDC_MEM_MAP, PDC_MEM_MAP_HPA, __pa(pdc_result), in pdc_mem_map_hpa()
773 return retval; in pdc_mem_map_hpa()
785 int retval; in pdc_lan_station_id() local
789 retval = mem_pdc_call(PDC_LAN_STATION_ID, PDC_LAN_STATION_ID_READ, in pdc_lan_station_id()
791 if (retval < 0) { in pdc_lan_station_id()
799 return retval; in pdc_lan_station_id()
815 int retval; in pdc_stable_read() local
819 retval = mem_pdc_call(PDC_STABLE, PDC_STABLE_READ, staddr, in pdc_stable_read()
825 return retval; in pdc_stable_read()
841 int retval; in pdc_stable_write() local
847 retval = mem_pdc_call(PDC_STABLE, PDC_STABLE_WRITE, staddr, in pdc_stable_write()
851 return retval; in pdc_stable_write()
866 int retval; in pdc_stable_get_size() local
870 retval = mem_pdc_call(PDC_STABLE, PDC_STABLE_RETURN_SIZE, __pa(pdc_result)); in pdc_stable_get_size()
874 return retval; in pdc_stable_get_size()
886 int retval; in pdc_stable_verify_contents() local
890 retval = mem_pdc_call(PDC_STABLE, PDC_STABLE_VERIFY_CONTENTS); in pdc_stable_verify_contents()
893 return retval; in pdc_stable_verify_contents()
905 int retval; in pdc_stable_initialize() local
909 retval = mem_pdc_call(PDC_STABLE, PDC_STABLE_INITIALIZE); in pdc_stable_initialize()
912 return retval; in pdc_stable_initialize()
932 int retval; in pdc_get_initiator() local
941 retval = mem_pdc_call(PDC_INITIATOR, PDC_GET_INITIATOR, in pdc_get_initiator()
943 if (retval < PDC_OK) in pdc_get_initiator()
977 return (retval >= PDC_OK); in pdc_get_initiator()
993 int retval; in pdc_pci_irt_size() local
997 retval = mem_pdc_call(PDC_PCI_INDEX, PDC_PCI_GET_INT_TBL_SIZE, in pdc_pci_irt_size()
1003 return retval; in pdc_pci_irt_size()
1017 int retval; in pdc_pci_irt() local
1024 retval = mem_pdc_call(PDC_PCI_INDEX, PDC_PCI_GET_INT_TBL, in pdc_pci_irt()
1028 return retval; in pdc_pci_irt()
1043 int retval;
1049 retval = mem_pdc_call(PDC_PCI_INDEX, PDC_PCI_READ_CONFIG,
1053 return retval ? ~0 : (unsigned int) pdc_result[0];
1067 int retval;
1072 retval = mem_pdc_call(PDC_PCI_INDEX, PDC_PCI_WRITE_CONFIG,
1077 return retval;
1089 int retval; in pdc_tod_read() local
1093 retval = mem_pdc_call(PDC_TOD, PDC_TOD_READ, __pa(pdc_result), 0); in pdc_tod_read()
1098 return retval; in pdc_tod_read()
1104 int retval; in pdc_mem_pdt_info() local
1108 retval = mem_pdc_call(PDC_MEM, PDC_MEM_MEMINFO, __pa(pdc_result), 0); in pdc_mem_pdt_info()
1113 return retval; in pdc_mem_pdt_info()
1119 int retval; in pdc_mem_pdt_read_entries() local
1123 retval = mem_pdc_call(PDC_MEM, PDC_MEM_READ_PDT, __pa(pdc_result), in pdc_mem_pdt_read_entries()
1125 if (retval == PDC_OK) { in pdc_mem_pdt_read_entries()
1136 if (WARN_ON_ONCE((retval == PDC_OK) && parisc_narrow_firmware)) in pdc_mem_pdt_read_entries()
1140 return retval; in pdc_mem_pdt_read_entries()
1149 int retval; in pdc_pim_toc11() local
1153 retval = mem_pdc_call(PDC_PIM, PDC_PIM_TOC, __pa(pdc_result), in pdc_pim_toc11()
1156 return retval; in pdc_pim_toc11()
1165 int retval; in pdc_pim_toc20() local
1169 retval = mem_pdc_call(PDC_PIM, PDC_PIM_TOC, __pa(pdc_result), in pdc_pim_toc20()
1172 return retval; in pdc_pim_toc20()
1184 int retval; in pdc_tod_set() local
1188 retval = mem_pdc_call(PDC_TOD, PDC_TOD_WRITE, sec, usec); in pdc_tod_set()
1191 return retval; in pdc_tod_set()
1199 int retval; in pdc_mem_mem_table() local
1203 retval = mem_pdc_call(PDC_MEM, PDC_MEM_TABLE, __pa(pdc_result), __pa(pdc_result2), entries); in pdc_mem_mem_table()
1209 return retval; in pdc_mem_mem_table()
1219 int retval; in pdc_do_firm_test_reset() local
1223 retval = mem_pdc_call(PDC_BROADCAST_RESET, PDC_DO_FIRM_TEST_RESET, in pdc_do_firm_test_reset()
1227 return retval; in pdc_do_firm_test_reset()
1237 int retval; in pdc_do_reset() local
1241 retval = mem_pdc_call(PDC_BROADCAST_RESET, PDC_DO_RESET); in pdc_do_reset()
1244 return retval; in pdc_do_reset()
1255 int retval; in pdc_soft_power_info() local
1261 retval = mem_pdc_call(PDC_SOFT_POWER, PDC_SOFT_POWER_INFO, __pa(pdc_result), 0); in pdc_soft_power_info()
1262 if (retval == PDC_OK) { in pdc_soft_power_info()
1268 return retval; in pdc_soft_power_info()
1287 int retval; in pdc_soft_power_button() local
1291 retval = mem_pdc_call(PDC_SOFT_POWER, PDC_SOFT_POWER_ENABLE, __pa(pdc_result), sw_control); in pdc_soft_power_button()
1294 return retval; in pdc_soft_power_button()
1299 int retval; in pdc_soft_power_button_panic() local
1307 retval = mem_pdc_call(PDC_SOFT_POWER, PDC_SOFT_POWER_ENABLE, __pa(pdc_result), sw_control); in pdc_soft_power_button_panic()
1310 return retval; in pdc_soft_power_button_panic()
1432 int retval = 0; in pdc_sti_call() local
1438 retval = real64_call(func, flags, inptr, outputr, glob_cfg); in pdc_sti_call()
1443 retval = real32_call(func, flags, inptr, outputr, glob_cfg); in pdc_sti_call()
1447 return retval; in pdc_sti_call()
1461 int retval; in pdc_pat_cell_get_number() local
1465 retval = mem_pdc_call(PDC_PAT_CELL, PDC_PAT_CELL_GET_NUMBER, __pa(pdc_result)); in pdc_pat_cell_get_number()
1469 return retval; in pdc_pat_cell_get_number()
1486 int retval; in pdc_pat_cell_module() local
1491 retval = mem_pdc_call(PDC_PAT_CELL, PDC_PAT_CELL_MODULE, __pa(pdc_result), in pdc_pat_cell_module()
1493 if(!retval) { in pdc_pat_cell_module()
1499 return retval; in pdc_pat_cell_module()
1515 int retval; in pdc_pat_cell_info() local
1520 retval = mem_pdc_call(PDC_PAT_CELL, PDC_PAT_CELL_GET_INFO, in pdc_pat_cell_info()
1523 if (!retval) { in pdc_pat_cell_info()
1529 return retval; in pdc_pat_cell_info()
1541 int retval; in pdc_pat_cpu_get_number() local
1545 retval = mem_pdc_call(PDC_PAT_CPU, PDC_PAT_CPU_GET_NUMBER, in pdc_pat_cpu_get_number()
1550 return retval; in pdc_pat_cpu_get_number()
1563 int retval; in pdc_pat_get_irt_size() local
1567 retval = mem_pdc_call(PDC_PAT_IO, PDC_PAT_IO_GET_PCI_ROUTING_TABLE_SIZE, in pdc_pat_get_irt_size()
1572 return retval; in pdc_pat_get_irt_size()
1584 int retval; in pdc_pat_get_irt() local
1588 retval = mem_pdc_call(PDC_PAT_IO, PDC_PAT_IO_GET_PCI_ROUTING_TABLE, in pdc_pat_get_irt()
1592 return retval; in pdc_pat_get_irt()
1606 int retval; in pdc_pat_pd_get_addr_map() local
1610 retval = mem_pdc_call(PDC_PAT_PD, PDC_PAT_PD_GET_ADDR_MAP, __pa(pdc_result), in pdc_pat_pd_get_addr_map()
1616 return retval; in pdc_pat_pd_get_addr_map()
1629 int retval; in pdc_pat_pd_get_pdc_revisions() local
1633 retval = mem_pdc_call(PDC_PAT_PD, PDC_PAT_PD_GET_PDC_INTERF_REV, in pdc_pat_pd_get_pdc_revisions()
1635 if (retval == PDC_OK) { in pdc_pat_pd_get_pdc_revisions()
1642 return retval; in pdc_pat_pd_get_pdc_revisions()
1655 int retval; in pdc_pat_io_pci_cfg_read() local
1659 retval = mem_pdc_call(PDC_PAT_IO, PDC_PAT_IO_PCI_CONFIG_READ, in pdc_pat_io_pci_cfg_read()
1668 return retval; in pdc_pat_io_pci_cfg_read()
1681 int retval; in pdc_pat_io_pci_cfg_write() local
1685 retval = mem_pdc_call(PDC_PAT_IO, PDC_PAT_IO_PCI_CONFIG_WRITE, in pdc_pat_io_pci_cfg_write()
1689 return retval; in pdc_pat_io_pci_cfg_write()
1699 int retval; in pdc_pat_mem_pdt_info() local
1703 retval = mem_pdc_call(PDC_PAT_MEM, PDC_PAT_MEM_PD_INFO, in pdc_pat_mem_pdt_info()
1705 if (retval == PDC_OK) in pdc_pat_mem_pdt_info()
1709 return retval; in pdc_pat_mem_pdt_info()
1722 int retval; in pdc_pat_mem_pdt_cell_info() local
1726 retval = mem_pdc_call(PDC_PAT_MEM, PDC_PAT_MEM_CELL_INFO, in pdc_pat_mem_pdt_cell_info()
1728 if (retval == PDC_OK) in pdc_pat_mem_pdt_cell_info()
1732 return retval; in pdc_pat_mem_pdt_cell_info()
1745 int retval; in pdc_pat_mem_read_cell_pdt() local
1750 retval = mem_pdc_call(PDC_PAT_MEM, PDC_PAT_MEM_CELL_READ, in pdc_pat_mem_read_cell_pdt()
1754 if (retval == PDC_OK) { in pdc_pat_mem_read_cell_pdt()
1762 WARN_ON(retval == PDC_OK && pdc_result[0] > max_entries); in pdc_pat_mem_read_cell_pdt()
1764 return retval; in pdc_pat_mem_read_cell_pdt()
1778 int retval; in pdc_pat_mem_read_pd_pdt() local
1782 retval = mem_pdc_call(PDC_PAT_MEM, PDC_PAT_MEM_PD_READ, in pdc_pat_mem_read_pd_pdt()
1786 if (retval == PDC_OK) { in pdc_pat_mem_read_pd_pdt()
1794 return retval; in pdc_pat_mem_read_pd_pdt()
1807 int retval; in pdc_pat_mem_get_dimm_phys_location() local
1811 retval = mem_pdc_call(PDC_PAT_MEM, PDC_PAT_MEM_ADDRESS, in pdc_pat_mem_get_dimm_phys_location()
1814 if (retval == PDC_OK) in pdc_pat_mem_get_dimm_phys_location()
1819 return retval; in pdc_pat_mem_get_dimm_phys_location()