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
189 rsnd_mod_power_on(mod); in rsnd_dvc_init()
191 rsnd_dvc_activation(mod); in rsnd_dvc_init()
193 rsnd_dvc_volume_init(io, mod); in rsnd_dvc_init()
195 rsnd_dvc_volume_update(io, mod); in rsnd_dvc_init()
200 static int rsnd_dvc_quit(struct rsnd_mod *mod, in rsnd_dvc_quit() argument
204 rsnd_dvc_halt(mod); in rsnd_dvc_quit()
206 rsnd_mod_power_off(mod); in rsnd_dvc_quit()
211 static int rsnd_dvc_pcm_new(struct rsnd_mod *mod, in rsnd_dvc_pcm_new() argument
215 struct rsnd_dvc *dvc = rsnd_mod_to_dvc(mod); in rsnd_dvc_pcm_new()
222 ret = rsnd_kctrl_new_m(mod, io, rtd, in rsnd_dvc_pcm_new()
233 ret = rsnd_kctrl_new_m(mod, io, rtd, in rsnd_dvc_pcm_new()
244 ret = rsnd_kctrl_new_s(mod, io, rtd, in rsnd_dvc_pcm_new()
253 ret = rsnd_kctrl_new_e(mod, io, rtd, in rsnd_dvc_pcm_new()
264 ret = rsnd_kctrl_new_e(mod, io, rtd, in rsnd_dvc_pcm_new()
280 struct rsnd_mod *mod) in rsnd_dvc_dma_req() argument
282 struct rsnd_priv *priv = rsnd_mod_to_priv(mod); in rsnd_dvc_dma_req()
285 DVC_NAME, mod, "tx"); in rsnd_dvc_dma_req()
291 struct rsnd_mod *mod) in rsnd_dvc_debug_info() argument
293 rsnd_debugfs_mod_reg_show(m, mod, RSND_GEN2_SCU, in rsnd_dvc_debug_info()
294 0xe00 + rsnd_mod_id(mod) * 0x100, 0x60); in rsnd_dvc_debug_info()