Lines Matching refs:iprv

800 #define PAL_CALL(iprv,a0,a1,a2,a3) do {			\  argument
803 iprv = ia64_pal_call_static(a0, a1, a2, a3); \
807 #define PAL_CALL_STK(iprv,a0,a1,a2,a3) do { \ argument
810 iprv = ia64_pal_call_stacked(a0, a1, a2, a3); \
814 #define PAL_CALL_PHYS(iprv,a0,a1,a2,a3) do { \ argument
817 iprv = ia64_pal_call_phys_static(a0, a1, a2, a3); \
821 #define PAL_CALL_PHYS_STK(iprv,a0,a1,a2,a3) do { \ argument
824 iprv = ia64_pal_call_phys_stacked(a0, a1, a2, a3); \
887 struct ia64_pal_retval iprv; in ia64_pal_bus_get_features() local
888 PAL_CALL_PHYS(iprv, PAL_BUS_GET_FEATURES, 0, 0, 0); in ia64_pal_bus_get_features()
890 features_avail->pal_bus_features_val = iprv.v0; in ia64_pal_bus_get_features()
892 features_status->pal_bus_features_val = iprv.v1; in ia64_pal_bus_get_features()
894 features_control->pal_bus_features_val = iprv.v2; in ia64_pal_bus_get_features()
895 return iprv.status; in ia64_pal_bus_get_features()
902 struct ia64_pal_retval iprv; in ia64_pal_bus_set_features() local
903 PAL_CALL_PHYS(iprv, PAL_BUS_SET_FEATURES, feature_select.pal_bus_features_val, 0, 0); in ia64_pal_bus_set_features()
904 return iprv.status; in ia64_pal_bus_set_features()
911 struct ia64_pal_retval iprv; in ia64_pal_cache_config_info() local
913 PAL_CALL(iprv, PAL_CACHE_INFO, cache_level, cache_type, 0); in ia64_pal_cache_config_info()
915 if (iprv.status == 0) { in ia64_pal_cache_config_info()
916 conf->pcci_status = iprv.status; in ia64_pal_cache_config_info()
917 conf->pcci_info_1.pcci1_data = iprv.v0; in ia64_pal_cache_config_info()
918 conf->pcci_info_2.pcci2_data = iprv.v1; in ia64_pal_cache_config_info()
919 conf->pcci_reserved = iprv.v2; in ia64_pal_cache_config_info()
921 return iprv.status; in ia64_pal_cache_config_info()
929 struct ia64_pal_retval iprv; in ia64_pal_cache_prot_info() local
931 PAL_CALL(iprv, PAL_CACHE_PROT_INFO, cache_level, cache_type, 0); in ia64_pal_cache_prot_info()
933 if (iprv.status == 0) { in ia64_pal_cache_prot_info()
934 prot->pcpi_status = iprv.status; in ia64_pal_cache_prot_info()
935 prot->pcp_info[0].pcpi_data = iprv.v0 & 0xffffffff; in ia64_pal_cache_prot_info()
936 prot->pcp_info[1].pcpi_data = iprv.v0 >> 32; in ia64_pal_cache_prot_info()
937 prot->pcp_info[2].pcpi_data = iprv.v1 & 0xffffffff; in ia64_pal_cache_prot_info()
938 prot->pcp_info[3].pcpi_data = iprv.v1 >> 32; in ia64_pal_cache_prot_info()
939 prot->pcp_info[4].pcpi_data = iprv.v2 & 0xffffffff; in ia64_pal_cache_prot_info()
940 prot->pcp_info[5].pcpi_data = iprv.v2 >> 32; in ia64_pal_cache_prot_info()
942 return iprv.status; in ia64_pal_cache_prot_info()
952 struct ia64_pal_retval iprv; in ia64_pal_cache_flush() local
953 PAL_CALL(iprv, PAL_CACHE_FLUSH, cache_type, invalidate, *progress); in ia64_pal_cache_flush()
955 *vector = iprv.v0; in ia64_pal_cache_flush()
956 *progress = iprv.v1; in ia64_pal_cache_flush()
957 return iprv.status; in ia64_pal_cache_flush()
965 struct ia64_pal_retval iprv; in ia64_pal_cache_init() local
966 PAL_CALL(iprv, PAL_CACHE_INIT, level, cache_type, rest); in ia64_pal_cache_init()
967 return iprv.status; in ia64_pal_cache_init()
977 struct ia64_pal_retval iprv; in ia64_pal_cache_line_init() local
978 PAL_CALL(iprv, PAL_CACHE_LINE_INIT, physical_addr, data_value, 0); in ia64_pal_cache_line_init()
979 return iprv.status; in ia64_pal_cache_line_init()
987 struct ia64_pal_retval iprv; in ia64_pal_cache_read() local
988 PAL_CALL_PHYS_STK(iprv, PAL_CACHE_READ, line_id.pclid_data, in ia64_pal_cache_read()
990 return iprv.status; in ia64_pal_cache_read()
997 struct ia64_pal_retval iprv; in ia64_pal_cache_summary() local
998 PAL_CALL(iprv, PAL_CACHE_SUMMARY, 0, 0, 0); in ia64_pal_cache_summary()
1000 *cache_levels = iprv.v0; in ia64_pal_cache_summary()
1002 *unique_caches = iprv.v1; in ia64_pal_cache_summary()
1003 return iprv.status; in ia64_pal_cache_summary()
1010 struct ia64_pal_retval iprv; in ia64_pal_cache_write() local
1011 PAL_CALL_PHYS_STK(iprv, PAL_CACHE_WRITE, line_id.pclid_data, in ia64_pal_cache_write()
1013 return iprv.status; in ia64_pal_cache_write()
1022 struct ia64_pal_retval iprv; in ia64_pal_copy_info() local
1023 PAL_CALL(iprv, PAL_COPY_INFO, copy_type, num_procs, num_iopics); in ia64_pal_copy_info()
1025 *buffer_size = iprv.v0; in ia64_pal_copy_info()
1027 *buffer_align = iprv.v1; in ia64_pal_copy_info()
1028 return iprv.status; in ia64_pal_copy_info()
1035 struct ia64_pal_retval iprv; in ia64_pal_copy_pal() local
1036 PAL_CALL(iprv, PAL_COPY_PAL, target_addr, alloc_size, processor); in ia64_pal_copy_pal()
1038 *pal_proc_offset = iprv.v0; in ia64_pal_copy_pal()
1039 return iprv.status; in ia64_pal_copy_pal()
1046 struct ia64_pal_retval iprv; in ia64_pal_debug_info() local
1047 PAL_CALL(iprv, PAL_DEBUG_INFO, 0, 0, 0); in ia64_pal_debug_info()
1049 *inst_regs = iprv.v0; in ia64_pal_debug_info()
1051 *data_regs = iprv.v1; in ia64_pal_debug_info()
1053 return iprv.status; in ia64_pal_debug_info()
1061 struct ia64_pal_retval iprv; in ia64_pal_enter_ia32_env() local
1062 PAL_CALL(iprv, PAL_ENTER_IA_32_ENV, ia32_env1, ia32_env2, ia32_env3); in ia64_pal_enter_ia32_env()
1063 return iprv.status; in ia64_pal_enter_ia32_env()
1071 struct ia64_pal_retval iprv; in ia64_pal_fixed_addr() local
1072 PAL_CALL(iprv, PAL_FIXED_ADDR, 0, 0, 0); in ia64_pal_fixed_addr()
1074 *global_unique_addr = iprv.v0; in ia64_pal_fixed_addr()
1075 return iprv.status; in ia64_pal_fixed_addr()
1081 struct ia64_pal_retval iprv; in ia64_pal_freq_base() local
1082 PAL_CALL(iprv, PAL_FREQ_BASE, 0, 0, 0); in ia64_pal_freq_base()
1084 *platform_base_freq = iprv.v0; in ia64_pal_freq_base()
1085 return iprv.status; in ia64_pal_freq_base()
1096 struct ia64_pal_retval iprv; in ia64_pal_freq_ratios() local
1097 PAL_CALL(iprv, PAL_FREQ_RATIOS, 0, 0, 0); in ia64_pal_freq_ratios()
1099 *(u64 *)proc_ratio = iprv.v0; in ia64_pal_freq_ratios()
1101 *(u64 *)bus_ratio = iprv.v1; in ia64_pal_freq_ratios()
1103 *(u64 *)itc_ratio = iprv.v2; in ia64_pal_freq_ratios()
1104 return iprv.status; in ia64_pal_freq_ratios()
1114 struct ia64_pal_retval iprv; in ia64_pal_get_hw_policy() local
1115 PAL_CALL(iprv, PAL_GET_HW_POLICY, proc_num, 0, 0); in ia64_pal_get_hw_policy()
1117 *cur_policy = iprv.v0; in ia64_pal_get_hw_policy()
1119 *num_impacted = iprv.v1; in ia64_pal_get_hw_policy()
1121 *la = iprv.v2; in ia64_pal_get_hw_policy()
1122 return iprv.status; in ia64_pal_get_hw_policy()
1132 struct ia64_pal_retval iprv; in ia64_pal_halt() local
1133 PAL_CALL(iprv, PAL_HALT, halt_state, 0, 0); in ia64_pal_halt()
1134 return iprv.status; in ia64_pal_halt()
1153 struct ia64_pal_retval iprv; in ia64_pal_halt_info() local
1154 PAL_CALL_STK(iprv, PAL_HALT_INFO, (unsigned long) power_buf, 0, 0); in ia64_pal_halt_info()
1155 return iprv.status; in ia64_pal_halt_info()
1162 struct ia64_pal_retval iprv; in ia64_pal_get_pstate() local
1163 PAL_CALL_STK(iprv, PAL_GET_PSTATE, type, 0, 0); in ia64_pal_get_pstate()
1164 *pstate_index = iprv.v0; in ia64_pal_get_pstate()
1165 return iprv.status; in ia64_pal_get_pstate()
1172 struct ia64_pal_retval iprv; in ia64_pal_set_pstate() local
1173 PAL_CALL_STK(iprv, PAL_SET_PSTATE, pstate_index, 0, 0); in ia64_pal_set_pstate()
1174 return iprv.status; in ia64_pal_set_pstate()
1181 struct ia64_pal_retval iprv; in ia64_pal_get_brand_info() local
1182 PAL_CALL_STK(iprv, PAL_BRAND_INFO, 0, (u64)brand_info, 0); in ia64_pal_get_brand_info()
1183 return iprv.status; in ia64_pal_get_brand_info()
1192 struct ia64_pal_retval iprv; in ia64_pal_halt_light() local
1193 PAL_CALL(iprv, PAL_HALT_LIGHT, 0, 0, 0); in ia64_pal_halt_light()
1194 return iprv.status; in ia64_pal_halt_light()
1204 struct ia64_pal_retval iprv; in ia64_pal_mc_clear_log() local
1205 PAL_CALL(iprv, PAL_MC_CLEAR_LOG, 0, 0, 0); in ia64_pal_mc_clear_log()
1207 *pending_vector = iprv.v0; in ia64_pal_mc_clear_log()
1208 return iprv.status; in ia64_pal_mc_clear_log()
1217 struct ia64_pal_retval iprv; in ia64_pal_mc_drain() local
1218 PAL_CALL(iprv, PAL_MC_DRAIN, 0, 0, 0); in ia64_pal_mc_drain()
1219 return iprv.status; in ia64_pal_mc_drain()
1226 struct ia64_pal_retval iprv; in ia64_pal_mc_dynamic_state() local
1227 PAL_CALL(iprv, PAL_MC_DYNAMIC_STATE, info_type, dy_buffer, 0); in ia64_pal_mc_dynamic_state()
1229 *size = iprv.v0; in ia64_pal_mc_dynamic_state()
1230 return iprv.status; in ia64_pal_mc_dynamic_state()
1237 struct ia64_pal_retval iprv; in ia64_pal_mc_error_info() local
1238 PAL_CALL(iprv, PAL_MC_ERROR_INFO, info_index, type_index, 0); in ia64_pal_mc_error_info()
1240 *size = iprv.v0; in ia64_pal_mc_error_info()
1242 *error_info = iprv.v1; in ia64_pal_mc_error_info()
1243 return iprv.status; in ia64_pal_mc_error_info()
1253 struct ia64_pal_retval iprv; in ia64_pal_mc_error_inject_phys() local
1254 PAL_CALL_PHYS_STK(iprv, PAL_MC_ERROR_INJECT, err_type_info, in ia64_pal_mc_error_inject_phys()
1257 *capabilities= iprv.v0; in ia64_pal_mc_error_inject_phys()
1259 *resources= iprv.v1; in ia64_pal_mc_error_inject_phys()
1260 return iprv.status; in ia64_pal_mc_error_inject_phys()
1267 struct ia64_pal_retval iprv; in ia64_pal_mc_error_inject_virt() local
1268 PAL_CALL_STK(iprv, PAL_MC_ERROR_INJECT, err_type_info, in ia64_pal_mc_error_inject_virt()
1271 *capabilities= iprv.v0; in ia64_pal_mc_error_inject_virt()
1273 *resources= iprv.v1; in ia64_pal_mc_error_inject_virt()
1274 return iprv.status; in ia64_pal_mc_error_inject_virt()
1283 struct ia64_pal_retval iprv; in ia64_pal_mc_expected() local
1284 PAL_CALL(iprv, PAL_MC_EXPECTED, expected, 0, 0); in ia64_pal_mc_expected()
1286 *previous = iprv.v0; in ia64_pal_mc_expected()
1287 return iprv.status; in ia64_pal_mc_expected()
1307 struct ia64_pal_retval iprv; in ia64_pal_mc_hw_tracking() local
1308 PAL_CALL(iprv, PAL_MC_HW_TRACKING, 0, 0, 0); in ia64_pal_mc_hw_tracking()
1310 *status = iprv.v0; in ia64_pal_mc_hw_tracking()
1311 return iprv.status; in ia64_pal_mc_hw_tracking()
1321 struct ia64_pal_retval iprv; in ia64_pal_mc_register_mem() local
1322 PAL_CALL(iprv, PAL_MC_REGISTER_MEM, physical_addr, size, 0); in ia64_pal_mc_register_mem()
1324 *req_size = iprv.v0; in ia64_pal_mc_register_mem()
1325 return iprv.status; in ia64_pal_mc_register_mem()
1334 struct ia64_pal_retval iprv; in ia64_pal_mc_resume() local
1335 PAL_CALL(iprv, PAL_MC_RESUME, set_cmci, save_ptr, 0); in ia64_pal_mc_resume()
1336 return iprv.status; in ia64_pal_mc_resume()
1343 struct ia64_pal_retval iprv; in ia64_pal_mem_attrib() local
1344 PAL_CALL(iprv, PAL_MEM_ATTRIB, 0, 0, 0); in ia64_pal_mem_attrib()
1346 *mem_attrib = iprv.v0 & 0xff; in ia64_pal_mem_attrib()
1347 return iprv.status; in ia64_pal_mem_attrib()
1356 struct ia64_pal_retval iprv; in ia64_pal_mem_for_test() local
1357 PAL_CALL(iprv, PAL_MEM_FOR_TEST, 0, 0, 0); in ia64_pal_mem_for_test()
1359 *bytes_needed = iprv.v0; in ia64_pal_mem_for_test()
1361 *alignment = iprv.v1; in ia64_pal_mem_for_test()
1362 return iprv.status; in ia64_pal_mem_for_test()
1382 struct ia64_pal_retval iprv; in ia64_pal_perf_mon_info() local
1383 PAL_CALL(iprv, PAL_PERF_MON_INFO, (unsigned long) pm_buffer, 0, 0); in ia64_pal_perf_mon_info()
1385 pm_info->ppmi_data = iprv.v0; in ia64_pal_perf_mon_info()
1386 return iprv.status; in ia64_pal_perf_mon_info()
1395 struct ia64_pal_retval iprv; in ia64_pal_platform_addr() local
1396 PAL_CALL(iprv, PAL_PLATFORM_ADDR, type, physical_addr, 0); in ia64_pal_platform_addr()
1397 return iprv.status; in ia64_pal_platform_addr()
1404 struct ia64_pal_retval iprv; in ia64_pal_pmi_entrypoint() local
1405 PAL_CALL(iprv, PAL_PMI_ENTRYPOINT, sal_pmi_entry_addr, 0, 0); in ia64_pal_pmi_entrypoint()
1406 return iprv.status; in ia64_pal_pmi_entrypoint()
1417 struct ia64_pal_retval iprv; in ia64_pal_proc_get_features() local
1418 PAL_CALL_PHYS(iprv, PAL_PROC_GET_FEATURES, 0, features_set, 0); in ia64_pal_proc_get_features()
1419 if (iprv.status == 0) { in ia64_pal_proc_get_features()
1420 *features_avail = iprv.v0; in ia64_pal_proc_get_features()
1421 *features_status = iprv.v1; in ia64_pal_proc_get_features()
1422 *features_control = iprv.v2; in ia64_pal_proc_get_features()
1424 return iprv.status; in ia64_pal_proc_get_features()
1431 struct ia64_pal_retval iprv; in ia64_pal_proc_set_features() local
1432 PAL_CALL_PHYS(iprv, PAL_PROC_SET_FEATURES, feature_select, 0, 0); in ia64_pal_proc_set_features()
1433 return iprv.status; in ia64_pal_proc_set_features()
1452 struct ia64_pal_retval iprv; in ia64_get_ptce() local
1457 PAL_CALL(iprv, PAL_PTCE_INFO, 0, 0, 0); in ia64_get_ptce()
1458 if (iprv.status == 0) { in ia64_get_ptce()
1459 ptce->base = iprv.v0; in ia64_get_ptce()
1460 ptce->count[0] = iprv.v1 >> 32; in ia64_get_ptce()
1461 ptce->count[1] = iprv.v1 & 0xffffffff; in ia64_get_ptce()
1462 ptce->stride[0] = iprv.v2 >> 32; in ia64_get_ptce()
1463 ptce->stride[1] = iprv.v2 & 0xffffffff; in ia64_get_ptce()
1465 return iprv.status; in ia64_get_ptce()
1472 struct ia64_pal_retval iprv; in ia64_pal_register_info() local
1473 PAL_CALL(iprv, PAL_REGISTER_INFO, info_request, 0, 0); in ia64_pal_register_info()
1475 *reg_info_1 = iprv.v0; in ia64_pal_register_info()
1477 *reg_info_2 = iprv.v1; in ia64_pal_register_info()
1478 return iprv.status; in ia64_pal_register_info()
1496 struct ia64_pal_retval iprv; in ia64_pal_rse_info() local
1497 PAL_CALL(iprv, PAL_RSE_INFO, 0, 0, 0); in ia64_pal_rse_info()
1499 *num_phys_stacked = iprv.v0; in ia64_pal_rse_info()
1501 hints->ph_data = iprv.v1; in ia64_pal_rse_info()
1502 return iprv.status; in ia64_pal_rse_info()
1511 struct ia64_pal_retval iprv; in ia64_pal_set_hw_policy() local
1512 PAL_CALL(iprv, PAL_SET_HW_POLICY, policy, 0, 0); in ia64_pal_set_hw_policy()
1513 return iprv.status; in ia64_pal_set_hw_policy()
1523 struct ia64_pal_retval iprv; in ia64_pal_shutdown() local
1524 PAL_CALL(iprv, PAL_SHUTDOWN, 0, 0, 0); in ia64_pal_shutdown()
1525 return iprv.status; in ia64_pal_shutdown()
1532 struct ia64_pal_retval iprv; in ia64_pal_test_proc() local
1533 PAL_CALL(iprv, PAL_TEST_PROC, test_addr, test_size, attributes); in ia64_pal_test_proc()
1535 *self_test_state = iprv.v0; in ia64_pal_test_proc()
1536 return iprv.status; in ia64_pal_test_proc()
1562 struct ia64_pal_retval iprv; in ia64_pal_version() local
1563 PAL_CALL_PHYS(iprv, PAL_VERSION, 0, 0, 0); in ia64_pal_version()
1565 pal_min_version->pal_version_val = iprv.v0; in ia64_pal_version()
1568 pal_cur_version->pal_version_val = iprv.v1; in ia64_pal_version()
1570 return iprv.status; in ia64_pal_version()
1600 struct ia64_pal_retval iprv; in ia64_pal_vm_info() local
1601 PAL_CALL(iprv, PAL_VM_INFO, tc_level, tc_type, 0); in ia64_pal_vm_info()
1603 tc_info->pti_val = iprv.v0; in ia64_pal_vm_info()
1605 *tc_pages = iprv.v1; in ia64_pal_vm_info()
1606 return iprv.status; in ia64_pal_vm_info()
1614 struct ia64_pal_retval iprv; in ia64_pal_vm_page_size() local
1615 PAL_CALL(iprv, PAL_VM_PAGE_SIZE, 0, 0, 0); in ia64_pal_vm_page_size()
1617 *tr_pages = iprv.v0; in ia64_pal_vm_page_size()
1619 *vw_pages = iprv.v1; in ia64_pal_vm_page_size()
1620 return iprv.status; in ia64_pal_vm_page_size()
1656 struct ia64_pal_retval iprv; in ia64_pal_vm_summary() local
1657 PAL_CALL(iprv, PAL_VM_SUMMARY, 0, 0, 0); in ia64_pal_vm_summary()
1659 vm_info_1->pvi1_val = iprv.v0; in ia64_pal_vm_summary()
1661 vm_info_2->pvi2_val = iprv.v1; in ia64_pal_vm_summary()
1662 return iprv.status; in ia64_pal_vm_summary()
1679 struct ia64_pal_retval iprv; in ia64_pal_vp_info() local
1680 PAL_CALL(iprv, PAL_VP_INFO, feature_set, vp_buffer, 0); in ia64_pal_vp_info()
1682 *vp_info = iprv.v0; in ia64_pal_vp_info()
1684 *vmm_id = iprv.v1; in ia64_pal_vp_info()
1685 return iprv.status; in ia64_pal_vp_info()
1703 struct ia64_pal_retval iprv; in ia64_pal_tr_read() local
1704 PAL_CALL_PHYS_STK(iprv, PAL_VM_TR_READ, reg_num, tr_type,(u64)ia64_tpa(tr_buffer)); in ia64_pal_tr_read()
1706 tr_valid->piv_val = iprv.v0; in ia64_pal_tr_read()
1707 return iprv.status; in ia64_pal_tr_read()
1727 struct ia64_pal_retval iprv; in ia64_pal_prefetch_visibility() local
1728 PAL_CALL(iprv, PAL_PREFETCH_VISIBILITY, trans_type, 0, 0); in ia64_pal_prefetch_visibility()
1729 return iprv.status; in ia64_pal_prefetch_visibility()
1785 struct ia64_pal_retval iprv; in ia64_pal_logical_to_phys() local
1787 PAL_CALL(iprv, PAL_LOGICAL_TO_PHYSICAL, proc_number, 0, 0); in ia64_pal_logical_to_phys()
1789 if (iprv.status == PAL_STATUS_SUCCESS) in ia64_pal_logical_to_phys()
1791 mapping->overview.overview_data = iprv.v0; in ia64_pal_logical_to_phys()
1792 mapping->ppli1.ppli1_data = iprv.v1; in ia64_pal_logical_to_phys()
1793 mapping->ppli2.ppli2_data = iprv.v2; in ia64_pal_logical_to_phys()
1796 return iprv.status; in ia64_pal_logical_to_phys()
1813 struct ia64_pal_retval iprv; in ia64_pal_cache_shared_info() local
1815 PAL_CALL(iprv, PAL_CACHE_SHARED_INFO, level, type, proc_number); in ia64_pal_cache_shared_info()
1817 if (iprv.status == PAL_STATUS_SUCCESS) { in ia64_pal_cache_shared_info()
1818 info->num_shared = iprv.v0; in ia64_pal_cache_shared_info()
1819 info->ppli1.ppli1_data = iprv.v1; in ia64_pal_cache_shared_info()
1820 info->ppli2.ppli2_data = iprv.v2; in ia64_pal_cache_shared_info()
1823 return iprv.status; in ia64_pal_cache_shared_info()