Lines Matching refs:blk

157 	struct src_rsc_ctrl_blk *blk;  in src_get_rsc_ctrl_blk()  local
160 blk = kzalloc(sizeof(*blk), GFP_KERNEL); in src_get_rsc_ctrl_blk()
161 if (!blk) in src_get_rsc_ctrl_blk()
164 *rblk = blk; in src_get_rsc_ctrl_blk()
169 static int src_put_rsc_ctrl_blk(void *blk) in src_put_rsc_ctrl_blk() argument
171 kfree(blk); in src_put_rsc_ctrl_blk()
176 static int src_set_state(void *blk, unsigned int state) in src_set_state() argument
178 struct src_rsc_ctrl_blk *ctl = blk; in src_set_state()
185 static int src_set_bm(void *blk, unsigned int bm) in src_set_bm() argument
187 struct src_rsc_ctrl_blk *ctl = blk; in src_set_bm()
194 static int src_set_rsr(void *blk, unsigned int rsr) in src_set_rsr() argument
196 struct src_rsc_ctrl_blk *ctl = blk; in src_set_rsr()
203 static int src_set_sf(void *blk, unsigned int sf) in src_set_sf() argument
205 struct src_rsc_ctrl_blk *ctl = blk; in src_set_sf()
212 static int src_set_wr(void *blk, unsigned int wr) in src_set_wr() argument
214 struct src_rsc_ctrl_blk *ctl = blk; in src_set_wr()
221 static int src_set_pm(void *blk, unsigned int pm) in src_set_pm() argument
223 struct src_rsc_ctrl_blk *ctl = blk; in src_set_pm()
230 static int src_set_rom(void *blk, unsigned int rom) in src_set_rom() argument
232 struct src_rsc_ctrl_blk *ctl = blk; in src_set_rom()
239 static int src_set_vo(void *blk, unsigned int vo) in src_set_vo() argument
241 struct src_rsc_ctrl_blk *ctl = blk; in src_set_vo()
248 static int src_set_st(void *blk, unsigned int st) in src_set_st() argument
250 struct src_rsc_ctrl_blk *ctl = blk; in src_set_st()
257 static int src_set_ie(void *blk, unsigned int ie) in src_set_ie() argument
259 struct src_rsc_ctrl_blk *ctl = blk; in src_set_ie()
266 static int src_set_ilsz(void *blk, unsigned int ilsz) in src_set_ilsz() argument
268 struct src_rsc_ctrl_blk *ctl = blk; in src_set_ilsz()
275 static int src_set_bp(void *blk, unsigned int bp) in src_set_bp() argument
277 struct src_rsc_ctrl_blk *ctl = blk; in src_set_bp()
284 static int src_set_cisz(void *blk, unsigned int cisz) in src_set_cisz() argument
286 struct src_rsc_ctrl_blk *ctl = blk; in src_set_cisz()
293 static int src_set_ca(void *blk, unsigned int ca) in src_set_ca() argument
295 struct src_rsc_ctrl_blk *ctl = blk; in src_set_ca()
302 static int src_set_sa(void *blk, unsigned int sa) in src_set_sa() argument
304 struct src_rsc_ctrl_blk *ctl = blk; in src_set_sa()
311 static int src_set_la(void *blk, unsigned int la) in src_set_la() argument
313 struct src_rsc_ctrl_blk *ctl = blk; in src_set_la()
320 static int src_set_pitch(void *blk, unsigned int pitch) in src_set_pitch() argument
322 struct src_rsc_ctrl_blk *ctl = blk; in src_set_pitch()
329 static int src_set_clear_zbufs(void *blk, unsigned int clear) in src_set_clear_zbufs() argument
331 ((struct src_rsc_ctrl_blk *)blk)->dirty.bf.czbfs = (clear ? 1 : 0); in src_set_clear_zbufs()
335 static int src_set_dirty(void *blk, unsigned int flags) in src_set_dirty() argument
337 ((struct src_rsc_ctrl_blk *)blk)->dirty.data = (flags & 0xffff); in src_set_dirty()
341 static int src_set_dirty_all(void *blk) in src_set_dirty_all() argument
343 ((struct src_rsc_ctrl_blk *)blk)->dirty.data = ~(0x0); in src_set_dirty_all()
359 static int src_commit_write(struct hw *hw, unsigned int idx, void *blk) in src_commit_write() argument
361 struct src_rsc_ctrl_blk *ctl = blk; in src_commit_write()
416 static int src_get_ca(struct hw *hw, unsigned int idx, void *blk) in src_get_ca() argument
418 struct src_rsc_ctrl_blk *ctl = blk; in src_get_ca()
426 static unsigned int src_get_dirty(void *blk) in src_get_dirty() argument
428 return ((struct src_rsc_ctrl_blk *)blk)->dirty.data; in src_get_dirty()
436 static int src_mgr_enbs_src(void *blk, unsigned int idx) in src_mgr_enbs_src() argument
438 ((struct src_mgr_ctrl_blk *)blk)->enbsa |= (0x1 << ((idx%128)/4)); in src_mgr_enbs_src()
439 ((struct src_mgr_ctrl_blk *)blk)->dirty.bf.enbsa = 1; in src_mgr_enbs_src()
440 ((struct src_mgr_ctrl_blk *)blk)->enb[idx/32] |= (0x1 << (idx%32)); in src_mgr_enbs_src()
444 static int src_mgr_enb_src(void *blk, unsigned int idx) in src_mgr_enb_src() argument
446 ((struct src_mgr_ctrl_blk *)blk)->enb[idx/32] |= (0x1 << (idx%32)); in src_mgr_enb_src()
447 ((struct src_mgr_ctrl_blk *)blk)->dirty.data |= (0x1 << (idx/32)); in src_mgr_enb_src()
451 static int src_mgr_dsb_src(void *blk, unsigned int idx) in src_mgr_dsb_src() argument
453 ((struct src_mgr_ctrl_blk *)blk)->enb[idx/32] &= ~(0x1 << (idx%32)); in src_mgr_dsb_src()
454 ((struct src_mgr_ctrl_blk *)blk)->dirty.data |= (0x1 << (idx/32)); in src_mgr_dsb_src()
458 static int src_mgr_commit_write(struct hw *hw, void *blk) in src_mgr_commit_write() argument
460 struct src_mgr_ctrl_blk *ctl = blk; in src_mgr_commit_write()
483 struct src_mgr_ctrl_blk *blk; in src_mgr_get_ctrl_blk() local
486 blk = kzalloc(sizeof(*blk), GFP_KERNEL); in src_mgr_get_ctrl_blk()
487 if (!blk) in src_mgr_get_ctrl_blk()
490 *rblk = blk; in src_mgr_get_ctrl_blk()
495 static int src_mgr_put_ctrl_blk(void *blk) in src_mgr_put_ctrl_blk() argument
497 kfree(blk); in src_mgr_put_ctrl_blk()
504 struct srcimp_mgr_ctrl_blk *blk; in srcimp_mgr_get_ctrl_blk() local
507 blk = kzalloc(sizeof(*blk), GFP_KERNEL); in srcimp_mgr_get_ctrl_blk()
508 if (!blk) in srcimp_mgr_get_ctrl_blk()
511 *rblk = blk; in srcimp_mgr_get_ctrl_blk()
516 static int srcimp_mgr_put_ctrl_blk(void *blk) in srcimp_mgr_put_ctrl_blk() argument
518 kfree(blk); in srcimp_mgr_put_ctrl_blk()
523 static int srcimp_mgr_set_imaparc(void *blk, unsigned int slot) in srcimp_mgr_set_imaparc() argument
525 struct srcimp_mgr_ctrl_blk *ctl = blk; in srcimp_mgr_set_imaparc()
532 static int srcimp_mgr_set_imapuser(void *blk, unsigned int user) in srcimp_mgr_set_imapuser() argument
534 struct srcimp_mgr_ctrl_blk *ctl = blk; in srcimp_mgr_set_imapuser()
541 static int srcimp_mgr_set_imapnxt(void *blk, unsigned int next) in srcimp_mgr_set_imapnxt() argument
543 struct srcimp_mgr_ctrl_blk *ctl = blk; in srcimp_mgr_set_imapnxt()
550 static int srcimp_mgr_set_imapaddr(void *blk, unsigned int addr) in srcimp_mgr_set_imapaddr() argument
552 ((struct srcimp_mgr_ctrl_blk *)blk)->srcimap.idx = addr; in srcimp_mgr_set_imapaddr()
553 ((struct srcimp_mgr_ctrl_blk *)blk)->dirty.bf.srcimap = 1; in srcimp_mgr_set_imapaddr()
557 static int srcimp_mgr_commit_write(struct hw *hw, void *blk) in srcimp_mgr_commit_write() argument
559 struct srcimp_mgr_ctrl_blk *ctl = blk; in srcimp_mgr_commit_write()
599 static int amixer_set_mode(void *blk, unsigned int mode) in amixer_set_mode() argument
601 struct amixer_rsc_ctrl_blk *ctl = blk; in amixer_set_mode()
608 static int amixer_set_iv(void *blk, unsigned int iv) in amixer_set_iv() argument
610 struct amixer_rsc_ctrl_blk *ctl = blk; in amixer_set_iv()
617 static int amixer_set_x(void *blk, unsigned int x) in amixer_set_x() argument
619 struct amixer_rsc_ctrl_blk *ctl = blk; in amixer_set_x()
626 static int amixer_set_y(void *blk, unsigned int y) in amixer_set_y() argument
628 struct amixer_rsc_ctrl_blk *ctl = blk; in amixer_set_y()
635 static int amixer_set_sadr(void *blk, unsigned int sadr) in amixer_set_sadr() argument
637 struct amixer_rsc_ctrl_blk *ctl = blk; in amixer_set_sadr()
644 static int amixer_set_se(void *blk, unsigned int se) in amixer_set_se() argument
646 struct amixer_rsc_ctrl_blk *ctl = blk; in amixer_set_se()
653 static int amixer_set_dirty(void *blk, unsigned int flags) in amixer_set_dirty() argument
655 ((struct amixer_rsc_ctrl_blk *)blk)->dirty.data = (flags & 0xffff); in amixer_set_dirty()
659 static int amixer_set_dirty_all(void *blk) in amixer_set_dirty_all() argument
661 ((struct amixer_rsc_ctrl_blk *)blk)->dirty.data = ~(0x0); in amixer_set_dirty_all()
665 static int amixer_commit_write(struct hw *hw, unsigned int idx, void *blk) in amixer_commit_write() argument
667 struct amixer_rsc_ctrl_blk *ctl = blk; in amixer_commit_write()
679 static int amixer_get_y(void *blk) in amixer_get_y() argument
681 struct amixer_rsc_ctrl_blk *ctl = blk; in amixer_get_y()
686 static unsigned int amixer_get_dirty(void *blk) in amixer_get_dirty() argument
688 return ((struct amixer_rsc_ctrl_blk *)blk)->dirty.data; in amixer_get_dirty()
693 struct amixer_rsc_ctrl_blk *blk; in amixer_rsc_get_ctrl_blk() local
696 blk = kzalloc(sizeof(*blk), GFP_KERNEL); in amixer_rsc_get_ctrl_blk()
697 if (!blk) in amixer_rsc_get_ctrl_blk()
700 *rblk = blk; in amixer_rsc_get_ctrl_blk()
705 static int amixer_rsc_put_ctrl_blk(void *blk) in amixer_rsc_put_ctrl_blk() argument
707 kfree(blk); in amixer_rsc_put_ctrl_blk()
719 static int amixer_mgr_put_ctrl_blk(void *blk) in amixer_mgr_put_ctrl_blk() argument
814 static int dai_srt_set_srco(void *blk, unsigned int src) in dai_srt_set_srco() argument
816 struct dai_ctrl_blk *ctl = blk; in dai_srt_set_srco()
823 static int dai_srt_set_srcm(void *blk, unsigned int src) in dai_srt_set_srcm() argument
825 struct dai_ctrl_blk *ctl = blk; in dai_srt_set_srcm()
832 static int dai_srt_set_rsr(void *blk, unsigned int rsr) in dai_srt_set_rsr() argument
834 struct dai_ctrl_blk *ctl = blk; in dai_srt_set_rsr()
841 static int dai_srt_set_drat(void *blk, unsigned int drat) in dai_srt_set_drat() argument
843 struct dai_ctrl_blk *ctl = blk; in dai_srt_set_drat()
850 static int dai_srt_set_ec(void *blk, unsigned int ec) in dai_srt_set_ec() argument
852 struct dai_ctrl_blk *ctl = blk; in dai_srt_set_ec()
859 static int dai_srt_set_et(void *blk, unsigned int et) in dai_srt_set_et() argument
861 struct dai_ctrl_blk *ctl = blk; in dai_srt_set_et()
868 static int dai_commit_write(struct hw *hw, unsigned int idx, void *blk) in dai_commit_write() argument
870 struct dai_ctrl_blk *ctl = blk; in dai_commit_write()
882 struct dai_ctrl_blk *blk; in dai_get_ctrl_blk() local
885 blk = kzalloc(sizeof(*blk), GFP_KERNEL); in dai_get_ctrl_blk()
886 if (!blk) in dai_get_ctrl_blk()
889 *rblk = blk; in dai_get_ctrl_blk()
894 static int dai_put_ctrl_blk(void *blk) in dai_put_ctrl_blk() argument
896 kfree(blk); in dai_put_ctrl_blk()
901 static int dao_set_spos(void *blk, unsigned int spos) in dao_set_spos() argument
903 ((struct dao_ctrl_blk *)blk)->atxcsl = spos; in dao_set_spos()
904 ((struct dao_ctrl_blk *)blk)->dirty.bf.atxcsl = 1; in dao_set_spos()
908 static int dao_commit_write(struct hw *hw, unsigned int idx, void *blk) in dao_commit_write() argument
910 struct dao_ctrl_blk *ctl = blk; in dao_commit_write()
924 static int dao_get_spos(void *blk, unsigned int *spos) in dao_get_spos() argument
926 *spos = ((struct dao_ctrl_blk *)blk)->atxcsl; in dao_get_spos()
932 struct dao_ctrl_blk *blk; in dao_get_ctrl_blk() local
935 blk = kzalloc(sizeof(*blk), GFP_KERNEL); in dao_get_ctrl_blk()
936 if (!blk) in dao_get_ctrl_blk()
939 *rblk = blk; in dao_get_ctrl_blk()
944 static int dao_put_ctrl_blk(void *blk) in dao_put_ctrl_blk() argument
946 kfree(blk); in dao_put_ctrl_blk()
951 static int daio_mgr_enb_dai(void *blk, unsigned int idx) in daio_mgr_enb_dai() argument
953 struct daio_mgr_ctrl_blk *ctl = blk; in daio_mgr_enb_dai()
960 static int daio_mgr_dsb_dai(void *blk, unsigned int idx) in daio_mgr_dsb_dai() argument
962 struct daio_mgr_ctrl_blk *ctl = blk; in daio_mgr_dsb_dai()
970 static int daio_mgr_enb_dao(void *blk, unsigned int idx) in daio_mgr_enb_dao() argument
972 struct daio_mgr_ctrl_blk *ctl = blk; in daio_mgr_enb_dao()
979 static int daio_mgr_dsb_dao(void *blk, unsigned int idx) in daio_mgr_dsb_dao() argument
981 struct daio_mgr_ctrl_blk *ctl = blk; in daio_mgr_dsb_dao()
988 static int daio_mgr_dao_init(void *blk, unsigned int idx, unsigned int conf) in daio_mgr_dao_init() argument
990 struct daio_mgr_ctrl_blk *ctl = blk; in daio_mgr_dao_init()
1026 static int daio_mgr_set_imaparc(void *blk, unsigned int slot) in daio_mgr_set_imaparc() argument
1028 struct daio_mgr_ctrl_blk *ctl = blk; in daio_mgr_set_imaparc()
1035 static int daio_mgr_set_imapnxt(void *blk, unsigned int next) in daio_mgr_set_imapnxt() argument
1037 struct daio_mgr_ctrl_blk *ctl = blk; in daio_mgr_set_imapnxt()
1044 static int daio_mgr_set_imapaddr(void *blk, unsigned int addr) in daio_mgr_set_imapaddr() argument
1046 ((struct daio_mgr_ctrl_blk *)blk)->daoimap.idx = addr; in daio_mgr_set_imapaddr()
1047 ((struct daio_mgr_ctrl_blk *)blk)->dirty.bf.daoimap = 1; in daio_mgr_set_imapaddr()
1051 static int daio_mgr_commit_write(struct hw *hw, void *blk) in daio_mgr_commit_write() argument
1053 struct daio_mgr_ctrl_blk *ctl = blk; in daio_mgr_commit_write()
1082 struct daio_mgr_ctrl_blk *blk; in daio_mgr_get_ctrl_blk() local
1086 blk = kzalloc(sizeof(*blk), GFP_KERNEL); in daio_mgr_get_ctrl_blk()
1087 if (!blk) in daio_mgr_get_ctrl_blk()
1091 blk->txctl[i] = hw_read_20kx(hw, AUDIO_IO_TX_CTL+(0x40*i)); in daio_mgr_get_ctrl_blk()
1092 blk->rxctl[i] = hw_read_20kx(hw, AUDIO_IO_RX_CTL+(0x40*i)); in daio_mgr_get_ctrl_blk()
1095 *rblk = blk; in daio_mgr_get_ctrl_blk()
1100 static int daio_mgr_put_ctrl_blk(void *blk) in daio_mgr_put_ctrl_blk() argument
1102 kfree(blk); in daio_mgr_put_ctrl_blk()