Lines Matching refs:rateval
184 u16 rateval; in mt76x02_mac_tx_rate_val() local
218 rateval = FIELD_PREP(MT_RXWI_RATE_INDEX, rate_idx); in mt76x02_mac_tx_rate_val()
219 rateval |= FIELD_PREP(MT_RXWI_RATE_PHY, phy); in mt76x02_mac_tx_rate_val()
220 rateval |= FIELD_PREP(MT_RXWI_RATE_BW, bw); in mt76x02_mac_tx_rate_val()
222 rateval |= MT_RXWI_RATE_SGI; in mt76x02_mac_tx_rate_val()
225 return rateval; in mt76x02_mac_tx_rate_val()
232 u16 rateval; in mt76x02_mac_wcid_set_rate() local
236 rateval = mt76x02_mac_tx_rate_val(dev, rate, &nss); in mt76x02_mac_wcid_set_rate()
237 tx_info = FIELD_PREP(MT_WCID_TX_INFO_RATE, rateval) | in mt76x02_mac_wcid_set_rate()
345 u16 txwi_flags = 0, rateval; in mt76x02_mac_write_txwi() local
383 rateval = FIELD_GET(MT_WCID_TX_INFO_RATE, wcid_tx_info); in mt76x02_mac_write_txwi()
388 rateval = mt76x02_mac_tx_rate_val(dev, rate, &nss); in mt76x02_mac_write_txwi()
391 txwi->rate = cpu_to_le16(rateval); in mt76x02_mac_write_txwi()