Lines Matching refs:retval
225 int retval; in pdc_add_valid() local
229 retval = mem_pdc_call(PDC_ADD_VALID, PDC_ADD_VALID_VERIFY, address); in pdc_add_valid()
232 return retval; in pdc_add_valid()
244 int retval; in pdc_instr() local
248 retval = mem_pdc_call(PDC_INSTR, 0UL, __pa(pdc_result)); in pdc_instr()
253 return retval; in pdc_instr()
266 int retval; in pdc_chassis_info() local
272 retval = mem_pdc_call(PDC_CHASSIS, PDC_RETURN_CHASSIS_INFO, in pdc_chassis_info()
278 return retval; in pdc_chassis_info()
290 int retval = 0; in pdc_pat_chassis_send_log() local
297 retval = mem_pdc_call(PDC_PAT_CHASSIS_LOG, PDC_PAT_CHASSIS_WRITE_LOG, __pa(&state), __pa(&data)); in pdc_pat_chassis_send_log()
300 return retval; in pdc_pat_chassis_send_log()
310 int retval = 0; in pdc_chassis_disp() local
314 retval = mem_pdc_call(PDC_CHASSIS, PDC_CHASSIS_DISP, disp); in pdc_chassis_disp()
317 return retval; in pdc_chassis_disp()
354 int retval = 0; in pdc_pat_get_PDC_entrypoint() local
363 retval = mem_pdc_call(PDC_PAT_CPU, PDC_PAT_CPU_GET_PDC_ENTRYPOINT, in pdc_pat_get_PDC_entrypoint()
368 return retval; in pdc_pat_get_PDC_entrypoint()
376 int retval = 0; in pdc_chassis_warn() local
380 retval = mem_pdc_call(PDC_CHASSIS, PDC_CHASSIS_WARN, __pa(pdc_result)); in pdc_chassis_warn()
384 return retval; in pdc_chassis_warn()
434 int retval; in pdc_iodc_read() local
438 retval = mem_pdc_call(PDC_IODC, PDC_IODC_READ, __pa(pdc_result), hpa, in pdc_iodc_read()
445 return retval; in pdc_iodc_read()
461 int retval; in pdc_system_map_find_mods() local
465 retval = mem_pdc_call(PDC_SYSTEM_MAP, PDC_FIND_MODULE, __pa(pdc_result), in pdc_system_map_find_mods()
473 return retval; in pdc_system_map_find_mods()
488 int retval; in pdc_system_map_find_addrs() local
492 retval = mem_pdc_call(PDC_SYSTEM_MAP, PDC_FIND_ADDRESS, __pa(pdc_result), in pdc_system_map_find_addrs()
499 return retval; in pdc_system_map_find_addrs()
510 int retval; in pdc_model_info() local
514 retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_INFO, __pa(pdc_result), 0); in pdc_model_info()
519 return retval; in pdc_model_info()
532 int retval; in pdc_model_sysmodel() local
536 retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_SYSMODEL, __pa(pdc_result), in pdc_model_sysmodel()
540 if (retval == PDC_OK) { in pdc_model_sysmodel()
547 return retval; in pdc_model_sysmodel()
562 int retval; in pdc_model_versions() local
566 retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_VERSIONS, __pa(pdc_result), id); in pdc_model_versions()
571 return retval; in pdc_model_versions()
583 int retval; in pdc_model_cpuid() local
588 retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_CPU_ID, __pa(pdc_result), 0); in pdc_model_cpuid()
593 return retval; in pdc_model_cpuid()
605 int retval; in pdc_model_capabilities() local
610 retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_CAPABILITIES, __pa(pdc_result), 0); in pdc_model_capabilities()
612 if (retval == PDC_OK) { in pdc_model_capabilities()
619 return retval; in pdc_model_capabilities()
634 int retval; in pdc_model_platform_info() local
638 retval = mem_pdc_call(PDC_MODEL, PDC_MODEL_GET_PLATFORM_INFO, in pdc_model_platform_info()
643 return retval; in pdc_model_platform_info()
654 int retval; in pdc_cache_info() local
658 retval = mem_pdc_call(PDC_CACHE, PDC_CACHE_INFO, __pa(pdc_result), 0); in pdc_cache_info()
663 return retval; in pdc_cache_info()
674 int retval; in pdc_spaceid_bits() local
679 retval = mem_pdc_call(PDC_CACHE, PDC_CACHE_RET_SPID, __pa(pdc_result), 0); in pdc_spaceid_bits()
684 return retval; in pdc_spaceid_bits()
696 int retval; in pdc_btlb_info() local
700 retval = mem_pdc_call(PDC_BLOCK_TLB, PDC_BTLB_INFO, __pa(pdc_result), 0); in pdc_btlb_info()
704 if(retval < 0) { in pdc_btlb_info()
707 return retval; in pdc_btlb_info()
725 int retval; in pdc_mem_map_hpa() local
730 retval = mem_pdc_call(PDC_MEM_MAP, PDC_MEM_MAP_HPA, __pa(pdc_result), in pdc_mem_map_hpa()
735 return retval; in pdc_mem_map_hpa()
748 int retval; in pdc_lan_station_id() local
752 retval = mem_pdc_call(PDC_LAN_STATION_ID, PDC_LAN_STATION_ID_READ, in pdc_lan_station_id()
754 if (retval < 0) { in pdc_lan_station_id()
762 return retval; in pdc_lan_station_id()
778 int retval; in pdc_stable_read() local
782 retval = mem_pdc_call(PDC_STABLE, PDC_STABLE_READ, staddr, in pdc_stable_read()
788 return retval; in pdc_stable_read()
804 int retval; in pdc_stable_write() local
810 retval = mem_pdc_call(PDC_STABLE, PDC_STABLE_WRITE, staddr, in pdc_stable_write()
814 return retval; in pdc_stable_write()
829 int retval; in pdc_stable_get_size() local
833 retval = mem_pdc_call(PDC_STABLE, PDC_STABLE_RETURN_SIZE, __pa(pdc_result)); in pdc_stable_get_size()
837 return retval; in pdc_stable_get_size()
849 int retval; in pdc_stable_verify_contents() local
853 retval = mem_pdc_call(PDC_STABLE, PDC_STABLE_VERIFY_CONTENTS); in pdc_stable_verify_contents()
856 return retval; in pdc_stable_verify_contents()
868 int retval; in pdc_stable_initialize() local
872 retval = mem_pdc_call(PDC_STABLE, PDC_STABLE_INITIALIZE); in pdc_stable_initialize()
875 return retval; in pdc_stable_initialize()
895 int retval; in pdc_get_initiator() local
904 retval = mem_pdc_call(PDC_INITIATOR, PDC_GET_INITIATOR, in pdc_get_initiator()
906 if (retval < PDC_OK) in pdc_get_initiator()
940 return (retval >= PDC_OK); in pdc_get_initiator()
956 int retval; in pdc_pci_irt_size() local
960 retval = mem_pdc_call(PDC_PCI_INDEX, PDC_PCI_GET_INT_TBL_SIZE, in pdc_pci_irt_size()
966 return retval; in pdc_pci_irt_size()
980 int retval; in pdc_pci_irt() local
987 retval = mem_pdc_call(PDC_PCI_INDEX, PDC_PCI_GET_INT_TBL, in pdc_pci_irt()
991 return retval; in pdc_pci_irt()
1006 int retval;
1012 retval = mem_pdc_call(PDC_PCI_INDEX, PDC_PCI_READ_CONFIG,
1016 return retval ? ~0 : (unsigned int) pdc_result[0];
1030 int retval;
1035 retval = mem_pdc_call(PDC_PCI_INDEX, PDC_PCI_WRITE_CONFIG,
1040 return retval;
1052 int retval; in pdc_tod_read() local
1056 retval = mem_pdc_call(PDC_TOD, PDC_TOD_READ, __pa(pdc_result), 0); in pdc_tod_read()
1061 return retval; in pdc_tod_read()
1067 int retval; in pdc_mem_pdt_info() local
1071 retval = mem_pdc_call(PDC_MEM, PDC_MEM_MEMINFO, __pa(pdc_result), 0); in pdc_mem_pdt_info()
1076 return retval; in pdc_mem_pdt_info()
1082 int retval; in pdc_mem_pdt_read_entries() local
1086 retval = mem_pdc_call(PDC_MEM, PDC_MEM_READ_PDT, __pa(pdc_result), in pdc_mem_pdt_read_entries()
1088 if (retval == PDC_OK) { in pdc_mem_pdt_read_entries()
1099 if (WARN_ON_ONCE((retval == PDC_OK) && parisc_narrow_firmware)) in pdc_mem_pdt_read_entries()
1103 return retval; in pdc_mem_pdt_read_entries()
1112 int retval; in pdc_pim_toc11() local
1116 retval = mem_pdc_call(PDC_PIM, PDC_PIM_TOC, __pa(pdc_result), in pdc_pim_toc11()
1119 return retval; in pdc_pim_toc11()
1128 int retval; in pdc_pim_toc20() local
1132 retval = mem_pdc_call(PDC_PIM, PDC_PIM_TOC, __pa(pdc_result), in pdc_pim_toc20()
1135 return retval; in pdc_pim_toc20()
1147 int retval; in pdc_tod_set() local
1151 retval = mem_pdc_call(PDC_TOD, PDC_TOD_WRITE, sec, usec); in pdc_tod_set()
1154 return retval; in pdc_tod_set()
1162 int retval; in pdc_mem_mem_table() local
1166 retval = mem_pdc_call(PDC_MEM, PDC_MEM_TABLE, __pa(pdc_result), __pa(pdc_result2), entries); in pdc_mem_mem_table()
1172 return retval; in pdc_mem_mem_table()
1182 int retval; in pdc_do_firm_test_reset() local
1186 retval = mem_pdc_call(PDC_BROADCAST_RESET, PDC_DO_FIRM_TEST_RESET, in pdc_do_firm_test_reset()
1190 return retval; in pdc_do_firm_test_reset()
1200 int retval; in pdc_do_reset() local
1204 retval = mem_pdc_call(PDC_BROADCAST_RESET, PDC_DO_RESET); in pdc_do_reset()
1207 return retval; in pdc_do_reset()
1218 int retval; in pdc_soft_power_info() local
1224 retval = mem_pdc_call(PDC_SOFT_POWER, PDC_SOFT_POWER_INFO, __pa(pdc_result), 0); in pdc_soft_power_info()
1225 if (retval == PDC_OK) { in pdc_soft_power_info()
1231 return retval; in pdc_soft_power_info()
1247 int retval; in pdc_soft_power_button() local
1251 retval = mem_pdc_call(PDC_SOFT_POWER, PDC_SOFT_POWER_ENABLE, __pa(pdc_result), sw_control); in pdc_soft_power_button()
1254 return retval; in pdc_soft_power_button()
1376 int retval; in pdc_sti_call() local
1380 retval = real32_call(func, flags, inptr, outputr, glob_cfg); in pdc_sti_call()
1383 return retval; in pdc_sti_call()
1397 int retval; in pdc_pat_cell_get_number() local
1401 retval = mem_pdc_call(PDC_PAT_CELL, PDC_PAT_CELL_GET_NUMBER, __pa(pdc_result)); in pdc_pat_cell_get_number()
1405 return retval; in pdc_pat_cell_get_number()
1422 int retval; in pdc_pat_cell_module() local
1427 retval = mem_pdc_call(PDC_PAT_CELL, PDC_PAT_CELL_MODULE, __pa(pdc_result), in pdc_pat_cell_module()
1429 if(!retval) { in pdc_pat_cell_module()
1435 return retval; in pdc_pat_cell_module()
1451 int retval; in pdc_pat_cell_info() local
1456 retval = mem_pdc_call(PDC_PAT_CELL, PDC_PAT_CELL_GET_INFO, in pdc_pat_cell_info()
1459 if (!retval) { in pdc_pat_cell_info()
1465 return retval; in pdc_pat_cell_info()
1477 int retval; in pdc_pat_cpu_get_number() local
1481 retval = mem_pdc_call(PDC_PAT_CPU, PDC_PAT_CPU_GET_NUMBER, in pdc_pat_cpu_get_number()
1486 return retval; in pdc_pat_cpu_get_number()
1499 int retval; in pdc_pat_get_irt_size() local
1503 retval = mem_pdc_call(PDC_PAT_IO, PDC_PAT_IO_GET_PCI_ROUTING_TABLE_SIZE, in pdc_pat_get_irt_size()
1508 return retval; in pdc_pat_get_irt_size()
1520 int retval; in pdc_pat_get_irt() local
1524 retval = mem_pdc_call(PDC_PAT_IO, PDC_PAT_IO_GET_PCI_ROUTING_TABLE, in pdc_pat_get_irt()
1528 return retval; in pdc_pat_get_irt()
1542 int retval; in pdc_pat_pd_get_addr_map() local
1546 retval = mem_pdc_call(PDC_PAT_PD, PDC_PAT_PD_GET_ADDR_MAP, __pa(pdc_result), in pdc_pat_pd_get_addr_map()
1552 return retval; in pdc_pat_pd_get_addr_map()
1565 int retval; in pdc_pat_pd_get_pdc_revisions() local
1569 retval = mem_pdc_call(PDC_PAT_PD, PDC_PAT_PD_GET_PDC_INTERF_REV, in pdc_pat_pd_get_pdc_revisions()
1571 if (retval == PDC_OK) { in pdc_pat_pd_get_pdc_revisions()
1578 return retval; in pdc_pat_pd_get_pdc_revisions()
1591 int retval; in pdc_pat_io_pci_cfg_read() local
1595 retval = mem_pdc_call(PDC_PAT_IO, PDC_PAT_IO_PCI_CONFIG_READ, in pdc_pat_io_pci_cfg_read()
1604 return retval; in pdc_pat_io_pci_cfg_read()
1617 int retval; in pdc_pat_io_pci_cfg_write() local
1621 retval = mem_pdc_call(PDC_PAT_IO, PDC_PAT_IO_PCI_CONFIG_WRITE, in pdc_pat_io_pci_cfg_write()
1625 return retval; in pdc_pat_io_pci_cfg_write()
1635 int retval; in pdc_pat_mem_pdt_info() local
1639 retval = mem_pdc_call(PDC_PAT_MEM, PDC_PAT_MEM_PD_INFO, in pdc_pat_mem_pdt_info()
1641 if (retval == PDC_OK) in pdc_pat_mem_pdt_info()
1645 return retval; in pdc_pat_mem_pdt_info()
1658 int retval; in pdc_pat_mem_pdt_cell_info() local
1662 retval = mem_pdc_call(PDC_PAT_MEM, PDC_PAT_MEM_CELL_INFO, in pdc_pat_mem_pdt_cell_info()
1664 if (retval == PDC_OK) in pdc_pat_mem_pdt_cell_info()
1668 return retval; in pdc_pat_mem_pdt_cell_info()
1681 int retval; in pdc_pat_mem_read_cell_pdt() local
1686 retval = mem_pdc_call(PDC_PAT_MEM, PDC_PAT_MEM_CELL_READ, in pdc_pat_mem_read_cell_pdt()
1690 if (retval == PDC_OK) { in pdc_pat_mem_read_cell_pdt()
1698 WARN_ON(retval == PDC_OK && pdc_result[0] > max_entries); in pdc_pat_mem_read_cell_pdt()
1700 return retval; in pdc_pat_mem_read_cell_pdt()
1714 int retval; in pdc_pat_mem_read_pd_pdt() local
1718 retval = mem_pdc_call(PDC_PAT_MEM, PDC_PAT_MEM_PD_READ, in pdc_pat_mem_read_pd_pdt()
1722 if (retval == PDC_OK) { in pdc_pat_mem_read_pd_pdt()
1730 return retval; in pdc_pat_mem_read_pd_pdt()
1743 int retval; in pdc_pat_mem_get_dimm_phys_location() local
1747 retval = mem_pdc_call(PDC_PAT_MEM, PDC_PAT_MEM_ADDRESS, in pdc_pat_mem_get_dimm_phys_location()
1750 if (retval == PDC_OK) in pdc_pat_mem_get_dimm_phys_location()
1755 return retval; in pdc_pat_mem_get_dimm_phys_location()