Home
last modified time | relevance | path

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

/freebsd/sys/contrib/dev/mediatek/mt76/mt76x2/
H A Dusb_phy.c88 int ch_group_index, freq, freq1, ret; in mt76x2u_phy_set_channel() local
99 ch_group_index = 0; in mt76x2u_phy_set_channel()
102 ch_group_index = 1; in mt76x2u_phy_set_channel()
104 channel += 2 - ch_group_index * 4; in mt76x2u_phy_set_channel()
107 ch_group_index = (freq - freq1 + 30) / 20; in mt76x2u_phy_set_channel()
108 if (WARN_ON(ch_group_index < 0 || ch_group_index > 3)) in mt76x2u_phy_set_channel()
109 ch_group_index = 0; in mt76x2u_phy_set_channel()
111 bw_index = ch_group_index; in mt76x2u_phy_set_channel()
112 channel += 6 - ch_group_index * 4; in mt76x2u_phy_set_channel()
117 ch_group_index = 0; in mt76x2u_phy_set_channel()
[all …]
H A Dpci_phy.c147 int ch_group_index; in mt76x2_phy_set_channel() local
162 ch_group_index = 0; in mt76x2_phy_set_channel()
165 ch_group_index = 1; in mt76x2_phy_set_channel()
167 channel += 2 - ch_group_index * 4; in mt76x2_phy_set_channel()
170 ch_group_index = (freq - freq1 + 30) / 20; in mt76x2_phy_set_channel()
171 if (WARN_ON(ch_group_index < 0 || ch_group_index > 3)) in mt76x2_phy_set_channel()
172 ch_group_index = 0; in mt76x2_phy_set_channel()
174 bw_index = ch_group_index; in mt76x2_phy_set_channel()
175 channel += 6 - ch_group_index * 4; in mt76x2_phy_set_channel()
180 ch_group_index = 0; in mt76x2_phy_set_channel()
[all …]