Lines Matching refs:result_data
94 struct cirrus_amp_cal_data result_data; in cs_amp_lib_test_cal_data_too_short_test() local
102 ret = cs_amp_get_efi_calibration_data(&priv->amp_pdev.dev, 0, 0, &result_data); in cs_amp_lib_test_cal_data_too_short_test()
135 struct cirrus_amp_cal_data result_data; in cs_amp_lib_test_cal_count_too_big_test() local
145 ret = cs_amp_get_efi_calibration_data(&priv->amp_pdev.dev, 0, 0, &result_data); in cs_amp_lib_test_cal_count_too_big_test()
164 struct cirrus_amp_cal_data result_data; in cs_amp_lib_test_no_cal_data_test() local
172 ret = cs_amp_get_efi_calibration_data(&priv->amp_pdev.dev, 0, 0, &result_data); in cs_amp_lib_test_no_cal_data_test()
214 struct cirrus_amp_cal_data result_data; in cs_amp_lib_test_get_efi_cal_by_uid_test() local
226 ret = cs_amp_get_efi_calibration_data(&priv->amp_pdev.dev, target_uid, -1, &result_data); in cs_amp_lib_test_get_efi_cal_by_uid_test()
231 KUNIT_EXPECT_EQ(test, result_data.calTarget[0], target_uid & 0xFFFFFFFFULL); in cs_amp_lib_test_get_efi_cal_by_uid_test()
232 KUNIT_EXPECT_EQ(test, result_data.calTarget[1], target_uid >> 32); in cs_amp_lib_test_get_efi_cal_by_uid_test()
233 KUNIT_EXPECT_EQ(test, result_data.calTime[0], in cs_amp_lib_test_get_efi_cal_by_uid_test()
235 KUNIT_EXPECT_EQ(test, result_data.calTime[1], in cs_amp_lib_test_get_efi_cal_by_uid_test()
237 KUNIT_EXPECT_EQ(test, result_data.calAmbient, in cs_amp_lib_test_get_efi_cal_by_uid_test()
239 KUNIT_EXPECT_EQ(test, result_data.calStatus, in cs_amp_lib_test_get_efi_cal_by_uid_test()
241 KUNIT_EXPECT_EQ(test, result_data.calR, in cs_amp_lib_test_get_efi_cal_by_uid_test()
250 struct cirrus_amp_cal_data result_data; in cs_amp_lib_test_get_efi_cal_by_index_unchecked_test() local
261 param->amp_index, &result_data); in cs_amp_lib_test_get_efi_cal_by_index_unchecked_test()
266 KUNIT_EXPECT_EQ(test, result_data.calTime[0], in cs_amp_lib_test_get_efi_cal_by_index_unchecked_test()
268 KUNIT_EXPECT_EQ(test, result_data.calTime[1], in cs_amp_lib_test_get_efi_cal_by_index_unchecked_test()
270 KUNIT_EXPECT_EQ(test, result_data.calAmbient, in cs_amp_lib_test_get_efi_cal_by_index_unchecked_test()
272 KUNIT_EXPECT_EQ(test, result_data.calStatus, in cs_amp_lib_test_get_efi_cal_by_index_unchecked_test()
274 KUNIT_EXPECT_EQ(test, result_data.calR, in cs_amp_lib_test_get_efi_cal_by_index_unchecked_test()
283 struct cirrus_amp_cal_data result_data; in cs_amp_lib_test_get_efi_cal_by_index_checked_test() local
296 param->amp_index, &result_data); in cs_amp_lib_test_get_efi_cal_by_index_checked_test()
301 KUNIT_EXPECT_EQ(test, result_data.calTime[0], in cs_amp_lib_test_get_efi_cal_by_index_checked_test()
303 KUNIT_EXPECT_EQ(test, result_data.calTime[1], in cs_amp_lib_test_get_efi_cal_by_index_checked_test()
305 KUNIT_EXPECT_EQ(test, result_data.calAmbient, in cs_amp_lib_test_get_efi_cal_by_index_checked_test()
307 KUNIT_EXPECT_EQ(test, result_data.calStatus, in cs_amp_lib_test_get_efi_cal_by_index_checked_test()
309 KUNIT_EXPECT_EQ(test, result_data.calR, in cs_amp_lib_test_get_efi_cal_by_index_checked_test()
321 struct cirrus_amp_cal_data result_data; in cs_amp_lib_test_get_efi_cal_by_index_uid_mismatch_test() local
335 param->amp_index, &result_data); in cs_amp_lib_test_get_efi_cal_by_index_uid_mismatch_test()
349 struct cirrus_amp_cal_data result_data; in cs_amp_lib_test_get_efi_cal_by_index_fallback_test() local
367 param->amp_index, &result_data); in cs_amp_lib_test_get_efi_cal_by_index_fallback_test()
372 KUNIT_EXPECT_EQ(test, result_data.calTime[0], in cs_amp_lib_test_get_efi_cal_by_index_fallback_test()
374 KUNIT_EXPECT_EQ(test, result_data.calTime[1], in cs_amp_lib_test_get_efi_cal_by_index_fallback_test()
376 KUNIT_EXPECT_EQ(test, result_data.calAmbient, in cs_amp_lib_test_get_efi_cal_by_index_fallback_test()
378 KUNIT_EXPECT_EQ(test, result_data.calStatus, in cs_amp_lib_test_get_efi_cal_by_index_fallback_test()
380 KUNIT_EXPECT_EQ(test, result_data.calR, in cs_amp_lib_test_get_efi_cal_by_index_fallback_test()
391 struct cirrus_amp_cal_data result_data; in cs_amp_lib_test_get_efi_cal_uid_not_found_noindex_test() local
409 &result_data); in cs_amp_lib_test_get_efi_cal_uid_not_found_noindex_test()
422 struct cirrus_amp_cal_data result_data; in cs_amp_lib_test_get_efi_cal_uid_not_found_index_not_found_test() local
440 &result_data); in cs_amp_lib_test_get_efi_cal_uid_not_found_index_not_found_test()
453 struct cirrus_amp_cal_data result_data; in cs_amp_lib_test_get_efi_cal_no_uid_index_not_found_test() local
463 ret = cs_amp_get_efi_calibration_data(&priv->amp_pdev.dev, 0, 99, &result_data); in cs_amp_lib_test_get_efi_cal_no_uid_index_not_found_test()
473 struct cirrus_amp_cal_data result_data; in cs_amp_lib_test_get_efi_cal_no_uid_no_index_test() local
483 ret = cs_amp_get_efi_calibration_data(&priv->amp_pdev.dev, 0, -1, &result_data); in cs_amp_lib_test_get_efi_cal_no_uid_no_index_test()
496 struct cirrus_amp_cal_data result_data; in cs_amp_lib_test_get_efi_cal_zero_not_matched_test() local
512 ret = cs_amp_get_efi_calibration_data(&priv->amp_pdev.dev, 0, -1, &result_data); in cs_amp_lib_test_get_efi_cal_zero_not_matched_test()
525 struct cirrus_amp_cal_data result_data; in cs_amp_lib_test_get_efi_cal_empty_entry_test() local
548 &result_data), in cs_amp_lib_test_get_efi_cal_empty_entry_test()
555 &result_data), in cs_amp_lib_test_get_efi_cal_empty_entry_test()