Home
last modified time | relevance | path

Searched refs:to_rssi (Results 1 – 7 of 7) sorted by relevance

/linux-6.12.1/drivers/net/wireless/mediatek/mt76/mt7921/
Dmac.c155 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()
Dmt7921.h101 #define to_rssi(field, rxv) ((FIELD_GET(field, rxv) - 220) / 2) macro
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/mt7925/
Dmac.c144 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()
Dmt7925.h86 #define to_rssi(field, rxv) ((FIELD_GET(field, rxv) - 220) / 2) macro
/linux-6.12.1/drivers/net/wireless/mediatek/mt76/mt7915/
Dmac.c12 #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-6.12.1/drivers/net/wireless/mediatek/mt76/mt7996/
Dmac.c14 #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-6.12.1/drivers/net/wireless/mediatek/mt76/mt7615/
Dmac.c20 #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()