Lines Matching refs:FIELD_GET

12 #define to_rssi(field, rcpi)	((FIELD_GET(field, rcpi) - 220) / 2)
267 FIELD_GET(MT_DMA_PPE_CPU_REASON, info), in mt7915_wed_check_ppe()
268 FIELD_GET(MT_DMA_PPE_ENTRY, info)); in mt7915_wed_check_ppe()
323 unicast = FIELD_GET(MT_RXD3_NORMAL_ADDR_TYPE, rxd3) == MT_RXD3_NORMAL_U2M; in mt7915_mac_fill_rx()
324 idx = FIELD_GET(MT_RXD1_NORMAL_WLAN_IDX, rxd1); in mt7915_mac_fill_rx()
358 if (FIELD_GET(MT_RXD1_NORMAL_SEC_MODE, rxd1) != 0 && in mt7915_mac_fill_rx()
365 remove_pad = FIELD_GET(MT_RXD2_NORMAL_HDR_OFFSET, rxd2); in mt7915_mac_fill_rx()
375 fc = cpu_to_le16(FIELD_GET(MT_RXD6_FRAME_CONTROL, v0)); in mt7915_mac_fill_rx()
376 qos_ctl = FIELD_GET(MT_RXD8_QOS_CTL, v2); in mt7915_mac_fill_rx()
377 seq_ctrl = FIELD_GET(MT_RXD8_SEQ_CTRL, v2); in mt7915_mac_fill_rx()
388 switch (FIELD_GET(MT_RXD1_NORMAL_SEC_MODE, rxd1)) { in mt7915_mac_fill_rx()
393 FIELD_GET(MT_RXD2_NORMAL_FRAG, rxd2); in mt7915_mac_fill_rx()
474 amsdu_info = FIELD_GET(MT_RXD4_NORMAL_PAYLOAD_FORMAT, rxd4); in mt7915_mac_fill_rx()
528 u8 key_id = FIELD_GET(MT_RXD1_NORMAL_KEY_ID, rxd1); in mt7915_mac_fill_rx()
596 foe = FIELD_GET(MT_CRXV_FOE_LO, v20) | in mt7915_mac_fill_rx_vector()
597 (FIELD_GET(MT_CRXV_FOE_HI, v21) << MT_CRXV_FOE_SHIFT); in mt7915_mac_fill_rx_vector()
599 snr = FIELD_GET(MT_CRXV_SNR, v20) - 16; in mt7915_mac_fill_rx_vector()
898 v3 = (FIELD_GET(MT_TX_FREE_VER, txd) == 0x4); in mt7915_mac_tx_free()
916 idx = FIELD_GET(MT_TX_FREE_WLAN_ID, info); in mt7915_mac_tx_free()
936 FIELD_GET(MT_TX_FREE_COUNT_V3, info) - 1; in mt7915_mac_tx_free()
938 !!FIELD_GET(MT_TX_FREE_STAT_V3, info); in mt7915_mac_tx_free()
941 FIELD_GET(MT_TX_FREE_COUNT, info) - 1; in mt7915_mac_tx_free()
943 !!FIELD_GET(MT_TX_FREE_STAT, info); in mt7915_mac_tx_free()
958 msdu = FIELD_GET(MT_TX_FREE_MSDU_ID, info); in mt7915_mac_tx_free()
985 count = FIELD_GET(MT_TX_FREE_MSDU_CNT_V0, le16_to_cpu(free->ctrl)); in mt7915_mac_tx_free_v0()
1709 FIELD_GET(MT_MIB_SDR3_FCS_ERR_MASK, cnt) : in mt7915_mac_update_stats()
1710 FIELD_GET(MT_MIB_SDR3_FCS_ERR_MASK_MT7916, cnt); in mt7915_mac_update_stats()
1713 mib->rx_fifo_full_cnt += FIELD_GET(MT_MIB_SDR4_RX_FIFO_FULL_MASK, cnt); in mt7915_mac_update_stats()
1719 mib->channel_idle_cnt += FIELD_GET(MT_MIB_SDR6_CHANNEL_IDL_CNT_MASK, cnt); in mt7915_mac_update_stats()
1723 FIELD_GET(MT_MIB_SDR7_RX_VECTOR_MISMATCH_CNT_MASK, cnt); in mt7915_mac_update_stats()
1727 FIELD_GET(MT_MIB_SDR8_RX_DELIMITER_FAIL_CNT_MASK, cnt); in mt7915_mac_update_stats()
1731 FIELD_GET(MT_MIB_SDR10_MRDY_COUNT_MASK, cnt) : in mt7915_mac_update_stats()
1732 FIELD_GET(MT_MIB_SDR10_MRDY_COUNT_MASK_MT7916, cnt); in mt7915_mac_update_stats()
1736 FIELD_GET(MT_MIB_SDR11_RX_LEN_MISMATCH_CNT_MASK, cnt); in mt7915_mac_update_stats()
1743 FIELD_GET(MT_MIB_SDR13_TX_STOP_Q_EMPTY_CNT_MASK, cnt); in mt7915_mac_update_stats()
1747 FIELD_GET(MT_MIB_SDR14_TX_MPDU_ATTEMPTS_CNT_MASK, cnt) : in mt7915_mac_update_stats()
1748 FIELD_GET(MT_MIB_SDR14_TX_MPDU_ATTEMPTS_CNT_MASK_MT7916, cnt); in mt7915_mac_update_stats()
1752 FIELD_GET(MT_MIB_SDR15_TX_MPDU_SUCCESS_CNT_MASK, cnt) : in mt7915_mac_update_stats()
1753 FIELD_GET(MT_MIB_SDR15_TX_MPDU_SUCCESS_CNT_MASK_MT7916, cnt); in mt7915_mac_update_stats()
1757 FIELD_GET(MT_MIB_SDR16_PRIMARY_CCA_BUSY_TIME_MASK, cnt); in mt7915_mac_update_stats()
1761 FIELD_GET(MT_MIB_SDR17_SECONDARY_CCA_BUSY_TIME_MASK, cnt); in mt7915_mac_update_stats()
1765 FIELD_GET(MT_MIB_SDR18_PRIMARY_ENERGY_DETECT_TIME_MASK, cnt); in mt7915_mac_update_stats()
1768 mib->cck_mdrdy_time += FIELD_GET(MT_MIB_SDR19_CCK_MDRDY_TIME_MASK, cnt); in mt7915_mac_update_stats()
1772 FIELD_GET(MT_MIB_SDR20_OFDM_VHT_MDRDY_TIME_MASK, cnt); in mt7915_mac_update_stats()
1776 FIELD_GET(MT_MIB_SDR21_GREEN_MDRDY_TIME_MASK, cnt); in mt7915_mac_update_stats()
1786 FIELD_GET(MT_MIB_SDR24_RX_AMPDU_SF_CNT_MASK, cnt) : in mt7915_mac_update_stats()
1787 FIELD_GET(MT_MIB_SDR24_RX_AMPDU_SF_CNT_MASK_MT7916, cnt); in mt7915_mac_update_stats()
1794 FIELD_GET(MT_MIB_SDR27_TX_RWP_FAIL_CNT_MASK, cnt); in mt7915_mac_update_stats()
1798 FIELD_GET(MT_MIB_SDR28_TX_RWP_NEED_CNT_MASK, cnt); in mt7915_mac_update_stats()
1802 FIELD_GET(MT_MIB_SDR29_RX_PFDROP_CNT_MASK, cnt) : in mt7915_mac_update_stats()
1803 FIELD_GET(MT_MIB_SDR29_RX_PFDROP_CNT_MASK_MT7916, cnt); in mt7915_mac_update_stats()
1807 FIELD_GET(MT_MIB_SDR30_RX_VEC_QUEUE_OVERFLOW_DROP_CNT_MASK, cnt) : in mt7915_mac_update_stats()
1808 FIELD_GET(MT_MIB_SDR30_RX_VEC_QUEUE_OVERFLOW_DROP_CNT_MASK_MT7916, cnt); in mt7915_mac_update_stats()
1814 mib->tx_bf_cnt += FIELD_GET(MT_MIB_MU_BF_TX_CNT, cnt); in mt7915_mac_update_stats()
1826 mib->tx_bf_rx_fb_bw = FIELD_GET(MT_ETBF_PAR_RPT0_FB_BW, cnt); in mt7915_mac_update_stats()
1827 mib->tx_bf_rx_fb_nc_cnt += FIELD_GET(MT_ETBF_PAR_RPT0_FB_NC, cnt); in mt7915_mac_update_stats()
1828 mib->tx_bf_rx_fb_nr_cnt += FIELD_GET(MT_ETBF_PAR_RPT0_FB_NR, cnt); in mt7915_mac_update_stats()
1840 FIELD_GET(MT_MIB_BA_MISS_COUNT_MASK, val); in mt7915_mac_update_stats()
1842 FIELD_GET(MT_MIB_ACK_FAIL_COUNT_MASK, val); in mt7915_mac_update_stats()
1845 mib->rts_cnt += FIELD_GET(MT_MIB_RTS_COUNT_MASK, val); in mt7915_mac_update_stats()
1847 FIELD_GET(MT_MIB_RTS_RETRIES_COUNT_MASK, val); in mt7915_mac_update_stats()
1859 mib->tx_pkt_ebf_cnt += FIELD_GET(MT_MIB_SDR32_TX_PKT_EBF_CNT, cnt); in mt7915_mac_update_stats()
1862 mib->tx_pkt_ibf_cnt += FIELD_GET(MT_MIB_SDR33_TX_PKT_IBF_CNT, cnt); in mt7915_mac_update_stats()
1865 mib->tx_bf_ibf_ppdu_cnt += FIELD_GET(MT_ETBF_TX_IBF_CNT, cnt); in mt7915_mac_update_stats()
1866 mib->tx_bf_ebf_ppdu_cnt += FIELD_GET(MT_ETBF_TX_EBF_CNT, cnt); in mt7915_mac_update_stats()
1869 mib->tx_bf_fb_cpl_cnt += FIELD_GET(MT_ETBF_TX_FB_CPL, cnt); in mt7915_mac_update_stats()
1870 mib->tx_bf_fb_trig_cnt += FIELD_GET(MT_ETBF_TX_FB_TRI, cnt); in mt7915_mac_update_stats()
1873 mib->tx_bf_rx_fb_all_cnt += FIELD_GET(MT_ETBF_RX_FB_ALL, cnt); in mt7915_mac_update_stats()
1874 mib->tx_bf_rx_fb_he_cnt += FIELD_GET(MT_ETBF_RX_FB_HE, cnt); in mt7915_mac_update_stats()
1875 mib->tx_bf_rx_fb_vht_cnt += FIELD_GET(MT_ETBF_RX_FB_VHT, cnt); in mt7915_mac_update_stats()
1876 mib->tx_bf_rx_fb_ht_cnt += FIELD_GET(MT_ETBF_RX_FB_HT, cnt); in mt7915_mac_update_stats()
1881 mib->rts_cnt += FIELD_GET(GENMASK(15, 0), val); in mt7915_mac_update_stats()
1882 mib->rts_cnt += FIELD_GET(GENMASK(31, 16), val); in mt7915_mac_update_stats()
1886 mib->rts_retries_cnt += FIELD_GET(GENMASK(15, 0), val); in mt7915_mac_update_stats()
1887 mib->rts_retries_cnt += FIELD_GET(GENMASK(31, 16), val); in mt7915_mac_update_stats()
1891 mib->ba_miss_cnt += FIELD_GET(GENMASK(15, 0), val); in mt7915_mac_update_stats()
1892 mib->ba_miss_cnt += FIELD_GET(GENMASK(31, 16), val); in mt7915_mac_update_stats()
1896 mib->ack_fail_cnt += FIELD_GET(GENMASK(15, 0), val); in mt7915_mac_update_stats()
1897 mib->ack_fail_cnt += FIELD_GET(GENMASK(31, 16), val); in mt7915_mac_update_stats()
1902 phy->mt76->aggr_stats[aggr0++] += FIELD_GET(GENMASK(15, 0), val); in mt7915_mac_update_stats()
1903 phy->mt76->aggr_stats[aggr0++] += FIELD_GET(GENMASK(31, 16), val); in mt7915_mac_update_stats()
1907 mib->tx_pkt_ibf_cnt += FIELD_GET(MT_MIB_SDR32_TX_PKT_IBF_CNT, cnt); in mt7915_mac_update_stats()
1908 mib->tx_bf_ibf_ppdu_cnt += FIELD_GET(MT_MIB_SDR32_TX_PKT_IBF_CNT, cnt); in mt7915_mac_update_stats()
1909 mib->tx_pkt_ebf_cnt += FIELD_GET(MT_MIB_SDR32_TX_PKT_EBF_CNT, cnt); in mt7915_mac_update_stats()
1910 mib->tx_bf_ebf_ppdu_cnt += FIELD_GET(MT_MIB_SDR32_TX_PKT_EBF_CNT, cnt); in mt7915_mac_update_stats()
1913 mib->tx_bf_fb_cpl_cnt += FIELD_GET(MT_MIB_BFCR7_BFEE_TX_FB_CPL, cnt); in mt7915_mac_update_stats()
1916 mib->tx_bf_fb_trig_cnt += FIELD_GET(MT_MIB_BFCR2_BFEE_TX_FB_TRIG, cnt); in mt7915_mac_update_stats()
1919 mib->tx_bf_rx_fb_vht_cnt += FIELD_GET(MT_MIB_BFCR0_RX_FB_VHT, cnt); in mt7915_mac_update_stats()
1920 mib->tx_bf_rx_fb_all_cnt += FIELD_GET(MT_MIB_BFCR0_RX_FB_VHT, cnt); in mt7915_mac_update_stats()
1921 mib->tx_bf_rx_fb_ht_cnt += FIELD_GET(MT_MIB_BFCR0_RX_FB_HT, cnt); in mt7915_mac_update_stats()
1922 mib->tx_bf_rx_fb_all_cnt += FIELD_GET(MT_MIB_BFCR0_RX_FB_HT, cnt); in mt7915_mac_update_stats()
1925 mib->tx_bf_rx_fb_he_cnt += FIELD_GET(MT_MIB_BFCR1_RX_FB_HE, cnt); in mt7915_mac_update_stats()
1926 mib->tx_bf_rx_fb_all_cnt += FIELD_GET(MT_MIB_BFCR1_RX_FB_HE, cnt); in mt7915_mac_update_stats()
1944 if ((FIELD_GET(MT_TRB_RXPSR0_RX_RMAC_PTR, trb) != in mt7915_mac_severe_check()
1945 FIELD_GET(MT_TRB_RXPSR0_RX_WTBL_PTR, trb)) && in mt7915_mac_severe_check()
1946 (FIELD_GET(MT_TRB_RXPSR0_RX_RMAC_PTR, phy->trb_ts) != in mt7915_mac_severe_check()
1947 FIELD_GET(MT_TRB_RXPSR0_RX_WTBL_PTR, phy->trb_ts)) && in mt7915_mac_severe_check()
2258 exp = FIELD_GET(IEEE80211_TWT_REQTYPE_WAKE_INT_EXP, in mt7915_mac_check_twt_req()
2278 exp = FIELD_GET(IEEE80211_TWT_REQTYPE_WAKE_INT_EXP, type); in mt7915_mac_twt_param_equal()
2335 exp = FIELD_GET(IEEE80211_TWT_REQTYPE_WAKE_INT_EXP, req_type); in mt7915_mac_add_twt_setup()
2336 sta_setup_cmd = FIELD_GET(IEEE80211_TWT_REQTYPE_SETUP_CMD, req_type); in mt7915_mac_add_twt_setup()