• Home
  • Raw
  • Download

Lines Matching refs:mem

832 		if (dsp->mem[i].type == type)  in wm_adsp_find_region()
833 return &dsp->mem[i]; in wm_adsp_find_region()
838 static unsigned int wm_adsp_region_to_reg(struct wm_adsp_region const *mem, in wm_adsp_region_to_reg() argument
841 switch (mem->type) { in wm_adsp_region_to_reg()
843 return mem->base + (offset * 3); in wm_adsp_region_to_reg()
848 return mem->base + (offset * 2); in wm_adsp_region_to_reg()
855 static unsigned int wm_halo_region_to_reg(struct wm_adsp_region const *mem, in wm_halo_region_to_reg() argument
858 switch (mem->type) { in wm_halo_region_to_reg()
861 return mem->base + (offset * 4); in wm_halo_region_to_reg()
864 return (mem->base + (offset * 3)) & ~0x3; in wm_halo_region_to_reg()
866 return mem->base + (offset * 5); in wm_halo_region_to_reg()
932 const struct wm_adsp_region *mem; in wm_coeff_base_reg() local
934 mem = wm_adsp_find_region(dsp, alg_region->type); in wm_coeff_base_reg()
935 if (!mem) { in wm_coeff_base_reg()
941 *reg = dsp->ops->region_to_reg(mem, ctl->alg_region.base + ctl->offset); in wm_coeff_base_reg()
1807 const struct wm_adsp_region *mem; in wm_adsp_load() local
1912 mem = wm_adsp_find_region(dsp, type); in wm_adsp_load()
1913 if (!mem) { in wm_adsp_load()
1919 reg = dsp->ops->region_to_reg(mem, offset); in wm_adsp_load()
2013 const struct wm_adsp_region *mem, in wm_adsp_read_algs() argument
2032 reg = dsp->ops->region_to_reg(mem, pos + len); in wm_adsp_read_algs()
2052 reg = dsp->ops->region_to_reg(mem, pos); in wm_adsp_read_algs()
2158 const struct wm_adsp_region *mem; in wm_adsp1_setup_algs() local
2163 mem = wm_adsp_find_region(dsp, WMFW_ADSP1_DM); in wm_adsp1_setup_algs()
2164 if (WARN_ON(!mem)) in wm_adsp1_setup_algs()
2167 ret = regmap_raw_read(dsp->regmap, mem->base, &adsp1_id, in wm_adsp1_setup_algs()
2193 adsp1_alg = wm_adsp_read_algs(dsp, n_algs, mem, pos, len); in wm_adsp1_setup_algs()
2259 const struct wm_adsp_region *mem; in wm_adsp2_setup_algs() local
2264 mem = wm_adsp_find_region(dsp, WMFW_ADSP2_XM); in wm_adsp2_setup_algs()
2265 if (WARN_ON(!mem)) in wm_adsp2_setup_algs()
2268 ret = regmap_raw_read(dsp->regmap, mem->base, &adsp2_id, in wm_adsp2_setup_algs()
2299 adsp2_alg = wm_adsp_read_algs(dsp, n_algs, mem, pos, len); in wm_adsp2_setup_algs()
2399 const struct wm_adsp_region *mem; in wm_halo_setup_algs() local
2404 mem = wm_adsp_find_region(dsp, WMFW_ADSP2_XM); in wm_halo_setup_algs()
2405 if (WARN_ON(!mem)) in wm_halo_setup_algs()
2408 ret = regmap_raw_read(dsp->regmap, mem->base, &halo_id, in wm_halo_setup_algs()
2429 halo_alg = wm_adsp_read_algs(dsp, n_algs, mem, pos, len); in wm_halo_setup_algs()
2462 const struct wm_adsp_region *mem; in wm_adsp_load_coeff() local
2544 mem = wm_adsp_find_region(dsp, type); in wm_adsp_load_coeff()
2545 if (!mem) { in wm_adsp_load_coeff()
2549 reg = dsp->ops->region_to_reg(mem, 0); in wm_adsp_load_coeff()
2568 mem = wm_adsp_find_region(dsp, type); in wm_adsp_load_coeff()
2569 if (!mem) { in wm_adsp_load_coeff()
2578 reg = dsp->ops->region_to_reg(mem, reg); in wm_adsp_load_coeff()
3558 struct wm_adsp_region const *mem = wm_adsp_find_region(dsp, mem_type); in wm_adsp_read_data_block() local
3562 if (!mem) in wm_adsp_read_data_block()
3565 reg = dsp->ops->region_to_reg(mem, mem_addr); in wm_adsp_read_data_block()
3587 struct wm_adsp_region const *mem = wm_adsp_find_region(dsp, mem_type); in wm_adsp_write_data_word() local
3590 if (!mem) in wm_adsp_write_data_word()
3593 reg = dsp->ops->region_to_reg(mem, mem_addr); in wm_adsp_write_data_word()