Lines Matching refs:num_amps
33 int num_amps; member
37 static void cs_amp_lib_test_init_dummy_cal_blob(struct kunit *test, int num_amps) in cs_amp_lib_test_init_dummy_cal_blob() argument
44 sizeof(struct cirrus_amp_cal_data) * num_amps; in cs_amp_lib_test_init_dummy_cal_blob()
50 priv->cal_blob->count = num_amps; in cs_amp_lib_test_init_dummy_cal_blob()
52 get_random_bytes(priv->cal_blob->data, sizeof(struct cirrus_amp_cal_data) * num_amps); in cs_amp_lib_test_init_dummy_cal_blob()
55 for (i = 0; i < num_amps; i++) in cs_amp_lib_test_init_dummy_cal_blob()
59 for (i = 0; i < num_amps; i++) in cs_amp_lib_test_init_dummy_cal_blob()
218 cs_amp_lib_test_init_dummy_cal_blob(test, param->num_amps); in cs_amp_lib_test_get_efi_cal_by_uid_test()
253 cs_amp_lib_test_init_dummy_cal_blob(test, param->num_amps); in cs_amp_lib_test_get_efi_cal_by_index_unchecked_test()
287 cs_amp_lib_test_init_dummy_cal_blob(test, param->num_amps); in cs_amp_lib_test_get_efi_cal_by_index_checked_test()
325 cs_amp_lib_test_init_dummy_cal_blob(test, param->num_amps); in cs_amp_lib_test_get_efi_cal_by_index_uid_mismatch_test()
353 cs_amp_lib_test_init_dummy_cal_blob(test, param->num_amps); in cs_amp_lib_test_get_efi_cal_by_index_fallback_test()
677 { .num_amps = 2, .amp_index = 0 },
678 { .num_amps = 2, .amp_index = 1 },
680 { .num_amps = 3, .amp_index = 0 },
681 { .num_amps = 3, .amp_index = 1 },
682 { .num_amps = 3, .amp_index = 2 },
684 { .num_amps = 4, .amp_index = 0 },
685 { .num_amps = 4, .amp_index = 1 },
686 { .num_amps = 4, .amp_index = 2 },
687 { .num_amps = 4, .amp_index = 3 },
689 { .num_amps = 5, .amp_index = 0 },
690 { .num_amps = 5, .amp_index = 1 },
691 { .num_amps = 5, .amp_index = 2 },
692 { .num_amps = 5, .amp_index = 3 },
693 { .num_amps = 5, .amp_index = 4 },
695 { .num_amps = 6, .amp_index = 0 },
696 { .num_amps = 6, .amp_index = 1 },
697 { .num_amps = 6, .amp_index = 2 },
698 { .num_amps = 6, .amp_index = 3 },
699 { .num_amps = 6, .amp_index = 4 },
700 { .num_amps = 6, .amp_index = 5 },
702 { .num_amps = 8, .amp_index = 0 },
703 { .num_amps = 8, .amp_index = 1 },
704 { .num_amps = 8, .amp_index = 2 },
705 { .num_amps = 8, .amp_index = 3 },
706 { .num_amps = 8, .amp_index = 4 },
707 { .num_amps = 8, .amp_index = 5 },
708 { .num_amps = 8, .amp_index = 6 },
709 { .num_amps = 8, .amp_index = 7 },
716 param->num_amps, param->amp_index); in cs_amp_lib_test_get_cal_param_desc()