Lines Matching refs:tssi_target

702 	int tssi_target = target_power << 12, tssi_slope;  in mt76x0_phy_get_delta_power()  local
738 tssi_target += 29491; /* 3.6 * 8192 */ in mt76x0_phy_get_delta_power()
743 tssi_target += 4424; /* 0.54 * 8192 */ in mt76x0_phy_get_delta_power()
754 tssi_target += offset; in mt76x0_phy_get_delta_power()
757 tssi_target += 6554; in mt76x0_phy_get_delta_power()
764 tssi_target -= 49152; /* -6db * 8192 */ in mt76x0_phy_get_delta_power()
767 tssi_target -= 98304; /* -12db * 8192 */ in mt76x0_phy_get_delta_power()
770 tssi_target += 49152; /* 6db * 8192 */ in mt76x0_phy_get_delta_power()
779 tssi_target -= tssi_db; in mt76x0_phy_get_delta_power()
780 if (ltssi > 254 && tssi_target > 0) { in mt76x0_phy_get_delta_power()
782 tssi_target = 0; in mt76x0_phy_get_delta_power()
786 tssi_target -= tssi_db; in mt76x0_phy_get_delta_power()
788 if ((ltssi > 126 && tssi_target > 0) || in mt76x0_phy_get_delta_power()
789 ((ltssi - dev->cal.tssi_dc) < 1 && tssi_target < 0)) { in mt76x0_phy_get_delta_power()
790 tssi_target = 0; in mt76x0_phy_get_delta_power()
794 if ((dev->cal.tssi_target ^ tssi_target) < 0 && in mt76x0_phy_get_delta_power()
795 dev->cal.tssi_target > -4096 && dev->cal.tssi_target < 4096 && in mt76x0_phy_get_delta_power()
796 tssi_target > -4096 && tssi_target < 4096) { in mt76x0_phy_get_delta_power()
797 if ((tssi_target < 0 && in mt76x0_phy_get_delta_power()
798 tssi_target + dev->cal.tssi_target > 0) || in mt76x0_phy_get_delta_power()
799 (tssi_target > 0 && in mt76x0_phy_get_delta_power()
800 tssi_target + dev->cal.tssi_target <= 0)) in mt76x0_phy_get_delta_power()
801 tssi_target = 0; in mt76x0_phy_get_delta_power()
803 dev->cal.tssi_target = tssi_target; in mt76x0_phy_get_delta_power()
805 dev->cal.tssi_target = tssi_target; in mt76x0_phy_get_delta_power()
809 if (tssi_target > 0) in mt76x0_phy_get_delta_power()
810 tssi_target += 2048; in mt76x0_phy_get_delta_power()
812 tssi_target -= 2048; in mt76x0_phy_get_delta_power()
813 tssi_target >>= 12; in mt76x0_phy_get_delta_power()
818 ret += tssi_target; in mt76x0_phy_get_delta_power()