Lines Matching refs:alg_region
481 cs_dsp_mem_region_name(ctl->alg_region.type), in cs_dsp_debugfs_read_controls_show()
482 ctl->offset, reg, ctl->fw_name, ctl->alg_region.alg, ctl->type, in cs_dsp_debugfs_read_controls_show()
661 const struct cs_dsp_alg_region *alg_region = &ctl->alg_region; in cs_dsp_coeff_base_reg() local
665 mem = cs_dsp_find_region(dsp, alg_region->type); in cs_dsp_coeff_base_reg()
668 alg_region->type); in cs_dsp_coeff_base_reg()
672 *reg = dsp->ops->region_to_reg(mem, ctl->alg_region.base + ctl->offset + off); in cs_dsp_coeff_base_reg()
706 event_id, ctl->alg_region.alg, in cs_dsp_coeff_write_acked_control()
707 cs_dsp_mem_region_name(ctl->alg_region.type), ctl->offset); in cs_dsp_coeff_write_acked_control()
746 reg, ctl->alg_region.alg, in cs_dsp_coeff_write_acked_control()
747 cs_dsp_mem_region_name(ctl->alg_region.type), in cs_dsp_coeff_write_acked_control()
1020 event, ctl->alg_region.alg, ret); in cs_dsp_signal_event_controls()
1032 const struct cs_dsp_alg_region *alg_region, in cs_dsp_create_control() argument
1042 ctl->alg_region.alg == alg_region->alg && in cs_dsp_create_control()
1043 ctl->alg_region.type == alg_region->type) { in cs_dsp_create_control()
1059 ctl->alg_region = *alg_region; in cs_dsp_create_control()
1335 struct cs_dsp_alg_region alg_region = {}; in cs_dsp_parse_coeff() local
1390 alg_region.type = coeff_blk.mem_type; in cs_dsp_parse_coeff()
1391 alg_region.alg = alg_blk.id; in cs_dsp_parse_coeff()
1393 ret = cs_dsp_create_control(dsp, &alg_region, in cs_dsp_parse_coeff()
1673 pos->alg_region.alg == alg && in cs_dsp_get_ctl()
1674 pos->alg_region.type == type) { in cs_dsp_get_ctl()
1685 const struct cs_dsp_alg_region *alg_region) in cs_dsp_ctl_fixup_base() argument
1691 alg_region->alg == ctl->alg_region.alg && in cs_dsp_ctl_fixup_base()
1692 alg_region->type == ctl->alg_region.type) { in cs_dsp_ctl_fixup_base()
1693 ctl->alg_region.base = alg_region->base; in cs_dsp_ctl_fixup_base()
1761 struct cs_dsp_alg_region *alg_region; in cs_dsp_find_alg_region() local
1765 list_for_each_entry(alg_region, &dsp->alg_regions, list) { in cs_dsp_find_alg_region()
1766 if (id == alg_region->alg && type == alg_region->type) in cs_dsp_find_alg_region()
1767 return alg_region; in cs_dsp_find_alg_region()
1778 struct cs_dsp_alg_region *alg_region; in cs_dsp_create_region() local
1780 alg_region = kzalloc(sizeof(*alg_region), GFP_KERNEL); in cs_dsp_create_region()
1781 if (!alg_region) in cs_dsp_create_region()
1784 alg_region->type = type; in cs_dsp_create_region()
1785 alg_region->alg = be32_to_cpu(id); in cs_dsp_create_region()
1786 alg_region->ver = be32_to_cpu(ver); in cs_dsp_create_region()
1787 alg_region->base = be32_to_cpu(base); in cs_dsp_create_region()
1789 list_add_tail(&alg_region->list, &dsp->alg_regions); in cs_dsp_create_region()
1792 cs_dsp_ctl_fixup_base(dsp, alg_region); in cs_dsp_create_region()
1794 return alg_region; in cs_dsp_create_region()
1799 struct cs_dsp_alg_region *alg_region; in cs_dsp_free_alg_regions() local
1802 alg_region = list_first_entry(&dsp->alg_regions, in cs_dsp_free_alg_regions()
1805 list_del(&alg_region->list); in cs_dsp_free_alg_regions()
1806 kfree(alg_region); in cs_dsp_free_alg_regions()
1839 struct cs_dsp_alg_region *alg_region; in cs_dsp_create_regions() local
1843 alg_region = cs_dsp_create_region(dsp, type[i], id, ver, base[i]); in cs_dsp_create_regions()
1844 if (IS_ERR(alg_region)) in cs_dsp_create_regions()
1845 return PTR_ERR(alg_region); in cs_dsp_create_regions()
1855 struct cs_dsp_alg_region *alg_region; in cs_dsp_adsp1_setup_algs() local
1877 alg_region = cs_dsp_create_region(dsp, WMFW_ADSP1_ZM, in cs_dsp_adsp1_setup_algs()
1880 if (IS_ERR(alg_region)) in cs_dsp_adsp1_setup_algs()
1881 return PTR_ERR(alg_region); in cs_dsp_adsp1_setup_algs()
1883 alg_region = cs_dsp_create_region(dsp, WMFW_ADSP1_DM, in cs_dsp_adsp1_setup_algs()
1886 if (IS_ERR(alg_region)) in cs_dsp_adsp1_setup_algs()
1887 return PTR_ERR(alg_region); in cs_dsp_adsp1_setup_algs()
1906 alg_region = cs_dsp_create_region(dsp, WMFW_ADSP1_DM, in cs_dsp_adsp1_setup_algs()
1910 if (IS_ERR(alg_region)) { in cs_dsp_adsp1_setup_algs()
1911 ret = PTR_ERR(alg_region); in cs_dsp_adsp1_setup_algs()
1919 cs_dsp_create_control(dsp, alg_region, 0, in cs_dsp_adsp1_setup_algs()
1928 alg_region = cs_dsp_create_region(dsp, WMFW_ADSP1_ZM, in cs_dsp_adsp1_setup_algs()
1932 if (IS_ERR(alg_region)) { in cs_dsp_adsp1_setup_algs()
1933 ret = PTR_ERR(alg_region); in cs_dsp_adsp1_setup_algs()
1941 cs_dsp_create_control(dsp, alg_region, 0, in cs_dsp_adsp1_setup_algs()
1960 struct cs_dsp_alg_region *alg_region; in cs_dsp_adsp2_setup_algs() local
1982 alg_region = cs_dsp_create_region(dsp, WMFW_ADSP2_XM, in cs_dsp_adsp2_setup_algs()
1985 if (IS_ERR(alg_region)) in cs_dsp_adsp2_setup_algs()
1986 return PTR_ERR(alg_region); in cs_dsp_adsp2_setup_algs()
1988 alg_region = cs_dsp_create_region(dsp, WMFW_ADSP2_YM, in cs_dsp_adsp2_setup_algs()
1991 if (IS_ERR(alg_region)) in cs_dsp_adsp2_setup_algs()
1992 return PTR_ERR(alg_region); in cs_dsp_adsp2_setup_algs()
1994 alg_region = cs_dsp_create_region(dsp, WMFW_ADSP2_ZM, in cs_dsp_adsp2_setup_algs()
1997 if (IS_ERR(alg_region)) in cs_dsp_adsp2_setup_algs()
1998 return PTR_ERR(alg_region); in cs_dsp_adsp2_setup_algs()
2019 alg_region = cs_dsp_create_region(dsp, WMFW_ADSP2_XM, in cs_dsp_adsp2_setup_algs()
2023 if (IS_ERR(alg_region)) { in cs_dsp_adsp2_setup_algs()
2024 ret = PTR_ERR(alg_region); in cs_dsp_adsp2_setup_algs()
2032 cs_dsp_create_control(dsp, alg_region, 0, in cs_dsp_adsp2_setup_algs()
2041 alg_region = cs_dsp_create_region(dsp, WMFW_ADSP2_YM, in cs_dsp_adsp2_setup_algs()
2045 if (IS_ERR(alg_region)) { in cs_dsp_adsp2_setup_algs()
2046 ret = PTR_ERR(alg_region); in cs_dsp_adsp2_setup_algs()
2054 cs_dsp_create_control(dsp, alg_region, 0, in cs_dsp_adsp2_setup_algs()
2063 alg_region = cs_dsp_create_region(dsp, WMFW_ADSP2_ZM, in cs_dsp_adsp2_setup_algs()
2067 if (IS_ERR(alg_region)) { in cs_dsp_adsp2_setup_algs()
2068 ret = PTR_ERR(alg_region); in cs_dsp_adsp2_setup_algs()
2076 cs_dsp_create_control(dsp, alg_region, 0, in cs_dsp_adsp2_setup_algs()
2172 struct cs_dsp_alg_region *alg_region; in cs_dsp_load_coeff() local
2288 alg_region = cs_dsp_find_alg_region(dsp, type, in cs_dsp_load_coeff()
2290 if (alg_region) { in cs_dsp_load_coeff()
2291 if (version != alg_region->ver) in cs_dsp_load_coeff()
2297 (alg_region->ver >> 16) & 0xFF, in cs_dsp_load_coeff()
2298 (alg_region->ver >> 8) & 0xFF, in cs_dsp_load_coeff()
2299 alg_region->ver & 0xFF); in cs_dsp_load_coeff()
2301 reg = alg_region->base; in cs_dsp_load_coeff()