Lines Matching refs:mem
335 if (dsp->mem[i].type == type) in wm_adsp_find_region()
336 return &dsp->mem[i]; in wm_adsp_find_region()
378 const struct wm_adsp_region *mem; in wm_coeff_write_control() local
384 mem = wm_adsp_find_region(adsp, region->type); in wm_coeff_write_control()
385 if (!mem) { in wm_coeff_write_control()
392 reg = wm_adsp_region_to_reg(mem, reg); in wm_coeff_write_control()
434 const struct wm_adsp_region *mem; in wm_coeff_read_control() local
440 mem = wm_adsp_find_region(adsp, region->type); in wm_coeff_read_control()
441 if (!mem) { in wm_coeff_read_control()
448 reg = wm_adsp_region_to_reg(mem, reg); in wm_coeff_read_control()
533 const struct wm_adsp_region *mem; in wm_adsp_load() local
632 mem = wm_adsp_find_region(dsp, type); in wm_adsp_load()
651 reg = wm_adsp_region_to_reg(mem, offset); in wm_adsp_load()
655 reg = wm_adsp_region_to_reg(mem, offset); in wm_adsp_load()
659 reg = wm_adsp_region_to_reg(mem, offset); in wm_adsp_load()
663 reg = wm_adsp_region_to_reg(mem, offset); in wm_adsp_load()
667 reg = wm_adsp_region_to_reg(mem, offset); in wm_adsp_load()
913 const struct wm_adsp_region *mem; in wm_adsp_setup_algs() local
921 mem = wm_adsp_find_region(dsp, WMFW_ADSP1_DM); in wm_adsp_setup_algs()
924 mem = wm_adsp_find_region(dsp, WMFW_ADSP2_XM); in wm_adsp_setup_algs()
927 mem = NULL; in wm_adsp_setup_algs()
931 if (WARN_ON(!mem)) in wm_adsp_setup_algs()
936 ret = regmap_raw_read(regmap, mem->base, &adsp1_id, in wm_adsp_setup_algs()
977 ret = regmap_raw_read(regmap, mem->base, &adsp2_id, in wm_adsp_setup_algs()
1043 ret = regmap_raw_read(regmap, mem->base + term, &val, sizeof(val)); in wm_adsp_setup_algs()
1058 ret = regmap_raw_read(regmap, mem->base + pos, alg, (term - pos) * 2); in wm_adsp_setup_algs()
1196 const struct wm_adsp_region *mem; in wm_adsp_load_coeff() local
1279 mem = wm_adsp_find_region(dsp, type); in wm_adsp_load_coeff()
1280 if (!mem) { in wm_adsp_load_coeff()
1284 reg = wm_adsp_region_to_reg(mem, 0); in wm_adsp_load_coeff()
1300 mem = wm_adsp_find_region(dsp, type); in wm_adsp_load_coeff()
1301 if (!mem) { in wm_adsp_load_coeff()
1312 reg = wm_adsp_region_to_reg(mem, in wm_adsp_load_coeff()