Lines Matching refs:mod
73 struct rsnd_mod mod; member
91 container_of((_mod), struct rsnd_ctu, mod)
95 static void rsnd_ctu_activation(struct rsnd_mod *mod) in rsnd_ctu_activation() argument
97 rsnd_mod_write(mod, CTU_SWRSR, 0); in rsnd_ctu_activation()
98 rsnd_mod_write(mod, CTU_SWRSR, 1); in rsnd_ctu_activation()
101 static void rsnd_ctu_halt(struct rsnd_mod *mod) in rsnd_ctu_halt() argument
103 rsnd_mod_write(mod, CTU_CTUIR, 1); in rsnd_ctu_halt()
104 rsnd_mod_write(mod, CTU_SWRSR, 0); in rsnd_ctu_halt()
107 static int rsnd_ctu_probe_(struct rsnd_mod *mod, in rsnd_ctu_probe_() argument
111 return rsnd_cmd_attach(io, rsnd_mod_id(mod)); in rsnd_ctu_probe_()
115 struct rsnd_mod *mod) in rsnd_ctu_value_init() argument
117 struct rsnd_ctu *ctu = rsnd_mod_to_ctu(mod); in rsnd_ctu_value_init()
131 rsnd_mod_write(mod, CTU_CTUIR, 1); in rsnd_ctu_value_init()
133 rsnd_mod_write(mod, CTU_ADINR, rsnd_runtime_channel_original(io)); in rsnd_ctu_value_init()
135 rsnd_mod_write(mod, CTU_CPMDR, cpmdr); in rsnd_ctu_value_init()
137 rsnd_mod_write(mod, CTU_SCMDR, scmdr); in rsnd_ctu_value_init()
145 rsnd_mod_write(mod, CTU_SVxxR(i, j), rsnd_kctrl_valm(ctu->sv[i], j)); in rsnd_ctu_value_init()
148 rsnd_mod_write(mod, CTU_CTUIR, 0); in rsnd_ctu_value_init()
152 struct rsnd_mod *mod) in rsnd_ctu_value_reset() argument
154 struct rsnd_ctu *ctu = rsnd_mod_to_ctu(mod); in rsnd_ctu_value_reset()
170 static int rsnd_ctu_init(struct rsnd_mod *mod, in rsnd_ctu_init() argument
176 ret = rsnd_mod_power_on(mod); in rsnd_ctu_init()
180 rsnd_ctu_activation(mod); in rsnd_ctu_init()
182 rsnd_ctu_value_init(io, mod); in rsnd_ctu_init()
187 static int rsnd_ctu_quit(struct rsnd_mod *mod, in rsnd_ctu_quit() argument
191 rsnd_ctu_halt(mod); in rsnd_ctu_quit()
193 rsnd_mod_power_off(mod); in rsnd_ctu_quit()
198 static int rsnd_ctu_pcm_new(struct rsnd_mod *mod, in rsnd_ctu_pcm_new() argument
202 struct rsnd_ctu *ctu = rsnd_mod_to_ctu(mod); in rsnd_ctu_pcm_new()
209 ret = rsnd_kctrl_new_m(mod, io, rtd, "CTU Pass", in rsnd_ctu_pcm_new()
218 ret = rsnd_kctrl_new_m(mod, io, rtd, "CTU SV0", in rsnd_ctu_pcm_new()
227 ret = rsnd_kctrl_new_m(mod, io, rtd, "CTU SV1", in rsnd_ctu_pcm_new()
236 ret = rsnd_kctrl_new_m(mod, io, rtd, "CTU SV2", in rsnd_ctu_pcm_new()
245 ret = rsnd_kctrl_new_m(mod, io, rtd, "CTU SV3", in rsnd_ctu_pcm_new()
254 ret = rsnd_kctrl_new_s(mod, io, rtd, "CTU Reset", in rsnd_ctu_pcm_new()
264 static int rsnd_ctu_id(struct rsnd_mod *mod) in rsnd_ctu_id() argument
270 return mod->id / 4; in rsnd_ctu_id()
273 static int rsnd_ctu_id_sub(struct rsnd_mod *mod) in rsnd_ctu_id_sub() argument
279 return mod->id % 4; in rsnd_ctu_id_sub()
285 struct rsnd_mod *mod) in rsnd_ctu_debug_info() argument
287 rsnd_debugfs_mod_reg_show(m, mod, RSND_GEN2_SCU, in rsnd_ctu_debug_info()
288 0x500 + rsnd_mod_id_raw(mod) * 0x100, 0x100); in rsnd_ctu_debug_info()