Searched refs:tssi_db (Results 1 – 2 of 2) sorted by relevance
630 mt7601u_set_initial_tssi(struct mt7601u_dev *dev, s16 tssi_db, s16 tssi_hvga_db) in mt7601u_set_initial_tssi() argument635 init_offset = -((tssi_db * d->slope + d->offset[1]) / 4096) + 10; in mt7601u_set_initial_tssi()882 s16 tssi_m_dc, tssi_db; in mt7601u_tssi_cal() local900 tssi_db = lin2dBd(tssi_m_dc); in mt7601u_tssi_cal()902 tssi_m_dc, tssi_db, hvga); in mt7601u_tssi_cal()912 tssi_db -= dev->tssi_init_hvga_offset_db; in mt7601u_tssi_cal()914 curr_pwr = tssi_db * dev->ee->tssi_data.slope + (tssi_offset << 9); in mt7601u_tssi_cal()
703 int tssi_offset, tssi_db, ret; in mt76x0_phy_get_delta_power() local776 tssi_db = mt76x0_phy_lin2db(ltssi - dev->cal.tssi_dc) * tssi_slope; in mt76x0_phy_get_delta_power()778 tssi_db += ((tssi_offset - 50) << 10); /* offset s4.3 */ in mt76x0_phy_get_delta_power()779 tssi_target -= tssi_db; in mt76x0_phy_get_delta_power()785 tssi_db += (tssi_offset << 9); /* offset s3.4 */ in mt76x0_phy_get_delta_power()786 tssi_target -= tssi_db; in mt76x0_phy_get_delta_power()