• Home
  • Raw
  • Download

Lines Matching refs:idx

134 	unsigned int idx;  member
359 static int src_commit_write(struct hw *hw, unsigned int idx, void *blk) in src_commit_write() argument
367 hw_write_20kx(hw, SRCUPZ+idx*0x100+i*0x4, 0); in src_commit_write()
370 hw_write_20kx(hw, SRCDN0Z+idx*0x100+i*0x4, 0); in src_commit_write()
373 hw_write_20kx(hw, SRCDN1Z+idx*0x100+i*0x4, 0); in src_commit_write()
382 unsigned int pm_idx = src_param_pitch_mixer(idx); in src_commit_write()
389 hw_write_20kx(hw, SRCSA+idx*0x100, ctl->sa); in src_commit_write()
393 hw_write_20kx(hw, SRCLA+idx*0x100, ctl->la); in src_commit_write()
397 hw_write_20kx(hw, SRCCA+idx*0x100, ctl->ca); in src_commit_write()
402 hw_write_20kx(hw, SRCCF+idx*0x100, 0x0); in src_commit_write()
405 hw_write_20kx(hw, SRCCCR+idx*0x100, ctl->ccr); in src_commit_write()
409 hw_write_20kx(hw, SRCCTL+idx*0x100, ctl->ctl); in src_commit_write()
416 static int src_get_ca(struct hw *hw, unsigned int idx, void *blk) in src_get_ca() argument
420 ctl->ca = hw_read_20kx(hw, SRCCA+idx*0x100); in src_get_ca()
436 static int src_mgr_enbs_src(void *blk, unsigned int idx) in src_mgr_enbs_src() argument
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()
554 ctl->srcimap.idx = addr; in srcimp_mgr_set_imapaddr()
564 hw_write_20kx(hw, SRCIMAP+ctl->srcimap.idx*0x100, in srcimp_mgr_commit_write()
663 static int amixer_commit_write(struct hw *hw, unsigned int idx, void *blk) in amixer_commit_write() argument
668 hw_write_20kx(hw, AMOPLO+idx*8, ctl->amoplo); in amixer_commit_write()
670 hw_write_20kx(hw, AMOPHI+idx*8, ctl->amophi); in amixer_commit_write()
781 unsigned int idx; member
878 static int dai_commit_write(struct hw *hw, unsigned int idx, void *blk) in dai_commit_write() argument
883 if (idx < 4) { in dai_commit_write()
885 hw_write_20kx(hw, SRTSCTL+0x4*idx, ctl->srtctl); in dai_commit_write()
924 static int dao_commit_write(struct hw *hw, unsigned int idx, void *blk) in dao_commit_write() argument
929 if (idx < 4) { in dao_commit_write()
931 hw_write_20kx(hw, SPOS+0x4*idx, ctl->spos); in dao_commit_write()
966 static int daio_mgr_enb_dai(void *blk, unsigned int idx) in daio_mgr_enb_dai() argument
970 if (idx < 4) { in daio_mgr_enb_dai()
972 set_field(&ctl->spictl, SPICTL_EN << (idx*8), 1); in daio_mgr_enb_dai()
973 ctl->dirty.bf.spictl |= (0x1 << idx); in daio_mgr_enb_dai()
976 idx %= 4; in daio_mgr_enb_dai()
977 set_field(&ctl->i2sctl, I2SCTL_EI << (idx*8), 1); in daio_mgr_enb_dai()
978 ctl->dirty.bf.i2sictl |= (0x1 << idx); in daio_mgr_enb_dai()
983 static int daio_mgr_dsb_dai(void *blk, unsigned int idx) in daio_mgr_dsb_dai() argument
987 if (idx < 4) { in daio_mgr_dsb_dai()
989 set_field(&ctl->spictl, SPICTL_EN << (idx*8), 0); in daio_mgr_dsb_dai()
990 ctl->dirty.bf.spictl |= (0x1 << idx); in daio_mgr_dsb_dai()
993 idx %= 4; in daio_mgr_dsb_dai()
994 set_field(&ctl->i2sctl, I2SCTL_EI << (idx*8), 0); in daio_mgr_dsb_dai()
995 ctl->dirty.bf.i2sictl |= (0x1 << idx); in daio_mgr_dsb_dai()
1000 static int daio_mgr_enb_dao(void *blk, unsigned int idx) in daio_mgr_enb_dao() argument
1004 if (idx < 4) { in daio_mgr_enb_dao()
1006 set_field(&ctl->spoctl, SPOCTL_OE << (idx*8), 1); in daio_mgr_enb_dao()
1007 ctl->dirty.bf.spoctl |= (0x1 << idx); in daio_mgr_enb_dao()
1010 idx %= 4; in daio_mgr_enb_dao()
1011 set_field(&ctl->i2sctl, I2SCTL_EA << (idx*8), 1); in daio_mgr_enb_dao()
1012 ctl->dirty.bf.i2soctl |= (0x1 << idx); in daio_mgr_enb_dao()
1017 static int daio_mgr_dsb_dao(void *blk, unsigned int idx) in daio_mgr_dsb_dao() argument
1021 if (idx < 4) { in daio_mgr_dsb_dao()
1023 set_field(&ctl->spoctl, SPOCTL_OE << (idx*8), 0); in daio_mgr_dsb_dao()
1024 ctl->dirty.bf.spoctl |= (0x1 << idx); in daio_mgr_dsb_dao()
1027 idx %= 4; in daio_mgr_dsb_dao()
1028 set_field(&ctl->i2sctl, I2SCTL_EA << (idx*8), 0); in daio_mgr_dsb_dao()
1029 ctl->dirty.bf.i2soctl |= (0x1 << idx); in daio_mgr_dsb_dao()
1034 static int daio_mgr_dao_init(void *blk, unsigned int idx, unsigned int conf) in daio_mgr_dao_init() argument
1038 if (idx < 4) { in daio_mgr_dao_init()
1042 set_field(&ctl->spoctl, SPOCTL_SR << (idx*8), 3); in daio_mgr_dao_init()
1045 set_field(&ctl->spoctl, SPOCTL_SR << (idx*8), 0); in daio_mgr_dao_init()
1048 set_field(&ctl->spoctl, SPOCTL_SR << (idx*8), 1); in daio_mgr_dao_init()
1051 set_field(&ctl->spoctl, SPOCTL_SR << (idx*8), 2); in daio_mgr_dao_init()
1056 set_field(&ctl->spoctl, SPOCTL_LIV << (idx*8), in daio_mgr_dao_init()
1058 set_field(&ctl->spoctl, SPOCTL_RIV << (idx*8), in daio_mgr_dao_init()
1060 set_field(&ctl->spoctl, SPOCTL_OS << (idx*8), in daio_mgr_dao_init()
1063 ctl->dirty.bf.spoctl |= (0x1 << idx); in daio_mgr_dao_init()
1093 ctl->daoimap.idx = addr; in daio_mgr_set_imapaddr()
1131 hw_write_20kx(hw, DAOIMAP+ctl->daoimap.idx*4, in daio_mgr_commit_write()