Searched refs:to_rssi (Results 1 – 5 of 5) sorted by relevance
/Linux-v6.6/drivers/net/wireless/mediatek/mt76/mt7921/ |
D | mac.c | 152 rssi[0] = to_rssi(GENMASK(7, 0), val); in mt7921_mac_sta_poll() 153 rssi[1] = to_rssi(GENMASK(15, 8), val); in mt7921_mac_sta_poll() 154 rssi[2] = to_rssi(GENMASK(23, 16), val); in mt7921_mac_sta_poll() 155 rssi[3] = to_rssi(GENMASK(31, 14), val); in mt7921_mac_sta_poll() 365 status->chain_signal[0] = to_rssi(MT_PRXV_RCPI0, v1); in mt7921_mac_fill_rx() 366 status->chain_signal[1] = to_rssi(MT_PRXV_RCPI1, v1); in mt7921_mac_fill_rx() 367 status->chain_signal[2] = to_rssi(MT_PRXV_RCPI2, v1); in mt7921_mac_fill_rx() 368 status->chain_signal[3] = to_rssi(MT_PRXV_RCPI3, v1); in mt7921_mac_fill_rx()
|
D | mt7921.h | 98 #define to_rssi(field, rxv) ((FIELD_GET(field, rxv) - 220) / 2) macro
|
/Linux-v6.6/drivers/net/wireless/mediatek/mt76/mt7915/ |
D | mac.c | 12 #define to_rssi(field, rcpi) ((FIELD_GET(field, rcpi) - 220) / 2) macro 217 rssi[0] = to_rssi(GENMASK(7, 0), val); in mt7915_mac_sta_poll() 218 rssi[1] = to_rssi(GENMASK(15, 8), val); in mt7915_mac_sta_poll() 219 rssi[2] = to_rssi(GENMASK(23, 16), val); in mt7915_mac_sta_poll() 220 rssi[3] = to_rssi(GENMASK(31, 14), val); in mt7915_mac_sta_poll() 454 status->chain_signal[0] = to_rssi(MT_PRXV_RCPI0, v1); in mt7915_mac_fill_rx() 455 status->chain_signal[1] = to_rssi(MT_PRXV_RCPI1, v1); in mt7915_mac_fill_rx() 456 status->chain_signal[2] = to_rssi(MT_PRXV_RCPI2, v1); in mt7915_mac_fill_rx() 457 status->chain_signal[3] = to_rssi(MT_PRXV_RCPI3, v1); in mt7915_mac_fill_rx()
|
/Linux-v6.6/drivers/net/wireless/mediatek/mt76/mt7996/ |
D | mac.c | 14 #define to_rssi(field, rcpi) ((FIELD_GET(field, rcpi) - 220) / 2) macro 224 rssi[0] = to_rssi(GENMASK(7, 0), val); in mt7996_mac_sta_poll() 225 rssi[1] = to_rssi(GENMASK(15, 8), val); in mt7996_mac_sta_poll() 226 rssi[2] = to_rssi(GENMASK(23, 16), val); in mt7996_mac_sta_poll() 227 rssi[3] = to_rssi(GENMASK(31, 14), val); in mt7996_mac_sta_poll() 627 status->chain_signal[0] = to_rssi(MT_PRXV_RCPI0, v3); in mt7996_mac_fill_rx() 628 status->chain_signal[1] = to_rssi(MT_PRXV_RCPI1, v3); in mt7996_mac_fill_rx() 629 status->chain_signal[2] = to_rssi(MT_PRXV_RCPI2, v3); in mt7996_mac_fill_rx() 630 status->chain_signal[3] = to_rssi(MT_PRXV_RCPI3, v3); in mt7996_mac_fill_rx()
|
/Linux-v6.6/drivers/net/wireless/mediatek/mt76/mt7615/ |
D | mac.c | 20 #define to_rssi(field, rxv) ((FIELD_GET(field, rxv) - 220) / 2) macro 579 status->chain_signal[0] = to_rssi(MT_RXV4_RCPI0, rxdg3); in mt7615_mac_fill_rx() 580 status->chain_signal[1] = to_rssi(MT_RXV4_RCPI1, rxdg3); in mt7615_mac_fill_rx() 581 status->chain_signal[2] = to_rssi(MT_RXV4_RCPI2, rxdg3); in mt7615_mac_fill_rx() 582 status->chain_signal[3] = to_rssi(MT_RXV4_RCPI3, rxdg3); in mt7615_mac_fill_rx()
|