Lines Matching full:status

255 	int status = 0;  in ThermometerRead()  local
260 status = UpdateReg(state, TM); in ThermometerRead()
261 if (status < 0) in ThermometerRead()
263 status = Read(state, Regs); in ThermometerRead()
264 if (status < 0) in ThermometerRead()
269 status = UpdateReg(state, TM); in ThermometerRead()
270 if (status < 0) in ThermometerRead()
273 status = Read(state, Regs); in ThermometerRead()
274 if (status < 0) in ThermometerRead()
281 status = UpdateReg(state, TM); in ThermometerRead()
282 if (status < 0) in ThermometerRead()
285 status = UpdateReg(state, EP4); in ThermometerRead()
286 if (status < 0) in ThermometerRead()
290 return status; in ThermometerRead()
295 int status = 0; in StandBy() local
298 status = UpdateReg(state, EB12); in StandBy()
299 if (status < 0) in StandBy()
302 status = UpdateReg(state, EB18); in StandBy()
303 if (status < 0) in StandBy()
307 status = UpdateReg(state, EP3); in StandBy()
308 if (status < 0) in StandBy()
311 status = UpdateRegs(state, EB21, EB23); in StandBy()
312 if (status < 0) in StandBy()
315 return status; in StandBy()
369 int status = 0; in CalibrateRF() local
378 status = UpdateReg(state, EP4); in CalibrateRF()
379 if (status < 0) in CalibrateRF()
382 status = UpdateReg(state, EB18); in CalibrateRF()
383 if (status < 0) in CalibrateRF()
401 status = UpdateRegs(state, EP1, EP3); in CalibrateRF()
402 if (status < 0) in CalibrateRF()
404 status = UpdateReg(state, EB13); in CalibrateRF()
405 if (status < 0) in CalibrateRF()
409 status = UpdateReg(state, EB4); in CalibrateRF()
410 if (status < 0) in CalibrateRF()
414 status = UpdateReg(state, EB7); in CalibrateRF()
415 if (status < 0) in CalibrateRF()
419 status = UpdateReg(state, EB14); in CalibrateRF()
420 if (status < 0) in CalibrateRF()
424 status = UpdateReg(state, EB20); in CalibrateRF()
425 if (status < 0) in CalibrateRF()
429 status = UpdateRegs(state, EP4, EP5); in CalibrateRF()
430 if (status < 0) in CalibrateRF()
433 status = CalcCalPLL(state, freq); in CalibrateRF()
434 if (status < 0) in CalibrateRF()
436 status = CalcMainPLL(state, freq + 1000000); in CalibrateRF()
437 if (status < 0) in CalibrateRF()
441 status = UpdateReg(state, EP2); in CalibrateRF()
442 if (status < 0) in CalibrateRF()
444 status = UpdateReg(state, EP1); in CalibrateRF()
445 if (status < 0) in CalibrateRF()
447 status = UpdateReg(state, EP2); in CalibrateRF()
448 if (status < 0) in CalibrateRF()
450 status = UpdateReg(state, EP1); in CalibrateRF()
451 if (status < 0) in CalibrateRF()
455 status = UpdateReg(state, EB4); in CalibrateRF()
456 if (status < 0) in CalibrateRF()
460 status = UpdateReg(state, EB7); in CalibrateRF()
461 if (status < 0) in CalibrateRF()
466 status = UpdateReg(state, EB20); in CalibrateRF()
467 if (status < 0) in CalibrateRF()
474 status = UpdateReg(state, EB18); in CalibrateRF()
475 if (status < 0) in CalibrateRF()
477 status = UpdateRegs(state, EP3, EP4); in CalibrateRF()
478 if (status < 0) in CalibrateRF()
480 status = UpdateReg(state, EP1); in CalibrateRF()
481 if (status < 0) in CalibrateRF()
484 status = ReadExtented(state, Regs); in CalibrateRF()
485 if (status < 0) in CalibrateRF()
491 return status; in CalibrateRF()
497 int status = 0; in RFTrackingFiltersInit() local
517 status = PowerScan(state, RFBand, RF1, &RF1, &bcal); in RFTrackingFiltersInit()
518 if (status < 0) in RFTrackingFiltersInit()
521 status = CalibrateRF(state, RFBand, RF1, &Cprog_cal1); in RFTrackingFiltersInit()
522 if (status < 0) in RFTrackingFiltersInit()
534 status = PowerScan(state, RFBand, RF2, &RF2, &bcal); in RFTrackingFiltersInit()
535 if (status < 0) in RFTrackingFiltersInit()
538 status = CalibrateRF(state, RFBand, RF2, &Cprog_cal2); in RFTrackingFiltersInit()
539 if (status < 0) in RFTrackingFiltersInit()
553 status = PowerScan(state, RFBand, RF3, &RF3, &bcal); in RFTrackingFiltersInit()
554 if (status < 0) in RFTrackingFiltersInit()
557 status = CalibrateRF(state, RFBand, RF3, &Cprog_cal3); in RFTrackingFiltersInit()
558 if (status < 0) in RFTrackingFiltersInit()
579 return status; in RFTrackingFiltersInit()
585 int status = 0; in PowerScan() local
608 status = UpdateReg(state, EP2); in PowerScan()
609 if (status < 0) in PowerScan()
611 status = UpdateReg(state, EB14); in PowerScan()
612 if (status < 0) in PowerScan()
616 status = CalcMainPLL(state, freq_MainPLL); in PowerScan()
617 if (status < 0) in PowerScan()
621 status = UpdateReg(state, EP4); in PowerScan()
622 if (status < 0) in PowerScan()
624 status = UpdateReg(state, EP2); /* Launch power measurement */ in PowerScan()
625 if (status < 0) in PowerScan()
627 status = ReadExtented(state, Regs); in PowerScan()
628 if (status < 0) in PowerScan()
637 status = CalcMainPLL(state, freq_MainPLL); in PowerScan()
638 if (status < 0) in PowerScan()
642 status = UpdateReg(state, EP2); /* Launch power measurement */ in PowerScan()
643 if (status < 0) in PowerScan()
645 status = ReadExtented(state, Regs); in PowerScan()
646 if (status < 0) in PowerScan()
660 if (status < 0) in PowerScan()
669 return status; in PowerScan()
674 int status = 0; in PowerScanInit() local
678 status = UpdateRegs(state, EP3, EP4); in PowerScanInit()
679 if (status < 0) in PowerScanInit()
682 status = UpdateReg(state, EB18); in PowerScanInit()
683 if (status < 0) in PowerScanInit()
687 status = UpdateRegs(state, EB21, EB23); in PowerScanInit()
688 if (status < 0) in PowerScanInit()
691 return status; in PowerScanInit()
696 int status = 0; in CalcRFFilterCurve() local
699 status = PowerScanInit(state); in CalcRFFilterCurve()
700 if (status < 0) in CalcRFFilterCurve()
702 status = RFTrackingFiltersInit(state, 0); in CalcRFFilterCurve()
703 if (status < 0) in CalcRFFilterCurve()
705 status = RFTrackingFiltersInit(state, 1); in CalcRFFilterCurve()
706 if (status < 0) in CalcRFFilterCurve()
708 status = RFTrackingFiltersInit(state, 2); in CalcRFFilterCurve()
709 if (status < 0) in CalcRFFilterCurve()
711 status = RFTrackingFiltersInit(state, 3); in CalcRFFilterCurve()
712 if (status < 0) in CalcRFFilterCurve()
714 status = RFTrackingFiltersInit(state, 4); in CalcRFFilterCurve()
715 if (status < 0) in CalcRFFilterCurve()
717 status = RFTrackingFiltersInit(state, 5); in CalcRFFilterCurve()
718 if (status < 0) in CalcRFFilterCurve()
720 status = RFTrackingFiltersInit(state, 6); in CalcRFFilterCurve()
721 if (status < 0) in CalcRFFilterCurve()
723 status = ThermometerRead(state, &state->m_TMValue_RFCal); /* also switches off Cal mode !!! */ in CalcRFFilterCurve()
724 if (status < 0) in CalcRFFilterCurve()
728 return status; in CalcRFFilterCurve()
745 int status = 0; in FixedContentsI2CUpdate() local
748 status = UpdateRegs(state, TM, EB23); in FixedContentsI2CUpdate()
749 if (status < 0) in FixedContentsI2CUpdate()
754 status = UpdateReg(state, EB17); in FixedContentsI2CUpdate()
755 if (status < 0) in FixedContentsI2CUpdate()
758 status = UpdateReg(state, EB17); in FixedContentsI2CUpdate()
759 if (status < 0) in FixedContentsI2CUpdate()
762 status = UpdateReg(state, EB17); in FixedContentsI2CUpdate()
763 if (status < 0) in FixedContentsI2CUpdate()
766 status = UpdateReg(state, EB17); in FixedContentsI2CUpdate()
767 if (status < 0) in FixedContentsI2CUpdate()
782 status = UpdateRegs(state, EP2, MD3); /* diff between sw and datasheet (ep3-md3) */ in FixedContentsI2CUpdate()
783 if (status < 0) in FixedContentsI2CUpdate()
788 status = UpdateReg(state, EB4); in FixedContentsI2CUpdate()
789 if (status < 0) in FixedContentsI2CUpdate()
793 status = UpdateReg(state, EB4); in FixedContentsI2CUpdate()
794 if (status < 0) in FixedContentsI2CUpdate()
799 status = UpdateReg(state, EP1); in FixedContentsI2CUpdate()
800 if (status < 0) in FixedContentsI2CUpdate()
808 status = UpdateRegs(state, EP3, CD3); in FixedContentsI2CUpdate()
809 if (status < 0) in FixedContentsI2CUpdate()
812 status = UpdateReg(state, EP2); in FixedContentsI2CUpdate()
813 if (status < 0) in FixedContentsI2CUpdate()
824 status = UpdateRegs(state, EP3, MD3); in FixedContentsI2CUpdate()
825 if (status < 0) in FixedContentsI2CUpdate()
829 status = UpdateReg(state, EP1); in FixedContentsI2CUpdate()
830 if (status < 0) in FixedContentsI2CUpdate()
838 status = UpdateRegs(state, EP3, CD3); in FixedContentsI2CUpdate()
839 if (status < 0) in FixedContentsI2CUpdate()
842 status = UpdateReg(state, EP2); in FixedContentsI2CUpdate()
843 if (status < 0) in FixedContentsI2CUpdate()
855 status = UpdateRegs(state, EP3, MD3); in FixedContentsI2CUpdate()
856 if (status < 0) in FixedContentsI2CUpdate()
859 status = UpdateReg(state, EP1); in FixedContentsI2CUpdate()
860 if (status < 0) in FixedContentsI2CUpdate()
866 status = UpdateRegs(state, EP3, CD3); in FixedContentsI2CUpdate()
867 if (status < 0) in FixedContentsI2CUpdate()
870 status = UpdateReg(state, EP2); in FixedContentsI2CUpdate()
871 if (status < 0) in FixedContentsI2CUpdate()
877 status = UpdateReg(state, EP4); in FixedContentsI2CUpdate()
878 if (status < 0) in FixedContentsI2CUpdate()
880 status = UpdateReg(state, EP1); in FixedContentsI2CUpdate()
881 if (status < 0) in FixedContentsI2CUpdate()
885 return status; in FixedContentsI2CUpdate()
890 int status = 0; in InitCal() local
893 status = FixedContentsI2CUpdate(state); in InitCal()
894 if (status < 0) in InitCal()
896 status = CalcRFFilterCurve(state); in InitCal()
897 if (status < 0) in InitCal()
899 status = StandBy(state); in InitCal()
900 if (status < 0) in InitCal()
904 return status; in InitCal()
910 int status = 0; in RFTrackingFiltersCorrection() local
934 status = UpdateReg(state, EP3); in RFTrackingFiltersCorrection()
935 if (status < 0) in RFTrackingFiltersCorrection()
938 status = ThermometerRead(state, &TMValue_Current); in RFTrackingFiltersCorrection()
939 if (status < 0) in RFTrackingFiltersCorrection()
961 status = UpdateReg(state, EB14); in RFTrackingFiltersCorrection()
962 if (status < 0) in RFTrackingFiltersCorrection()
966 return status; in RFTrackingFiltersCorrection()
974 int status = 0; in ChannelConfiguration() local
1025 status = UpdateRegs(state, EB22, EB23); in ChannelConfiguration()
1026 if (status < 0) in ChannelConfiguration()
1037 status = UpdateReg(state, EB1); in ChannelConfiguration()
1038 if (status < 0) in ChannelConfiguration()
1042 status = CalcMainPLL(state, Frequency + IntermediateFrequency); in ChannelConfiguration()
1043 if (status < 0) in ChannelConfiguration()
1045 status = UpdateRegs(state, TM, EP5); in ChannelConfiguration()
1046 if (status < 0) in ChannelConfiguration()
1049 status = UpdateReg(state, EB4); in ChannelConfiguration()
1050 if (status < 0) in ChannelConfiguration()
1054 status = UpdateReg(state, EB4); in ChannelConfiguration()
1055 if (status < 0) in ChannelConfiguration()
1060 status = CalcCalPLL(state, Frequency + IntermediateFrequency); in ChannelConfiguration()
1061 if (status < 0) in ChannelConfiguration()
1066 status = UpdateReg(state, MPD); in ChannelConfiguration()
1067 if (status < 0) in ChannelConfiguration()
1069 status = UpdateRegs(state, TM, EP5); in ChannelConfiguration()
1070 if (status < 0) in ChannelConfiguration()
1074 status = UpdateReg(state, EB7); in ChannelConfiguration()
1075 if (status < 0) in ChannelConfiguration()
1079 status = UpdateReg(state, EB7); in ChannelConfiguration()
1080 if (status < 0) in ChannelConfiguration()
1086 status = UpdateReg(state, EP3); in ChannelConfiguration()
1087 if (status < 0) in ChannelConfiguration()
1091 return status; in ChannelConfiguration()
1117 int status = 0; in set_params() local
1154 status = RFTrackingFiltersCorrection(state, state->m_Frequency); in set_params()
1155 if (status < 0) in set_params()
1157 status = ChannelConfiguration(state, state->m_Frequency, in set_params()
1159 if (status < 0) in set_params()
1164 return status; in set_params()