Lines Matching full:ctl
82 u16 ctl:1; member
95 unsigned int ctl; member
178 struct src_rsc_ctrl_blk *ctl = blk; in src_set_state() local
180 set_field(&ctl->ctl, SRCCTL_STATE, state); in src_set_state()
181 ctl->dirty.bf.ctl = 1; in src_set_state()
187 struct src_rsc_ctrl_blk *ctl = blk; in src_set_bm() local
189 set_field(&ctl->ctl, SRCCTL_BM, bm); in src_set_bm()
190 ctl->dirty.bf.ctl = 1; in src_set_bm()
196 struct src_rsc_ctrl_blk *ctl = blk; in src_set_rsr() local
198 set_field(&ctl->ctl, SRCCTL_RSR, rsr); in src_set_rsr()
199 ctl->dirty.bf.ctl = 1; in src_set_rsr()
205 struct src_rsc_ctrl_blk *ctl = blk; in src_set_sf() local
207 set_field(&ctl->ctl, SRCCTL_SF, sf); in src_set_sf()
208 ctl->dirty.bf.ctl = 1; in src_set_sf()
214 struct src_rsc_ctrl_blk *ctl = blk; in src_set_wr() local
216 set_field(&ctl->ctl, SRCCTL_WR, wr); in src_set_wr()
217 ctl->dirty.bf.ctl = 1; in src_set_wr()
223 struct src_rsc_ctrl_blk *ctl = blk; in src_set_pm() local
225 set_field(&ctl->ctl, SRCCTL_PM, pm); in src_set_pm()
226 ctl->dirty.bf.ctl = 1; in src_set_pm()
232 struct src_rsc_ctrl_blk *ctl = blk; in src_set_rom() local
234 set_field(&ctl->ctl, SRCCTL_ROM, rom); in src_set_rom()
235 ctl->dirty.bf.ctl = 1; in src_set_rom()
241 struct src_rsc_ctrl_blk *ctl = blk; in src_set_vo() local
243 set_field(&ctl->ctl, SRCCTL_VO, vo); in src_set_vo()
244 ctl->dirty.bf.ctl = 1; in src_set_vo()
250 struct src_rsc_ctrl_blk *ctl = blk; in src_set_st() local
252 set_field(&ctl->ctl, SRCCTL_ST, st); in src_set_st()
253 ctl->dirty.bf.ctl = 1; in src_set_st()
259 struct src_rsc_ctrl_blk *ctl = blk; in src_set_ie() local
261 set_field(&ctl->ctl, SRCCTL_IE, ie); in src_set_ie()
262 ctl->dirty.bf.ctl = 1; in src_set_ie()
268 struct src_rsc_ctrl_blk *ctl = blk; in src_set_ilsz() local
270 set_field(&ctl->ctl, SRCCTL_ILSZ, ilsz); in src_set_ilsz()
271 ctl->dirty.bf.ctl = 1; in src_set_ilsz()
277 struct src_rsc_ctrl_blk *ctl = blk; in src_set_bp() local
279 set_field(&ctl->ctl, SRCCTL_BP, bp); in src_set_bp()
280 ctl->dirty.bf.ctl = 1; in src_set_bp()
286 struct src_rsc_ctrl_blk *ctl = blk; in src_set_cisz() local
288 set_field(&ctl->ccr, SRCCCR_CISZ, cisz); in src_set_cisz()
289 ctl->dirty.bf.ccr = 1; in src_set_cisz()
295 struct src_rsc_ctrl_blk *ctl = blk; in src_set_ca() local
297 set_field(&ctl->ca, SRCCA_CA, ca); in src_set_ca()
298 ctl->dirty.bf.ca = 1; in src_set_ca()
304 struct src_rsc_ctrl_blk *ctl = blk; in src_set_sa() local
306 set_field(&ctl->sa, SRCSA_SA, sa); in src_set_sa()
307 ctl->dirty.bf.sa = 1; in src_set_sa()
313 struct src_rsc_ctrl_blk *ctl = blk; in src_set_la() local
315 set_field(&ctl->la, SRCLA_LA, la); in src_set_la()
316 ctl->dirty.bf.la = 1; in src_set_la()
322 struct src_rsc_ctrl_blk *ctl = blk; in src_set_pitch() local
324 set_field(&ctl->mpr, MPRLH_PITCH, pitch); in src_set_pitch()
325 ctl->dirty.bf.mpr = 1; in src_set_pitch()
361 struct src_rsc_ctrl_blk *ctl = blk; in src_commit_write() local
364 if (ctl->dirty.bf.czbfs) { in src_commit_write()
375 ctl->dirty.bf.czbfs = 0; in src_commit_write()
377 if (ctl->dirty.bf.mpr) { in src_commit_write()
383 hw_write_20kx(hw, MIXER_PRING_LO_HI+4*pm_idx, ctl->mpr); in src_commit_write()
386 ctl->dirty.bf.mpr = 0; in src_commit_write()
388 if (ctl->dirty.bf.sa) { in src_commit_write()
389 hw_write_20kx(hw, SRC_SA+idx*0x100, ctl->sa); in src_commit_write()
390 ctl->dirty.bf.sa = 0; in src_commit_write()
392 if (ctl->dirty.bf.la) { in src_commit_write()
393 hw_write_20kx(hw, SRC_LA+idx*0x100, ctl->la); in src_commit_write()
394 ctl->dirty.bf.la = 0; in src_commit_write()
396 if (ctl->dirty.bf.ca) { in src_commit_write()
397 hw_write_20kx(hw, SRC_CA+idx*0x100, ctl->ca); in src_commit_write()
398 ctl->dirty.bf.ca = 0; in src_commit_write()
404 if (ctl->dirty.bf.ccr) { in src_commit_write()
405 hw_write_20kx(hw, SRC_CCR+idx*0x100, ctl->ccr); in src_commit_write()
406 ctl->dirty.bf.ccr = 0; in src_commit_write()
408 if (ctl->dirty.bf.ctl) { in src_commit_write()
409 hw_write_20kx(hw, SRC_CTL+idx*0x100, ctl->ctl); in src_commit_write()
410 ctl->dirty.bf.ctl = 0; in src_commit_write()
418 struct src_rsc_ctrl_blk *ctl = blk; in src_get_ca() local
420 ctl->ca = hw_read_20kx(hw, SRC_CA+idx*0x100); in src_get_ca()
421 ctl->dirty.bf.ca = 0; in src_get_ca()
423 return get_field(ctl->ca, SRCCA_CA); in src_get_ca()
460 struct src_mgr_ctrl_blk *ctl = blk; in src_mgr_commit_write() local
464 if (ctl->dirty.bf.enbsa) { in src_mgr_commit_write()
468 hw_write_20kx(hw, SRC_ENBSA, ctl->enbsa); in src_mgr_commit_write()
469 ctl->dirty.bf.enbsa = 0; in src_mgr_commit_write()
472 if ((ctl->dirty.data & (0x1 << i))) { in src_mgr_commit_write()
473 hw_write_20kx(hw, SRC_ENB+(i*0x100), ctl->enb[i]); in src_mgr_commit_write()
474 ctl->dirty.data &= ~(0x1 << i); in src_mgr_commit_write()
525 struct srcimp_mgr_ctrl_blk *ctl = blk; in srcimp_mgr_set_imaparc() local
527 set_field(&ctl->srcimap.srcaim, SRCAIM_ARC, slot); in srcimp_mgr_set_imaparc()
528 ctl->dirty.bf.srcimap = 1; in srcimp_mgr_set_imaparc()
534 struct srcimp_mgr_ctrl_blk *ctl = blk; in srcimp_mgr_set_imapuser() local
536 set_field(&ctl->srcimap.srcaim, SRCAIM_SRC, user); in srcimp_mgr_set_imapuser()
537 ctl->dirty.bf.srcimap = 1; in srcimp_mgr_set_imapuser()
543 struct srcimp_mgr_ctrl_blk *ctl = blk; in srcimp_mgr_set_imapnxt() local
545 set_field(&ctl->srcimap.srcaim, SRCAIM_NXT, next); in srcimp_mgr_set_imapnxt()
546 ctl->dirty.bf.srcimap = 1; in srcimp_mgr_set_imapnxt()
559 struct srcimp_mgr_ctrl_blk *ctl = blk; in srcimp_mgr_commit_write() local
561 if (ctl->dirty.bf.srcimap) { in srcimp_mgr_commit_write()
562 hw_write_20kx(hw, SRC_IMAP+ctl->srcimap.idx*0x100, in srcimp_mgr_commit_write()
563 ctl->srcimap.srcaim); in srcimp_mgr_commit_write()
564 ctl->dirty.bf.srcimap = 0; in srcimp_mgr_commit_write()
601 struct amixer_rsc_ctrl_blk *ctl = blk; in amixer_set_mode() local
603 set_field(&ctl->amoplo, AMOPLO_M, mode); in amixer_set_mode()
604 ctl->dirty.bf.amoplo = 1; in amixer_set_mode()
610 struct amixer_rsc_ctrl_blk *ctl = blk; in amixer_set_iv() local
612 set_field(&ctl->amoplo, AMOPLO_IV, iv); in amixer_set_iv()
613 ctl->dirty.bf.amoplo = 1; in amixer_set_iv()
619 struct amixer_rsc_ctrl_blk *ctl = blk; in amixer_set_x() local
621 set_field(&ctl->amoplo, AMOPLO_X, x); in amixer_set_x()
622 ctl->dirty.bf.amoplo = 1; in amixer_set_x()
628 struct amixer_rsc_ctrl_blk *ctl = blk; in amixer_set_y() local
630 set_field(&ctl->amoplo, AMOPLO_Y, y); in amixer_set_y()
631 ctl->dirty.bf.amoplo = 1; in amixer_set_y()
637 struct amixer_rsc_ctrl_blk *ctl = blk; in amixer_set_sadr() local
639 set_field(&ctl->amophi, AMOPHI_SADR, sadr); in amixer_set_sadr()
640 ctl->dirty.bf.amophi = 1; in amixer_set_sadr()
646 struct amixer_rsc_ctrl_blk *ctl = blk; in amixer_set_se() local
648 set_field(&ctl->amophi, AMOPHI_SE, se); in amixer_set_se()
649 ctl->dirty.bf.amophi = 1; in amixer_set_se()
667 struct amixer_rsc_ctrl_blk *ctl = blk; in amixer_commit_write() local
669 if (ctl->dirty.bf.amoplo || ctl->dirty.bf.amophi) { in amixer_commit_write()
670 hw_write_20kx(hw, MIXER_AMOPLO+idx*8, ctl->amoplo); in amixer_commit_write()
671 ctl->dirty.bf.amoplo = 0; in amixer_commit_write()
672 hw_write_20kx(hw, MIXER_AMOPHI+idx*8, ctl->amophi); in amixer_commit_write()
673 ctl->dirty.bf.amophi = 0; in amixer_commit_write()
681 struct amixer_rsc_ctrl_blk *ctl = blk; in amixer_get_y() local
683 return get_field(ctl->amoplo, AMOPLO_Y); in amixer_get_y()
816 struct dai_ctrl_blk *ctl = blk; in dai_srt_set_srco() local
818 set_field(&ctl->srt, SRTCTL_SRCO, src); in dai_srt_set_srco()
819 ctl->dirty.bf.srt = 1; in dai_srt_set_srco()
825 struct dai_ctrl_blk *ctl = blk; in dai_srt_set_srcm() local
827 set_field(&ctl->srt, SRTCTL_SRCM, src); in dai_srt_set_srcm()
828 ctl->dirty.bf.srt = 1; in dai_srt_set_srcm()
834 struct dai_ctrl_blk *ctl = blk; in dai_srt_set_rsr() local
836 set_field(&ctl->srt, SRTCTL_RSR, rsr); in dai_srt_set_rsr()
837 ctl->dirty.bf.srt = 1; in dai_srt_set_rsr()
843 struct dai_ctrl_blk *ctl = blk; in dai_srt_set_drat() local
845 set_field(&ctl->srt, SRTCTL_DRAT, drat); in dai_srt_set_drat()
846 ctl->dirty.bf.srt = 1; in dai_srt_set_drat()
852 struct dai_ctrl_blk *ctl = blk; in dai_srt_set_ec() local
854 set_field(&ctl->srt, SRTCTL_EC, ec ? 1 : 0); in dai_srt_set_ec()
855 ctl->dirty.bf.srt = 1; in dai_srt_set_ec()
861 struct dai_ctrl_blk *ctl = blk; in dai_srt_set_et() local
863 set_field(&ctl->srt, SRTCTL_ET, et ? 1 : 0); in dai_srt_set_et()
864 ctl->dirty.bf.srt = 1; in dai_srt_set_et()
870 struct dai_ctrl_blk *ctl = blk; in dai_commit_write() local
872 if (ctl->dirty.bf.srt) { in dai_commit_write()
873 hw_write_20kx(hw, AUDIO_IO_RX_SRT_CTL+0x40*idx, ctl->srt); in dai_commit_write()
874 ctl->dirty.bf.srt = 0; in dai_commit_write()
910 struct dao_ctrl_blk *ctl = blk; in dao_commit_write() local
912 if (ctl->dirty.bf.atxcsl) { in dao_commit_write()
916 ctl->atxcsl); in dao_commit_write()
918 ctl->dirty.bf.atxcsl = 0; in dao_commit_write()
953 struct daio_mgr_ctrl_blk *ctl = blk; in daio_mgr_enb_dai() local
955 set_field(&ctl->rxctl[idx], ARXCTL_EN, 1); in daio_mgr_enb_dai()
956 ctl->dirty.bf.arxctl |= (0x1 << idx); in daio_mgr_enb_dai()
962 struct daio_mgr_ctrl_blk *ctl = blk; in daio_mgr_dsb_dai() local
964 set_field(&ctl->rxctl[idx], ARXCTL_EN, 0); in daio_mgr_dsb_dai()
966 ctl->dirty.bf.arxctl |= (0x1 << idx); in daio_mgr_dsb_dai()
972 struct daio_mgr_ctrl_blk *ctl = blk; in daio_mgr_enb_dao() local
974 set_field(&ctl->txctl[idx], ATXCTL_EN, 1); in daio_mgr_enb_dao()
975 ctl->dirty.bf.atxctl |= (0x1 << idx); in daio_mgr_enb_dao()
981 struct daio_mgr_ctrl_blk *ctl = blk; in daio_mgr_dsb_dao() local
983 set_field(&ctl->txctl[idx], ATXCTL_EN, 0); in daio_mgr_dsb_dao()
984 ctl->dirty.bf.atxctl |= (0x1 << idx); in daio_mgr_dsb_dao()
990 struct daio_mgr_ctrl_blk *ctl = blk; in daio_mgr_dao_init() local
996 set_field(&ctl->txctl[idx], ATXCTL_NUC, 0); in daio_mgr_dao_init()
999 set_field(&ctl->txctl[idx], ATXCTL_NUC, 1); in daio_mgr_dao_init()
1002 set_field(&ctl->txctl[idx], ATXCTL_NUC, 2); in daio_mgr_dao_init()
1005 set_field(&ctl->txctl[idx], ATXCTL_NUC, 3); in daio_mgr_dao_init()
1011 set_field(&ctl->txctl[idx], ATXCTL_CD, (!(conf & 0x7))); in daio_mgr_dao_init()
1013 set_field(&ctl->txctl[idx], ATXCTL_LIV, (conf >> 4) & 0x1); in daio_mgr_dao_init()
1015 set_field(&ctl->txctl[idx], ATXCTL_RIV, (conf >> 4) & 0x1); in daio_mgr_dao_init()
1016 set_field(&ctl->txctl[idx], ATXCTL_RAW, in daio_mgr_dao_init()
1018 ctl->dirty.bf.atxctl |= (0x1 << idx); in daio_mgr_dao_init()
1028 struct daio_mgr_ctrl_blk *ctl = blk; in daio_mgr_set_imaparc() local
1030 set_field(&ctl->daoimap.aim, AIM_ARC, slot); in daio_mgr_set_imaparc()
1031 ctl->dirty.bf.daoimap = 1; in daio_mgr_set_imaparc()
1037 struct daio_mgr_ctrl_blk *ctl = blk; in daio_mgr_set_imapnxt() local
1039 set_field(&ctl->daoimap.aim, AIM_NXT, next); in daio_mgr_set_imapnxt()
1040 ctl->dirty.bf.daoimap = 1; in daio_mgr_set_imapnxt()
1053 struct daio_mgr_ctrl_blk *ctl = blk; in daio_mgr_commit_write() local
1058 if ((ctl->dirty.bf.atxctl & (0x1 << i))) { in daio_mgr_commit_write()
1059 data = ctl->txctl[i]; in daio_mgr_commit_write()
1061 ctl->dirty.bf.atxctl &= ~(0x1 << i); in daio_mgr_commit_write()
1064 if ((ctl->dirty.bf.arxctl & (0x1 << i))) { in daio_mgr_commit_write()
1065 data = ctl->rxctl[i]; in daio_mgr_commit_write()
1067 ctl->dirty.bf.arxctl &= ~(0x1 << i); in daio_mgr_commit_write()
1071 if (ctl->dirty.bf.daoimap) { in daio_mgr_commit_write()
1072 hw_write_20kx(hw, AUDIO_IO_AIM+ctl->daoimap.idx*4, in daio_mgr_commit_write()
1073 ctl->daoimap.aim); in daio_mgr_commit_write()
1074 ctl->dirty.bf.daoimap = 0; in daio_mgr_commit_write()
1832 u32 data, ctl; in hw_adc_init() local
1894 ctl = hw_read_20kx(hw, GPIO_CTRL); in hw_adc_init()
1895 ctl |= 0x1 << 14; in hw_adc_init()
1896 hw_write_20kx(hw, GPIO_CTRL, ctl); in hw_adc_init()