Lines Matching refs:write_reg

132 static int write_reg(struct stv *state, u16 reg, u8 val)  in write_reg()  function
184 status = write_reg(state, reg, (tmp & ~mask) | (val & mask)); in write_shared_reg()
202 return write_reg(state, field >> 16, new); in write_field()
210 write_reg(state, state->nr ? RSTV0910_P2_##_reg : \
559 write_reg(state, RSTV0910_P2_DMDCFGMD + state->regoff, tmp); in tracking_optimization()
572 write_reg(state, RSTV0910_P2_ACLC2S2Q + in tracking_optimization()
575 write_reg(state, RSTV0910_P2_ACLC2S2Q + in tracking_optimization()
577 write_reg(state, RSTV0910_P2_ACLC2S28 + in tracking_optimization()
580 write_reg(state, RSTV0910_P2_ACLC2S2Q + in tracking_optimization()
582 write_reg(state, RSTV0910_P2_ACLC2S216A + in tracking_optimization()
585 write_reg(state, RSTV0910_P2_ACLC2S2Q + in tracking_optimization()
587 write_reg(state, RSTV0910_P2_ACLC2S232A + in tracking_optimization()
683 status = write_reg(state, RSTV0910_P2_ERRCTRL1 + in get_bit_error_rate_s()
689 status = write_reg(state, RSTV0910_P2_ERRCTRL1 + in get_bit_error_rate_s()
759 write_reg(state, RSTV0910_P2_ERRCTRL1 + state->regoff, in get_bit_error_rate_s2()
764 write_reg(state, RSTV0910_P2_ERRCTRL1 + state->regoff, in get_bit_error_rate_s2()
845 write_reg(state, RSTV0910_NCOARSE, (cp << 3) | idf); in set_mclock()
846 write_reg(state, RSTV0910_NCOARSE2, odf); in set_mclock()
847 write_reg(state, RSTV0910_NCOARSE1, ndiv); in set_mclock()
860 write_reg(state, RSTV0910_P2_TSCFGH + state->regoff, in stop()
864 write_reg(state, RSTV0910_P2_PDELCTRL1 + state->regoff, tmp); in stop()
866 write_reg(state, RSTV0910_P2_AGC2O + state->regoff, 0x5B); in stop()
868 write_reg(state, RSTV0910_P2_DMDISTATE + state->regoff, 0x5c); in stop()
881 write_reg(state, RSTV0910_P2_PLROOT0 + state->regoff, in set_pls()
883 write_reg(state, RSTV0910_P2_PLROOT1 + state->regoff, in set_pls()
885 write_reg(state, RSTV0910_P2_PLROOT2 + state->regoff, in set_pls()
899 write_reg(state, RSTV0910_P2_ISIENTRY + state->regoff, in set_isi()
901 write_reg(state, RSTV0910_P2_ISIBITENA + state->regoff, 0xff); in set_isi()
958 return write_reg(state, RSTV0910_P2_PRVIT + state->regoff, val); in enable_puncture_rate()
969 write_reg(state, RSTV0910_P2_VTH12 + state->regoff + 0, state->vth[0]); in set_vth_default()
970 write_reg(state, RSTV0910_P2_VTH12 + state->regoff + 1, state->vth[1]); in set_vth_default()
971 write_reg(state, RSTV0910_P2_VTH12 + state->regoff + 2, state->vth[2]); in set_vth_default()
972 write_reg(state, RSTV0910_P2_VTH12 + state->regoff + 3, state->vth[3]); in set_vth_default()
973 write_reg(state, RSTV0910_P2_VTH12 + state->regoff + 4, state->vth[4]); in set_vth_default()
974 write_reg(state, RSTV0910_P2_VTH12 + state->regoff + 5, state->vth[5]); in set_vth_default()
1001 write_reg(state, RSTV0910_P2_VTH12 + state->regoff + 0, state->vth[0]); in set_vth()
1002 write_reg(state, RSTV0910_P2_VTH12 + state->regoff + 1, state->vth[1]); in set_vth()
1003 write_reg(state, RSTV0910_P2_VTH12 + state->regoff + 2, state->vth[2]); in set_vth()
1004 write_reg(state, RSTV0910_P2_VTH12 + state->regoff + 3, state->vth[3]); in set_vth()
1005 write_reg(state, RSTV0910_P2_VTH12 + state->regoff + 4, state->vth[4]); in set_vth()
1006 write_reg(state, RSTV0910_P2_VTH12 + state->regoff + 5, state->vth[5]); in set_vth()
1024 write_reg(state, RSTV0910_P2_DMDISTATE + state->regoff, 0x5C); in start()
1050 write_reg(state, RSTV0910_P2_SFRINIT1 + state->regoff, in start()
1052 write_reg(state, RSTV0910_P2_SFRINIT0 + state->regoff, (symb & 0xFF)); in start()
1055 write_reg(state, RSTV0910_P2_DEMOD + state->regoff, state->demod_bits); in start()
1059 write_reg(state, RSTV0910_P2_DMDCFGMD + state->regoff, in start()
1066 write_reg(state, RSTV0910_P2_FECM + state->regoff, 0x00); in start()
1067 write_reg(state, RSTV0910_P2_PRVIT + state->regoff, 0x2F); in start()
1072 write_reg(state, RSTV0910_P2_ACLC2S2Q + state->regoff, 0x0B); in start()
1073 write_reg(state, RSTV0910_P2_ACLC2S28 + state->regoff, 0x0A); in start()
1074 write_reg(state, RSTV0910_P2_BCLC2S2Q + state->regoff, 0x84); in start()
1075 write_reg(state, RSTV0910_P2_BCLC2S28 + state->regoff, 0x84); in start()
1076 write_reg(state, RSTV0910_P2_CARHDR + state->regoff, 0x1C); in start()
1077 write_reg(state, RSTV0910_P2_CARFREQ + state->regoff, 0x79); in start()
1079 write_reg(state, RSTV0910_P2_ACLC2S216A + state->regoff, 0x29); in start()
1080 write_reg(state, RSTV0910_P2_ACLC2S232A + state->regoff, 0x09); in start()
1081 write_reg(state, RSTV0910_P2_BCLC2S216A + state->regoff, 0x84); in start()
1082 write_reg(state, RSTV0910_P2_BCLC2S232A + state->regoff, 0x84); in start()
1088 write_reg(state, RSTV0910_TSTRES0, state->nr ? 0x04 : 0x08); in start()
1089 write_reg(state, RSTV0910_TSTRES0, 0); in start()
1093 write_reg(state, RSTV0910_P2_DMDISTATE + state->regoff, 0x1F); in start()
1095 write_reg(state, RSTV0910_P2_CARCFG + state->regoff, 0x46); in start()
1103 write_reg(state, RSTV0910_P2_CFRUP1 + state->regoff, in start()
1105 write_reg(state, RSTV0910_P2_CFRUP0 + state->regoff, (freq & 0xff)); in start()
1108 write_reg(state, RSTV0910_P2_CFRLOW1 + state->regoff, in start()
1110 write_reg(state, RSTV0910_P2_CFRLOW0 + state->regoff, (freq & 0xff)); in start()
1113 write_reg(state, RSTV0910_P2_CFRINIT1 + state->regoff, 0); in start()
1114 write_reg(state, RSTV0910_P2_CFRINIT0 + state->regoff, 0); in start()
1116 write_reg(state, RSTV0910_P2_DMDISTATE + state->regoff, 0x1F); in start()
1118 write_reg(state, RSTV0910_P2_DMDISTATE + state->regoff, 0x15); in start()
1132 write_reg(state, RSTV0910_P1_DISRXCFG + offs, 0x00); in init_diseqc()
1133 write_reg(state, RSTV0910_P1_DISTXCFG + offs, 0xBA); /* Reset = 1 */ in init_diseqc()
1134 write_reg(state, RSTV0910_P1_DISTXCFG + offs, 0x3A); /* Reset = 0 */ in init_diseqc()
1135 write_reg(state, RSTV0910_P1_DISTXF22 + offs, freq); in init_diseqc()
1153 write_reg(state, RSTV0910_P1_I2CRPT, 0x24); in probe()
1155 write_reg(state, RSTV0910_P2_I2CRPT, 0x24); in probe()
1157 write_reg(state, RSTV0910_I2CCFG, 0x88); /* state->i2ccfg */ in probe()
1159 write_reg(state, RSTV0910_OUTCFG, 0x00); /* OUTCFG */ in probe()
1160 write_reg(state, RSTV0910_PADCFG, 0x05); /* RFAGC Pads Dev = 05 */ in probe()
1161 write_reg(state, RSTV0910_SYNTCTRL, 0x02); /* SYNTCTRL */ in probe()
1162 write_reg(state, RSTV0910_TSGENERAL, state->tsgeneral); /* TSGENERAL */ in probe()
1163 write_reg(state, RSTV0910_CFGEXT, 0x02); /* CFGEXT */ in probe()
1166 write_reg(state, RSTV0910_GENCFG, 0x14); /* GENCFG */ in probe()
1168 write_reg(state, RSTV0910_GENCFG, 0x15); /* GENCFG */ in probe()
1170 write_reg(state, RSTV0910_P1_TNRCFG2, 0x02); /* IQSWAP = 0 */ in probe()
1171 write_reg(state, RSTV0910_P2_TNRCFG2, 0x82); /* IQSWAP = 1 */ in probe()
1173 write_reg(state, RSTV0910_P1_CAR3CFG, 0x02); in probe()
1174 write_reg(state, RSTV0910_P2_CAR3CFG, 0x02); in probe()
1175 write_reg(state, RSTV0910_P1_DMDCFG4, 0x04); in probe()
1176 write_reg(state, RSTV0910_P2_DMDCFG4, 0x04); in probe()
1178 write_reg(state, RSTV0910_TSTRES0, 0x80); /* LDPC Reset */ in probe()
1179 write_reg(state, RSTV0910_TSTRES0, 0x00); in probe()
1181 write_reg(state, RSTV0910_P1_TSPIDFLT1, 0x00); in probe()
1182 write_reg(state, RSTV0910_P2_TSPIDFLT1, 0x00); in probe()
1184 write_reg(state, RSTV0910_P1_TMGCFG2, 0x80); in probe()
1185 write_reg(state, RSTV0910_P2_TMGCFG2, 0x80); in probe()
1190 write_reg(state, RSTV0910_P1_TSCFGH, state->tscfgh | 0x01); in probe()
1191 write_reg(state, RSTV0910_P1_TSCFGH, state->tscfgh); in probe()
1192 write_reg(state, RSTV0910_P1_TSCFGM, 0xC0); /* Manual speed */ in probe()
1193 write_reg(state, RSTV0910_P1_TSCFGL, 0x20); in probe()
1195 write_reg(state, RSTV0910_P1_TSSPEED, state->tsspeed); in probe()
1197 write_reg(state, RSTV0910_P2_TSCFGH, state->tscfgh | 0x01); in probe()
1198 write_reg(state, RSTV0910_P2_TSCFGH, state->tscfgh); in probe()
1199 write_reg(state, RSTV0910_P2_TSCFGM, 0xC0); /* Manual speed */ in probe()
1200 write_reg(state, RSTV0910_P2_TSCFGL, 0x20); in probe()
1202 write_reg(state, RSTV0910_P2_TSSPEED, state->tsspeed); in probe()
1205 write_reg(state, RSTV0910_P1_TSCFGH, state->tscfgh | 0x01); in probe()
1206 write_reg(state, RSTV0910_P2_TSCFGH, state->tscfgh | 0x01); in probe()
1207 write_reg(state, RSTV0910_P1_TSCFGH, state->tscfgh); in probe()
1208 write_reg(state, RSTV0910_P2_TSCFGH, state->tscfgh); in probe()
1210 write_reg(state, RSTV0910_P1_I2CRPT, state->i2crpt); in probe()
1211 write_reg(state, RSTV0910_P2_I2CRPT, state->i2crpt); in probe()
1213 write_reg(state, RSTV0910_P1_TSINSDELM, 0x17); in probe()
1214 write_reg(state, RSTV0910_P1_TSINSDELL, 0xff); in probe()
1216 write_reg(state, RSTV0910_P2_TSINSDELM, 0x17); in probe()
1217 write_reg(state, RSTV0910_P2_TSINSDELL, 0xff); in probe()
1245 if (write_reg(state, state->nr ? RSTV0910_P2_I2CRPT : in gate_ctrl()
1414 write_reg(state, RSTV0910_P2_TSCFGH + state->regoff, in read_status()
1417 write_reg(state, RSTV0910_P2_TSCFGH + state->regoff, in read_status()
1419 write_reg(state, RSTV0910_P2_TSCFGH + state->regoff, in read_status()
1456 write_reg(state, in read_status()
1464 write_reg(state, in read_status()
1469 write_reg(state, in read_status()
1477 write_reg(state, in read_status()
1485 write_reg(state, in read_status()
1490 write_reg(state, in read_status()
1496 write_reg(state, in read_status()
1644 return write_reg(state, RSTV0910_P1_DISTXCFG + offs, 0x38); in set_tone()
1646 return write_reg(state, RSTV0910_P1_DISTXCFG + offs, 0x3a); in set_tone()