Lines Matching refs:mem
337 if (dsp->mem[i].type == type) in wm_adsp_find_region()
338 return &dsp->mem[i]; in wm_adsp_find_region()
380 const struct wm_adsp_region *mem; in wm_coeff_write_control() local
386 mem = wm_adsp_find_region(adsp, region->type); in wm_coeff_write_control()
387 if (!mem) { in wm_coeff_write_control()
394 reg = wm_adsp_region_to_reg(mem, reg); in wm_coeff_write_control()
435 const struct wm_adsp_region *mem; in wm_coeff_read_control() local
441 mem = wm_adsp_find_region(adsp, region->type); in wm_coeff_read_control()
442 if (!mem) { in wm_coeff_read_control()
449 reg = wm_adsp_region_to_reg(mem, reg); in wm_coeff_read_control()
534 const struct wm_adsp_region *mem; in wm_adsp_load() local
633 mem = wm_adsp_find_region(dsp, type); in wm_adsp_load()
652 reg = wm_adsp_region_to_reg(mem, offset); in wm_adsp_load()
656 reg = wm_adsp_region_to_reg(mem, offset); in wm_adsp_load()
660 reg = wm_adsp_region_to_reg(mem, offset); in wm_adsp_load()
664 reg = wm_adsp_region_to_reg(mem, offset); in wm_adsp_load()
668 reg = wm_adsp_region_to_reg(mem, offset); in wm_adsp_load()
888 const struct wm_adsp_region *mem; in wm_adsp_setup_algs() local
896 mem = wm_adsp_find_region(dsp, WMFW_ADSP1_DM); in wm_adsp_setup_algs()
899 mem = wm_adsp_find_region(dsp, WMFW_ADSP2_XM); in wm_adsp_setup_algs()
902 mem = NULL; in wm_adsp_setup_algs()
906 if (WARN_ON(!mem)) in wm_adsp_setup_algs()
911 ret = regmap_raw_read(regmap, mem->base, &adsp1_id, in wm_adsp_setup_algs()
952 ret = regmap_raw_read(regmap, mem->base, &adsp2_id, in wm_adsp_setup_algs()
1018 ret = regmap_raw_read(regmap, mem->base + term, &val, sizeof(val)); in wm_adsp_setup_algs()
1033 ret = regmap_raw_read(regmap, mem->base + pos, alg, (term - pos) * 2); in wm_adsp_setup_algs()
1181 const struct wm_adsp_region *mem; in wm_adsp_load_coeff() local
1263 mem = wm_adsp_find_region(dsp, type); in wm_adsp_load_coeff()
1264 if (!mem) { in wm_adsp_load_coeff()
1268 reg = wm_adsp_region_to_reg(mem, 0); in wm_adsp_load_coeff()
1284 mem = wm_adsp_find_region(dsp, type); in wm_adsp_load_coeff()
1285 if (!mem) { in wm_adsp_load_coeff()
1296 reg = wm_adsp_region_to_reg(mem, in wm_adsp_load_coeff()