Searched refs:to_rssi (Results 1 – 7 of 7) sorted by relevance
/linux/drivers/net/wireless/mediatek/mt76/mt7921/ |
H A D | mac.c | 155 rssi[0] = to_rssi(GENMASK(7, 0), val); in mt7921_mac_sta_poll() 156 rssi[1] = to_rssi(GENMASK(15, 8), val); in mt7921_mac_sta_poll() 157 rssi[2] = to_rssi(GENMASK(23, 16), val); in mt7921_mac_sta_poll() 158 rssi[3] = to_rssi(GENMASK(31, 14), val); in mt7921_mac_sta_poll() 370 status->chain_signal[0] = to_rssi(MT_PRXV_RCPI0, v1); in mt7921_mac_fill_rx() 371 status->chain_signal[1] = to_rssi(MT_PRXV_RCPI1, v1); in mt7921_mac_fill_rx() 372 status->chain_signal[2] = to_rssi(MT_PRXV_RCPI2, v1); in mt7921_mac_fill_rx() 373 status->chain_signal[3] = to_rssi(MT_PRXV_RCPI3, v1); in mt7921_mac_fill_rx()
|
H A D | mt7921.h | 101 #define to_rssi(field, rxv) ((FIELD_GET(field, rxv) - 220) / 2) macro
|
/linux/drivers/net/wireless/mediatek/mt76/mt7925/ |
H A D | mac.c | 144 rssi[0] = to_rssi(GENMASK(7, 0), val); in mt7925_mac_sta_poll() 145 rssi[1] = to_rssi(GENMASK(15, 8), val); in mt7925_mac_sta_poll() 146 rssi[2] = to_rssi(GENMASK(23, 16), val); in mt7925_mac_sta_poll() 147 rssi[3] = to_rssi(GENMASK(31, 14), val); in mt7925_mac_sta_poll() 525 status->chain_signal[0] = to_rssi(MT_PRXV_RCPI0, v3); in mt7925_mac_fill_rx() 526 status->chain_signal[1] = to_rssi(MT_PRXV_RCPI1, v3); in mt7925_mac_fill_rx() 527 status->chain_signal[2] = to_rssi(MT_PRXV_RCPI2, v3); in mt7925_mac_fill_rx() 528 status->chain_signal[3] = to_rssi(MT_PRXV_RCPI3, v3); in mt7925_mac_fill_rx()
|
H A D | mt7925.h | 86 #define to_rssi(field, rxv) ((FIELD_GET(field, rxv) - 220) / 2) macro
|
/linux/drivers/net/wireless/mediatek/mt76/mt7915/ |
H A D | mac.c | 12 #define to_rssi(field, rcpi) ((FIELD_GET(field, rcpi) - 220) / 2) macro 224 rssi[0] = to_rssi(GENMASK(7, 0), val); in mt7915_mac_sta_poll() 225 rssi[1] = to_rssi(GENMASK(15, 8), val); in mt7915_mac_sta_poll() 226 rssi[2] = to_rssi(GENMASK(23, 16), val); in mt7915_mac_sta_poll() 227 rssi[3] = to_rssi(GENMASK(31, 14), val); in mt7915_mac_sta_poll() 461 status->chain_signal[0] = to_rssi(MT_PRXV_RCPI0, v1); in mt7915_mac_fill_rx() 462 status->chain_signal[1] = to_rssi(MT_PRXV_RCPI1, v1); in mt7915_mac_fill_rx() 463 status->chain_signal[2] = to_rssi(MT_PRXV_RCPI2, v1); in mt7915_mac_fill_rx() 464 status->chain_signal[3] = to_rssi(MT_PRXV_RCPI3, v1); in mt7915_mac_fill_rx()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7996/ |
H A D | mac.c | 14 #define to_rssi(field, rcpi) ((FIELD_GET(field, rcpi) - 220) / 2) macro 179 rssi[0] = to_rssi(GENMASK(7, 0), val); in mt7996_mac_sta_poll() 180 rssi[1] = to_rssi(GENMASK(15, 8), val); in mt7996_mac_sta_poll() 181 rssi[2] = to_rssi(GENMASK(23, 16), val); in mt7996_mac_sta_poll() 182 rssi[3] = to_rssi(GENMASK(31, 14), val); in mt7996_mac_sta_poll() 602 status->chain_signal[0] = to_rssi(MT_PRXV_RCPI0, v3); in mt7996_mac_fill_rx() 603 status->chain_signal[1] = to_rssi(MT_PRXV_RCPI1, v3); in mt7996_mac_fill_rx() 604 status->chain_signal[2] = to_rssi(MT_PRXV_RCPI2, v3); in mt7996_mac_fill_rx() 605 status->chain_signal[3] = to_rssi(MT_PRXV_RCPI3, v3); in mt7996_mac_fill_rx()
|
/linux/drivers/net/wireless/mediatek/mt76/mt7615/ |
H A 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()
|