Lines Matching refs:alg_region

474 			   cs_dsp_mem_region_name(ctl->alg_region.type),  in cs_dsp_debugfs_read_controls_show()
475 ctl->offset, reg, ctl->fw_name, ctl->alg_region.alg, ctl->type, in cs_dsp_debugfs_read_controls_show()
654 const struct cs_dsp_alg_region *alg_region = &ctl->alg_region; in cs_dsp_coeff_base_reg() local
658 mem = cs_dsp_find_region(dsp, alg_region->type); in cs_dsp_coeff_base_reg()
661 alg_region->type); in cs_dsp_coeff_base_reg()
665 *reg = dsp->ops->region_to_reg(mem, ctl->alg_region.base + ctl->offset + off); in cs_dsp_coeff_base_reg()
699 event_id, ctl->alg_region.alg, in cs_dsp_coeff_write_acked_control()
700 cs_dsp_mem_region_name(ctl->alg_region.type), ctl->offset); in cs_dsp_coeff_write_acked_control()
739 reg, ctl->alg_region.alg, in cs_dsp_coeff_write_acked_control()
740 cs_dsp_mem_region_name(ctl->alg_region.type), in cs_dsp_coeff_write_acked_control()
956 event, ctl->alg_region.alg, ret); in cs_dsp_signal_event_controls()
968 const struct cs_dsp_alg_region *alg_region, in cs_dsp_create_control() argument
978 ctl->alg_region.alg == alg_region->alg && in cs_dsp_create_control()
979 ctl->alg_region.type == alg_region->type) { in cs_dsp_create_control()
995 ctl->alg_region = *alg_region; in cs_dsp_create_control()
1193 struct cs_dsp_alg_region alg_region = {}; in cs_dsp_parse_coeff() local
1244 alg_region.type = coeff_blk.mem_type; in cs_dsp_parse_coeff()
1245 alg_region.alg = alg_blk.id; in cs_dsp_parse_coeff()
1247 ret = cs_dsp_create_control(dsp, &alg_region, in cs_dsp_parse_coeff()
1530 pos->alg_region.alg == alg && in cs_dsp_get_ctl()
1531 pos->alg_region.type == type) { in cs_dsp_get_ctl()
1542 const struct cs_dsp_alg_region *alg_region) in cs_dsp_ctl_fixup_base() argument
1548 alg_region->alg == ctl->alg_region.alg && in cs_dsp_ctl_fixup_base()
1549 alg_region->type == ctl->alg_region.type) { in cs_dsp_ctl_fixup_base()
1550 ctl->alg_region.base = alg_region->base; in cs_dsp_ctl_fixup_base()
1618 struct cs_dsp_alg_region *alg_region; in cs_dsp_find_alg_region() local
1622 list_for_each_entry(alg_region, &dsp->alg_regions, list) { in cs_dsp_find_alg_region()
1623 if (id == alg_region->alg && type == alg_region->type) in cs_dsp_find_alg_region()
1624 return alg_region; in cs_dsp_find_alg_region()
1635 struct cs_dsp_alg_region *alg_region; in cs_dsp_create_region() local
1637 alg_region = kzalloc(sizeof(*alg_region), GFP_KERNEL); in cs_dsp_create_region()
1638 if (!alg_region) in cs_dsp_create_region()
1641 alg_region->type = type; in cs_dsp_create_region()
1642 alg_region->alg = be32_to_cpu(id); in cs_dsp_create_region()
1643 alg_region->ver = be32_to_cpu(ver); in cs_dsp_create_region()
1644 alg_region->base = be32_to_cpu(base); in cs_dsp_create_region()
1646 list_add_tail(&alg_region->list, &dsp->alg_regions); in cs_dsp_create_region()
1649 cs_dsp_ctl_fixup_base(dsp, alg_region); in cs_dsp_create_region()
1651 return alg_region; in cs_dsp_create_region()
1656 struct cs_dsp_alg_region *alg_region; in cs_dsp_free_alg_regions() local
1659 alg_region = list_first_entry(&dsp->alg_regions, in cs_dsp_free_alg_regions()
1662 list_del(&alg_region->list); in cs_dsp_free_alg_regions()
1663 kfree(alg_region); in cs_dsp_free_alg_regions()
1696 struct cs_dsp_alg_region *alg_region; in cs_dsp_create_regions() local
1700 alg_region = cs_dsp_create_region(dsp, type[i], id, ver, base[i]); in cs_dsp_create_regions()
1701 if (IS_ERR(alg_region)) in cs_dsp_create_regions()
1702 return PTR_ERR(alg_region); in cs_dsp_create_regions()
1712 struct cs_dsp_alg_region *alg_region; in cs_dsp_adsp1_setup_algs() local
1734 alg_region = cs_dsp_create_region(dsp, WMFW_ADSP1_ZM, in cs_dsp_adsp1_setup_algs()
1737 if (IS_ERR(alg_region)) in cs_dsp_adsp1_setup_algs()
1738 return PTR_ERR(alg_region); in cs_dsp_adsp1_setup_algs()
1740 alg_region = cs_dsp_create_region(dsp, WMFW_ADSP1_DM, in cs_dsp_adsp1_setup_algs()
1743 if (IS_ERR(alg_region)) in cs_dsp_adsp1_setup_algs()
1744 return PTR_ERR(alg_region); in cs_dsp_adsp1_setup_algs()
1763 alg_region = cs_dsp_create_region(dsp, WMFW_ADSP1_DM, in cs_dsp_adsp1_setup_algs()
1767 if (IS_ERR(alg_region)) { in cs_dsp_adsp1_setup_algs()
1768 ret = PTR_ERR(alg_region); in cs_dsp_adsp1_setup_algs()
1776 cs_dsp_create_control(dsp, alg_region, 0, in cs_dsp_adsp1_setup_algs()
1785 alg_region = cs_dsp_create_region(dsp, WMFW_ADSP1_ZM, in cs_dsp_adsp1_setup_algs()
1789 if (IS_ERR(alg_region)) { in cs_dsp_adsp1_setup_algs()
1790 ret = PTR_ERR(alg_region); in cs_dsp_adsp1_setup_algs()
1798 cs_dsp_create_control(dsp, alg_region, 0, in cs_dsp_adsp1_setup_algs()
1817 struct cs_dsp_alg_region *alg_region; in cs_dsp_adsp2_setup_algs() local
1839 alg_region = cs_dsp_create_region(dsp, WMFW_ADSP2_XM, in cs_dsp_adsp2_setup_algs()
1842 if (IS_ERR(alg_region)) in cs_dsp_adsp2_setup_algs()
1843 return PTR_ERR(alg_region); in cs_dsp_adsp2_setup_algs()
1845 alg_region = cs_dsp_create_region(dsp, WMFW_ADSP2_YM, in cs_dsp_adsp2_setup_algs()
1848 if (IS_ERR(alg_region)) in cs_dsp_adsp2_setup_algs()
1849 return PTR_ERR(alg_region); in cs_dsp_adsp2_setup_algs()
1851 alg_region = cs_dsp_create_region(dsp, WMFW_ADSP2_ZM, in cs_dsp_adsp2_setup_algs()
1854 if (IS_ERR(alg_region)) in cs_dsp_adsp2_setup_algs()
1855 return PTR_ERR(alg_region); in cs_dsp_adsp2_setup_algs()
1876 alg_region = cs_dsp_create_region(dsp, WMFW_ADSP2_XM, in cs_dsp_adsp2_setup_algs()
1880 if (IS_ERR(alg_region)) { in cs_dsp_adsp2_setup_algs()
1881 ret = PTR_ERR(alg_region); in cs_dsp_adsp2_setup_algs()
1889 cs_dsp_create_control(dsp, alg_region, 0, in cs_dsp_adsp2_setup_algs()
1898 alg_region = cs_dsp_create_region(dsp, WMFW_ADSP2_YM, in cs_dsp_adsp2_setup_algs()
1902 if (IS_ERR(alg_region)) { in cs_dsp_adsp2_setup_algs()
1903 ret = PTR_ERR(alg_region); in cs_dsp_adsp2_setup_algs()
1911 cs_dsp_create_control(dsp, alg_region, 0, in cs_dsp_adsp2_setup_algs()
1920 alg_region = cs_dsp_create_region(dsp, WMFW_ADSP2_ZM, in cs_dsp_adsp2_setup_algs()
1924 if (IS_ERR(alg_region)) { in cs_dsp_adsp2_setup_algs()
1925 ret = PTR_ERR(alg_region); in cs_dsp_adsp2_setup_algs()
1933 cs_dsp_create_control(dsp, alg_region, 0, in cs_dsp_adsp2_setup_algs()
2029 struct cs_dsp_alg_region *alg_region; in cs_dsp_load_coeff() local
2135 alg_region = cs_dsp_find_alg_region(dsp, type, in cs_dsp_load_coeff()
2137 if (alg_region) { in cs_dsp_load_coeff()
2138 if (version != alg_region->ver) in cs_dsp_load_coeff()
2144 (alg_region->ver >> 16) & 0xFF, in cs_dsp_load_coeff()
2145 (alg_region->ver >> 8) & 0xFF, in cs_dsp_load_coeff()
2146 alg_region->ver & 0xFF); in cs_dsp_load_coeff()
2148 reg = alg_region->base; in cs_dsp_load_coeff()