Lines Matching refs:stv0367_readbits
237 static u8 stv0367_readbits(struct stv0367_state *state, u32 label) in stv0367_readbits() function
459 if (stv0367_readbits(state, F367TER_BYPASS_PLLXN) == 0) { in stv0367ter_get_mclk()
460 n = (u32)stv0367_readbits(state, F367TER_PLL_NDIV); in stv0367ter_get_mclk()
464 m = (u32)stv0367_readbits(state, F367TER_PLL_MDIV); in stv0367ter_get_mclk()
468 p = (u32)stv0367_readbits(state, F367TER_PLL_PDIV); in stv0367ter_get_mclk()
589 com_n = stv0367_readbits(state, F367TER_COM_N); in stv0367ter_agc_iir_rst()
634 SYR_var = stv0367_readbits(state, F367TER_SYR_LOCK); in stv0367ter_check_syr()
639 SYR_var = stv0367_readbits(state, F367TER_SYR_LOCK); in stv0367ter_check_syr()
683 CPAMPvalue = stv0367_readbits(state, F367TER_PPM_CPAMP_DIRECT); in stv0367ter_check_cpamp()
687 CPAMPvalue = stv0367_readbits(state, F367TER_PPM_CPAMP_DIRECT); in stv0367ter_check_cpamp()
737 mode = stv0367_readbits(state, F367TER_SYR_MODE); in stv0367ter_lock_algo()
795 u_var1 = stv0367_readbits(state, F367TER_LK); in stv0367ter_lock_algo()
796 u_var2 = stv0367_readbits(state, F367TER_PRF); in stv0367ter_lock_algo()
797 u_var3 = stv0367_readbits(state, F367TER_TPS_LOCK); in stv0367ter_lock_algo()
807 u_var1 = stv0367_readbits(state, F367TER_LK); in stv0367ter_lock_algo()
808 u_var2 = stv0367_readbits(state, F367TER_PRF); in stv0367ter_lock_algo()
809 u_var3 = stv0367_readbits(state, F367TER_TPS_LOCK); in stv0367ter_lock_algo()
823 guard = stv0367_readbits(state, F367TER_SYR_GUARD); in stv0367ter_lock_algo()
844 if ((stv0367_readbits(state, F367TER_TPS_CONST) == 2) && in stv0367ter_lock_algo()
846 (stv0367_readbits(state, F367TER_TPS_HPCODE) != 0)) { in stv0367ter_lock_algo()
854 u_var4 = stv0367_readbits(state, F367TER_TSFIFO_LINEOK); in stv0367ter_lock_algo()
859 u_var4 = stv0367_readbits(state, F367TER_TSFIFO_LINEOK); in stv0367ter_lock_algo()
1013 + stv0367_readbits(state, F367TER_FORCE) * 2; in stv0367ter_algo()
1103 temp = stv0367_readbits(state, F367TER_TRL_NOMRATE_HI) * 512 + in stv0367ter_algo()
1104 stv0367_readbits(state, F367TER_TRL_NOMRATE_LO) * 2 + in stv0367ter_algo()
1105 stv0367_readbits(state, F367TER_TRL_NOMRATE_LSB); in stv0367ter_algo()
1109 temp = stv0367_readbits(state, F367TER_GAIN_SRC_HI) * 256 + in stv0367ter_algo()
1110 stv0367_readbits(state, F367TER_GAIN_SRC_LO); in stv0367ter_algo()
1129 ter_state->mode = stv0367_readbits(state, F367TER_SYR_MODE); in stv0367ter_algo()
1130 ter_state->guard = stv0367_readbits(state, F367TER_SYR_GUARD); in stv0367ter_algo()
1135 (stv0367_readbits(state, F367TER_AGC1_VAL_LO) << 16) + in stv0367ter_algo()
1136 (stv0367_readbits(state, F367TER_AGC1_VAL_HI) << 24) + in stv0367ter_algo()
1137 stv0367_readbits(state, F367TER_AGC2_VAL_LO) + in stv0367ter_algo()
1138 (stv0367_readbits(state, F367TER_AGC2_VAL_HI) << 8); in stv0367ter_algo()
1142 offset = (stv0367_readbits(state, F367TER_CRL_FOFFSET_VHI) << 16) ; in stv0367ter_algo()
1143 offset += (stv0367_readbits(state, F367TER_CRL_FOFFSET_HI) << 8); in stv0367ter_algo()
1144 offset += (stv0367_readbits(state, F367TER_CRL_FOFFSET_LO)); in stv0367ter_algo()
1158 if (stv0367_readbits(state, F367TER_PPM_INVSEL) == 1) { in stv0367ter_algo()
1159 if ((stv0367_readbits(state, F367TER_INV_SPECTR) == in stv0367ter_algo()
1160 (stv0367_readbits(state, in stv0367ter_algo()
1176 timing_offset = stv0367_readbits(state, F367TER_TRL_TOFFSET_LO) in stv0367ter_algo()
1177 + 256 * stv0367_readbits(state, in stv0367ter_algo()
1181 trl_nomrate = (512 * stv0367_readbits(state, in stv0367ter_algo()
1183 + stv0367_readbits(state, F367TER_TRL_NOMRATE_LO) * 2 in stv0367ter_algo()
1184 + stv0367_readbits(state, F367TER_TRL_NOMRATE_LSB)); in stv0367ter_algo()
1211 u_var = stv0367_readbits(state, F367TER_LK); in stv0367ter_algo()
1328 if (stv0367_readbits(state, F367TER_SFERRC_OLDVALUE) == 0) { in stv0367ter_read_ucblocks()
1330 ((u32)stv0367_readbits(state, F367TER_ERR_CNT1) in stv0367ter_read_ucblocks()
1332 + ((u32)stv0367_readbits(state, F367TER_ERR_CNT1_HI) in stv0367ter_read_ucblocks()
1334 + ((u32)stv0367_readbits(state, F367TER_ERR_CNT1_LO)); in stv0367ter_read_ucblocks()
1355 constell = stv0367_readbits(state, F367TER_TPS_CONST); in stv0367ter_get_frontend()
1363 p->inversion = stv0367_readbits(state, F367TER_INV_SPECTR); in stv0367ter_get_frontend()
1366 Data = stv0367_readbits(state, F367TER_TPS_HIERMODE); in stv0367ter_get_frontend()
1388 Data = stv0367_readbits(state, F367TER_TPS_LPCODE); in stv0367ter_get_frontend()
1390 Data = stv0367_readbits(state, F367TER_TPS_HPCODE); in stv0367ter_get_frontend()
1413 mode = stv0367_readbits(state, F367TER_SYR_MODE); in stv0367ter_get_frontend()
1429 p->guard_interval = stv0367_readbits(state, F367TER_SYR_GUARD); in stv0367ter_get_frontend()
1439 u8 cut = stv0367_readbits(state, F367TER_IDENTIFICATIONREG); in stv0367ter_snr_readreg()
1444 snru32 += stv0367_readbits(state, F367TER_CHCSNR) / 4; in stv0367ter_snr_readreg()
1446 snru32 += 125 * stv0367_readbits(state, F367TER_CHCSNR); in stv0367ter_snr_readreg()
1472 locked = (stv0367_readbits(state, F367TER_LK));
1479 if (!stv0367_readbits(state, F367TER_TPS_LOCK) ||
1480 (!stv0367_readbits(state, F367TER_LK))) {
1485 locked = (stv0367_readbits(state, F367TER_TPS_LOCK)) &&
1486 (stv0367_readbits(state, F367TER_LK));
1503 if (stv0367_readbits(state, F367TER_LK)) { in stv0367ter_read_status()
1521 if (stv0367_readbits(state, F367TER_SFERRC_OLDVALUE) == 0) in stv0367ter_read_ber()
1522 Errors = ((u32)stv0367_readbits(state, F367TER_SFEC_ERR_CNT) in stv0367ter_read_ber()
1524 + ((u32)stv0367_readbits(state, F367TER_SFEC_ERR_CNT_HI) in stv0367ter_read_ber()
1526 + ((u32)stv0367_readbits(state, in stv0367ter_read_ber()
1534 abc = stv0367_readbits(state, F367TER_SFEC_ERR_SOURCE); in stv0367ter_read_ber()
1535 def = stv0367_readbits(state, F367TER_SFEC_NUM_EVENT); in stv0367ter_read_ber()
1601 while (((stv0367_readbits(state, F367TER_SFERRC_OLDVALUE) == 1) &&
1604 Errors = ((u32)stv0367_readbits(state, F367TER_ERR_CNT1)
1606 + ((u32)stv0367_readbits(state, F367TER_ERR_CNT1_HI)
1608 + ((u32)stv0367_readbits(state, F367TER_ERR_CNT1_LO));
1611 abc = stv0367_readbits(state, F367TER_ERR_SRC1);
1612 def = stv0367_readbits(state, F367TER_NUM_EVT1);
1773 if (stv0367_readbits(state, F367CAB_BYPASS_PLLXN) == 0) { in stv0367cab_get_mclk()
1774 N = (u32)stv0367_readbits(state, F367CAB_PLL_NDIV); in stv0367cab_get_mclk()
1778 M = (u32)stv0367_readbits(state, F367CAB_PLL_MDIV); in stv0367cab_get_mclk()
1782 P = (u32)stv0367_readbits(state, F367CAB_PLL_PDIV); in stv0367cab_get_mclk()
1937 sampled_if = stv0367_readbits(state, F367CAB_MIX_NCO_INC_LL) + in stv0367cab_get_derot_freq()
1938 (stv0367_readbits(state, F367CAB_MIX_NCO_INC_HL) << 8) + in stv0367cab_get_derot_freq()
1939 (stv0367_readbits(state, F367CAB_MIX_NCO_INC_HH) << 16); in stv0367cab_get_derot_freq()
2068 if (stv0367_readbits(state, F367CAB_ADJ_EN)) { in stv0367cab_set_srate()
2139 return stv0367_readbits(state, F367CAB_FSM_STATUS); in stv0367cab_fsm_status()
2144 return stv0367_readbits(state, in stv0367cab_qamfec_lock()
2405 TrackAGCAccum = stv0367_readbits(state, F367CAB_AGC_ACCUMRSTSEL); in stv0367cab_algo()
2448 u32_tmp = stv0367_readbits(state, in stv0367cab_algo()
2450 (stv0367_readbits(state, in stv0367cab_algo()
2452 (stv0367_readbits(state, in stv0367cab_algo()
2456 u32_tmp = u32_tmp / (1 << (11 - stv0367_readbits(state, in stv0367cab_algo()
2459 if (u32_tmp < stv0367_readbits(state, in stv0367cab_algo()
2461 256 * stv0367_readbits(state, in stv0367cab_algo()
2499 cab_state->spect_inv = stv0367_readbits(state, in stv0367cab_algo()
2609 QAMSize = stv0367_readbits(state, F367CAB_QAM_MODE); in stv0367cab_get_frontend()
2678 (stv0367_readbits(state, F367CAB_RF_AGC1_LEVEL_LO) & 0x03) + in stv0367cab_get_rf_lvl()
2679 (stv0367_readbits(state, F367CAB_RF_AGC1_LEVEL_HI) << 2); in stv0367cab_get_rf_lvl()
2683 stv0367_readbits(state, F367CAB_AGC_IF_PWMCMD_LO) + in stv0367cab_get_rf_lvl()
2684 (stv0367_readbits(state, F367CAB_AGC_IF_PWMCMD_HI) << 8); in stv0367cab_get_rf_lvl()
2738 QAMSize = stv0367_readbits(state, F367CAB_QAM_MODE); in stv0367cab_snr_power()
2768 regval += (stv0367_readbits(state, F367CAB_SNR_LO) in stv0367cab_snr_readreg()
2769 + 256 * stv0367_readbits(state, F367CAB_SNR_HI)); in stv0367cab_snr_readreg()
2790 * (1 << (3 + stv0367_readbits(state, F367CAB_SNR_PER))); in stv0367cab_read_snr()