Lines Matching refs:stv090x_write_reg
752 static int stv090x_write_reg(struct stv090x_state *state, unsigned int reg, u8 data) in stv090x_write_reg() function
1212 if (stv090x_write_reg(state, STV090x_STOPCLK2, reg) < 0) in stv090x_vitclk_ctl()
1221 if (stv090x_write_reg(state, STV090x_STOPCLK2, reg) < 0) in stv090x_vitclk_ctl()
3881 if (stv090x_write_reg(state, STV090x_TSTTNR1, reg) < 0) in stv090x_sleep()
3886 if (stv090x_write_reg(state, STV090x_TSTTNR2, reg) < 0) in stv090x_sleep()
3905 if (stv090x_write_reg(state, STV090x_STOPCLK1, reg) < 0) in stv090x_sleep()
3916 if (stv090x_write_reg(state, STV090x_STOPCLK2, reg) < 0) in stv090x_sleep()
3924 if (stv090x_write_reg(state, STV090x_TSTTNR3, reg) < 0) in stv090x_sleep()
3929 if (stv090x_write_reg(state, STV090x_TSTTNR4, reg) < 0) in stv090x_sleep()
3948 if (stv090x_write_reg(state, STV090x_STOPCLK1, reg) < 0) in stv090x_sleep()
3959 if (stv090x_write_reg(state, STV090x_STOPCLK2, reg) < 0) in stv090x_sleep()
3972 if (stv090x_write_reg(state, STV090x_SYNTCTRL, reg) < 0) in stv090x_sleep()
4001 if (stv090x_write_reg(state, STV090x_SYNTCTRL, reg) < 0) in stv090x_wakeup()
4009 if (stv090x_write_reg(state, STV090x_TSTTNR1, reg) < 0) in stv090x_wakeup()
4014 if (stv090x_write_reg(state, STV090x_TSTTNR2, reg) < 0) in stv090x_wakeup()
4025 if (stv090x_write_reg(state, STV090x_STOPCLK1, reg) < 0) in stv090x_wakeup()
4034 if (stv090x_write_reg(state, STV090x_STOPCLK2, reg) < 0) in stv090x_wakeup()
4042 if (stv090x_write_reg(state, STV090x_TSTTNR3, reg) < 0) in stv090x_wakeup()
4047 if (stv090x_write_reg(state, STV090x_TSTTNR4, reg) < 0) in stv090x_wakeup()
4058 if (stv090x_write_reg(state, STV090x_STOPCLK1, reg) < 0) in stv090x_wakeup()
4067 if (stv090x_write_reg(state, STV090x_STOPCLK2, reg) < 0) in stv090x_wakeup()
4111 if (stv090x_write_reg(state, STV090x_GENCFG, 0x1d) < 0) in stv090x_ldpc_mode()
4118 if (stv090x_write_reg(state, STV090x_TSTRES0, reg) < 0) in stv090x_ldpc_mode()
4121 if (stv090x_write_reg(state, STV090x_TSTRES0, reg) < 0) in stv090x_ldpc_mode()
4168 if (stv090x_write_reg(state, STV090x_GENCFG, 0x06) < 0) /* path 2 */ in stv090x_ldpc_mode()
4171 if (stv090x_write_reg(state, STV090x_GENCFG, 0x04) < 0) /* path 1 */ in stv090x_ldpc_mode()
4177 if (stv090x_write_reg(state, STV090x_TSTRES0, reg) < 0) in stv090x_ldpc_mode()
4180 if (stv090x_write_reg(state, STV090x_TSTRES0, reg) < 0) in stv090x_ldpc_mode()
4225 if (stv090x_write_reg(state, STV090x_NCOARSE, reg) < 0) in stv090x_set_mclk()
4255 stv090x_write_reg(state, STV090x_TSGENERAL, 0x00); in stv090x_set_tspath()
4260 if (stv090x_write_reg(state, STV090x_TSGENERAL, 0x06) < 0) /* Mux'd stream mode */ in stv090x_set_tspath()
4264 if (stv090x_write_reg(state, STV090x_P1_TSCFGM, reg) < 0) in stv090x_set_tspath()
4268 if (stv090x_write_reg(state, STV090x_P2_TSCFGM, reg) < 0) in stv090x_set_tspath()
4270 if (stv090x_write_reg(state, STV090x_P1_TSSPEED, 0x14) < 0) in stv090x_set_tspath()
4272 if (stv090x_write_reg(state, STV090x_P2_TSSPEED, 0x28) < 0) in stv090x_set_tspath()
4285 if (stv090x_write_reg(state, STV090x_TSGENERAL, 0x0c) < 0) in stv090x_set_tspath()
4291 if (stv090x_write_reg(state, STV090x_TSGENERAL, 0x0a) < 0) in stv090x_set_tspath()
4305 stv090x_write_reg(state, STV090x_TSGENERAL1X, 0x10); in stv090x_set_tspath()
4310 stv090x_write_reg(state, STV090x_TSGENERAL1X, 0x16); in stv090x_set_tspath()
4313 if (stv090x_write_reg(state, STV090x_P1_TSCFGM, reg) < 0) in stv090x_set_tspath()
4317 if (stv090x_write_reg(state, STV090x_P1_TSCFGM, reg) < 0) in stv090x_set_tspath()
4319 if (stv090x_write_reg(state, STV090x_P1_TSSPEED, 0x14) < 0) in stv090x_set_tspath()
4321 if (stv090x_write_reg(state, STV090x_P2_TSSPEED, 0x28) < 0) in stv090x_set_tspath()
4334 stv090x_write_reg(state, STV090x_TSGENERAL1X, 0x14); in stv090x_set_tspath()
4339 stv090x_write_reg(state, STV090x_TSGENERAL1X, 0x12); in stv090x_set_tspath()
4352 if (stv090x_write_reg(state, STV090x_P1_TSCFGH, reg) < 0) in stv090x_set_tspath()
4361 if (stv090x_write_reg(state, STV090x_P1_TSCFGH, reg) < 0) in stv090x_set_tspath()
4370 if (stv090x_write_reg(state, STV090x_P1_TSCFGH, reg) < 0) in stv090x_set_tspath()
4379 if (stv090x_write_reg(state, STV090x_P1_TSCFGH, reg) < 0) in stv090x_set_tspath()
4393 if (stv090x_write_reg(state, STV090x_P2_TSCFGH, reg) < 0) in stv090x_set_tspath()
4402 if (stv090x_write_reg(state, STV090x_P2_TSCFGH, reg) < 0) in stv090x_set_tspath()
4411 if (stv090x_write_reg(state, STV090x_P2_TSCFGH, reg) < 0) in stv090x_set_tspath()
4420 if (stv090x_write_reg(state, STV090x_P2_TSCFGH, reg) < 0) in stv090x_set_tspath()
4454 if (stv090x_write_reg(state, STV090x_P1_TSCFGM, reg) < 0) in stv090x_set_tspath()
4456 if (stv090x_write_reg(state, STV090x_P1_TSSPEED, speed) < 0) in stv090x_set_tspath()
4486 if (stv090x_write_reg(state, STV090x_P2_TSCFGM, reg) < 0) in stv090x_set_tspath()
4488 if (stv090x_write_reg(state, STV090x_P2_TSSPEED, speed) < 0) in stv090x_set_tspath()
4494 if (stv090x_write_reg(state, STV090x_P2_TSCFGH, reg) < 0) in stv090x_set_tspath()
4497 if (stv090x_write_reg(state, STV090x_P2_TSCFGH, reg) < 0) in stv090x_set_tspath()
4502 if (stv090x_write_reg(state, STV090x_P1_TSCFGH, reg) < 0) in stv090x_set_tspath()
4505 if (stv090x_write_reg(state, STV090x_P1_TSCFGH, reg) < 0) in stv090x_set_tspath()
4537 if (stv090x_write_reg(state, STV090x_SYNTCTRL, in stv090x_init()
4616 if (stv090x_write_reg(state, STV090x_P1_DMDISTATE, 0x5c) < 0) in stv090x_setup()
4618 if (stv090x_write_reg(state, STV090x_P2_DMDISTATE, 0x5c) < 0) in stv090x_setup()
4624 if (stv090x_write_reg(state, STV090x_P1_TNRCFG, 0x6c) < 0) in stv090x_setup()
4626 if (stv090x_write_reg(state, STV090x_P2_TNRCFG, 0x6c) < 0) in stv090x_setup()
4631 if (stv090x_write_reg(state, STV090x_P1_I2CRPT, reg) < 0) in stv090x_setup()
4633 if (stv090x_write_reg(state, STV090x_P2_I2CRPT, reg) < 0) in stv090x_setup()
4636 if (stv090x_write_reg(state, STV090x_NCOARSE, 0x13) < 0) /* set PLL divider */ in stv090x_setup()
4639 if (stv090x_write_reg(state, STV090x_I2CCFG, 0x08) < 0) /* 1/41 oversampling */ in stv090x_setup()
4641 if (stv090x_write_reg(state, STV090x_SYNTCTRL, 0x20 | config->clk_mode) < 0) /* enable PLL */ in stv090x_setup()
4648 if (stv090x_write_reg(state, stv090x_initval[i].addr, stv090x_initval[i].data) < 0) in stv090x_setup()
4654 if (stv090x_write_reg(state, STV090x_TSGENERAL, 0x0c) < 0) in stv090x_setup()
4660 if (stv090x_write_reg(state, stv090x_cut20_val[i].addr, stv090x_cut20_val[i].data) < 0) in stv090x_setup()
4679 if (stv090x_write_reg(state, STV090x_TSTTNR1, reg) < 0) in stv090x_setup()
4686 if (stv090x_write_reg(state, STV090x_TSTTNR3, reg) < 0) in stv090x_setup()
4689 if (stv090x_write_reg(state, STV090x_TSTRES0, 0x80) < 0) in stv090x_setup()
4691 if (stv090x_write_reg(state, STV090x_TSTRES0, 0x00) < 0) in stv090x_setup()
4710 return stv090x_write_reg(state, STV090x_GPIOxCFG(gpio), reg); in stv090x_set_gpio()