Lines Matching refs:stv0367_readbits
247 static u8 stv0367_readbits(struct stv0367_state *state, u32 label) in stv0367_readbits() function
469 if (stv0367_readbits(state, F367TER_BYPASS_PLLXN) == 0) { in stv0367ter_get_mclk()
470 n = (u32)stv0367_readbits(state, F367TER_PLL_NDIV); in stv0367ter_get_mclk()
474 m = (u32)stv0367_readbits(state, F367TER_PLL_MDIV); in stv0367ter_get_mclk()
478 p = (u32)stv0367_readbits(state, F367TER_PLL_PDIV); in stv0367ter_get_mclk()
599 com_n = stv0367_readbits(state, F367TER_COM_N); in stv0367ter_agc_iir_rst()
644 SYR_var = stv0367_readbits(state, F367TER_SYR_LOCK); in stv0367ter_check_syr()
649 SYR_var = stv0367_readbits(state, F367TER_SYR_LOCK); in stv0367ter_check_syr()
693 CPAMPvalue = stv0367_readbits(state, F367TER_PPM_CPAMP_DIRECT); in stv0367ter_check_cpamp()
697 CPAMPvalue = stv0367_readbits(state, F367TER_PPM_CPAMP_DIRECT); in stv0367ter_check_cpamp()
747 mode = stv0367_readbits(state, F367TER_SYR_MODE); in stv0367ter_lock_algo()
805 u_var1 = stv0367_readbits(state, F367TER_LK); in stv0367ter_lock_algo()
806 u_var2 = stv0367_readbits(state, F367TER_PRF); in stv0367ter_lock_algo()
807 u_var3 = stv0367_readbits(state, F367TER_TPS_LOCK); in stv0367ter_lock_algo()
817 u_var1 = stv0367_readbits(state, F367TER_LK); in stv0367ter_lock_algo()
818 u_var2 = stv0367_readbits(state, F367TER_PRF); in stv0367ter_lock_algo()
819 u_var3 = stv0367_readbits(state, F367TER_TPS_LOCK); in stv0367ter_lock_algo()
833 guard = stv0367_readbits(state, F367TER_SYR_GUARD); in stv0367ter_lock_algo()
854 if ((stv0367_readbits(state, F367TER_TPS_CONST) == 2) && in stv0367ter_lock_algo()
856 (stv0367_readbits(state, F367TER_TPS_HPCODE) != 0)) { in stv0367ter_lock_algo()
864 u_var4 = stv0367_readbits(state, F367TER_TSFIFO_LINEOK); in stv0367ter_lock_algo()
869 u_var4 = stv0367_readbits(state, F367TER_TSFIFO_LINEOK); in stv0367ter_lock_algo()
1023 + stv0367_readbits(state, F367TER_FORCE) * 2; in stv0367ter_algo()
1113 temp = stv0367_readbits(state, F367TER_TRL_NOMRATE_HI) * 512 + in stv0367ter_algo()
1114 stv0367_readbits(state, F367TER_TRL_NOMRATE_LO) * 2 + in stv0367ter_algo()
1115 stv0367_readbits(state, F367TER_TRL_NOMRATE_LSB); in stv0367ter_algo()
1119 temp = stv0367_readbits(state, F367TER_GAIN_SRC_HI) * 256 + in stv0367ter_algo()
1120 stv0367_readbits(state, F367TER_GAIN_SRC_LO); in stv0367ter_algo()
1139 ter_state->mode = stv0367_readbits(state, F367TER_SYR_MODE); in stv0367ter_algo()
1140 ter_state->guard = stv0367_readbits(state, F367TER_SYR_GUARD); in stv0367ter_algo()
1145 (stv0367_readbits(state, F367TER_AGC1_VAL_LO) << 16) + in stv0367ter_algo()
1146 (stv0367_readbits(state, F367TER_AGC1_VAL_HI) << 24) + in stv0367ter_algo()
1147 stv0367_readbits(state, F367TER_AGC2_VAL_LO) + in stv0367ter_algo()
1148 (stv0367_readbits(state, F367TER_AGC2_VAL_HI) << 8); in stv0367ter_algo()
1152 offset = (stv0367_readbits(state, F367TER_CRL_FOFFSET_VHI) << 16) ; in stv0367ter_algo()
1153 offset += (stv0367_readbits(state, F367TER_CRL_FOFFSET_HI) << 8); in stv0367ter_algo()
1154 offset += (stv0367_readbits(state, F367TER_CRL_FOFFSET_LO)); in stv0367ter_algo()
1168 if (stv0367_readbits(state, F367TER_PPM_INVSEL) == 1) { in stv0367ter_algo()
1169 if ((stv0367_readbits(state, F367TER_INV_SPECTR) == in stv0367ter_algo()
1170 (stv0367_readbits(state, in stv0367ter_algo()
1186 timing_offset = stv0367_readbits(state, F367TER_TRL_TOFFSET_LO) in stv0367ter_algo()
1187 + 256 * stv0367_readbits(state, in stv0367ter_algo()
1191 trl_nomrate = (512 * stv0367_readbits(state, in stv0367ter_algo()
1193 + stv0367_readbits(state, F367TER_TRL_NOMRATE_LO) * 2 in stv0367ter_algo()
1194 + stv0367_readbits(state, F367TER_TRL_NOMRATE_LSB)); in stv0367ter_algo()
1221 u_var = stv0367_readbits(state, F367TER_LK); in stv0367ter_algo()
1338 if (stv0367_readbits(state, F367TER_SFERRC_OLDVALUE) == 0) { in stv0367ter_read_ucblocks()
1340 ((u32)stv0367_readbits(state, F367TER_ERR_CNT1) in stv0367ter_read_ucblocks()
1342 + ((u32)stv0367_readbits(state, F367TER_ERR_CNT1_HI) in stv0367ter_read_ucblocks()
1344 + ((u32)stv0367_readbits(state, F367TER_ERR_CNT1_LO)); in stv0367ter_read_ucblocks()
1365 constell = stv0367_readbits(state, F367TER_TPS_CONST); in stv0367ter_get_frontend()
1373 p->inversion = stv0367_readbits(state, F367TER_INV_SPECTR); in stv0367ter_get_frontend()
1376 Data = stv0367_readbits(state, F367TER_TPS_HIERMODE); in stv0367ter_get_frontend()
1398 Data = stv0367_readbits(state, F367TER_TPS_LPCODE); in stv0367ter_get_frontend()
1400 Data = stv0367_readbits(state, F367TER_TPS_HPCODE); in stv0367ter_get_frontend()
1423 mode = stv0367_readbits(state, F367TER_SYR_MODE); in stv0367ter_get_frontend()
1439 p->guard_interval = stv0367_readbits(state, F367TER_SYR_GUARD); in stv0367ter_get_frontend()
1449 u8 cut = stv0367_readbits(state, F367TER_IDENTIFICATIONREG); in stv0367ter_snr_readreg()
1454 snru32 += stv0367_readbits(state, F367TER_CHCSNR) / 4; in stv0367ter_snr_readreg()
1456 snru32 += 125 * stv0367_readbits(state, F367TER_CHCSNR); in stv0367ter_snr_readreg()
1482 locked = (stv0367_readbits(state, F367TER_LK));
1489 if (!stv0367_readbits(state, F367TER_TPS_LOCK) ||
1490 (!stv0367_readbits(state, F367TER_LK))) {
1495 locked = (stv0367_readbits(state, F367TER_TPS_LOCK)) &&
1496 (stv0367_readbits(state, F367TER_LK));
1513 if (stv0367_readbits(state, F367TER_LK)) { in stv0367ter_read_status()
1531 if (stv0367_readbits(state, F367TER_SFERRC_OLDVALUE) == 0) in stv0367ter_read_ber()
1532 Errors = ((u32)stv0367_readbits(state, F367TER_SFEC_ERR_CNT) in stv0367ter_read_ber()
1534 + ((u32)stv0367_readbits(state, F367TER_SFEC_ERR_CNT_HI) in stv0367ter_read_ber()
1536 + ((u32)stv0367_readbits(state, in stv0367ter_read_ber()
1544 abc = stv0367_readbits(state, F367TER_SFEC_ERR_SOURCE); in stv0367ter_read_ber()
1545 def = stv0367_readbits(state, F367TER_SFEC_NUM_EVENT); in stv0367ter_read_ber()
1611 while (((stv0367_readbits(state, F367TER_SFERRC_OLDVALUE) == 1) &&
1614 Errors = ((u32)stv0367_readbits(state, F367TER_ERR_CNT1)
1616 + ((u32)stv0367_readbits(state, F367TER_ERR_CNT1_HI)
1618 + ((u32)stv0367_readbits(state, F367TER_ERR_CNT1_LO));
1621 abc = stv0367_readbits(state, F367TER_ERR_SRC1);
1622 def = stv0367_readbits(state, F367TER_NUM_EVT1);
1783 if (stv0367_readbits(state, F367CAB_BYPASS_PLLXN) == 0) { in stv0367cab_get_mclk()
1784 N = (u32)stv0367_readbits(state, F367CAB_PLL_NDIV); in stv0367cab_get_mclk()
1788 M = (u32)stv0367_readbits(state, F367CAB_PLL_MDIV); in stv0367cab_get_mclk()
1792 P = (u32)stv0367_readbits(state, F367CAB_PLL_PDIV); in stv0367cab_get_mclk()
1951 sampled_if = stv0367_readbits(state, F367CAB_MIX_NCO_INC_LL) + in stv0367cab_get_derot_freq()
1952 (stv0367_readbits(state, F367CAB_MIX_NCO_INC_HL) << 8) + in stv0367cab_get_derot_freq()
1953 (stv0367_readbits(state, F367CAB_MIX_NCO_INC_HH) << 16); in stv0367cab_get_derot_freq()
2082 if (stv0367_readbits(state, F367CAB_ADJ_EN)) { in stv0367cab_set_srate()
2153 return stv0367_readbits(state, F367CAB_FSM_STATUS); in stv0367cab_fsm_status()
2158 return stv0367_readbits(state, in stv0367cab_qamfec_lock()
2419 TrackAGCAccum = stv0367_readbits(state, F367CAB_AGC_ACCUMRSTSEL); in stv0367cab_algo()
2462 u32_tmp = stv0367_readbits(state, in stv0367cab_algo()
2464 (stv0367_readbits(state, in stv0367cab_algo()
2466 (stv0367_readbits(state, in stv0367cab_algo()
2470 u32_tmp = u32_tmp / (1 << (11 - stv0367_readbits(state, in stv0367cab_algo()
2473 if (u32_tmp < stv0367_readbits(state, in stv0367cab_algo()
2475 256 * stv0367_readbits(state, in stv0367cab_algo()
2513 cab_state->spect_inv = stv0367_readbits(state, in stv0367cab_algo()
2623 QAMSize = stv0367_readbits(state, F367CAB_QAM_MODE); in stv0367cab_get_frontend()
2692 (stv0367_readbits(state, F367CAB_RF_AGC1_LEVEL_LO) & 0x03) + in stv0367cab_get_rf_lvl()
2693 (stv0367_readbits(state, F367CAB_RF_AGC1_LEVEL_HI) << 2); in stv0367cab_get_rf_lvl()
2697 stv0367_readbits(state, F367CAB_AGC_IF_PWMCMD_LO) + in stv0367cab_get_rf_lvl()
2698 (stv0367_readbits(state, F367CAB_AGC_IF_PWMCMD_HI) << 8); in stv0367cab_get_rf_lvl()
2752 QAMSize = stv0367_readbits(state, F367CAB_QAM_MODE); in stv0367cab_snr_power()
2782 regval += (stv0367_readbits(state, F367CAB_SNR_LO) in stv0367cab_snr_readreg()
2783 + 256 * stv0367_readbits(state, F367CAB_SNR_HI)); in stv0367cab_snr_readreg()
2804 * (1 << (3 + stv0367_readbits(state, F367CAB_SNR_PER))); in stv0367cab_read_snr()