Lines Matching refs:mod

37 	struct rsnd_mod mod;  member
49 container_of((_mod), struct rsnd_dvc, mod)
57 static void rsnd_dvc_activation(struct rsnd_mod *mod) in rsnd_dvc_activation() argument
59 rsnd_mod_write(mod, DVC_SWRSR, 0); in rsnd_dvc_activation()
60 rsnd_mod_write(mod, DVC_SWRSR, 1); in rsnd_dvc_activation()
63 static void rsnd_dvc_halt(struct rsnd_mod *mod) in rsnd_dvc_halt() argument
65 rsnd_mod_write(mod, DVC_DVUIR, 1); in rsnd_dvc_halt()
66 rsnd_mod_write(mod, DVC_SWRSR, 0); in rsnd_dvc_halt()
74 struct rsnd_mod *mod) in rsnd_dvc_volume_parameter() argument
76 struct rsnd_dvc *dvc = rsnd_mod_to_dvc(mod); in rsnd_dvc_volume_parameter()
90 rsnd_mod_write(mod, DVC_VOLxR(i), val[i]); in rsnd_dvc_volume_parameter()
94 struct rsnd_mod *mod) in rsnd_dvc_volume_init() argument
96 struct rsnd_dvc *dvc = rsnd_mod_to_dvc(mod); in rsnd_dvc_volume_init()
103 adinr = rsnd_get_adinr_bit(mod, io) | in rsnd_dvc_volume_init()
125 rsnd_mod_write(mod, DVC_DVUIR, 1); in rsnd_dvc_volume_init()
128 rsnd_mod_write(mod, DVC_ADINR, adinr); in rsnd_dvc_volume_init()
129 rsnd_mod_write(mod, DVC_DVUCR, dvucr); in rsnd_dvc_volume_init()
132 rsnd_mod_write(mod, DVC_VRCTR, vrctr); in rsnd_dvc_volume_init()
133 rsnd_mod_write(mod, DVC_VRPDR, vrpdr); in rsnd_dvc_volume_init()
134 rsnd_mod_write(mod, DVC_VRDBR, vrdbr); in rsnd_dvc_volume_init()
137 rsnd_dvc_volume_parameter(io, mod); in rsnd_dvc_volume_init()
140 rsnd_mod_write(mod, DVC_DVUIR, 0); in rsnd_dvc_volume_init()
144 struct rsnd_mod *mod) in rsnd_dvc_volume_update() argument
146 struct rsnd_dvc *dvc = rsnd_mod_to_dvc(mod); in rsnd_dvc_volume_update()
161 rsnd_mod_write(mod, DVC_DVUER, 0); in rsnd_dvc_volume_update()
164 rsnd_mod_write(mod, DVC_ZCMCR, zcmcr); in rsnd_dvc_volume_update()
167 rsnd_mod_write(mod, DVC_VRPDR, vrpdr); in rsnd_dvc_volume_update()
168 rsnd_mod_write(mod, DVC_VRDBR, vrdbr); in rsnd_dvc_volume_update()
172 rsnd_dvc_volume_parameter(io, mod); in rsnd_dvc_volume_update()
175 rsnd_mod_write(mod, DVC_DVUER, 1); in rsnd_dvc_volume_update()
178 static int rsnd_dvc_probe_(struct rsnd_mod *mod, in rsnd_dvc_probe_() argument
182 return rsnd_cmd_attach(io, rsnd_mod_id(mod)); in rsnd_dvc_probe_()
185 static int rsnd_dvc_init(struct rsnd_mod *mod, in rsnd_dvc_init() argument
191 ret = rsnd_mod_power_on(mod); in rsnd_dvc_init()
195 rsnd_dvc_activation(mod); in rsnd_dvc_init()
197 rsnd_dvc_volume_init(io, mod); in rsnd_dvc_init()
199 rsnd_dvc_volume_update(io, mod); in rsnd_dvc_init()
204 static int rsnd_dvc_quit(struct rsnd_mod *mod, in rsnd_dvc_quit() argument
208 rsnd_dvc_halt(mod); in rsnd_dvc_quit()
210 rsnd_mod_power_off(mod); in rsnd_dvc_quit()
215 static int rsnd_dvc_pcm_new(struct rsnd_mod *mod, in rsnd_dvc_pcm_new() argument
219 struct rsnd_dvc *dvc = rsnd_mod_to_dvc(mod); in rsnd_dvc_pcm_new()
226 ret = rsnd_kctrl_new_m(mod, io, rtd, in rsnd_dvc_pcm_new()
237 ret = rsnd_kctrl_new_m(mod, io, rtd, in rsnd_dvc_pcm_new()
248 ret = rsnd_kctrl_new_s(mod, io, rtd, in rsnd_dvc_pcm_new()
257 ret = rsnd_kctrl_new_e(mod, io, rtd, in rsnd_dvc_pcm_new()
268 ret = rsnd_kctrl_new_e(mod, io, rtd, in rsnd_dvc_pcm_new()
284 struct rsnd_mod *mod) in rsnd_dvc_dma_req() argument
286 struct rsnd_priv *priv = rsnd_mod_to_priv(mod); in rsnd_dvc_dma_req()
289 DVC_NAME, mod, "tx"); in rsnd_dvc_dma_req()
295 struct rsnd_mod *mod) in rsnd_dvc_debug_info() argument
297 rsnd_debugfs_mod_reg_show(m, mod, RSND_GEN2_SCU, in rsnd_dvc_debug_info()
298 0xe00 + rsnd_mod_id(mod) * 0x100, 0x60); in rsnd_dvc_debug_info()