H A D | wm_adsp.c | 239 struct wm_adsp_alg_region alg_region; member in struct:wm_coeff_ctl 539 struct wm_adsp_alg_region *alg_region = &ctl->alg_region; wm_coeff_write_control() local 546 mem = wm_adsp_find_region(dsp, alg_region->type); wm_coeff_write_control() 549 alg_region->type); wm_coeff_write_control() 553 reg = ctl->alg_region.base + ctl->offset; wm_coeff_write_control() 593 struct wm_adsp_alg_region *alg_region = &ctl->alg_region; wm_coeff_read_control() local 600 mem = wm_adsp_find_region(dsp, alg_region->type); wm_coeff_read_control() 603 alg_region->type); wm_coeff_read_control() 607 reg = ctl->alg_region.base + ctl->offset; wm_coeff_read_control() 750 const struct wm_adsp_alg_region *alg_region, wm_adsp_create_control() 764 switch (alg_region->type) { wm_adsp_create_control() 781 adsp_err(dsp, "Unknown region type: %d\n", alg_region->type); wm_adsp_create_control() 789 dsp->num, region_name, alg_region->alg); wm_adsp_create_control() 794 wm_adsp_fw_text[dsp->fw], alg_region->alg); wm_adsp_create_control() 824 ctl->alg_region = *alg_region; wm_adsp_create_control() 1014 struct wm_adsp_alg_region alg_region = {}; wm_adsp_parse_coeff() local 1033 alg_region.type = coeff_blk.mem_type; wm_adsp_parse_coeff() 1034 alg_region.alg = alg_blk.id; wm_adsp_parse_coeff() 1036 ret = wm_adsp_create_control(dsp, &alg_region, wm_adsp_parse_coeff() 1279 const struct wm_adsp_alg_region *alg_region) wm_adsp_ctl_fixup_base() 1285 alg_region->alg == ctl->alg_region.alg && wm_adsp_ctl_fixup_base() 1286 alg_region->type == ctl->alg_region.type) { wm_adsp_ctl_fixup_base() 1287 ctl->alg_region.base = alg_region->base; wm_adsp_ctl_fixup_base() 1340 struct wm_adsp_alg_region *alg_region; wm_adsp_create_region() local 1342 alg_region = kzalloc(sizeof(*alg_region), GFP_KERNEL); wm_adsp_create_region() 1343 if (!alg_region) wm_adsp_create_region() 1346 alg_region->type = type; wm_adsp_create_region() 1347 alg_region->alg = be32_to_cpu(id); wm_adsp_create_region() 1348 alg_region->base = be32_to_cpu(base); wm_adsp_create_region() 1350 list_add_tail(&alg_region->list, &dsp->alg_regions); wm_adsp_create_region() 1353 wm_adsp_ctl_fixup_base(dsp, alg_region); wm_adsp_create_region() 1355 return alg_region; wm_adsp_create_region() 1362 struct wm_adsp_alg_region *alg_region; wm_adsp1_setup_algs() local 1389 alg_region = wm_adsp_create_region(dsp, WMFW_ADSP1_ZM, wm_adsp1_setup_algs() 1391 if (IS_ERR(alg_region)) wm_adsp1_setup_algs() 1392 return PTR_ERR(alg_region); wm_adsp1_setup_algs() 1394 alg_region = wm_adsp_create_region(dsp, WMFW_ADSP1_DM, wm_adsp1_setup_algs() 1396 if (IS_ERR(alg_region)) wm_adsp1_setup_algs() 1397 return PTR_ERR(alg_region); wm_adsp1_setup_algs() 1415 alg_region = wm_adsp_create_region(dsp, WMFW_ADSP1_DM, wm_adsp1_setup_algs() 1418 if (IS_ERR(alg_region)) { wm_adsp1_setup_algs() 1419 ret = PTR_ERR(alg_region); wm_adsp1_setup_algs() 1427 wm_adsp_create_control(dsp, alg_region, 0, wm_adsp1_setup_algs() 1435 alg_region = wm_adsp_create_region(dsp, WMFW_ADSP1_ZM, wm_adsp1_setup_algs() 1438 if (IS_ERR(alg_region)) { wm_adsp1_setup_algs() 1439 ret = PTR_ERR(alg_region); wm_adsp1_setup_algs() 1447 wm_adsp_create_control(dsp, alg_region, 0, wm_adsp1_setup_algs() 1465 struct wm_adsp_alg_region *alg_region; wm_adsp2_setup_algs() local 1493 alg_region = wm_adsp_create_region(dsp, WMFW_ADSP2_XM, wm_adsp2_setup_algs() 1495 if (IS_ERR(alg_region)) wm_adsp2_setup_algs() 1496 return PTR_ERR(alg_region); wm_adsp2_setup_algs() 1498 alg_region = wm_adsp_create_region(dsp, WMFW_ADSP2_YM, wm_adsp2_setup_algs() 1500 if (IS_ERR(alg_region)) wm_adsp2_setup_algs() 1501 return PTR_ERR(alg_region); wm_adsp2_setup_algs() 1503 alg_region = wm_adsp_create_region(dsp, WMFW_ADSP2_ZM, wm_adsp2_setup_algs() 1505 if (IS_ERR(alg_region)) wm_adsp2_setup_algs() 1506 return PTR_ERR(alg_region); wm_adsp2_setup_algs() 1526 alg_region = wm_adsp_create_region(dsp, WMFW_ADSP2_XM, wm_adsp2_setup_algs() 1529 if (IS_ERR(alg_region)) { wm_adsp2_setup_algs() 1530 ret = PTR_ERR(alg_region); wm_adsp2_setup_algs() 1538 wm_adsp_create_control(dsp, alg_region, 0, wm_adsp2_setup_algs() 1546 alg_region = wm_adsp_create_region(dsp, WMFW_ADSP2_YM, wm_adsp2_setup_algs() 1549 if (IS_ERR(alg_region)) { wm_adsp2_setup_algs() 1550 ret = PTR_ERR(alg_region); wm_adsp2_setup_algs() 1558 wm_adsp_create_control(dsp, alg_region, 0, wm_adsp2_setup_algs() 1566 alg_region = wm_adsp_create_region(dsp, WMFW_ADSP2_ZM, wm_adsp2_setup_algs() 1569 if (IS_ERR(alg_region)) { wm_adsp2_setup_algs() 1570 ret = PTR_ERR(alg_region); wm_adsp2_setup_algs() 1578 wm_adsp_create_control(dsp, alg_region, 0, wm_adsp2_setup_algs() 1600 struct wm_adsp_alg_region *alg_region; wm_adsp_load_coeff() local 1709 list_for_each_entry(alg_region, wm_adsp_load_coeff() 1711 if (le32_to_cpu(blk->id) == alg_region->alg && wm_adsp_load_coeff() 1712 type == alg_region->type) { wm_adsp_load_coeff() 1713 reg = alg_region->base; wm_adsp_load_coeff() 1795 struct wm_adsp_alg_region *alg_region; wm_adsp1_event() local 1875 alg_region = list_first_entry(&dsp->alg_regions, wm_adsp1_event() 1878 list_del(&alg_region->list); wm_adsp1_event() 1879 kfree(alg_region); wm_adsp1_event() 2019 struct wm_adsp_alg_region *alg_region; wm_adsp2_event() local 2061 alg_region = list_first_entry(&dsp->alg_regions, wm_adsp2_event() 2064 list_del(&alg_region->list); wm_adsp2_event() 2065 kfree(alg_region); wm_adsp2_event() 749 wm_adsp_create_control(struct wm_adsp *dsp, const struct wm_adsp_alg_region *alg_region, unsigned int offset, unsigned int len, const char *subname, unsigned int subname_len, unsigned int flags) wm_adsp_create_control() argument 1278 wm_adsp_ctl_fixup_base(struct wm_adsp *dsp, const struct wm_adsp_alg_region *alg_region) wm_adsp_ctl_fixup_base() argument
|