Lines Matching refs:iprv

799 #define PAL_CALL(iprv,a0,a1,a2,a3) do {			\  argument
802 iprv = ia64_pal_call_static(a0, a1, a2, a3); \
806 #define PAL_CALL_STK(iprv,a0,a1,a2,a3) do { \ argument
809 iprv = ia64_pal_call_stacked(a0, a1, a2, a3); \
813 #define PAL_CALL_PHYS(iprv,a0,a1,a2,a3) do { \ argument
816 iprv = ia64_pal_call_phys_static(a0, a1, a2, a3); \
820 #define PAL_CALL_PHYS_STK(iprv,a0,a1,a2,a3) do { \ argument
823 iprv = ia64_pal_call_phys_stacked(a0, a1, a2, a3); \
886 struct ia64_pal_retval iprv; in ia64_pal_bus_get_features() local
887 PAL_CALL_PHYS(iprv, PAL_BUS_GET_FEATURES, 0, 0, 0); in ia64_pal_bus_get_features()
889 features_avail->pal_bus_features_val = iprv.v0; in ia64_pal_bus_get_features()
891 features_status->pal_bus_features_val = iprv.v1; in ia64_pal_bus_get_features()
893 features_control->pal_bus_features_val = iprv.v2; in ia64_pal_bus_get_features()
894 return iprv.status; in ia64_pal_bus_get_features()
901 struct ia64_pal_retval iprv; in ia64_pal_bus_set_features() local
902 PAL_CALL_PHYS(iprv, PAL_BUS_SET_FEATURES, feature_select.pal_bus_features_val, 0, 0); in ia64_pal_bus_set_features()
903 return iprv.status; in ia64_pal_bus_set_features()
910 struct ia64_pal_retval iprv; in ia64_pal_cache_config_info() local
912 PAL_CALL(iprv, PAL_CACHE_INFO, cache_level, cache_type, 0); in ia64_pal_cache_config_info()
914 if (iprv.status == 0) { in ia64_pal_cache_config_info()
915 conf->pcci_status = iprv.status; in ia64_pal_cache_config_info()
916 conf->pcci_info_1.pcci1_data = iprv.v0; in ia64_pal_cache_config_info()
917 conf->pcci_info_2.pcci2_data = iprv.v1; in ia64_pal_cache_config_info()
918 conf->pcci_reserved = iprv.v2; in ia64_pal_cache_config_info()
920 return iprv.status; in ia64_pal_cache_config_info()
928 struct ia64_pal_retval iprv; in ia64_pal_cache_prot_info() local
930 PAL_CALL(iprv, PAL_CACHE_PROT_INFO, cache_level, cache_type, 0); in ia64_pal_cache_prot_info()
932 if (iprv.status == 0) { in ia64_pal_cache_prot_info()
933 prot->pcpi_status = iprv.status; in ia64_pal_cache_prot_info()
934 prot->pcp_info[0].pcpi_data = iprv.v0 & 0xffffffff; in ia64_pal_cache_prot_info()
935 prot->pcp_info[1].pcpi_data = iprv.v0 >> 32; in ia64_pal_cache_prot_info()
936 prot->pcp_info[2].pcpi_data = iprv.v1 & 0xffffffff; in ia64_pal_cache_prot_info()
937 prot->pcp_info[3].pcpi_data = iprv.v1 >> 32; in ia64_pal_cache_prot_info()
938 prot->pcp_info[4].pcpi_data = iprv.v2 & 0xffffffff; in ia64_pal_cache_prot_info()
939 prot->pcp_info[5].pcpi_data = iprv.v2 >> 32; in ia64_pal_cache_prot_info()
941 return iprv.status; in ia64_pal_cache_prot_info()
951 struct ia64_pal_retval iprv; in ia64_pal_cache_flush() local
952 PAL_CALL(iprv, PAL_CACHE_FLUSH, cache_type, invalidate, *progress); in ia64_pal_cache_flush()
954 *vector = iprv.v0; in ia64_pal_cache_flush()
955 *progress = iprv.v1; in ia64_pal_cache_flush()
956 return iprv.status; in ia64_pal_cache_flush()
964 struct ia64_pal_retval iprv; in ia64_pal_cache_init() local
965 PAL_CALL(iprv, PAL_CACHE_INIT, level, cache_type, rest); in ia64_pal_cache_init()
966 return iprv.status; in ia64_pal_cache_init()
976 struct ia64_pal_retval iprv; in ia64_pal_cache_line_init() local
977 PAL_CALL(iprv, PAL_CACHE_LINE_INIT, physical_addr, data_value, 0); in ia64_pal_cache_line_init()
978 return iprv.status; in ia64_pal_cache_line_init()
986 struct ia64_pal_retval iprv; in ia64_pal_cache_read() local
987 PAL_CALL_PHYS_STK(iprv, PAL_CACHE_READ, line_id.pclid_data, in ia64_pal_cache_read()
989 return iprv.status; in ia64_pal_cache_read()
996 struct ia64_pal_retval iprv; in ia64_pal_cache_summary() local
997 PAL_CALL(iprv, PAL_CACHE_SUMMARY, 0, 0, 0); in ia64_pal_cache_summary()
999 *cache_levels = iprv.v0; in ia64_pal_cache_summary()
1001 *unique_caches = iprv.v1; in ia64_pal_cache_summary()
1002 return iprv.status; in ia64_pal_cache_summary()
1009 struct ia64_pal_retval iprv; in ia64_pal_cache_write() local
1010 PAL_CALL_PHYS_STK(iprv, PAL_CACHE_WRITE, line_id.pclid_data, in ia64_pal_cache_write()
1012 return iprv.status; in ia64_pal_cache_write()
1021 struct ia64_pal_retval iprv; in ia64_pal_copy_info() local
1022 PAL_CALL(iprv, PAL_COPY_INFO, copy_type, num_procs, num_iopics); in ia64_pal_copy_info()
1024 *buffer_size = iprv.v0; in ia64_pal_copy_info()
1026 *buffer_align = iprv.v1; in ia64_pal_copy_info()
1027 return iprv.status; in ia64_pal_copy_info()
1034 struct ia64_pal_retval iprv; in ia64_pal_copy_pal() local
1035 PAL_CALL(iprv, PAL_COPY_PAL, target_addr, alloc_size, processor); in ia64_pal_copy_pal()
1037 *pal_proc_offset = iprv.v0; in ia64_pal_copy_pal()
1038 return iprv.status; in ia64_pal_copy_pal()
1045 struct ia64_pal_retval iprv; in ia64_pal_debug_info() local
1046 PAL_CALL(iprv, PAL_DEBUG_INFO, 0, 0, 0); in ia64_pal_debug_info()
1048 *inst_regs = iprv.v0; in ia64_pal_debug_info()
1050 *data_regs = iprv.v1; in ia64_pal_debug_info()
1052 return iprv.status; in ia64_pal_debug_info()
1060 struct ia64_pal_retval iprv; in ia64_pal_enter_ia32_env() local
1061 PAL_CALL(iprv, PAL_ENTER_IA_32_ENV, ia32_env1, ia32_env2, ia32_env3); in ia64_pal_enter_ia32_env()
1062 return iprv.status; in ia64_pal_enter_ia32_env()
1070 struct ia64_pal_retval iprv; in ia64_pal_fixed_addr() local
1071 PAL_CALL(iprv, PAL_FIXED_ADDR, 0, 0, 0); in ia64_pal_fixed_addr()
1073 *global_unique_addr = iprv.v0; in ia64_pal_fixed_addr()
1074 return iprv.status; in ia64_pal_fixed_addr()
1080 struct ia64_pal_retval iprv; in ia64_pal_freq_base() local
1081 PAL_CALL(iprv, PAL_FREQ_BASE, 0, 0, 0); in ia64_pal_freq_base()
1083 *platform_base_freq = iprv.v0; in ia64_pal_freq_base()
1084 return iprv.status; in ia64_pal_freq_base()
1095 struct ia64_pal_retval iprv; in ia64_pal_freq_ratios() local
1096 PAL_CALL(iprv, PAL_FREQ_RATIOS, 0, 0, 0); in ia64_pal_freq_ratios()
1098 *(u64 *)proc_ratio = iprv.v0; in ia64_pal_freq_ratios()
1100 *(u64 *)bus_ratio = iprv.v1; in ia64_pal_freq_ratios()
1102 *(u64 *)itc_ratio = iprv.v2; in ia64_pal_freq_ratios()
1103 return iprv.status; in ia64_pal_freq_ratios()
1113 struct ia64_pal_retval iprv; in ia64_pal_get_hw_policy() local
1114 PAL_CALL(iprv, PAL_GET_HW_POLICY, proc_num, 0, 0); in ia64_pal_get_hw_policy()
1116 *cur_policy = iprv.v0; in ia64_pal_get_hw_policy()
1118 *num_impacted = iprv.v1; in ia64_pal_get_hw_policy()
1120 *la = iprv.v2; in ia64_pal_get_hw_policy()
1121 return iprv.status; in ia64_pal_get_hw_policy()
1131 struct ia64_pal_retval iprv; in ia64_pal_halt() local
1132 PAL_CALL(iprv, PAL_HALT, halt_state, 0, 0); in ia64_pal_halt()
1133 return iprv.status; in ia64_pal_halt()
1152 struct ia64_pal_retval iprv; in ia64_pal_halt_info() local
1153 PAL_CALL_STK(iprv, PAL_HALT_INFO, (unsigned long) power_buf, 0, 0); in ia64_pal_halt_info()
1154 return iprv.status; in ia64_pal_halt_info()
1161 struct ia64_pal_retval iprv; in ia64_pal_get_pstate() local
1162 PAL_CALL_STK(iprv, PAL_GET_PSTATE, type, 0, 0); in ia64_pal_get_pstate()
1163 *pstate_index = iprv.v0; in ia64_pal_get_pstate()
1164 return iprv.status; in ia64_pal_get_pstate()
1171 struct ia64_pal_retval iprv; in ia64_pal_set_pstate() local
1172 PAL_CALL_STK(iprv, PAL_SET_PSTATE, pstate_index, 0, 0); in ia64_pal_set_pstate()
1173 return iprv.status; in ia64_pal_set_pstate()
1180 struct ia64_pal_retval iprv; in ia64_pal_get_brand_info() local
1181 PAL_CALL_STK(iprv, PAL_BRAND_INFO, 0, (u64)brand_info, 0); in ia64_pal_get_brand_info()
1182 return iprv.status; in ia64_pal_get_brand_info()
1191 struct ia64_pal_retval iprv; in ia64_pal_halt_light() local
1192 PAL_CALL(iprv, PAL_HALT_LIGHT, 0, 0, 0); in ia64_pal_halt_light()
1193 return iprv.status; in ia64_pal_halt_light()
1203 struct ia64_pal_retval iprv; in ia64_pal_mc_clear_log() local
1204 PAL_CALL(iprv, PAL_MC_CLEAR_LOG, 0, 0, 0); in ia64_pal_mc_clear_log()
1206 *pending_vector = iprv.v0; in ia64_pal_mc_clear_log()
1207 return iprv.status; in ia64_pal_mc_clear_log()
1216 struct ia64_pal_retval iprv; in ia64_pal_mc_drain() local
1217 PAL_CALL(iprv, PAL_MC_DRAIN, 0, 0, 0); in ia64_pal_mc_drain()
1218 return iprv.status; in ia64_pal_mc_drain()
1225 struct ia64_pal_retval iprv; in ia64_pal_mc_dynamic_state() local
1226 PAL_CALL(iprv, PAL_MC_DYNAMIC_STATE, info_type, dy_buffer, 0); in ia64_pal_mc_dynamic_state()
1228 *size = iprv.v0; in ia64_pal_mc_dynamic_state()
1229 return iprv.status; in ia64_pal_mc_dynamic_state()
1236 struct ia64_pal_retval iprv; in ia64_pal_mc_error_info() local
1237 PAL_CALL(iprv, PAL_MC_ERROR_INFO, info_index, type_index, 0); in ia64_pal_mc_error_info()
1239 *size = iprv.v0; in ia64_pal_mc_error_info()
1241 *error_info = iprv.v1; in ia64_pal_mc_error_info()
1242 return iprv.status; in ia64_pal_mc_error_info()
1252 struct ia64_pal_retval iprv; in ia64_pal_mc_error_inject_phys() local
1253 PAL_CALL_PHYS_STK(iprv, PAL_MC_ERROR_INJECT, err_type_info, in ia64_pal_mc_error_inject_phys()
1256 *capabilities= iprv.v0; in ia64_pal_mc_error_inject_phys()
1258 *resources= iprv.v1; in ia64_pal_mc_error_inject_phys()
1259 return iprv.status; in ia64_pal_mc_error_inject_phys()
1266 struct ia64_pal_retval iprv; in ia64_pal_mc_error_inject_virt() local
1267 PAL_CALL_STK(iprv, PAL_MC_ERROR_INJECT, err_type_info, in ia64_pal_mc_error_inject_virt()
1270 *capabilities= iprv.v0; in ia64_pal_mc_error_inject_virt()
1272 *resources= iprv.v1; in ia64_pal_mc_error_inject_virt()
1273 return iprv.status; in ia64_pal_mc_error_inject_virt()
1282 struct ia64_pal_retval iprv; in ia64_pal_mc_expected() local
1283 PAL_CALL(iprv, PAL_MC_EXPECTED, expected, 0, 0); in ia64_pal_mc_expected()
1285 *previous = iprv.v0; in ia64_pal_mc_expected()
1286 return iprv.status; in ia64_pal_mc_expected()
1306 struct ia64_pal_retval iprv; in ia64_pal_mc_hw_tracking() local
1307 PAL_CALL(iprv, PAL_MC_HW_TRACKING, 0, 0, 0); in ia64_pal_mc_hw_tracking()
1309 *status = iprv.v0; in ia64_pal_mc_hw_tracking()
1310 return iprv.status; in ia64_pal_mc_hw_tracking()
1320 struct ia64_pal_retval iprv; in ia64_pal_mc_register_mem() local
1321 PAL_CALL(iprv, PAL_MC_REGISTER_MEM, physical_addr, size, 0); in ia64_pal_mc_register_mem()
1323 *req_size = iprv.v0; in ia64_pal_mc_register_mem()
1324 return iprv.status; in ia64_pal_mc_register_mem()
1333 struct ia64_pal_retval iprv; in ia64_pal_mc_resume() local
1334 PAL_CALL(iprv, PAL_MC_RESUME, set_cmci, save_ptr, 0); in ia64_pal_mc_resume()
1335 return iprv.status; in ia64_pal_mc_resume()
1342 struct ia64_pal_retval iprv; in ia64_pal_mem_attrib() local
1343 PAL_CALL(iprv, PAL_MEM_ATTRIB, 0, 0, 0); in ia64_pal_mem_attrib()
1345 *mem_attrib = iprv.v0 & 0xff; in ia64_pal_mem_attrib()
1346 return iprv.status; in ia64_pal_mem_attrib()
1355 struct ia64_pal_retval iprv; in ia64_pal_mem_for_test() local
1356 PAL_CALL(iprv, PAL_MEM_FOR_TEST, 0, 0, 0); in ia64_pal_mem_for_test()
1358 *bytes_needed = iprv.v0; in ia64_pal_mem_for_test()
1360 *alignment = iprv.v1; in ia64_pal_mem_for_test()
1361 return iprv.status; in ia64_pal_mem_for_test()
1381 struct ia64_pal_retval iprv; in ia64_pal_perf_mon_info() local
1382 PAL_CALL(iprv, PAL_PERF_MON_INFO, (unsigned long) pm_buffer, 0, 0); in ia64_pal_perf_mon_info()
1384 pm_info->ppmi_data = iprv.v0; in ia64_pal_perf_mon_info()
1385 return iprv.status; in ia64_pal_perf_mon_info()
1394 struct ia64_pal_retval iprv; in ia64_pal_platform_addr() local
1395 PAL_CALL(iprv, PAL_PLATFORM_ADDR, type, physical_addr, 0); in ia64_pal_platform_addr()
1396 return iprv.status; in ia64_pal_platform_addr()
1403 struct ia64_pal_retval iprv; in ia64_pal_pmi_entrypoint() local
1404 PAL_CALL(iprv, PAL_PMI_ENTRYPOINT, sal_pmi_entry_addr, 0, 0); in ia64_pal_pmi_entrypoint()
1405 return iprv.status; in ia64_pal_pmi_entrypoint()
1416 struct ia64_pal_retval iprv; in ia64_pal_proc_get_features() local
1417 PAL_CALL_PHYS(iprv, PAL_PROC_GET_FEATURES, 0, features_set, 0); in ia64_pal_proc_get_features()
1418 if (iprv.status == 0) { in ia64_pal_proc_get_features()
1419 *features_avail = iprv.v0; in ia64_pal_proc_get_features()
1420 *features_status = iprv.v1; in ia64_pal_proc_get_features()
1421 *features_control = iprv.v2; in ia64_pal_proc_get_features()
1423 return iprv.status; in ia64_pal_proc_get_features()
1430 struct ia64_pal_retval iprv; in ia64_pal_proc_set_features() local
1431 PAL_CALL_PHYS(iprv, PAL_PROC_SET_FEATURES, feature_select, 0, 0); in ia64_pal_proc_set_features()
1432 return iprv.status; in ia64_pal_proc_set_features()
1451 struct ia64_pal_retval iprv; in ia64_get_ptce() local
1456 PAL_CALL(iprv, PAL_PTCE_INFO, 0, 0, 0); in ia64_get_ptce()
1457 if (iprv.status == 0) { in ia64_get_ptce()
1458 ptce->base = iprv.v0; in ia64_get_ptce()
1459 ptce->count[0] = iprv.v1 >> 32; in ia64_get_ptce()
1460 ptce->count[1] = iprv.v1 & 0xffffffff; in ia64_get_ptce()
1461 ptce->stride[0] = iprv.v2 >> 32; in ia64_get_ptce()
1462 ptce->stride[1] = iprv.v2 & 0xffffffff; in ia64_get_ptce()
1464 return iprv.status; in ia64_get_ptce()
1471 struct ia64_pal_retval iprv; in ia64_pal_register_info() local
1472 PAL_CALL(iprv, PAL_REGISTER_INFO, info_request, 0, 0); in ia64_pal_register_info()
1474 *reg_info_1 = iprv.v0; in ia64_pal_register_info()
1476 *reg_info_2 = iprv.v1; in ia64_pal_register_info()
1477 return iprv.status; in ia64_pal_register_info()
1495 struct ia64_pal_retval iprv; in ia64_pal_rse_info() local
1496 PAL_CALL(iprv, PAL_RSE_INFO, 0, 0, 0); in ia64_pal_rse_info()
1498 *num_phys_stacked = iprv.v0; in ia64_pal_rse_info()
1500 hints->ph_data = iprv.v1; in ia64_pal_rse_info()
1501 return iprv.status; in ia64_pal_rse_info()
1510 struct ia64_pal_retval iprv; in ia64_pal_set_hw_policy() local
1511 PAL_CALL(iprv, PAL_SET_HW_POLICY, policy, 0, 0); in ia64_pal_set_hw_policy()
1512 return iprv.status; in ia64_pal_set_hw_policy()
1522 struct ia64_pal_retval iprv; in ia64_pal_shutdown() local
1523 PAL_CALL(iprv, PAL_SHUTDOWN, 0, 0, 0); in ia64_pal_shutdown()
1524 return iprv.status; in ia64_pal_shutdown()
1531 struct ia64_pal_retval iprv; in ia64_pal_test_proc() local
1532 PAL_CALL(iprv, PAL_TEST_PROC, test_addr, test_size, attributes); in ia64_pal_test_proc()
1534 *self_test_state = iprv.v0; in ia64_pal_test_proc()
1535 return iprv.status; in ia64_pal_test_proc()
1561 struct ia64_pal_retval iprv; in ia64_pal_version() local
1562 PAL_CALL_PHYS(iprv, PAL_VERSION, 0, 0, 0); in ia64_pal_version()
1564 pal_min_version->pal_version_val = iprv.v0; in ia64_pal_version()
1567 pal_cur_version->pal_version_val = iprv.v1; in ia64_pal_version()
1569 return iprv.status; in ia64_pal_version()
1599 struct ia64_pal_retval iprv; in ia64_pal_vm_info() local
1600 PAL_CALL(iprv, PAL_VM_INFO, tc_level, tc_type, 0); in ia64_pal_vm_info()
1602 tc_info->pti_val = iprv.v0; in ia64_pal_vm_info()
1604 *tc_pages = iprv.v1; in ia64_pal_vm_info()
1605 return iprv.status; in ia64_pal_vm_info()
1613 struct ia64_pal_retval iprv; in ia64_pal_vm_page_size() local
1614 PAL_CALL(iprv, PAL_VM_PAGE_SIZE, 0, 0, 0); in ia64_pal_vm_page_size()
1616 *tr_pages = iprv.v0; in ia64_pal_vm_page_size()
1618 *vw_pages = iprv.v1; in ia64_pal_vm_page_size()
1619 return iprv.status; in ia64_pal_vm_page_size()
1655 struct ia64_pal_retval iprv; in ia64_pal_vm_summary() local
1656 PAL_CALL(iprv, PAL_VM_SUMMARY, 0, 0, 0); in ia64_pal_vm_summary()
1658 vm_info_1->pvi1_val = iprv.v0; in ia64_pal_vm_summary()
1660 vm_info_2->pvi2_val = iprv.v1; in ia64_pal_vm_summary()
1661 return iprv.status; in ia64_pal_vm_summary()
1678 struct ia64_pal_retval iprv; in ia64_pal_vp_info() local
1679 PAL_CALL(iprv, PAL_VP_INFO, feature_set, vp_buffer, 0); in ia64_pal_vp_info()
1681 *vp_info = iprv.v0; in ia64_pal_vp_info()
1683 *vmm_id = iprv.v1; in ia64_pal_vp_info()
1684 return iprv.status; in ia64_pal_vp_info()
1702 struct ia64_pal_retval iprv; in ia64_pal_tr_read() local
1703 PAL_CALL_PHYS_STK(iprv, PAL_VM_TR_READ, reg_num, tr_type,(u64)ia64_tpa(tr_buffer)); in ia64_pal_tr_read()
1705 tr_valid->piv_val = iprv.v0; in ia64_pal_tr_read()
1706 return iprv.status; in ia64_pal_tr_read()
1726 struct ia64_pal_retval iprv; in ia64_pal_prefetch_visibility() local
1727 PAL_CALL(iprv, PAL_PREFETCH_VISIBILITY, trans_type, 0, 0); in ia64_pal_prefetch_visibility()
1728 return iprv.status; in ia64_pal_prefetch_visibility()
1784 struct ia64_pal_retval iprv; in ia64_pal_logical_to_phys() local
1786 PAL_CALL(iprv, PAL_LOGICAL_TO_PHYSICAL, proc_number, 0, 0); in ia64_pal_logical_to_phys()
1788 if (iprv.status == PAL_STATUS_SUCCESS) in ia64_pal_logical_to_phys()
1790 mapping->overview.overview_data = iprv.v0; in ia64_pal_logical_to_phys()
1791 mapping->ppli1.ppli1_data = iprv.v1; in ia64_pal_logical_to_phys()
1792 mapping->ppli2.ppli2_data = iprv.v2; in ia64_pal_logical_to_phys()
1795 return iprv.status; in ia64_pal_logical_to_phys()
1812 struct ia64_pal_retval iprv; in ia64_pal_cache_shared_info() local
1814 PAL_CALL(iprv, PAL_CACHE_SHARED_INFO, level, type, proc_number); in ia64_pal_cache_shared_info()
1816 if (iprv.status == PAL_STATUS_SUCCESS) { in ia64_pal_cache_shared_info()
1817 info->num_shared = iprv.v0; in ia64_pal_cache_shared_info()
1818 info->ppli1.ppli1_data = iprv.v1; in ia64_pal_cache_shared_info()
1819 info->ppli2.ppli2_data = iprv.v2; in ia64_pal_cache_shared_info()
1822 return iprv.status; in ia64_pal_cache_shared_info()