Lines Matching full:param

142 	const struct cs_dsp_ctl_rw_test_param *param = test->param_value;  in cs_dsp_ctl_write_running()  local
147 int alg_idx = _find_alg_entry(test, param->alg_id); in cs_dsp_ctl_write_running()
153 reg_vals = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_write_running()
156 readback = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_write_running()
160 alg_base_words = _get_alg_mem_base_words(test, alg_idx, param->mem_type); in cs_dsp_ctl_write_running()
161 reg = cs_dsp_mock_base_addr_for_mem(priv, param->mem_type); in cs_dsp_ctl_write_running()
162 reg += (alg_base_words + param->offs_words) * in cs_dsp_ctl_write_running()
164 memset(reg_vals, 0, param->len_bytes); in cs_dsp_ctl_write_running()
165 regmap_raw_write(dsp->regmap, reg, reg_vals, param->len_bytes); in cs_dsp_ctl_write_running()
168 def.flags = param->flags; in cs_dsp_ctl_write_running()
169 def.mem_type = param->mem_type; in cs_dsp_ctl_write_running()
170 def.offset_dsp_words = param->offs_words; in cs_dsp_ctl_write_running()
171 def.length_bytes = param->len_bytes; in cs_dsp_ctl_write_running()
194 get_random_bytes(reg_vals, param->len_bytes); in cs_dsp_ctl_write_running()
196 cs_dsp_coeff_lock_and_write_ctrl(ctl, 0, reg_vals, param->len_bytes), in cs_dsp_ctl_write_running()
198 KUNIT_ASSERT_EQ(test, regmap_raw_read(dsp->regmap, reg, readback, param->len_bytes), 0); in cs_dsp_ctl_write_running()
199 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals, param->len_bytes); in cs_dsp_ctl_write_running()
203 cs_dsp_mock_regmap_drop_bytes(priv, reg, param->len_bytes); in cs_dsp_ctl_write_running()
213 const struct cs_dsp_ctl_rw_test_param *param = test->param_value; in cs_dsp_ctl_read_volatile_running() local
218 int alg_idx = _find_alg_entry(test, param->alg_id); in cs_dsp_ctl_read_volatile_running()
224 reg_vals = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_read_volatile_running()
227 readback = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_read_volatile_running()
231 alg_base_words = _get_alg_mem_base_words(test, alg_idx, param->mem_type); in cs_dsp_ctl_read_volatile_running()
232 reg = cs_dsp_mock_base_addr_for_mem(priv, param->mem_type); in cs_dsp_ctl_read_volatile_running()
233 reg += (alg_base_words + param->offs_words) * in cs_dsp_ctl_read_volatile_running()
235 memset(reg_vals, 0, param->len_bytes); in cs_dsp_ctl_read_volatile_running()
236 regmap_raw_write(dsp->regmap, reg, reg_vals, param->len_bytes); in cs_dsp_ctl_read_volatile_running()
239 def.flags = param->flags | WMFW_CTL_FLAG_VOLATILE; in cs_dsp_ctl_read_volatile_running()
240 def.mem_type = param->mem_type; in cs_dsp_ctl_read_volatile_running()
241 def.offset_dsp_words = param->offs_words; in cs_dsp_ctl_read_volatile_running()
242 def.length_bytes = param->len_bytes; in cs_dsp_ctl_read_volatile_running()
262 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, readback, param->len_bytes), in cs_dsp_ctl_read_volatile_running()
264 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals, param->len_bytes); in cs_dsp_ctl_read_volatile_running()
270 get_random_bytes(reg_vals, param->len_bytes); in cs_dsp_ctl_read_volatile_running()
271 KUNIT_ASSERT_EQ(test, regmap_raw_write(dsp->regmap, reg, reg_vals, param->len_bytes), 0); in cs_dsp_ctl_read_volatile_running()
273 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, readback, param->len_bytes), in cs_dsp_ctl_read_volatile_running()
275 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals, param->len_bytes); in cs_dsp_ctl_read_volatile_running()
284 const struct cs_dsp_ctl_rw_test_param *param = test->param_value; in cs_dsp_ctl_read_volatile_not_started() local
289 int alg_idx = _find_alg_entry(test, param->alg_id); in cs_dsp_ctl_read_volatile_not_started()
295 reg_vals = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_read_volatile_not_started()
299 alg_base_words = _get_alg_mem_base_words(test, alg_idx, param->mem_type); in cs_dsp_ctl_read_volatile_not_started()
300 reg = cs_dsp_mock_base_addr_for_mem(priv, param->mem_type); in cs_dsp_ctl_read_volatile_not_started()
301 reg += (alg_base_words + param->offs_words) * in cs_dsp_ctl_read_volatile_not_started()
303 regmap_raw_write(dsp->regmap, reg, reg_vals, param->len_bytes); in cs_dsp_ctl_read_volatile_not_started()
306 def.flags = param->flags | WMFW_CTL_FLAG_VOLATILE; in cs_dsp_ctl_read_volatile_not_started()
307 def.mem_type = param->mem_type; in cs_dsp_ctl_read_volatile_not_started()
308 def.offset_dsp_words = param->offs_words; in cs_dsp_ctl_read_volatile_not_started()
309 def.length_bytes = param->len_bytes; in cs_dsp_ctl_read_volatile_not_started()
324 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, reg_vals, param->len_bytes), in cs_dsp_ctl_read_volatile_not_started()
334 const struct cs_dsp_ctl_rw_test_param *param = test->param_value; in cs_dsp_ctl_read_volatile_stopped() local
339 int alg_idx = _find_alg_entry(test, param->alg_id); in cs_dsp_ctl_read_volatile_stopped()
345 reg_vals = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_read_volatile_stopped()
349 alg_base_words = _get_alg_mem_base_words(test, alg_idx, param->mem_type); in cs_dsp_ctl_read_volatile_stopped()
350 reg = cs_dsp_mock_base_addr_for_mem(priv, param->mem_type); in cs_dsp_ctl_read_volatile_stopped()
351 reg += (alg_base_words + param->offs_words) * in cs_dsp_ctl_read_volatile_stopped()
353 regmap_raw_write(dsp->regmap, reg, reg_vals, param->len_bytes); in cs_dsp_ctl_read_volatile_stopped()
356 def.flags = param->flags | WMFW_CTL_FLAG_VOLATILE; in cs_dsp_ctl_read_volatile_stopped()
357 def.mem_type = param->mem_type; in cs_dsp_ctl_read_volatile_stopped()
358 def.offset_dsp_words = param->offs_words; in cs_dsp_ctl_read_volatile_stopped()
359 def.length_bytes = param->len_bytes; in cs_dsp_ctl_read_volatile_stopped()
378 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, reg_vals, param->len_bytes), in cs_dsp_ctl_read_volatile_stopped()
388 const struct cs_dsp_ctl_rw_test_param *param = test->param_value; in cs_dsp_ctl_read_volatile_stopped_powered_down() local
393 int alg_idx = _find_alg_entry(test, param->alg_id); in cs_dsp_ctl_read_volatile_stopped_powered_down()
399 reg_vals = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_read_volatile_stopped_powered_down()
403 alg_base_words = _get_alg_mem_base_words(test, alg_idx, param->mem_type); in cs_dsp_ctl_read_volatile_stopped_powered_down()
404 reg = cs_dsp_mock_base_addr_for_mem(priv, param->mem_type); in cs_dsp_ctl_read_volatile_stopped_powered_down()
405 reg += (alg_base_words + param->offs_words) * in cs_dsp_ctl_read_volatile_stopped_powered_down()
407 regmap_raw_write(dsp->regmap, reg, reg_vals, param->len_bytes); in cs_dsp_ctl_read_volatile_stopped_powered_down()
410 def.flags = param->flags | WMFW_CTL_FLAG_VOLATILE; in cs_dsp_ctl_read_volatile_stopped_powered_down()
411 def.mem_type = param->mem_type; in cs_dsp_ctl_read_volatile_stopped_powered_down()
412 def.offset_dsp_words = param->offs_words; in cs_dsp_ctl_read_volatile_stopped_powered_down()
413 def.length_bytes = param->len_bytes; in cs_dsp_ctl_read_volatile_stopped_powered_down()
433 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, reg_vals, param->len_bytes), in cs_dsp_ctl_read_volatile_stopped_powered_down()
444 const struct cs_dsp_ctl_rw_test_param *param = test->param_value; in cs_dsp_ctl_read_volatile_not_current_loaded_fw() local
450 int alg_idx = _find_alg_entry(test, param->alg_id); in cs_dsp_ctl_read_volatile_not_current_loaded_fw()
456 reg_vals = kunit_kmalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_read_volatile_not_current_loaded_fw()
460 alg_base_words = _get_alg_mem_base_words(test, alg_idx, param->mem_type); in cs_dsp_ctl_read_volatile_not_current_loaded_fw()
461 reg = cs_dsp_mock_base_addr_for_mem(priv, param->mem_type); in cs_dsp_ctl_read_volatile_not_current_loaded_fw()
462 reg += (alg_base_words + param->offs_words) * in cs_dsp_ctl_read_volatile_not_current_loaded_fw()
464 regmap_raw_write(dsp->regmap, reg, reg_vals, param->len_bytes); in cs_dsp_ctl_read_volatile_not_current_loaded_fw()
467 def.flags = param->flags | WMFW_CTL_FLAG_VOLATILE; in cs_dsp_ctl_read_volatile_not_current_loaded_fw()
468 def.mem_type = param->mem_type; in cs_dsp_ctl_read_volatile_not_current_loaded_fw()
469 def.offset_dsp_words = param->offs_words; in cs_dsp_ctl_read_volatile_not_current_loaded_fw()
470 def.length_bytes = param->len_bytes; in cs_dsp_ctl_read_volatile_not_current_loaded_fw()
491 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, reg_vals, param->len_bytes), in cs_dsp_ctl_read_volatile_not_current_loaded_fw()
502 const struct cs_dsp_ctl_rw_test_param *param = test->param_value; in cs_dsp_ctl_read_volatile_not_current_running_fw() local
508 int alg_idx = _find_alg_entry(test, param->alg_id); in cs_dsp_ctl_read_volatile_not_current_running_fw()
514 reg_vals = kunit_kmalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_read_volatile_not_current_running_fw()
518 alg_base_words = _get_alg_mem_base_words(test, alg_idx, param->mem_type); in cs_dsp_ctl_read_volatile_not_current_running_fw()
519 reg = cs_dsp_mock_base_addr_for_mem(priv, param->mem_type); in cs_dsp_ctl_read_volatile_not_current_running_fw()
520 reg += (alg_base_words + param->offs_words) * in cs_dsp_ctl_read_volatile_not_current_running_fw()
522 regmap_raw_write(dsp->regmap, reg, reg_vals, param->len_bytes); in cs_dsp_ctl_read_volatile_not_current_running_fw()
525 def.flags = param->flags | WMFW_CTL_FLAG_VOLATILE; in cs_dsp_ctl_read_volatile_not_current_running_fw()
526 def.mem_type = param->mem_type; in cs_dsp_ctl_read_volatile_not_current_running_fw()
527 def.offset_dsp_words = param->offs_words; in cs_dsp_ctl_read_volatile_not_current_running_fw()
528 def.length_bytes = param->len_bytes; in cs_dsp_ctl_read_volatile_not_current_running_fw()
553 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, reg_vals, param->len_bytes), in cs_dsp_ctl_read_volatile_not_current_running_fw()
563 const struct cs_dsp_ctl_rw_test_param *param = test->param_value; in cs_dsp_ctl_write_volatile_not_started() local
568 int alg_idx = _find_alg_entry(test, param->alg_id); in cs_dsp_ctl_write_volatile_not_started()
574 reg_vals = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_write_volatile_not_started()
578 alg_base_words = _get_alg_mem_base_words(test, alg_idx, param->mem_type); in cs_dsp_ctl_write_volatile_not_started()
579 reg = cs_dsp_mock_base_addr_for_mem(priv, param->mem_type); in cs_dsp_ctl_write_volatile_not_started()
580 reg += (alg_base_words + param->offs_words) * in cs_dsp_ctl_write_volatile_not_started()
582 regmap_raw_write(dsp->regmap, reg, reg_vals, param->len_bytes); in cs_dsp_ctl_write_volatile_not_started()
585 def.flags = param->flags | WMFW_CTL_FLAG_VOLATILE; in cs_dsp_ctl_write_volatile_not_started()
586 def.mem_type = param->mem_type; in cs_dsp_ctl_write_volatile_not_started()
587 def.offset_dsp_words = param->offs_words; in cs_dsp_ctl_write_volatile_not_started()
588 def.length_bytes = param->len_bytes; in cs_dsp_ctl_write_volatile_not_started()
601 cs_dsp_mock_regmap_drop_bytes(priv, reg, param->len_bytes); in cs_dsp_ctl_write_volatile_not_started()
607 cs_dsp_coeff_lock_and_write_ctrl(ctl, 0, reg_vals, param->len_bytes), in cs_dsp_ctl_write_volatile_not_started()
620 const struct cs_dsp_ctl_rw_test_param *param = test->param_value; in cs_dsp_ctl_write_volatile_stopped() local
625 int alg_idx = _find_alg_entry(test, param->alg_id); in cs_dsp_ctl_write_volatile_stopped()
631 reg_vals = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_write_volatile_stopped()
635 alg_base_words = _get_alg_mem_base_words(test, alg_idx, param->mem_type); in cs_dsp_ctl_write_volatile_stopped()
636 reg = cs_dsp_mock_base_addr_for_mem(priv, param->mem_type); in cs_dsp_ctl_write_volatile_stopped()
637 reg += (alg_base_words + param->offs_words) * in cs_dsp_ctl_write_volatile_stopped()
639 regmap_raw_write(dsp->regmap, reg, reg_vals, param->len_bytes); in cs_dsp_ctl_write_volatile_stopped()
642 def.flags = param->flags | WMFW_CTL_FLAG_VOLATILE; in cs_dsp_ctl_write_volatile_stopped()
643 def.mem_type = param->mem_type; in cs_dsp_ctl_write_volatile_stopped()
644 def.offset_dsp_words = param->offs_words; in cs_dsp_ctl_write_volatile_stopped()
645 def.length_bytes = param->len_bytes; in cs_dsp_ctl_write_volatile_stopped()
662 cs_dsp_mock_regmap_drop_bytes(priv, reg, param->len_bytes); in cs_dsp_ctl_write_volatile_stopped()
668 cs_dsp_coeff_lock_and_write_ctrl(ctl, 0, reg_vals, param->len_bytes), in cs_dsp_ctl_write_volatile_stopped()
681 const struct cs_dsp_ctl_rw_test_param *param = test->param_value; in cs_dsp_ctl_write_volatile_stopped_powered_down() local
686 int alg_idx = _find_alg_entry(test, param->alg_id); in cs_dsp_ctl_write_volatile_stopped_powered_down()
692 reg_vals = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_write_volatile_stopped_powered_down()
696 alg_base_words = _get_alg_mem_base_words(test, alg_idx, param->mem_type); in cs_dsp_ctl_write_volatile_stopped_powered_down()
697 reg = cs_dsp_mock_base_addr_for_mem(priv, param->mem_type); in cs_dsp_ctl_write_volatile_stopped_powered_down()
698 reg += (alg_base_words + param->offs_words) * in cs_dsp_ctl_write_volatile_stopped_powered_down()
700 regmap_raw_write(dsp->regmap, reg, reg_vals, param->len_bytes); in cs_dsp_ctl_write_volatile_stopped_powered_down()
703 def.flags = param->flags | WMFW_CTL_FLAG_VOLATILE; in cs_dsp_ctl_write_volatile_stopped_powered_down()
704 def.mem_type = param->mem_type; in cs_dsp_ctl_write_volatile_stopped_powered_down()
705 def.offset_dsp_words = param->offs_words; in cs_dsp_ctl_write_volatile_stopped_powered_down()
706 def.length_bytes = param->len_bytes; in cs_dsp_ctl_write_volatile_stopped_powered_down()
724 cs_dsp_mock_regmap_drop_bytes(priv, reg, param->len_bytes); in cs_dsp_ctl_write_volatile_stopped_powered_down()
730 cs_dsp_coeff_lock_and_write_ctrl(ctl, 0, reg_vals, param->len_bytes), in cs_dsp_ctl_write_volatile_stopped_powered_down()
744 const struct cs_dsp_ctl_rw_test_param *param = test->param_value; in cs_dsp_ctl_write_volatile_not_current_loaded_fw() local
750 int alg_idx = _find_alg_entry(test, param->alg_id); in cs_dsp_ctl_write_volatile_not_current_loaded_fw()
756 reg_vals = kunit_kmalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_write_volatile_not_current_loaded_fw()
760 alg_base_words = _get_alg_mem_base_words(test, alg_idx, param->mem_type); in cs_dsp_ctl_write_volatile_not_current_loaded_fw()
761 reg = cs_dsp_mock_base_addr_for_mem(priv, param->mem_type); in cs_dsp_ctl_write_volatile_not_current_loaded_fw()
762 reg += (alg_base_words + param->offs_words) * in cs_dsp_ctl_write_volatile_not_current_loaded_fw()
764 regmap_raw_write(dsp->regmap, reg, reg_vals, param->len_bytes); in cs_dsp_ctl_write_volatile_not_current_loaded_fw()
767 def.flags = param->flags | WMFW_CTL_FLAG_VOLATILE; in cs_dsp_ctl_write_volatile_not_current_loaded_fw()
768 def.mem_type = param->mem_type; in cs_dsp_ctl_write_volatile_not_current_loaded_fw()
769 def.offset_dsp_words = param->offs_words; in cs_dsp_ctl_write_volatile_not_current_loaded_fw()
770 def.length_bytes = param->len_bytes; in cs_dsp_ctl_write_volatile_not_current_loaded_fw()
789 cs_dsp_mock_regmap_drop_bytes(priv, reg, param->len_bytes); in cs_dsp_ctl_write_volatile_not_current_loaded_fw()
795 cs_dsp_coeff_lock_and_write_ctrl(ctl, 0, reg_vals, param->len_bytes), in cs_dsp_ctl_write_volatile_not_current_loaded_fw()
809 const struct cs_dsp_ctl_rw_test_param *param = test->param_value; in cs_dsp_ctl_write_volatile_not_current_running_fw() local
815 int alg_idx = _find_alg_entry(test, param->alg_id); in cs_dsp_ctl_write_volatile_not_current_running_fw()
821 reg_vals = kunit_kmalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_write_volatile_not_current_running_fw()
825 alg_base_words = _get_alg_mem_base_words(test, alg_idx, param->mem_type); in cs_dsp_ctl_write_volatile_not_current_running_fw()
826 reg = cs_dsp_mock_base_addr_for_mem(priv, param->mem_type); in cs_dsp_ctl_write_volatile_not_current_running_fw()
827 reg += (alg_base_words + param->offs_words) * in cs_dsp_ctl_write_volatile_not_current_running_fw()
829 regmap_raw_write(dsp->regmap, reg, reg_vals, param->len_bytes); in cs_dsp_ctl_write_volatile_not_current_running_fw()
832 def.flags = param->flags | WMFW_CTL_FLAG_VOLATILE; in cs_dsp_ctl_write_volatile_not_current_running_fw()
833 def.mem_type = param->mem_type; in cs_dsp_ctl_write_volatile_not_current_running_fw()
834 def.offset_dsp_words = param->offs_words; in cs_dsp_ctl_write_volatile_not_current_running_fw()
835 def.length_bytes = param->len_bytes; in cs_dsp_ctl_write_volatile_not_current_running_fw()
858 cs_dsp_mock_regmap_drop_bytes(priv, reg, param->len_bytes); in cs_dsp_ctl_write_volatile_not_current_running_fw()
864 cs_dsp_coeff_lock_and_write_ctrl(ctl, 0, reg_vals, param->len_bytes), in cs_dsp_ctl_write_volatile_not_current_running_fw()
877 const struct cs_dsp_ctl_rw_test_param *param = test->param_value; in cs_dsp_ctl_read_with_seek() local
882 int alg_idx = _find_alg_entry(test, param->alg_id); in cs_dsp_ctl_read_with_seek()
889 def.flags = param->flags; in cs_dsp_ctl_read_with_seek()
890 def.mem_type = param->mem_type; in cs_dsp_ctl_read_with_seek()
891 def.offset_dsp_words = param->offs_words; in cs_dsp_ctl_read_with_seek()
901 alg_base_words = _get_alg_mem_base_words(test, alg_idx, param->mem_type); in cs_dsp_ctl_read_with_seek()
902 reg = cs_dsp_mock_base_addr_for_mem(priv, param->mem_type); in cs_dsp_ctl_read_with_seek()
903 reg += (alg_base_words + param->offs_words) * in cs_dsp_ctl_read_with_seek()
944 const struct cs_dsp_ctl_rw_test_param *param = test->param_value; in cs_dsp_ctl_read_cache_with_seek() local
949 int alg_idx = _find_alg_entry(test, param->alg_id); in cs_dsp_ctl_read_cache_with_seek()
956 def.flags = param->flags; in cs_dsp_ctl_read_cache_with_seek()
957 def.mem_type = param->mem_type; in cs_dsp_ctl_read_cache_with_seek()
958 def.offset_dsp_words = param->offs_words; in cs_dsp_ctl_read_cache_with_seek()
968 alg_base_words = _get_alg_mem_base_words(test, alg_idx, param->mem_type); in cs_dsp_ctl_read_cache_with_seek()
969 reg = cs_dsp_mock_base_addr_for_mem(priv, param->mem_type); in cs_dsp_ctl_read_cache_with_seek()
970 reg += (alg_base_words + param->offs_words) * in cs_dsp_ctl_read_cache_with_seek()
1009 const struct cs_dsp_ctl_rw_test_param *param = test->param_value; in cs_dsp_ctl_read_truncated() local
1014 int alg_idx = _find_alg_entry(test, param->alg_id); in cs_dsp_ctl_read_truncated()
1021 def.flags = param->flags; in cs_dsp_ctl_read_truncated()
1022 def.mem_type = param->mem_type; in cs_dsp_ctl_read_truncated()
1023 def.offset_dsp_words = param->offs_words; in cs_dsp_ctl_read_truncated()
1033 alg_base_words = _get_alg_mem_base_words(test, alg_idx, param->mem_type); in cs_dsp_ctl_read_truncated()
1034 reg = cs_dsp_mock_base_addr_for_mem(priv, param->mem_type); in cs_dsp_ctl_read_truncated()
1035 reg += (alg_base_words + param->offs_words) * in cs_dsp_ctl_read_truncated()
1079 const struct cs_dsp_ctl_rw_test_param *param = test->param_value; in cs_dsp_ctl_read_cache_truncated() local
1084 int alg_idx = _find_alg_entry(test, param->alg_id); in cs_dsp_ctl_read_cache_truncated()
1091 def.flags = param->flags; in cs_dsp_ctl_read_cache_truncated()
1092 def.mem_type = param->mem_type; in cs_dsp_ctl_read_cache_truncated()
1093 def.offset_dsp_words = param->offs_words; in cs_dsp_ctl_read_cache_truncated()
1103 alg_base_words = _get_alg_mem_base_words(test, alg_idx, param->mem_type); in cs_dsp_ctl_read_cache_truncated()
1104 reg = cs_dsp_mock_base_addr_for_mem(priv, param->mem_type); in cs_dsp_ctl_read_cache_truncated()
1105 reg += (alg_base_words + param->offs_words) * in cs_dsp_ctl_read_cache_truncated()
1147 const struct cs_dsp_ctl_rw_test_param *param = test->param_value; in cs_dsp_ctl_write_with_seek() local
1152 int alg_idx = _find_alg_entry(test, param->alg_id); in cs_dsp_ctl_write_with_seek()
1159 def.flags = param->flags; in cs_dsp_ctl_write_with_seek()
1160 def.mem_type = param->mem_type; in cs_dsp_ctl_write_with_seek()
1161 def.offset_dsp_words = param->offs_words; in cs_dsp_ctl_write_with_seek()
1174 alg_base_words = _get_alg_mem_base_words(test, alg_idx, param->mem_type); in cs_dsp_ctl_write_with_seek()
1175 reg = cs_dsp_mock_base_addr_for_mem(priv, param->mem_type); in cs_dsp_ctl_write_with_seek()
1176 reg += (alg_base_words + param->offs_words) * in cs_dsp_ctl_write_with_seek()
1225 const struct cs_dsp_ctl_rw_test_param *param = test->param_value; in cs_dsp_ctl_write_cache_with_seek() local
1230 int alg_idx = _find_alg_entry(test, param->alg_id); in cs_dsp_ctl_write_cache_with_seek()
1237 def.flags = param->flags; in cs_dsp_ctl_write_cache_with_seek()
1238 def.mem_type = param->mem_type; in cs_dsp_ctl_write_cache_with_seek()
1239 def.offset_dsp_words = param->offs_words; in cs_dsp_ctl_write_cache_with_seek()
1252 alg_base_words = _get_alg_mem_base_words(test, alg_idx, param->mem_type); in cs_dsp_ctl_write_cache_with_seek()
1253 reg = cs_dsp_mock_base_addr_for_mem(priv, param->mem_type); in cs_dsp_ctl_write_cache_with_seek()
1254 reg += (alg_base_words + param->offs_words) * in cs_dsp_ctl_write_cache_with_seek()
1308 const struct cs_dsp_ctl_rw_test_param *param = test->param_value; in cs_dsp_ctl_write_truncated() local
1313 int alg_idx = _find_alg_entry(test, param->alg_id); in cs_dsp_ctl_write_truncated()
1320 def.flags = param->flags; in cs_dsp_ctl_write_truncated()
1321 def.mem_type = param->mem_type; in cs_dsp_ctl_write_truncated()
1322 def.offset_dsp_words = param->offs_words; in cs_dsp_ctl_write_truncated()
1335 alg_base_words = _get_alg_mem_base_words(test, alg_idx, param->mem_type); in cs_dsp_ctl_write_truncated()
1336 reg = cs_dsp_mock_base_addr_for_mem(priv, param->mem_type); in cs_dsp_ctl_write_truncated()
1337 reg += (alg_base_words + param->offs_words) * in cs_dsp_ctl_write_truncated()
1388 const struct cs_dsp_ctl_rw_test_param *param = test->param_value; in cs_dsp_ctl_write_cache_truncated() local
1393 int alg_idx = _find_alg_entry(test, param->alg_id); in cs_dsp_ctl_write_cache_truncated()
1400 def.flags = param->flags; in cs_dsp_ctl_write_cache_truncated()
1401 def.mem_type = param->mem_type; in cs_dsp_ctl_write_cache_truncated()
1402 def.offset_dsp_words = param->offs_words; in cs_dsp_ctl_write_cache_truncated()
1415 alg_base_words = _get_alg_mem_base_words(test, alg_idx, param->mem_type); in cs_dsp_ctl_write_cache_truncated()
1416 reg = cs_dsp_mock_base_addr_for_mem(priv, param->mem_type); in cs_dsp_ctl_write_cache_truncated()
1417 reg += (alg_base_words + param->offs_words) * in cs_dsp_ctl_write_cache_truncated()
1471 const struct cs_dsp_ctl_rw_test_param *param = test->param_value; in cs_dsp_ctl_read_with_seek_oob() local
1476 int alg_idx = _find_alg_entry(test, param->alg_id); in cs_dsp_ctl_read_with_seek_oob()
1483 def.flags = param->flags; in cs_dsp_ctl_read_with_seek_oob()
1484 def.mem_type = param->mem_type; in cs_dsp_ctl_read_with_seek_oob()
1485 def.offset_dsp_words = param->offs_words; in cs_dsp_ctl_read_with_seek_oob()
1486 def.length_bytes = param->len_bytes; in cs_dsp_ctl_read_with_seek_oob()
1492 alg_base_words = _get_alg_mem_base_words(test, alg_idx, param->mem_type); in cs_dsp_ctl_read_with_seek_oob()
1493 reg = cs_dsp_mock_base_addr_for_mem(priv, param->mem_type); in cs_dsp_ctl_read_with_seek_oob()
1494 reg += (alg_base_words + param->offs_words) * in cs_dsp_ctl_read_with_seek_oob()
1539 const struct cs_dsp_ctl_rw_test_param *param = test->param_value; in cs_dsp_ctl_read_with_length_overflow() local
1544 int alg_idx = _find_alg_entry(test, param->alg_id); in cs_dsp_ctl_read_with_length_overflow()
1550 def.flags = param->flags; in cs_dsp_ctl_read_with_length_overflow()
1551 def.mem_type = param->mem_type; in cs_dsp_ctl_read_with_length_overflow()
1552 def.offset_dsp_words = param->offs_words; in cs_dsp_ctl_read_with_length_overflow()
1553 def.length_bytes = param->len_bytes; in cs_dsp_ctl_read_with_length_overflow()
1559 alg_base_words = _get_alg_mem_base_words(test, alg_idx, param->mem_type); in cs_dsp_ctl_read_with_length_overflow()
1560 reg = cs_dsp_mock_base_addr_for_mem(priv, param->mem_type); in cs_dsp_ctl_read_with_length_overflow()
1561 reg += (alg_base_words + param->offs_words) * in cs_dsp_ctl_read_with_length_overflow()
1604 const struct cs_dsp_ctl_rw_test_param *param = test->param_value; in cs_dsp_ctl_read_with_seek_and_length_oob() local
1609 int alg_idx = _find_alg_entry(test, param->alg_id); in cs_dsp_ctl_read_with_seek_and_length_oob()
1615 def.flags = param->flags; in cs_dsp_ctl_read_with_seek_and_length_oob()
1616 def.mem_type = param->mem_type; in cs_dsp_ctl_read_with_seek_and_length_oob()
1617 def.offset_dsp_words = param->offs_words; in cs_dsp_ctl_read_with_seek_and_length_oob()
1618 def.length_bytes = param->len_bytes; in cs_dsp_ctl_read_with_seek_and_length_oob()
1624 alg_base_words = _get_alg_mem_base_words(test, alg_idx, param->mem_type); in cs_dsp_ctl_read_with_seek_and_length_oob()
1625 reg = cs_dsp_mock_base_addr_for_mem(priv, param->mem_type); in cs_dsp_ctl_read_with_seek_and_length_oob()
1626 reg += (alg_base_words + param->offs_words) * in cs_dsp_ctl_read_with_seek_and_length_oob()
1673 const struct cs_dsp_ctl_rw_test_param *param = test->param_value; in cs_dsp_ctl_write_with_seek_oob() local
1678 int alg_idx = _find_alg_entry(test, param->alg_id); in cs_dsp_ctl_write_with_seek_oob()
1685 def.flags = param->flags; in cs_dsp_ctl_write_with_seek_oob()
1686 def.mem_type = param->mem_type; in cs_dsp_ctl_write_with_seek_oob()
1687 def.offset_dsp_words = param->offs_words; in cs_dsp_ctl_write_with_seek_oob()
1688 def.length_bytes = param->len_bytes; in cs_dsp_ctl_write_with_seek_oob()
1694 alg_base_words = _get_alg_mem_base_words(test, alg_idx, param->mem_type); in cs_dsp_ctl_write_with_seek_oob()
1695 reg = cs_dsp_mock_base_addr_for_mem(priv, param->mem_type); in cs_dsp_ctl_write_with_seek_oob()
1696 reg += (alg_base_words + param->offs_words) * in cs_dsp_ctl_write_with_seek_oob()
1719 cs_dsp_mock_regmap_drop_bytes(priv, reg, param->len_bytes); in cs_dsp_ctl_write_with_seek_oob()
1750 const struct cs_dsp_ctl_rw_test_param *param = test->param_value; in cs_dsp_ctl_write_with_length_overflow() local
1755 int alg_idx = _find_alg_entry(test, param->alg_id); in cs_dsp_ctl_write_with_length_overflow()
1761 def.flags = param->flags; in cs_dsp_ctl_write_with_length_overflow()
1762 def.mem_type = param->mem_type; in cs_dsp_ctl_write_with_length_overflow()
1763 def.offset_dsp_words = param->offs_words; in cs_dsp_ctl_write_with_length_overflow()
1764 def.length_bytes = param->len_bytes; in cs_dsp_ctl_write_with_length_overflow()
1770 alg_base_words = _get_alg_mem_base_words(test, alg_idx, param->mem_type); in cs_dsp_ctl_write_with_length_overflow()
1771 reg = cs_dsp_mock_base_addr_for_mem(priv, param->mem_type); in cs_dsp_ctl_write_with_length_overflow()
1772 reg += (alg_base_words + param->offs_words) * in cs_dsp_ctl_write_with_length_overflow()
1795 cs_dsp_mock_regmap_drop_bytes(priv, reg, param->len_bytes); in cs_dsp_ctl_write_with_length_overflow()
1824 const struct cs_dsp_ctl_rw_test_param *param = test->param_value; in cs_dsp_ctl_write_with_seek_and_length_oob() local
1829 int alg_idx = _find_alg_entry(test, param->alg_id); in cs_dsp_ctl_write_with_seek_and_length_oob()
1835 def.flags = param->flags; in cs_dsp_ctl_write_with_seek_and_length_oob()
1836 def.mem_type = param->mem_type; in cs_dsp_ctl_write_with_seek_and_length_oob()
1837 def.offset_dsp_words = param->offs_words; in cs_dsp_ctl_write_with_seek_and_length_oob()
1838 def.length_bytes = param->len_bytes; in cs_dsp_ctl_write_with_seek_and_length_oob()
1844 alg_base_words = _get_alg_mem_base_words(test, alg_idx, param->mem_type); in cs_dsp_ctl_write_with_seek_and_length_oob()
1845 reg = cs_dsp_mock_base_addr_for_mem(priv, param->mem_type); in cs_dsp_ctl_write_with_seek_and_length_oob()
1846 reg += (alg_base_words + param->offs_words) * in cs_dsp_ctl_write_with_seek_and_length_oob()
1869 cs_dsp_mock_regmap_drop_bytes(priv, reg, param->len_bytes); in cs_dsp_ctl_write_with_seek_and_length_oob()
1903 const struct cs_dsp_ctl_rw_test_param *param = test->param_value; in cs_dsp_ctl_read_from_writeonly() local
1908 int alg_idx = _find_alg_entry(test, param->alg_id); in cs_dsp_ctl_read_from_writeonly()
1914 KUNIT_ASSERT_TRUE(test, param->flags & WMFW_CTL_FLAG_WRITEABLE); in cs_dsp_ctl_read_from_writeonly()
1915 KUNIT_ASSERT_FALSE(test, param->flags & WMFW_CTL_FLAG_READABLE); in cs_dsp_ctl_read_from_writeonly()
1917 def.flags = param->flags; in cs_dsp_ctl_read_from_writeonly()
1918 def.mem_type = param->mem_type; in cs_dsp_ctl_read_from_writeonly()
1919 def.offset_dsp_words = param->offs_words; in cs_dsp_ctl_read_from_writeonly()
1920 def.length_bytes = param->len_bytes; in cs_dsp_ctl_read_from_writeonly()
1977 const struct cs_dsp_ctl_rw_test_param *param = test->param_value; in cs_dsp_ctl_write_to_readonly() local
1982 int alg_idx = _find_alg_entry(test, param->alg_id); in cs_dsp_ctl_write_to_readonly()
1989 KUNIT_ASSERT_FALSE(test, param->flags & WMFW_CTL_FLAG_WRITEABLE); in cs_dsp_ctl_write_to_readonly()
1990 KUNIT_ASSERT_TRUE(test, param->flags & WMFW_CTL_FLAG_READABLE); in cs_dsp_ctl_write_to_readonly()
1992 def.flags = param->flags; in cs_dsp_ctl_write_to_readonly()
1993 def.mem_type = param->mem_type; in cs_dsp_ctl_write_to_readonly()
1994 def.offset_dsp_words = param->offs_words; in cs_dsp_ctl_write_to_readonly()
1995 def.length_bytes = param->len_bytes; in cs_dsp_ctl_write_to_readonly()
2001 alg_base_words = _get_alg_mem_base_words(test, alg_idx, param->mem_type); in cs_dsp_ctl_write_to_readonly()
2002 reg = cs_dsp_mock_base_addr_for_mem(priv, param->mem_type); in cs_dsp_ctl_write_to_readonly()
2003 reg += (alg_base_words + param->offs_words) * in cs_dsp_ctl_write_to_readonly()
2026 cs_dsp_mock_regmap_drop_bytes(priv, reg, param->len_bytes); in cs_dsp_ctl_write_to_readonly()
2203 static void cs_dsp_ctl_all_param_desc(const struct cs_dsp_ctl_rw_test_param *param, in cs_dsp_ctl_all_param_desc() argument
2207 param->alg_id, cs_dsp_mem_region_name(param->mem_type), in cs_dsp_ctl_all_param_desc()
2208 param->offs_words, param->len_bytes, param->flags); in cs_dsp_ctl_all_param_desc()