Home
last modified time | relevance | path

Searched refs:tssi_db (Results 1 – 2 of 2) sorted by relevance

/drivers/net/wireless/mediatek/mt7601u/
Dphy.c630 mt7601u_set_initial_tssi(struct mt7601u_dev *dev, s16 tssi_db, s16 tssi_hvga_db) in mt7601u_set_initial_tssi() argument
635 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() local
900 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()
/drivers/net/wireless/mediatek/mt76/mt76x0/
Dphy.c703 int tssi_offset, tssi_db, ret; in mt76x0_phy_get_delta_power() local
776 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()