• Home
  • Raw
  • Download

Lines Matching refs:m_Regs

102 	u8    m_Regs[NUM_REGS];  member
179 &state->m_Regs[RegFrom], RegTo-RegFrom+1); in UpdateRegs()
183 return WriteReg(state, Reg, state->m_Regs[Reg]); in UpdateReg()
280 state->m_Regs[TM] |= 0x10; in ThermometerRead()
289 state->m_Regs[TM] ^= 0x20; in ThermometerRead()
301 state->m_Regs[TM] &= ~0x10; /* Thermometer off */ in ThermometerRead()
305 state->m_Regs[EP4] &= ~0x03; /* CAL_mode = 0 ????????? */ in ThermometerRead()
318 state->m_Regs[EB12] &= ~0x20; /* PD_AGC1_Det = 0 */ in StandBy()
322 state->m_Regs[EB18] &= ~0x83; /* AGC1_loop_off = 0, AGC1_Gain = 6 dB */ in StandBy()
326 state->m_Regs[EB21] |= 0x03; /* AGC2_Gain = -6 dB */ in StandBy()
327 state->m_Regs[EP3] = state->m_EP3_Standby; in StandBy()
331 state->m_Regs[EB23] &= ~0x06; /* ForceLP_Fc2_En = 0, LP_Fc[2] = 0 */ in StandBy()
355 state->m_Regs[MPD] = PostDiv & 0x77; in CalcMainPLL()
356 state->m_Regs[MD1] = ((MainDiv >> 16) & 0x7F); in CalcMainPLL()
357 state->m_Regs[MD2] = ((MainDiv >> 8) & 0xFF); in CalcMainPLL()
358 state->m_Regs[MD3] = (MainDiv & 0xFF); in CalcMainPLL()
379 state->m_Regs[CPD] = PostDiv; in CalcCalPLL()
380 state->m_Regs[CD1] = ((CalDiv >> 16) & 0xFF); in CalcCalPLL()
381 state->m_Regs[CD2] = ((CalDiv >> 8) & 0xFF); in CalcCalPLL()
382 state->m_Regs[CD3] = (CalDiv & 0xFF); in CalcCalPLL()
398 state->m_Regs[EP4] &= ~0x03; /* CAL_mode = 0 */ in CalibrateRF()
402 state->m_Regs[EB18] |= 0x03; /* AGC1_Gain = 3 */ in CalibrateRF()
409 if (state->m_Regs[ID] != 0x83) /* C1: ID == 83, C2: ID == 84 */ in CalibrateRF()
410 state->m_Regs[EP3] |= 0x40; /* SM_LT = 1 */ in CalibrateRF()
417 state->m_Regs[EP1] = (state->m_Regs[EP1] & ~0x07) | BP_Filter; in CalibrateRF()
418 state->m_Regs[EP2] = (RFBand << 5) | GainTaper; in CalibrateRF()
420 state->m_Regs[EB13] = (state->m_Regs[EB13] & ~0x7C) | (RFC_K << 4) | (RFC_M << 2); in CalibrateRF()
429 state->m_Regs[EB4] |= 0x20; /* LO_ForceSrce = 1 */ in CalibrateRF()
434 state->m_Regs[EB7] |= 0x20; /* CAL_ForceSrce = 1 */ in CalibrateRF()
439 state->m_Regs[EB14] = 0; /* RFC_Cprog = 0 */ in CalibrateRF()
444 state->m_Regs[EB20] &= ~0x20; /* ForceLock = 0; */ in CalibrateRF()
449 state->m_Regs[EP4] |= 0x03; /* CAL_Mode = 3 */ in CalibrateRF()
475 state->m_Regs[EB4] &= ~0x20; /* LO_ForceSrce = 0 */ in CalibrateRF()
480 state->m_Regs[EB7] &= ~0x20; /* CAL_ForceSrce = 0 */ in CalibrateRF()
486 state->m_Regs[EB20] |= 0x20; /* ForceLock = 1; */ in CalibrateRF()
492 state->m_Regs[EP4] &= ~0x03; /* CAL_Mode = 0 */ in CalibrateRF()
493 state->m_Regs[EP3] &= ~0x40; /* SM_LT = 0 */ in CalibrateRF()
494 state->m_Regs[EB18] &= ~0x03; /* AGC1_Gain = 0 */ in CalibrateRF()
627 state->m_Regs[EP2] = (RFBand << 5) | Gain_Taper; in PowerScan()
628 state->m_Regs[EB14] = (RFC_Cprog); in PowerScan()
641 state->m_Regs[EP4] = (state->m_Regs[EP4] & ~0x03) | 1; /* CAL_mode = 1 */ in PowerScan()
652 state->m_Regs[ID] = Regs[ID]; /* Chip version, (needed for C1 workarround in CalibrateRF) */ in PowerScan()
698 state->m_Regs[EP3] = (state->m_Regs[EP3] & ~0x1F) | 0x12; in PowerScanInit()
699 state->m_Regs[EP4] = (state->m_Regs[EP4] & ~0x1F); /* If level = 0, Cal mode = 0 */ in PowerScanInit()
703 state->m_Regs[EB18] = (state->m_Regs[EB18] & ~0x03); /* AGC 1 Gain = 0 */ in PowerScanInit()
707 state->m_Regs[EB21] = (state->m_Regs[EB21] & ~0x03); /* AGC 2 Gain = 0 (Datasheet = 3) */ in PowerScanInit()
708 state->m_Regs[EB23] = (state->m_Regs[EB23] | 0x06); /* ForceLP_Fc2_En = 1, LPFc[2] = 1 */ in PowerScanInit()
768 memcpy(&state->m_Regs[TM], InitRegs, EB23 - TM + 1); in FixedContentsI2CUpdate()
775 state->m_Regs[EB17] = 0x00; in FixedContentsI2CUpdate()
779 state->m_Regs[EB17] = 0x03; in FixedContentsI2CUpdate()
783 state->m_Regs[EB17] = 0x43; in FixedContentsI2CUpdate()
787 state->m_Regs[EB17] = 0x4C; in FixedContentsI2CUpdate()
793 state->m_Regs[EP3] = 0x1F; in FixedContentsI2CUpdate()
794 state->m_Regs[EP4] = 0x66; in FixedContentsI2CUpdate()
795 state->m_Regs[EP5] = 0x81; in FixedContentsI2CUpdate()
796 state->m_Regs[CPD] = 0xCC; in FixedContentsI2CUpdate()
797 state->m_Regs[CD1] = 0x6C; in FixedContentsI2CUpdate()
798 state->m_Regs[CD2] = 0x00; in FixedContentsI2CUpdate()
799 state->m_Regs[CD3] = 0x00; in FixedContentsI2CUpdate()
800 state->m_Regs[MPD] = 0xC5; in FixedContentsI2CUpdate()
801 state->m_Regs[MD1] = 0x77; in FixedContentsI2CUpdate()
802 state->m_Regs[MD2] = 0x08; in FixedContentsI2CUpdate()
803 state->m_Regs[MD3] = 0x00; in FixedContentsI2CUpdate()
809 state->m_Regs[EB4] = 0x61; /* missing in sw */ in FixedContentsI2CUpdate()
814 state->m_Regs[EB4] = 0x41; in FixedContentsI2CUpdate()
826 state->m_Regs[EP5] = 0x85; in FixedContentsI2CUpdate()
827 state->m_Regs[CPD] = 0xCB; in FixedContentsI2CUpdate()
828 state->m_Regs[CD1] = 0x66; in FixedContentsI2CUpdate()
829 state->m_Regs[CD2] = 0x70; in FixedContentsI2CUpdate()
840 state->m_Regs[EP5] = 0x82; in FixedContentsI2CUpdate()
841 state->m_Regs[CPD] = 0xA8; in FixedContentsI2CUpdate()
842 state->m_Regs[CD2] = 0x00; in FixedContentsI2CUpdate()
843 state->m_Regs[MPD] = 0xA1; /* Datasheet = 0xA9 */ in FixedContentsI2CUpdate()
844 state->m_Regs[MD1] = 0x73; in FixedContentsI2CUpdate()
845 state->m_Regs[MD2] = 0x1A; in FixedContentsI2CUpdate()
856 state->m_Regs[EP5] = 0x86; in FixedContentsI2CUpdate()
857 state->m_Regs[CPD] = 0xA8; in FixedContentsI2CUpdate()
858 state->m_Regs[CD1] = 0x66; in FixedContentsI2CUpdate()
859 state->m_Regs[CD2] = 0xA0; in FixedContentsI2CUpdate()
870 state->m_Regs[EP5] = 0x83; in FixedContentsI2CUpdate()
871 state->m_Regs[CPD] = 0x98; in FixedContentsI2CUpdate()
872 state->m_Regs[CD1] = 0x65; in FixedContentsI2CUpdate()
873 state->m_Regs[CD2] = 0x00; in FixedContentsI2CUpdate()
874 state->m_Regs[MPD] = 0x91; /* Datasheet = 0x91 */ in FixedContentsI2CUpdate()
875 state->m_Regs[MD1] = 0x71; in FixedContentsI2CUpdate()
876 state->m_Regs[MD2] = 0xCD; in FixedContentsI2CUpdate()
885 state->m_Regs[EP5] = 0x87; in FixedContentsI2CUpdate()
886 state->m_Regs[CD1] = 0x65; in FixedContentsI2CUpdate()
887 state->m_Regs[CD2] = 0x50; in FixedContentsI2CUpdate()
898 state->m_Regs[EP4] = 0x64; in FixedContentsI2CUpdate()
955 state->m_Regs[EP3] &= ~0xE0; /* Power up */ in RFTrackingFiltersCorrection()
981 state->m_Regs[EB14] = Capprox; in RFTrackingFiltersCorrection()
1017 state->m_Regs[EP3] = (state->m_Regs[EP3] & ~0x1F) | m_StandardTable[Standard].m_EP3_4_0; in ChannelConfiguration()
1018 state->m_Regs[EP3] &= ~0x04; /* switch RFAGC to high speed mode */ in ChannelConfiguration()
1021 …state->m_Regs[EP4] = state->m_EP4 | ((Standard > HF_AnalogMax) ? state->m_IFLevelDigital : state->… in ChannelConfiguration()
1024 state->m_Regs[EP4] = state->m_EP4 | state->m_IFLevelAnalog; in ChannelConfiguration()
1026 state->m_Regs[EP4] = state->m_EP4 | state->m_IFLevelDVBT; in ChannelConfiguration()
1028 state->m_Regs[EP4] = state->m_EP4 | state->m_IFLevelDVBC; in ChannelConfiguration()
1030 state->m_Regs[EP4] = state->m_EP4 | state->m_IFLevelDigital; in ChannelConfiguration()
1033 state->m_Regs[EP4] |= 0x80; in ChannelConfiguration()
1035 state->m_Regs[MPD] &= ~0x80; in ChannelConfiguration()
1037 state->m_Regs[MPD] |= 0x80; /* Add IF_notch for digital */ in ChannelConfiguration()
1039 state->m_Regs[EB22] = m_StandardTable[Standard].m_EB22; in ChannelConfiguration()
1043 state->m_Regs[EB23] |= 0x06; /* ForceLP_Fc2_En = 1, LPFc[2] = 1 */ in ChannelConfiguration()
1045 state->m_Regs[EB23] &= ~0x06; /* ForceLP_Fc2_En = 0, LPFc[2] = 0 */ in ChannelConfiguration()
1051 …state->m_Regs[EP1] = (state->m_Regs[EP1] & ~0x07) | 0x40 | BP_Filter; /* Dis_Power_level = 1, Fi… in ChannelConfiguration()
1052 state->m_Regs[EP5] = (state->m_Regs[EP5] & ~0x07) | IR_Meas; in ChannelConfiguration()
1053 state->m_Regs[EP2] = (RF_Band << 5) | GainTaper; in ChannelConfiguration()
1055 state->m_Regs[EB1] = (state->m_Regs[EB1] & ~0x07) | in ChannelConfiguration()
1070 state->m_Regs[EB4] |= 0x20; /* LO_forceSrce = 1 */ in ChannelConfiguration()
1075 state->m_Regs[EB4] &= ~0x20; /* LO_forceSrce = 0 */ in ChannelConfiguration()
1087 state->m_Regs[MPD] = (state->m_Regs[MPD] & ~0x7F) | (PostDiv & 0x77); in ChannelConfiguration()
1095 state->m_Regs[EB7] |= 0x20; /* CAL_forceSrce = 1 */ in ChannelConfiguration()
1100 state->m_Regs[EB7] &= ~0x20; /* CAL_forceSrce = 0 */ in ChannelConfiguration()
1107 state->m_Regs[EP3] |= 0x04; /* RFAGC to normal mode */ in ChannelConfiguration()