Home
last modified time | relevance | path

Searched refs:tssi_offset (Results 1 – 5 of 5) sorted by relevance

/Linux-v6.6/drivers/net/wireless/mediatek/mt76/mt76x0/
Dphy.c703 int tssi_offset, tssi_db, ret; in mt76x0_phy_get_delta_power() local
722 tssi_offset = val >> 8; in mt76x0_phy_get_delta_power()
723 if ((tssi_offset >= 64 && tssi_offset <= 127) || in mt76x0_phy_get_delta_power()
724 (tssi_offset & BIT(7))) in mt76x0_phy_get_delta_power()
725 tssi_offset -= BIT(8); in mt76x0_phy_get_delta_power()
729 tssi_offset = val >> 8; in mt76x0_phy_get_delta_power()
730 if (tssi_offset & BIT(7)) in mt76x0_phy_get_delta_power()
731 tssi_offset -= BIT(8); in mt76x0_phy_get_delta_power()
778 tssi_db += ((tssi_offset - 50) << 10); /* offset s4.3 */ in mt76x0_phy_get_delta_power()
785 tssi_db += (tssi_offset << 9); /* offset s3.4 */ in mt76x0_phy_get_delta_power()
/Linux-v6.6/drivers/net/wireless/mediatek/mt76/mt76x2/
Deeprom.h29 s8 tssi_offset; member
Dphy.c229 t.offset0 = txp.chain[0].tssi_offset; in mt76x2_phy_tssi_compensate()
231 t.offset1 = txp.chain[1].tssi_offset; in mt76x2_phy_tssi_compensate()
Deeprom.c364 t->chain[chain].tssi_offset = data[1]; in mt76x2_get_power_info_2g()
416 t->chain[chain].tssi_offset = data[1]; in mt76x2_get_power_info_5g()
/Linux-v6.6/drivers/net/wireless/mediatek/mt7601u/
Dphy.c880 char tssi_offset; in mt7601u_tssi_cal() local
905 tssi_offset = dev->ee->tssi_data.offset[0]; in mt7601u_tssi_cal()
907 tssi_offset = dev->ee->tssi_data.offset[1]; in mt7601u_tssi_cal()
909 tssi_offset = dev->ee->tssi_data.offset[2]; in mt7601u_tssi_cal()
914 curr_pwr = tssi_db * dev->ee->tssi_data.slope + (tssi_offset << 9); in mt7601u_tssi_cal()