Lines Matching refs:readback
209 u32 *reg_vals, *readback; in cs_dsp_ctl_cache_init() local
214 readback = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_init()
215 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_init()
248 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, readback, param->len_bytes), in cs_dsp_ctl_cache_init()
250 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals, param->len_bytes); in cs_dsp_ctl_cache_init()
267 u32 *readback, *zeros; in cs_dsp_ctl_cache_init_write_only() local
272 readback = kunit_kmalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_init_write_only()
273 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_init_write_only()
297 get_random_bytes(readback, param->len_bytes); in cs_dsp_ctl_cache_init_write_only()
299 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, readback, param->len_bytes), in cs_dsp_ctl_cache_init_write_only()
301 KUNIT_EXPECT_MEMEQ(test, readback, zeros, param->len_bytes); in cs_dsp_ctl_cache_init_write_only()
320 u32 *reg_vals[3], *readback; in cs_dsp_ctl_cache_init_multiple_fw_same_controls() local
344 readback = kunit_kzalloc(test, def.length_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_init_multiple_fw_same_controls()
345 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_init_multiple_fw_same_controls()
399 cs_dsp_coeff_lock_and_read_ctrl(ctl[0], 0, readback, def.length_bytes), in cs_dsp_ctl_cache_init_multiple_fw_same_controls()
401 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals[0], def.length_bytes); in cs_dsp_ctl_cache_init_multiple_fw_same_controls()
404 cs_dsp_coeff_lock_and_read_ctrl(ctl[1], 0, readback, def.length_bytes), in cs_dsp_ctl_cache_init_multiple_fw_same_controls()
406 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals[1], def.length_bytes); in cs_dsp_ctl_cache_init_multiple_fw_same_controls()
409 cs_dsp_coeff_lock_and_read_ctrl(ctl[2], 0, readback, def.length_bytes), in cs_dsp_ctl_cache_init_multiple_fw_same_controls()
411 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals[2], def.length_bytes); in cs_dsp_ctl_cache_init_multiple_fw_same_controls()
429 u32 *reg_vals[3], *readback; in cs_dsp_ctl_cache_init_multiple_fwalgid_same_controls() local
453 readback = kunit_kzalloc(test, def.length_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_init_multiple_fwalgid_same_controls()
454 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_init_multiple_fwalgid_same_controls()
508 cs_dsp_coeff_lock_and_read_ctrl(ctl[0], 0, readback, def.length_bytes), in cs_dsp_ctl_cache_init_multiple_fwalgid_same_controls()
510 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals[0], def.length_bytes); in cs_dsp_ctl_cache_init_multiple_fwalgid_same_controls()
513 cs_dsp_coeff_lock_and_read_ctrl(ctl[1], 0, readback, def.length_bytes), in cs_dsp_ctl_cache_init_multiple_fwalgid_same_controls()
515 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals[1], def.length_bytes); in cs_dsp_ctl_cache_init_multiple_fwalgid_same_controls()
518 cs_dsp_coeff_lock_and_read_ctrl(ctl[2], 0, readback, def.length_bytes), in cs_dsp_ctl_cache_init_multiple_fwalgid_same_controls()
520 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals[2], def.length_bytes); in cs_dsp_ctl_cache_init_multiple_fwalgid_same_controls()
537 u32 *reg_vals[3], *readback; in cs_dsp_ctl_cache_init_multiple_mems() local
548 readback = kunit_kzalloc(test, def.length_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_init_multiple_mems()
549 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_init_multiple_mems()
624 cs_dsp_coeff_lock_and_read_ctrl(ctl[0], 0, readback, def.length_bytes), in cs_dsp_ctl_cache_init_multiple_mems()
626 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals[0], def.length_bytes); in cs_dsp_ctl_cache_init_multiple_mems()
630 cs_dsp_coeff_lock_and_read_ctrl(ctl[1], 0, readback, def.length_bytes), in cs_dsp_ctl_cache_init_multiple_mems()
632 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals[1], def.length_bytes); in cs_dsp_ctl_cache_init_multiple_mems()
637 cs_dsp_coeff_lock_and_read_ctrl(ctl[2], 0, readback, in cs_dsp_ctl_cache_init_multiple_mems()
640 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals[2], def.length_bytes); in cs_dsp_ctl_cache_init_multiple_mems()
658 u32 *reg_vals[3], *readback; in cs_dsp_ctl_cache_init_multiple_algs() local
670 readback = kunit_kzalloc(test, def.length_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_init_multiple_algs()
671 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_init_multiple_algs()
726 cs_dsp_coeff_lock_and_read_ctrl(ctl[0], 0, readback, def.length_bytes), in cs_dsp_ctl_cache_init_multiple_algs()
728 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals[0], def.length_bytes); in cs_dsp_ctl_cache_init_multiple_algs()
731 cs_dsp_coeff_lock_and_read_ctrl(ctl[1], 0, readback, def.length_bytes), in cs_dsp_ctl_cache_init_multiple_algs()
733 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals[1], def.length_bytes); in cs_dsp_ctl_cache_init_multiple_algs()
736 cs_dsp_coeff_lock_and_read_ctrl(ctl[2], 0, readback, in cs_dsp_ctl_cache_init_multiple_algs()
739 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals[2], def.length_bytes); in cs_dsp_ctl_cache_init_multiple_algs()
759 u32 *reg_vals[3], *readback; in cs_dsp_ctl_cache_init_multiple_offsets() local
771 readback = kunit_kzalloc(test, def.length_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_init_multiple_offsets()
772 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_init_multiple_offsets()
840 cs_dsp_coeff_lock_and_read_ctrl(ctl[0], 0, readback, def.length_bytes), in cs_dsp_ctl_cache_init_multiple_offsets()
842 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals[0], def.length_bytes); in cs_dsp_ctl_cache_init_multiple_offsets()
845 cs_dsp_coeff_lock_and_read_ctrl(ctl[1], 0, readback, def.length_bytes), in cs_dsp_ctl_cache_init_multiple_offsets()
847 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals[1], def.length_bytes); in cs_dsp_ctl_cache_init_multiple_offsets()
850 cs_dsp_coeff_lock_and_read_ctrl(ctl[2], 0, readback, in cs_dsp_ctl_cache_init_multiple_offsets()
853 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals[2], def.length_bytes); in cs_dsp_ctl_cache_init_multiple_offsets()
871 u32 *reg_vals, *readback; in cs_dsp_ctl_cache_read_not_started() local
876 readback = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_read_not_started()
877 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_read_not_started()
912 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, readback, param->len_bytes), in cs_dsp_ctl_cache_read_not_started()
914 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals, param->len_bytes); in cs_dsp_ctl_cache_read_not_started()
932 u32 *reg_vals, *readback; in cs_dsp_ctl_cache_read_stopped() local
937 readback = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_read_stopped()
938 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_read_stopped()
977 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, readback, param->len_bytes), in cs_dsp_ctl_cache_read_stopped()
979 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals, param->len_bytes); in cs_dsp_ctl_cache_read_stopped()
998 u32 *reg_vals, *readback; in cs_dsp_ctl_cache_read_powered_down() local
1003 readback = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_read_powered_down()
1004 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_read_powered_down()
1040 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, readback, param->len_bytes), in cs_dsp_ctl_cache_read_powered_down()
1042 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals, param->len_bytes); in cs_dsp_ctl_cache_read_powered_down()
1061 u32 *reg_vals, *readback; in cs_dsp_ctl_cache_read_stopped_powered_down() local
1066 readback = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_read_stopped_powered_down()
1067 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_read_stopped_powered_down()
1107 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, readback, param->len_bytes), in cs_dsp_ctl_cache_read_stopped_powered_down()
1109 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals, param->len_bytes); in cs_dsp_ctl_cache_read_stopped_powered_down()
1129 u32 *reg_vals, *readback; in cs_dsp_ctl_cache_read_not_current_loaded_fw() local
1134 readback = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_read_not_current_loaded_fw()
1135 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_read_not_current_loaded_fw()
1175 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, readback, param->len_bytes), in cs_dsp_ctl_cache_read_not_current_loaded_fw()
1177 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals, param->len_bytes); in cs_dsp_ctl_cache_read_not_current_loaded_fw()
1197 u32 *reg_vals, *readback; in cs_dsp_ctl_cache_read_not_current_running_fw() local
1202 readback = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_read_not_current_running_fw()
1203 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_read_not_current_running_fw()
1245 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, readback, param->len_bytes), in cs_dsp_ctl_cache_read_not_current_running_fw()
1247 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals, param->len_bytes); in cs_dsp_ctl_cache_read_not_current_running_fw()
1266 u32 *init_reg_vals, *new_reg_vals, *readback; in cs_dsp_ctl_cache_read_running() local
1274 readback = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_read_running()
1275 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_read_running()
1320 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, readback, param->len_bytes), in cs_dsp_ctl_cache_read_running()
1322 KUNIT_EXPECT_MEMEQ(test, readback, init_reg_vals, param->len_bytes); in cs_dsp_ctl_cache_read_running()
1330 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, readback, param->len_bytes), in cs_dsp_ctl_cache_read_running()
1332 KUNIT_EXPECT_MEMEQ(test, readback, init_reg_vals, param->len_bytes); in cs_dsp_ctl_cache_read_running()
1352 u32 *init_reg_vals, *new_reg_vals, *readback; in cs_dsp_ctl_cache_read_running_zero_flags() local
1360 readback = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_read_running_zero_flags()
1361 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_read_running_zero_flags()
1398 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, readback, param->len_bytes), in cs_dsp_ctl_cache_read_running_zero_flags()
1400 KUNIT_EXPECT_MEMEQ(test, readback, new_reg_vals, param->len_bytes); in cs_dsp_ctl_cache_read_running_zero_flags()
1411 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, readback, param->len_bytes), in cs_dsp_ctl_cache_read_running_zero_flags()
1413 KUNIT_EXPECT_MEMEQ(test, readback, new_reg_vals, param->len_bytes); in cs_dsp_ctl_cache_read_running_zero_flags()
1432 u32 *reg_vals, *readback; in cs_dsp_ctl_cache_writethrough() local
1437 readback = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_writethrough()
1438 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_writethrough()
1475 KUNIT_ASSERT_EQ(test, regmap_raw_read(dsp->regmap, reg, readback, param->len_bytes), 0); in cs_dsp_ctl_cache_writethrough()
1476 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals, param->len_bytes); in cs_dsp_ctl_cache_writethrough()
1495 u32 *reg_vals, *readback; in cs_dsp_ctl_cache_writethrough_unchanged() local
1500 readback = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_writethrough_unchanged()
1501 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_writethrough_unchanged()
1551 KUNIT_ASSERT_EQ(test, regmap_raw_read(dsp->regmap, reg, readback, param->len_bytes), 0); in cs_dsp_ctl_cache_writethrough_unchanged()
1552 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals, param->len_bytes); in cs_dsp_ctl_cache_writethrough_unchanged()
1571 u32 *reg_vals, *readback; in cs_dsp_ctl_cache_write_unchanged_not_started() local
1576 readback = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_write_unchanged_not_started()
1577 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_write_unchanged_not_started()
1623 KUNIT_ASSERT_EQ(test, regmap_raw_read(dsp->regmap, reg, readback, param->len_bytes), 0); in cs_dsp_ctl_cache_write_unchanged_not_started()
1624 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals, param->len_bytes); in cs_dsp_ctl_cache_write_unchanged_not_started()
1643 u32 *reg_vals, *readback; in cs_dsp_ctl_cache_write_not_started() local
1648 readback = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_write_not_started()
1649 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_write_not_started()
1693 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, readback, param->len_bytes), in cs_dsp_ctl_cache_write_not_started()
1695 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals, param->len_bytes); in cs_dsp_ctl_cache_write_not_started()
1714 u32 *reg_vals, *readback; in cs_dsp_ctl_cache_write_stopped() local
1719 readback = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_write_stopped()
1720 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_write_stopped()
1768 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, readback, param->len_bytes), in cs_dsp_ctl_cache_write_stopped()
1770 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals, param->len_bytes); in cs_dsp_ctl_cache_write_stopped()
1789 u32 *reg_vals, *readback; in cs_dsp_ctl_cache_write_powered_down() local
1794 readback = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_write_powered_down()
1795 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_write_powered_down()
1840 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, readback, param->len_bytes), in cs_dsp_ctl_cache_write_powered_down()
1842 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals, param->len_bytes); in cs_dsp_ctl_cache_write_powered_down()
1861 u32 *reg_vals, *readback; in cs_dsp_ctl_cache_write_stopped_powered_down() local
1866 readback = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_write_stopped_powered_down()
1867 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_write_stopped_powered_down()
1916 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, readback, param->len_bytes), in cs_dsp_ctl_cache_write_stopped_powered_down()
1918 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals, param->len_bytes); in cs_dsp_ctl_cache_write_stopped_powered_down()
1937 u32 *reg_vals, *readback; in cs_dsp_ctl_cache_write_not_current_loaded_fw() local
1942 readback = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_write_not_current_loaded_fw()
1943 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_write_not_current_loaded_fw()
2000 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, readback, param->len_bytes), in cs_dsp_ctl_cache_write_not_current_loaded_fw()
2002 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals, param->len_bytes); in cs_dsp_ctl_cache_write_not_current_loaded_fw()
2021 u32 *reg_vals, *readback; in cs_dsp_ctl_cache_write_not_current_running_fw() local
2026 readback = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_write_not_current_running_fw()
2027 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_write_not_current_running_fw()
2086 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, readback, param->len_bytes), in cs_dsp_ctl_cache_write_not_current_running_fw()
2088 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals, param->len_bytes); in cs_dsp_ctl_cache_write_not_current_running_fw()
2107 u32 *reg_vals, *readback; in cs_dsp_ctl_cache_sync_write_before_run() local
2112 readback = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_sync_write_before_run()
2113 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_sync_write_before_run()
2147 KUNIT_EXPECT_EQ(test, regmap_raw_read(dsp->regmap, reg, readback, param->len_bytes), 0); in cs_dsp_ctl_cache_sync_write_before_run()
2148 KUNIT_EXPECT_MEMNEQ(test, readback, reg_vals, param->len_bytes); in cs_dsp_ctl_cache_sync_write_before_run()
2154 KUNIT_EXPECT_EQ(test, regmap_raw_read(dsp->regmap, reg, readback, param->len_bytes), 0); in cs_dsp_ctl_cache_sync_write_before_run()
2155 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals, param->len_bytes); in cs_dsp_ctl_cache_sync_write_before_run()
2159 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, readback, param->len_bytes), in cs_dsp_ctl_cache_sync_write_before_run()
2161 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals, param->len_bytes); in cs_dsp_ctl_cache_sync_write_before_run()
2180 u32 *init_vals, *ctl_vals, *readback; in cs_dsp_ctl_cache_sync_write_while_running() local
2188 readback = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_sync_write_while_running()
2189 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_sync_write_while_running()
2228 KUNIT_ASSERT_EQ(test, regmap_raw_read(dsp->regmap, reg, readback, param->len_bytes), 0); in cs_dsp_ctl_cache_sync_write_while_running()
2229 KUNIT_EXPECT_MEMEQ(test, readback, init_vals, param->len_bytes); in cs_dsp_ctl_cache_sync_write_while_running()
2235 KUNIT_EXPECT_EQ(test, regmap_raw_read(dsp->regmap, reg, readback, param->len_bytes), 0); in cs_dsp_ctl_cache_sync_write_while_running()
2236 KUNIT_EXPECT_MEMEQ(test, readback, ctl_vals, param->len_bytes); in cs_dsp_ctl_cache_sync_write_while_running()
2240 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, readback, param->len_bytes), in cs_dsp_ctl_cache_sync_write_while_running()
2242 KUNIT_EXPECT_MEMEQ(test, readback, ctl_vals, param->len_bytes); in cs_dsp_ctl_cache_sync_write_while_running()
2261 u32 *reg_vals, *readback; in cs_dsp_ctl_cache_sync_write_after_stop() local
2266 readback = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_sync_write_after_stop()
2267 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_sync_write_after_stop()
2305 KUNIT_EXPECT_EQ(test, regmap_raw_read(dsp->regmap, reg, readback, param->len_bytes), 0); in cs_dsp_ctl_cache_sync_write_after_stop()
2306 KUNIT_EXPECT_MEMNEQ(test, readback, reg_vals, param->len_bytes); in cs_dsp_ctl_cache_sync_write_after_stop()
2312 KUNIT_EXPECT_EQ(test, regmap_raw_read(dsp->regmap, reg, readback, param->len_bytes), 0); in cs_dsp_ctl_cache_sync_write_after_stop()
2313 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals, param->len_bytes); in cs_dsp_ctl_cache_sync_write_after_stop()
2317 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, readback, param->len_bytes), in cs_dsp_ctl_cache_sync_write_after_stop()
2319 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals, param->len_bytes); in cs_dsp_ctl_cache_sync_write_after_stop()
2340 u32 *reg_vals, *readback; in cs_dsp_ctl_cache_sync_write_not_current_fw() local
2345 readback = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_sync_write_not_current_fw()
2346 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_sync_write_not_current_fw()
2386 KUNIT_EXPECT_EQ(test, regmap_raw_read(dsp->regmap, reg, readback, param->len_bytes), 0); in cs_dsp_ctl_cache_sync_write_not_current_fw()
2387 KUNIT_EXPECT_MEMNEQ(test, readback, reg_vals, param->len_bytes); in cs_dsp_ctl_cache_sync_write_not_current_fw()
2398 KUNIT_EXPECT_EQ(test, regmap_raw_read(dsp->regmap, reg, readback, param->len_bytes), 0); in cs_dsp_ctl_cache_sync_write_not_current_fw()
2399 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals, param->len_bytes); in cs_dsp_ctl_cache_sync_write_not_current_fw()
2403 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, readback, param->len_bytes), in cs_dsp_ctl_cache_sync_write_not_current_fw()
2405 KUNIT_EXPECT_MEMEQ(test, readback, reg_vals, param->len_bytes); in cs_dsp_ctl_cache_sync_write_not_current_fw()
2424 u32 *init_vals, *readback, *ctl_vals; in cs_dsp_ctl_cache_sync_reapply_every_run() local
2429 readback = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_sync_reapply_every_run()
2430 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_sync_reapply_every_run()
2470 KUNIT_EXPECT_EQ(test, regmap_raw_read(dsp->regmap, reg, readback, param->len_bytes), 0); in cs_dsp_ctl_cache_sync_reapply_every_run()
2471 KUNIT_EXPECT_MEMEQ(test, readback, ctl_vals, param->len_bytes); in cs_dsp_ctl_cache_sync_reapply_every_run()
2480 KUNIT_EXPECT_EQ(test, regmap_raw_read(dsp->regmap, reg, readback, param->len_bytes), 0); in cs_dsp_ctl_cache_sync_reapply_every_run()
2481 KUNIT_EXPECT_MEMEQ(test, readback, ctl_vals, param->len_bytes); in cs_dsp_ctl_cache_sync_reapply_every_run()
2485 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, readback, param->len_bytes), in cs_dsp_ctl_cache_sync_reapply_every_run()
2487 KUNIT_EXPECT_MEMEQ(test, readback, ctl_vals, param->len_bytes); in cs_dsp_ctl_cache_sync_reapply_every_run()
2507 u32 *init_vals, *readback, *ctl_vals; in cs_dsp_ctl_cache_sync_reapply_after_fw_reload() local
2512 readback = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_sync_reapply_after_fw_reload()
2513 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_sync_reapply_after_fw_reload()
2553 KUNIT_EXPECT_EQ(test, regmap_raw_read(dsp->regmap, reg, readback, param->len_bytes), 0); in cs_dsp_ctl_cache_sync_reapply_after_fw_reload()
2554 KUNIT_EXPECT_MEMEQ(test, readback, ctl_vals, param->len_bytes); in cs_dsp_ctl_cache_sync_reapply_after_fw_reload()
2569 KUNIT_EXPECT_EQ(test, regmap_raw_read(dsp->regmap, reg, readback, param->len_bytes), 0); in cs_dsp_ctl_cache_sync_reapply_after_fw_reload()
2570 KUNIT_EXPECT_MEMEQ(test, readback, ctl_vals, param->len_bytes); in cs_dsp_ctl_cache_sync_reapply_after_fw_reload()
2574 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, readback, param->len_bytes), in cs_dsp_ctl_cache_sync_reapply_after_fw_reload()
2576 KUNIT_EXPECT_MEMEQ(test, readback, ctl_vals, param->len_bytes); in cs_dsp_ctl_cache_sync_reapply_after_fw_reload()
2598 u32 *init_vals, *readback, *ctl_vals; in cs_dsp_ctl_cache_sync_reapply_after_fw_swap() local
2603 readback = kunit_kzalloc(test, param->len_bytes, GFP_KERNEL); in cs_dsp_ctl_cache_sync_reapply_after_fw_swap()
2604 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, readback); in cs_dsp_ctl_cache_sync_reapply_after_fw_swap()
2644 KUNIT_EXPECT_EQ(test, regmap_raw_read(dsp->regmap, reg, readback, param->len_bytes), 0); in cs_dsp_ctl_cache_sync_reapply_after_fw_swap()
2645 KUNIT_EXPECT_MEMEQ(test, readback, ctl_vals, param->len_bytes); in cs_dsp_ctl_cache_sync_reapply_after_fw_swap()
2671 KUNIT_EXPECT_EQ(test, regmap_raw_read(dsp->regmap, reg, readback, param->len_bytes), 0); in cs_dsp_ctl_cache_sync_reapply_after_fw_swap()
2672 KUNIT_EXPECT_MEMEQ(test, readback, ctl_vals, param->len_bytes); in cs_dsp_ctl_cache_sync_reapply_after_fw_swap()
2676 cs_dsp_coeff_lock_and_read_ctrl(ctl, 0, readback, param->len_bytes), in cs_dsp_ctl_cache_sync_reapply_after_fw_swap()
2678 KUNIT_EXPECT_MEMEQ(test, readback, ctl_vals, param->len_bytes); in cs_dsp_ctl_cache_sync_reapply_after_fw_swap()