Lines Matching refs:ctl
92 u16 ctl:1; member
105 unsigned int ctl; member
188 struct src_rsc_ctrl_blk *ctl = blk; in src_set_state() local
190 set_field(&ctl->ctl, SRCCTL_STATE, state); in src_set_state()
191 ctl->dirty.bf.ctl = 1; in src_set_state()
197 struct src_rsc_ctrl_blk *ctl = blk; in src_set_bm() local
199 set_field(&ctl->ctl, SRCCTL_BM, bm); in src_set_bm()
200 ctl->dirty.bf.ctl = 1; in src_set_bm()
206 struct src_rsc_ctrl_blk *ctl = blk; in src_set_rsr() local
208 set_field(&ctl->ctl, SRCCTL_RSR, rsr); in src_set_rsr()
209 ctl->dirty.bf.ctl = 1; in src_set_rsr()
215 struct src_rsc_ctrl_blk *ctl = blk; in src_set_sf() local
217 set_field(&ctl->ctl, SRCCTL_SF, sf); in src_set_sf()
218 ctl->dirty.bf.ctl = 1; in src_set_sf()
224 struct src_rsc_ctrl_blk *ctl = blk; in src_set_wr() local
226 set_field(&ctl->ctl, SRCCTL_WR, wr); in src_set_wr()
227 ctl->dirty.bf.ctl = 1; in src_set_wr()
233 struct src_rsc_ctrl_blk *ctl = blk; in src_set_pm() local
235 set_field(&ctl->ctl, SRCCTL_PM, pm); in src_set_pm()
236 ctl->dirty.bf.ctl = 1; in src_set_pm()
242 struct src_rsc_ctrl_blk *ctl = blk; in src_set_rom() local
244 set_field(&ctl->ctl, SRCCTL_ROM, rom); in src_set_rom()
245 ctl->dirty.bf.ctl = 1; in src_set_rom()
251 struct src_rsc_ctrl_blk *ctl = blk; in src_set_vo() local
253 set_field(&ctl->ctl, SRCCTL_VO, vo); in src_set_vo()
254 ctl->dirty.bf.ctl = 1; in src_set_vo()
260 struct src_rsc_ctrl_blk *ctl = blk; in src_set_st() local
262 set_field(&ctl->ctl, SRCCTL_ST, st); in src_set_st()
263 ctl->dirty.bf.ctl = 1; in src_set_st()
269 struct src_rsc_ctrl_blk *ctl = blk; in src_set_ie() local
271 set_field(&ctl->ctl, SRCCTL_IE, ie); in src_set_ie()
272 ctl->dirty.bf.ctl = 1; in src_set_ie()
278 struct src_rsc_ctrl_blk *ctl = blk; in src_set_ilsz() local
280 set_field(&ctl->ctl, SRCCTL_ILSZ, ilsz); in src_set_ilsz()
281 ctl->dirty.bf.ctl = 1; in src_set_ilsz()
287 struct src_rsc_ctrl_blk *ctl = blk; in src_set_bp() local
289 set_field(&ctl->ctl, SRCCTL_BP, bp); in src_set_bp()
290 ctl->dirty.bf.ctl = 1; in src_set_bp()
296 struct src_rsc_ctrl_blk *ctl = blk; in src_set_cisz() local
298 set_field(&ctl->ccr, SRCCCR_CISZ, cisz); in src_set_cisz()
299 ctl->dirty.bf.ccr = 1; in src_set_cisz()
305 struct src_rsc_ctrl_blk *ctl = blk; in src_set_ca() local
307 set_field(&ctl->ca, SRCCA_CA, ca); in src_set_ca()
308 ctl->dirty.bf.ca = 1; in src_set_ca()
314 struct src_rsc_ctrl_blk *ctl = blk; in src_set_sa() local
316 set_field(&ctl->sa, SRCSA_SA, sa); in src_set_sa()
317 ctl->dirty.bf.sa = 1; in src_set_sa()
323 struct src_rsc_ctrl_blk *ctl = blk; in src_set_la() local
325 set_field(&ctl->la, SRCLA_LA, la); in src_set_la()
326 ctl->dirty.bf.la = 1; in src_set_la()
332 struct src_rsc_ctrl_blk *ctl = blk; in src_set_pitch() local
334 set_field(&ctl->mpr, MPRLH_PITCH, pitch); in src_set_pitch()
335 ctl->dirty.bf.mpr = 1; in src_set_pitch()
371 struct src_rsc_ctrl_blk *ctl = blk; in src_commit_write() local
374 if (ctl->dirty.bf.czbfs) { in src_commit_write()
385 ctl->dirty.bf.czbfs = 0; in src_commit_write()
387 if (ctl->dirty.bf.mpr) { in src_commit_write()
393 hw_write_20kx(hw, MIXER_PRING_LO_HI+4*pm_idx, ctl->mpr); in src_commit_write()
396 ctl->dirty.bf.mpr = 0; in src_commit_write()
398 if (ctl->dirty.bf.sa) { in src_commit_write()
399 hw_write_20kx(hw, SRC_SA+idx*0x100, ctl->sa); in src_commit_write()
400 ctl->dirty.bf.sa = 0; in src_commit_write()
402 if (ctl->dirty.bf.la) { in src_commit_write()
403 hw_write_20kx(hw, SRC_LA+idx*0x100, ctl->la); in src_commit_write()
404 ctl->dirty.bf.la = 0; in src_commit_write()
406 if (ctl->dirty.bf.ca) { in src_commit_write()
407 hw_write_20kx(hw, SRC_CA+idx*0x100, ctl->ca); in src_commit_write()
408 ctl->dirty.bf.ca = 0; in src_commit_write()
414 if (ctl->dirty.bf.ccr) { in src_commit_write()
415 hw_write_20kx(hw, SRC_CCR+idx*0x100, ctl->ccr); in src_commit_write()
416 ctl->dirty.bf.ccr = 0; in src_commit_write()
418 if (ctl->dirty.bf.ctl) { in src_commit_write()
419 hw_write_20kx(hw, SRC_CTL+idx*0x100, ctl->ctl); in src_commit_write()
420 ctl->dirty.bf.ctl = 0; in src_commit_write()
428 struct src_rsc_ctrl_blk *ctl = blk; in src_get_ca() local
430 ctl->ca = hw_read_20kx(hw, SRC_CA+idx*0x100); in src_get_ca()
431 ctl->dirty.bf.ca = 0; in src_get_ca()
433 return get_field(ctl->ca, SRCCA_CA); in src_get_ca()
470 struct src_mgr_ctrl_blk *ctl = blk; in src_mgr_commit_write() local
474 if (ctl->dirty.bf.enbsa) { in src_mgr_commit_write()
478 hw_write_20kx(hw, SRC_ENBSA, ctl->enbsa); in src_mgr_commit_write()
479 ctl->dirty.bf.enbsa = 0; in src_mgr_commit_write()
482 if ((ctl->dirty.data & (0x1 << i))) { in src_mgr_commit_write()
483 hw_write_20kx(hw, SRC_ENB+(i*0x100), ctl->enb[i]); in src_mgr_commit_write()
484 ctl->dirty.data &= ~(0x1 << i); in src_mgr_commit_write()
535 struct srcimp_mgr_ctrl_blk *ctl = blk; in srcimp_mgr_set_imaparc() local
537 set_field(&ctl->srcimap.srcaim, SRCAIM_ARC, slot); in srcimp_mgr_set_imaparc()
538 ctl->dirty.bf.srcimap = 1; in srcimp_mgr_set_imaparc()
544 struct srcimp_mgr_ctrl_blk *ctl = blk; in srcimp_mgr_set_imapuser() local
546 set_field(&ctl->srcimap.srcaim, SRCAIM_SRC, user); in srcimp_mgr_set_imapuser()
547 ctl->dirty.bf.srcimap = 1; in srcimp_mgr_set_imapuser()
553 struct srcimp_mgr_ctrl_blk *ctl = blk; in srcimp_mgr_set_imapnxt() local
555 set_field(&ctl->srcimap.srcaim, SRCAIM_NXT, next); in srcimp_mgr_set_imapnxt()
556 ctl->dirty.bf.srcimap = 1; in srcimp_mgr_set_imapnxt()
569 struct srcimp_mgr_ctrl_blk *ctl = blk; in srcimp_mgr_commit_write() local
571 if (ctl->dirty.bf.srcimap) { in srcimp_mgr_commit_write()
572 hw_write_20kx(hw, SRC_IMAP+ctl->srcimap.idx*0x100, in srcimp_mgr_commit_write()
573 ctl->srcimap.srcaim); in srcimp_mgr_commit_write()
574 ctl->dirty.bf.srcimap = 0; in srcimp_mgr_commit_write()
611 struct amixer_rsc_ctrl_blk *ctl = blk; in amixer_set_mode() local
613 set_field(&ctl->amoplo, AMOPLO_M, mode); in amixer_set_mode()
614 ctl->dirty.bf.amoplo = 1; in amixer_set_mode()
620 struct amixer_rsc_ctrl_blk *ctl = blk; in amixer_set_iv() local
622 set_field(&ctl->amoplo, AMOPLO_IV, iv); in amixer_set_iv()
623 ctl->dirty.bf.amoplo = 1; in amixer_set_iv()
629 struct amixer_rsc_ctrl_blk *ctl = blk; in amixer_set_x() local
631 set_field(&ctl->amoplo, AMOPLO_X, x); in amixer_set_x()
632 ctl->dirty.bf.amoplo = 1; in amixer_set_x()
638 struct amixer_rsc_ctrl_blk *ctl = blk; in amixer_set_y() local
640 set_field(&ctl->amoplo, AMOPLO_Y, y); in amixer_set_y()
641 ctl->dirty.bf.amoplo = 1; in amixer_set_y()
647 struct amixer_rsc_ctrl_blk *ctl = blk; in amixer_set_sadr() local
649 set_field(&ctl->amophi, AMOPHI_SADR, sadr); in amixer_set_sadr()
650 ctl->dirty.bf.amophi = 1; in amixer_set_sadr()
656 struct amixer_rsc_ctrl_blk *ctl = blk; in amixer_set_se() local
658 set_field(&ctl->amophi, AMOPHI_SE, se); in amixer_set_se()
659 ctl->dirty.bf.amophi = 1; in amixer_set_se()
677 struct amixer_rsc_ctrl_blk *ctl = blk; in amixer_commit_write() local
679 if (ctl->dirty.bf.amoplo || ctl->dirty.bf.amophi) { in amixer_commit_write()
680 hw_write_20kx(hw, MIXER_AMOPLO+idx*8, ctl->amoplo); in amixer_commit_write()
681 ctl->dirty.bf.amoplo = 0; in amixer_commit_write()
682 hw_write_20kx(hw, MIXER_AMOPHI+idx*8, ctl->amophi); in amixer_commit_write()
683 ctl->dirty.bf.amophi = 0; in amixer_commit_write()
691 struct amixer_rsc_ctrl_blk *ctl = blk; in amixer_get_y() local
693 return get_field(ctl->amoplo, AMOPLO_Y); in amixer_get_y()
826 struct dai_ctrl_blk *ctl = blk; in dai_srt_set_srco() local
828 set_field(&ctl->srt, SRTCTL_SRCO, src); in dai_srt_set_srco()
829 ctl->dirty.bf.srt = 1; in dai_srt_set_srco()
835 struct dai_ctrl_blk *ctl = blk; in dai_srt_set_srcm() local
837 set_field(&ctl->srt, SRTCTL_SRCM, src); in dai_srt_set_srcm()
838 ctl->dirty.bf.srt = 1; in dai_srt_set_srcm()
844 struct dai_ctrl_blk *ctl = blk; in dai_srt_set_rsr() local
846 set_field(&ctl->srt, SRTCTL_RSR, rsr); in dai_srt_set_rsr()
847 ctl->dirty.bf.srt = 1; in dai_srt_set_rsr()
853 struct dai_ctrl_blk *ctl = blk; in dai_srt_set_drat() local
855 set_field(&ctl->srt, SRTCTL_DRAT, drat); in dai_srt_set_drat()
856 ctl->dirty.bf.srt = 1; in dai_srt_set_drat()
862 struct dai_ctrl_blk *ctl = blk; in dai_srt_set_ec() local
864 set_field(&ctl->srt, SRTCTL_EC, ec ? 1 : 0); in dai_srt_set_ec()
865 ctl->dirty.bf.srt = 1; in dai_srt_set_ec()
871 struct dai_ctrl_blk *ctl = blk; in dai_srt_set_et() local
873 set_field(&ctl->srt, SRTCTL_ET, et ? 1 : 0); in dai_srt_set_et()
874 ctl->dirty.bf.srt = 1; in dai_srt_set_et()
880 struct dai_ctrl_blk *ctl = blk; in dai_commit_write() local
882 if (ctl->dirty.bf.srt) { in dai_commit_write()
883 hw_write_20kx(hw, AUDIO_IO_RX_SRT_CTL+0x40*idx, ctl->srt); in dai_commit_write()
884 ctl->dirty.bf.srt = 0; in dai_commit_write()
920 struct dao_ctrl_blk *ctl = blk; in dao_commit_write() local
922 if (ctl->dirty.bf.atxcsl) { in dao_commit_write()
926 ctl->atxcsl); in dao_commit_write()
928 ctl->dirty.bf.atxcsl = 0; in dao_commit_write()
963 struct daio_mgr_ctrl_blk *ctl = blk; in daio_mgr_enb_dai() local
965 set_field(&ctl->rxctl[idx], ARXCTL_EN, 1); in daio_mgr_enb_dai()
966 ctl->dirty.bf.arxctl |= (0x1 << idx); in daio_mgr_enb_dai()
972 struct daio_mgr_ctrl_blk *ctl = blk; in daio_mgr_dsb_dai() local
974 set_field(&ctl->rxctl[idx], ARXCTL_EN, 0); in daio_mgr_dsb_dai()
976 ctl->dirty.bf.arxctl |= (0x1 << idx); in daio_mgr_dsb_dai()
982 struct daio_mgr_ctrl_blk *ctl = blk; in daio_mgr_enb_dao() local
984 set_field(&ctl->txctl[idx], ATXCTL_EN, 1); in daio_mgr_enb_dao()
985 ctl->dirty.bf.atxctl |= (0x1 << idx); in daio_mgr_enb_dao()
991 struct daio_mgr_ctrl_blk *ctl = blk; in daio_mgr_dsb_dao() local
993 set_field(&ctl->txctl[idx], ATXCTL_EN, 0); in daio_mgr_dsb_dao()
994 ctl->dirty.bf.atxctl |= (0x1 << idx); in daio_mgr_dsb_dao()
1000 struct daio_mgr_ctrl_blk *ctl = blk; in daio_mgr_dao_init() local
1006 set_field(&ctl->txctl[idx], ATXCTL_NUC, 0); in daio_mgr_dao_init()
1009 set_field(&ctl->txctl[idx], ATXCTL_NUC, 1); in daio_mgr_dao_init()
1012 set_field(&ctl->txctl[idx], ATXCTL_NUC, 2); in daio_mgr_dao_init()
1015 set_field(&ctl->txctl[idx], ATXCTL_NUC, 3); in daio_mgr_dao_init()
1021 set_field(&ctl->txctl[idx], ATXCTL_CD, (!(conf & 0x7))); in daio_mgr_dao_init()
1023 set_field(&ctl->txctl[idx], ATXCTL_LIV, (conf >> 4) & 0x1); in daio_mgr_dao_init()
1025 set_field(&ctl->txctl[idx], ATXCTL_RIV, (conf >> 4) & 0x1); in daio_mgr_dao_init()
1026 set_field(&ctl->txctl[idx], ATXCTL_RAW, in daio_mgr_dao_init()
1028 ctl->dirty.bf.atxctl |= (0x1 << idx); in daio_mgr_dao_init()
1038 struct daio_mgr_ctrl_blk *ctl = blk; in daio_mgr_set_imaparc() local
1040 set_field(&ctl->daoimap.aim, AIM_ARC, slot); in daio_mgr_set_imaparc()
1041 ctl->dirty.bf.daoimap = 1; in daio_mgr_set_imaparc()
1047 struct daio_mgr_ctrl_blk *ctl = blk; in daio_mgr_set_imapnxt() local
1049 set_field(&ctl->daoimap.aim, AIM_NXT, next); in daio_mgr_set_imapnxt()
1050 ctl->dirty.bf.daoimap = 1; in daio_mgr_set_imapnxt()
1063 struct daio_mgr_ctrl_blk *ctl = blk; in daio_mgr_commit_write() local
1068 if ((ctl->dirty.bf.atxctl & (0x1 << i))) { in daio_mgr_commit_write()
1069 data = ctl->txctl[i]; in daio_mgr_commit_write()
1071 ctl->dirty.bf.atxctl &= ~(0x1 << i); in daio_mgr_commit_write()
1074 if ((ctl->dirty.bf.arxctl & (0x1 << i))) { in daio_mgr_commit_write()
1075 data = ctl->rxctl[i]; in daio_mgr_commit_write()
1077 ctl->dirty.bf.arxctl &= ~(0x1 << i); in daio_mgr_commit_write()
1081 if (ctl->dirty.bf.daoimap) { in daio_mgr_commit_write()
1082 hw_write_20kx(hw, AUDIO_IO_AIM+ctl->daoimap.idx*4, in daio_mgr_commit_write()
1083 ctl->daoimap.aim); in daio_mgr_commit_write()
1084 ctl->dirty.bf.daoimap = 0; in daio_mgr_commit_write()
1840 u32 data, ctl; in hw_adc_init() local
1901 ctl = hw_read_20kx(hw, GPIO_CTRL); in hw_adc_init()
1902 ctl |= 0x1 << 14; in hw_adc_init()
1903 hw_write_20kx(hw, GPIO_CTRL, ctl); in hw_adc_init()