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
174 rsnd_mod_power_on(mod); in rsnd_ctu_init()
176 rsnd_ctu_activation(mod); in rsnd_ctu_init()
178 rsnd_ctu_value_init(io, mod); in rsnd_ctu_init()
183 static int rsnd_ctu_quit(struct rsnd_mod *mod, in rsnd_ctu_quit() argument
187 rsnd_ctu_halt(mod); in rsnd_ctu_quit()
189 rsnd_mod_power_off(mod); in rsnd_ctu_quit()
194 static int rsnd_ctu_pcm_new(struct rsnd_mod *mod, in rsnd_ctu_pcm_new() argument
198 struct rsnd_ctu *ctu = rsnd_mod_to_ctu(mod); in rsnd_ctu_pcm_new()
205 ret = rsnd_kctrl_new_m(mod, io, rtd, "CTU Pass", in rsnd_ctu_pcm_new()
214 ret = rsnd_kctrl_new_m(mod, io, rtd, "CTU SV0", in rsnd_ctu_pcm_new()
223 ret = rsnd_kctrl_new_m(mod, io, rtd, "CTU SV1", in rsnd_ctu_pcm_new()
232 ret = rsnd_kctrl_new_m(mod, io, rtd, "CTU SV2", in rsnd_ctu_pcm_new()
241 ret = rsnd_kctrl_new_m(mod, io, rtd, "CTU SV3", in rsnd_ctu_pcm_new()
250 ret = rsnd_kctrl_new_s(mod, io, rtd, "CTU Reset", in rsnd_ctu_pcm_new()
260 static int rsnd_ctu_id(struct rsnd_mod *mod) in rsnd_ctu_id() argument
266 return mod->id / 4; in rsnd_ctu_id()
269 static int rsnd_ctu_id_sub(struct rsnd_mod *mod) in rsnd_ctu_id_sub() argument
275 return mod->id % 4; in rsnd_ctu_id_sub()
281 struct rsnd_mod *mod) in rsnd_ctu_debug_info() argument
283 rsnd_debugfs_mod_reg_show(m, mod, RSND_GEN2_SCU, in rsnd_ctu_debug_info()
284 0x500 + rsnd_mod_id_raw(mod) * 0x100, 0x100); in rsnd_ctu_debug_info()