Home
last modified time | relevance | path

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

/linux/drivers/net/wireless/mediatek/mt76/
H A Dmt76x02_phy.c178 if (false_cca > 800 && dev->cal.agc_gain_adjust < limit) { in mt76x02_phy_adjust_vga_gain()
179 dev->cal.agc_gain_adjust += 2; in mt76x02_phy_adjust_vga_gain()
181 } else if ((false_cca < 10 && dev->cal.agc_gain_adjust > 0) || in mt76x02_phy_adjust_vga_gain()
182 (dev->cal.agc_gain_adjust >= limit && false_cca < 500)) { in mt76x02_phy_adjust_vga_gain()
183 dev->cal.agc_gain_adjust -= 2; in mt76x02_phy_adjust_vga_gain()
187 dev->cal.agc_lowest_gain = dev->cal.agc_gain_adjust >= limit; in mt76x02_phy_adjust_vga_gain()
H A Dmt76x02_debugfs.c82 seq_printf(file, "agc_gain_adjust: %d\n", dev->cal.agc_gain_adjust); in read_agc()
H A Dmt76x02.h45 s8 agc_gain_adjust; member
/linux/drivers/net/wireless/mediatek/mt76/mt76x2/
H A Dphy.c250 gain_val[0] = dev->cal.agc_gain_cur[0] - dev->cal.agc_gain_adjust; in mt76x2_phy_set_gain_val()
251 gain_val[1] = dev->cal.agc_gain_cur[1] - dev->cal.agc_gain_adjust; in mt76x2_phy_set_gain_val()
332 dev->cal.agc_gain_adjust = 0; in mt76x2_phy_update_channel_gain()
336 dev->cal.agc_gain_adjust = low_gain_delta; in mt76x2_phy_update_channel_gain()
/linux/drivers/net/wireless/mediatek/mt76/mt76x0/
H A Dphy.c1058 u8 gain = dev->cal.agc_gain_cur[0] - dev->cal.agc_gain_adjust; in mt76x0_phy_set_gain_val()
1091 dev->cal.agc_gain_adjust = (low_gain == 2) ? 0 : 10; in mt76x0_phy_update_channel_gain()