Lines Matching refs:ret
25 struct sbiret ret; in fwft_set_and_check_raw() local
27 ret = sbi_fwft_set_raw(feature, value, flags); in fwft_set_and_check_raw()
28 if (!sbiret_report_error(&ret, SBI_SUCCESS, "set to %ld%s", value, str)) in fwft_set_and_check_raw()
29 return ret; in fwft_set_and_check_raw()
31 ret = sbi_fwft_get_raw(feature); in fwft_set_and_check_raw()
32 sbiret_report(&ret, SBI_SUCCESS, value, "get %ld after set%s", value, str); in fwft_set_and_check_raw()
34 return ret; in fwft_set_and_check_raw()
39 struct sbiret ret; in fwft_check_reserved() local
41 ret = sbi_fwft_get(id); in fwft_check_reserved()
42 sbiret_report_error(&ret, SBI_ERR_DENIED, "get reserved feature 0x%lx", id); in fwft_check_reserved()
44 ret = sbi_fwft_set(id, 1, 0); in fwft_check_reserved()
45 sbiret_report_error(&ret, SBI_ERR_DENIED, "set reserved feature 0x%lx", id); in fwft_check_reserved()
51 struct sbiret ret = sbi_fwft_get(feature); in fwft_check_reset() local
53 sbiret_report(&ret, SBI_SUCCESS, reset, "resets to %lu", reset); in fwft_check_reset()
61 struct sbiret ret; in fwft_feature_lock_test_values() local
69 ret = sbi_fwft_set(feature, test_values[i], 0); in fwft_feature_lock_test_values()
70 sbiret_kfail_error(kfail, &ret, SBI_ERR_DENIED_LOCKED, in fwft_feature_lock_test_values()
73 ret = sbi_fwft_set(feature, test_values[i], SBI_FWFT_SET_FLAG_LOCK); in fwft_feature_lock_test_values()
74 sbiret_kfail_error(kfail, &ret, SBI_ERR_DENIED_LOCKED, in fwft_feature_lock_test_values()
78 ret = sbi_fwft_get(feature); in fwft_feature_lock_test_values()
79 sbiret_report(&ret, SBI_SUCCESS, locked_value, "Get value %lu", locked_value); in fwft_feature_lock_test_values()
123 struct sbiret ret; in fwft_check_misaligned_exc_deleg() local
128 ret = fwft_misaligned_exc_get(); in fwft_check_misaligned_exc_deleg()
129 if (ret.error != SBI_SUCCESS) { in fwft_check_misaligned_exc_deleg()
131 sbiret_report_error(&ret, SBI_SUCCESS, "supported"); in fwft_check_misaligned_exc_deleg()
138 if (!sbiret_report_error(&ret, SBI_SUCCESS, "Get misaligned deleg feature")) in fwft_check_misaligned_exc_deleg()
146 ret = fwft_misaligned_exc_set(2, 0); in fwft_check_misaligned_exc_deleg()
147 sbiret_report_error(&ret, SBI_ERR_INVALID_PARAM, in fwft_check_misaligned_exc_deleg()
149 ret = fwft_misaligned_exc_set(0xFFFFFFFF, 0); in fwft_check_misaligned_exc_deleg()
150 sbiret_report_error(&ret, SBI_ERR_INVALID_PARAM, in fwft_check_misaligned_exc_deleg()
154 ret = fwft_misaligned_exc_set(BIT(32), 0); in fwft_check_misaligned_exc_deleg()
155 sbiret_report_error(&ret, SBI_ERR_INVALID_PARAM, in fwft_check_misaligned_exc_deleg()
158 ret = fwft_misaligned_exc_set(0, BIT(32)); in fwft_check_misaligned_exc_deleg()
159 sbiret_report_error(&ret, SBI_ERR_INVALID_PARAM, in fwft_check_misaligned_exc_deleg()
180 : [val] "+r" (ret.value) in fwft_check_misaligned_exc_deleg()
181 : [val_addr] "r" (&ret.value) in fwft_check_misaligned_exc_deleg()
196 ret = fwft_misaligned_exc_set(0, SBI_FWFT_SET_FLAG_LOCK); in fwft_check_misaligned_exc_deleg()
197 sbiret_report_error(&ret, SBI_SUCCESS, "Set misaligned deleg feature value 0 and lock"); in fwft_check_misaligned_exc_deleg()
263 struct sbiret ret = fwft_set_and_check_raw(str, feature, value, flags); in adue_toggle_and_check_raw() local
265 if (!ret.error) { in adue_toggle_and_check_raw()
281 struct sbiret ret; in fwft_check_pte_ad_hw_updating() local
286 ret = sbi_fwft_get(SBI_FWFT_PTE_AD_HW_UPDATING); in fwft_check_pte_ad_hw_updating()
287 if (ret.error != SBI_SUCCESS) { in fwft_check_pte_ad_hw_updating()
289 sbiret_report_error(&ret, SBI_SUCCESS, "supported"); in fwft_check_pte_ad_hw_updating()
294 } else if (!sbiret_report_error(&ret, SBI_SUCCESS, "get")) { in fwft_check_pte_ad_hw_updating()
299 report(ret.value == 0 || ret.value == 1, "first get value is 0/1"); in fwft_check_pte_ad_hw_updating()
301 enabled = ret.value; in fwft_check_pte_ad_hw_updating()
332 ret = sbi_fwft_set(SBI_FWFT_PTE_AD_HW_UPDATING, 2, 0); in fwft_check_pte_ad_hw_updating()
333 sbiret_report_error(&ret, SBI_ERR_INVALID_PARAM, "set to 2"); in fwft_check_pte_ad_hw_updating()
335 ret = sbi_fwft_set(SBI_FWFT_PTE_AD_HW_UPDATING, !enabled, 2); in fwft_check_pte_ad_hw_updating()
336 sbiret_report_error(&ret, SBI_ERR_INVALID_PARAM, "set to %d with flags=2", !enabled); in fwft_check_pte_ad_hw_updating()