• Home
  • Raw
  • Download

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()
89 rsnd_mod_write(mod, DVC_VOL0R, val[0]); in rsnd_dvc_volume_parameter()
90 rsnd_mod_write(mod, DVC_VOL1R, val[1]); in rsnd_dvc_volume_parameter()
91 rsnd_mod_write(mod, DVC_VOL2R, val[2]); in rsnd_dvc_volume_parameter()
92 rsnd_mod_write(mod, DVC_VOL3R, val[3]); in rsnd_dvc_volume_parameter()
93 rsnd_mod_write(mod, DVC_VOL4R, val[4]); in rsnd_dvc_volume_parameter()
94 rsnd_mod_write(mod, DVC_VOL5R, val[5]); in rsnd_dvc_volume_parameter()
95 rsnd_mod_write(mod, DVC_VOL6R, val[6]); in rsnd_dvc_volume_parameter()
96 rsnd_mod_write(mod, DVC_VOL7R, val[7]); in rsnd_dvc_volume_parameter()
100 struct rsnd_mod *mod) in rsnd_dvc_volume_init() argument
102 struct rsnd_dvc *dvc = rsnd_mod_to_dvc(mod); in rsnd_dvc_volume_init()
109 adinr = rsnd_get_adinr_bit(mod, io) | in rsnd_dvc_volume_init()
131 rsnd_mod_write(mod, DVC_DVUIR, 1); in rsnd_dvc_volume_init()
134 rsnd_mod_write(mod, DVC_ADINR, adinr); in rsnd_dvc_volume_init()
135 rsnd_mod_write(mod, DVC_DVUCR, dvucr); in rsnd_dvc_volume_init()
138 rsnd_mod_write(mod, DVC_VRCTR, vrctr); in rsnd_dvc_volume_init()
139 rsnd_mod_write(mod, DVC_VRPDR, vrpdr); in rsnd_dvc_volume_init()
140 rsnd_mod_write(mod, DVC_VRDBR, vrdbr); in rsnd_dvc_volume_init()
143 rsnd_dvc_volume_parameter(io, mod); in rsnd_dvc_volume_init()
146 rsnd_mod_write(mod, DVC_DVUIR, 0); in rsnd_dvc_volume_init()
150 struct rsnd_mod *mod) in rsnd_dvc_volume_update() argument
152 struct rsnd_dvc *dvc = rsnd_mod_to_dvc(mod); in rsnd_dvc_volume_update()
167 rsnd_mod_write(mod, DVC_DVUER, 0); in rsnd_dvc_volume_update()
170 rsnd_mod_write(mod, DVC_ZCMCR, zcmcr); in rsnd_dvc_volume_update()
173 rsnd_mod_write(mod, DVC_VRPDR, vrpdr); in rsnd_dvc_volume_update()
174 rsnd_mod_write(mod, DVC_VRDBR, vrdbr); in rsnd_dvc_volume_update()
178 rsnd_dvc_volume_parameter(io, mod); in rsnd_dvc_volume_update()
181 rsnd_mod_write(mod, DVC_DVUER, 1); in rsnd_dvc_volume_update()
184 static int rsnd_dvc_probe_(struct rsnd_mod *mod, in rsnd_dvc_probe_() argument
188 return rsnd_cmd_attach(io, rsnd_mod_id(mod)); in rsnd_dvc_probe_()
191 static int rsnd_dvc_init(struct rsnd_mod *mod, in rsnd_dvc_init() argument
195 rsnd_mod_power_on(mod); in rsnd_dvc_init()
197 rsnd_dvc_activation(mod); in rsnd_dvc_init()
199 rsnd_dvc_volume_init(io, mod); in rsnd_dvc_init()
201 rsnd_dvc_volume_update(io, mod); in rsnd_dvc_init()
206 static int rsnd_dvc_quit(struct rsnd_mod *mod, in rsnd_dvc_quit() argument
210 rsnd_dvc_halt(mod); in rsnd_dvc_quit()
212 rsnd_mod_power_off(mod); in rsnd_dvc_quit()
217 static int rsnd_dvc_pcm_new(struct rsnd_mod *mod, in rsnd_dvc_pcm_new() argument
221 struct rsnd_dvc *dvc = rsnd_mod_to_dvc(mod); in rsnd_dvc_pcm_new()
228 ret = rsnd_kctrl_new_m(mod, io, rtd, in rsnd_dvc_pcm_new()
239 ret = rsnd_kctrl_new_m(mod, io, rtd, in rsnd_dvc_pcm_new()
250 ret = rsnd_kctrl_new_s(mod, io, rtd, in rsnd_dvc_pcm_new()
259 ret = rsnd_kctrl_new_e(mod, io, rtd, in rsnd_dvc_pcm_new()
270 ret = rsnd_kctrl_new_e(mod, io, rtd, in rsnd_dvc_pcm_new()
286 struct rsnd_mod *mod) in rsnd_dvc_dma_req() argument
288 struct rsnd_priv *priv = rsnd_mod_to_priv(mod); in rsnd_dvc_dma_req()
291 mod, "tx"); in rsnd_dvc_dma_req()