Lines Matching refs:m_Regs
84 u8 m_Regs[NUM_REGS]; member
161 &state->m_Regs[RegFrom], RegTo-RegFrom+1); in UpdateRegs()
165 return WriteReg(state, Reg, state->m_Regs[Reg]); in UpdateReg()
259 state->m_Regs[TM] |= 0x10; in ThermometerRead()
268 state->m_Regs[TM] ^= 0x20; in ThermometerRead()
280 state->m_Regs[TM] &= ~0x10; /* Thermometer off */ in ThermometerRead()
284 state->m_Regs[EP4] &= ~0x03; /* CAL_mode = 0 ????????? */ in ThermometerRead()
297 state->m_Regs[EB12] &= ~0x20; /* PD_AGC1_Det = 0 */ in StandBy()
301 state->m_Regs[EB18] &= ~0x83; /* AGC1_loop_off = 0, AGC1_Gain = 6 dB */ in StandBy()
305 state->m_Regs[EB21] |= 0x03; /* AGC2_Gain = -6 dB */ in StandBy()
306 state->m_Regs[EP3] = state->m_EP3_Standby; in StandBy()
310 state->m_Regs[EB23] &= ~0x06; /* ForceLP_Fc2_En = 0, LP_Fc[2] = 0 */ in StandBy()
334 state->m_Regs[MPD] = PostDiv & 0x77; in CalcMainPLL()
335 state->m_Regs[MD1] = ((MainDiv >> 16) & 0x7F); in CalcMainPLL()
336 state->m_Regs[MD2] = ((MainDiv >> 8) & 0xFF); in CalcMainPLL()
337 state->m_Regs[MD3] = (MainDiv & 0xFF); in CalcMainPLL()
358 state->m_Regs[CPD] = PostDiv; in CalcCalPLL()
359 state->m_Regs[CD1] = ((CalDiv >> 16) & 0xFF); in CalcCalPLL()
360 state->m_Regs[CD2] = ((CalDiv >> 8) & 0xFF); in CalcCalPLL()
361 state->m_Regs[CD3] = (CalDiv & 0xFF); in CalcCalPLL()
377 state->m_Regs[EP4] &= ~0x03; /* CAL_mode = 0 */ in CalibrateRF()
381 state->m_Regs[EB18] |= 0x03; /* AGC1_Gain = 3 */ in CalibrateRF()
388 if (state->m_Regs[ID] != 0x83) /* C1: ID == 83, C2: ID == 84 */ in CalibrateRF()
389 state->m_Regs[EP3] |= 0x40; /* SM_LT = 1 */ in CalibrateRF()
396 state->m_Regs[EP1] = (state->m_Regs[EP1] & ~0x07) | BP_Filter; in CalibrateRF()
397 state->m_Regs[EP2] = (RFBand << 5) | GainTaper; in CalibrateRF()
399 state->m_Regs[EB13] = (state->m_Regs[EB13] & ~0x7C) | (RFC_K << 4) | (RFC_M << 2); in CalibrateRF()
408 state->m_Regs[EB4] |= 0x20; /* LO_ForceSrce = 1 */ in CalibrateRF()
413 state->m_Regs[EB7] |= 0x20; /* CAL_ForceSrce = 1 */ in CalibrateRF()
418 state->m_Regs[EB14] = 0; /* RFC_Cprog = 0 */ in CalibrateRF()
423 state->m_Regs[EB20] &= ~0x20; /* ForceLock = 0; */ in CalibrateRF()
428 state->m_Regs[EP4] |= 0x03; /* CAL_Mode = 3 */ in CalibrateRF()
454 state->m_Regs[EB4] &= ~0x20; /* LO_ForceSrce = 0 */ in CalibrateRF()
459 state->m_Regs[EB7] &= ~0x20; /* CAL_ForceSrce = 0 */ in CalibrateRF()
465 state->m_Regs[EB20] |= 0x20; /* ForceLock = 1; */ in CalibrateRF()
471 state->m_Regs[EP4] &= ~0x03; /* CAL_Mode = 0 */ in CalibrateRF()
472 state->m_Regs[EP3] &= ~0x40; /* SM_LT = 0 */ in CalibrateRF()
473 state->m_Regs[EB18] &= ~0x03; /* AGC1_Gain = 0 */ in CalibrateRF()
606 state->m_Regs[EP2] = (RFBand << 5) | Gain_Taper; in PowerScan()
607 state->m_Regs[EB14] = (RFC_Cprog); in PowerScan()
620 state->m_Regs[EP4] = (state->m_Regs[EP4] & ~0x03) | 1; /* CAL_mode = 1 */ in PowerScan()
631 state->m_Regs[ID] = Regs[ID]; /* Chip version, (needed for C1 workaround in CalibrateRF) */ in PowerScan()
676 state->m_Regs[EP3] = (state->m_Regs[EP3] & ~0x1F) | 0x12; in PowerScanInit()
677 state->m_Regs[EP4] = (state->m_Regs[EP4] & ~0x1F); /* If level = 0, Cal mode = 0 */ in PowerScanInit()
681 state->m_Regs[EB18] = (state->m_Regs[EB18] & ~0x03); /* AGC 1 Gain = 0 */ in PowerScanInit()
685 state->m_Regs[EB21] = (state->m_Regs[EB21] & ~0x03); /* AGC 2 Gain = 0 (Datasheet = 3) */ in PowerScanInit()
686 state->m_Regs[EB23] = (state->m_Regs[EB23] | 0x06); /* ForceLP_Fc2_En = 1, LPFc[2] = 1 */ in PowerScanInit()
746 memcpy(&state->m_Regs[TM], InitRegs, EB23 - TM + 1); in FixedContentsI2CUpdate()
753 state->m_Regs[EB17] = 0x00; in FixedContentsI2CUpdate()
757 state->m_Regs[EB17] = 0x03; in FixedContentsI2CUpdate()
761 state->m_Regs[EB17] = 0x43; in FixedContentsI2CUpdate()
765 state->m_Regs[EB17] = 0x4C; in FixedContentsI2CUpdate()
771 state->m_Regs[EP3] = 0x1F; in FixedContentsI2CUpdate()
772 state->m_Regs[EP4] = 0x66; in FixedContentsI2CUpdate()
773 state->m_Regs[EP5] = 0x81; in FixedContentsI2CUpdate()
774 state->m_Regs[CPD] = 0xCC; in FixedContentsI2CUpdate()
775 state->m_Regs[CD1] = 0x6C; in FixedContentsI2CUpdate()
776 state->m_Regs[CD2] = 0x00; in FixedContentsI2CUpdate()
777 state->m_Regs[CD3] = 0x00; in FixedContentsI2CUpdate()
778 state->m_Regs[MPD] = 0xC5; in FixedContentsI2CUpdate()
779 state->m_Regs[MD1] = 0x77; in FixedContentsI2CUpdate()
780 state->m_Regs[MD2] = 0x08; in FixedContentsI2CUpdate()
781 state->m_Regs[MD3] = 0x00; in FixedContentsI2CUpdate()
787 state->m_Regs[EB4] = 0x61; /* missing in sw */ in FixedContentsI2CUpdate()
792 state->m_Regs[EB4] = 0x41; in FixedContentsI2CUpdate()
804 state->m_Regs[EP5] = 0x85; in FixedContentsI2CUpdate()
805 state->m_Regs[CPD] = 0xCB; in FixedContentsI2CUpdate()
806 state->m_Regs[CD1] = 0x66; in FixedContentsI2CUpdate()
807 state->m_Regs[CD2] = 0x70; in FixedContentsI2CUpdate()
818 state->m_Regs[EP5] = 0x82; in FixedContentsI2CUpdate()
819 state->m_Regs[CPD] = 0xA8; in FixedContentsI2CUpdate()
820 state->m_Regs[CD2] = 0x00; in FixedContentsI2CUpdate()
821 state->m_Regs[MPD] = 0xA1; /* Datasheet = 0xA9 */ in FixedContentsI2CUpdate()
822 state->m_Regs[MD1] = 0x73; in FixedContentsI2CUpdate()
823 state->m_Regs[MD2] = 0x1A; in FixedContentsI2CUpdate()
834 state->m_Regs[EP5] = 0x86; in FixedContentsI2CUpdate()
835 state->m_Regs[CPD] = 0xA8; in FixedContentsI2CUpdate()
836 state->m_Regs[CD1] = 0x66; in FixedContentsI2CUpdate()
837 state->m_Regs[CD2] = 0xA0; in FixedContentsI2CUpdate()
848 state->m_Regs[EP5] = 0x83; in FixedContentsI2CUpdate()
849 state->m_Regs[CPD] = 0x98; in FixedContentsI2CUpdate()
850 state->m_Regs[CD1] = 0x65; in FixedContentsI2CUpdate()
851 state->m_Regs[CD2] = 0x00; in FixedContentsI2CUpdate()
852 state->m_Regs[MPD] = 0x91; /* Datasheet = 0x91 */ in FixedContentsI2CUpdate()
853 state->m_Regs[MD1] = 0x71; in FixedContentsI2CUpdate()
854 state->m_Regs[MD2] = 0xCD; in FixedContentsI2CUpdate()
863 state->m_Regs[EP5] = 0x87; in FixedContentsI2CUpdate()
864 state->m_Regs[CD1] = 0x65; in FixedContentsI2CUpdate()
865 state->m_Regs[CD2] = 0x50; in FixedContentsI2CUpdate()
876 state->m_Regs[EP4] = 0x64; in FixedContentsI2CUpdate()
933 state->m_Regs[EP3] &= ~0xE0; /* Power up */ in RFTrackingFiltersCorrection()
959 state->m_Regs[EB14] = Capprox; in RFTrackingFiltersCorrection()
995 state->m_Regs[EP3] = (state->m_Regs[EP3] & ~0x1F) | m_StandardTable[Standard].m_EP3_4_0; in ChannelConfiguration()
996 state->m_Regs[EP3] &= ~0x04; /* switch RFAGC to high speed mode */ in ChannelConfiguration()
999 …state->m_Regs[EP4] = state->m_EP4 | ((Standard > HF_AnalogMax) ? state->m_IFLevelDigital : state->… in ChannelConfiguration()
1002 state->m_Regs[EP4] = state->m_EP4 | state->m_IFLevelAnalog; in ChannelConfiguration()
1004 state->m_Regs[EP4] = state->m_EP4 | state->m_IFLevelDVBT; in ChannelConfiguration()
1006 state->m_Regs[EP4] = state->m_EP4 | state->m_IFLevelDVBC; in ChannelConfiguration()
1008 state->m_Regs[EP4] = state->m_EP4 | state->m_IFLevelDigital; in ChannelConfiguration()
1011 state->m_Regs[EP4] |= 0x80; in ChannelConfiguration()
1013 state->m_Regs[MPD] &= ~0x80; in ChannelConfiguration()
1015 state->m_Regs[MPD] |= 0x80; /* Add IF_notch for digital */ in ChannelConfiguration()
1017 state->m_Regs[EB22] = m_StandardTable[Standard].m_EB22; in ChannelConfiguration()
1021 state->m_Regs[EB23] |= 0x06; /* ForceLP_Fc2_En = 1, LPFc[2] = 1 */ in ChannelConfiguration()
1023 state->m_Regs[EB23] &= ~0x06; /* ForceLP_Fc2_En = 0, LPFc[2] = 0 */ in ChannelConfiguration()
1029 …state->m_Regs[EP1] = (state->m_Regs[EP1] & ~0x07) | 0x40 | BP_Filter; /* Dis_Power_level = 1, Fi… in ChannelConfiguration()
1030 state->m_Regs[EP5] = (state->m_Regs[EP5] & ~0x07) | IR_Meas; in ChannelConfiguration()
1031 state->m_Regs[EP2] = (RF_Band << 5) | GainTaper; in ChannelConfiguration()
1033 state->m_Regs[EB1] = (state->m_Regs[EB1] & ~0x07) | in ChannelConfiguration()
1048 state->m_Regs[EB4] |= 0x20; /* LO_forceSrce = 1 */ in ChannelConfiguration()
1053 state->m_Regs[EB4] &= ~0x20; /* LO_forceSrce = 0 */ in ChannelConfiguration()
1065 state->m_Regs[MPD] = (state->m_Regs[MPD] & ~0x7F) | (PostDiv & 0x77); in ChannelConfiguration()
1073 state->m_Regs[EB7] |= 0x20; /* CAL_forceSrce = 1 */ in ChannelConfiguration()
1078 state->m_Regs[EB7] &= ~0x20; /* CAL_forceSrce = 0 */ in ChannelConfiguration()
1085 state->m_Regs[EP3] |= 0x04; /* RFAGC to normal mode */ in ChannelConfiguration()