Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt7601u/
Dphy.c627 mt7601u_set_initial_tssi(struct mt7601u_dev *dev, s16 tssi_db, s16 tssi_hvga_db) in mt7601u_set_initial_tssi() argument
632 init_offset = -((tssi_db * d->slope + d->offset[1]) / 4096) + 10; in mt7601u_set_initial_tssi()
879 s16 tssi_m_dc, tssi_db; in mt7601u_tssi_cal() local
897 tssi_db = lin2dBd(tssi_m_dc); in mt7601u_tssi_cal()
899 tssi_m_dc, tssi_db, hvga); in mt7601u_tssi_cal()
909 tssi_db -= dev->tssi_init_hvga_offset_db; in mt7601u_tssi_cal()
911 curr_pwr = tssi_db * dev->ee->tssi_data.slope + (tssi_offset << 9); in mt7601u_tssi_cal()
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt76/mt76x0/
Dphy.c701 int tssi_offset, tssi_db, ret; in mt76x0_phy_get_delta_power() local
774 tssi_db = mt76x0_phy_lin2db(ltssi - dev->cal.tssi_dc) * tssi_slope; in mt76x0_phy_get_delta_power()
776 tssi_db += ((tssi_offset - 50) << 10); /* offset s4.3 */ in mt76x0_phy_get_delta_power()
777 tssi_target -= tssi_db; in mt76x0_phy_get_delta_power()
783 tssi_db += (tssi_offset << 9); /* offset s3.4 */ in mt76x0_phy_get_delta_power()
784 tssi_target -= tssi_db; in mt76x0_phy_get_delta_power()