Lines Matching defs:phy_ppdu

1433 					  struct rtw89_rx_phy_ppdu *phy_ppdu)
1477 phy_ppdu->mac_id =
1494 phy_ppdu->buf = phy_sts;
1495 phy_ppdu->len = skb->data + skb->len - phy_sts;
1504 struct rtw89_rx_phy_ppdu *phy_ppdu = (struct rtw89_rx_phy_ppdu *)data;
1512 if (rtwsta->mac_id != phy_ppdu->mac_id || !phy_ppdu->to_self)
1520 ewma_rssi_add(&rtwsta->avg_rssi, phy_ppdu->rssi_avg);
1523 ewma_rssi_add(&rtwsta->rssi[ant_pos], phy_ppdu->rssi[0]);
1526 ewma_rssi_add(&rtwsta->rssi[i], phy_ppdu->rssi[i]);
1529 if (phy_ppdu->ofdm.has) {
1530 ewma_snr_add(&rtwsta->avg_snr, phy_ppdu->ofdm.avg_snr);
1531 ewma_evm_add(&rtwsta->evm_min[evm_pos], phy_ppdu->ofdm.evm_min);
1532 ewma_evm_add(&rtwsta->evm_max[evm_pos], phy_ppdu->ofdm.evm_max);
1570 struct rtw89_rx_phy_ppdu *phy_ppdu)
1576 phy_ppdu->chan_idx = le32_get_bits(ie->w0, RTW89_PHY_STS_IE01_W0_CH_IDX);
1579 phy_ppdu->ldpc = le32_get_bits(ie->w2, RTW89_PHY_STS_IE01_W2_LDPC);
1580 phy_ppdu->stbc = le32_get_bits(ie->w2, RTW89_PHY_STS_IE01_W2_STBC);
1583 if (phy_ppdu->rate < RTW89_HW_RATE_OFDM6)
1586 if (!phy_ppdu->to_self)
1589 phy_ppdu->ofdm.avg_snr = le32_get_bits(ie->w2, RTW89_PHY_STS_IE01_W2_AVG_SNR);
1590 phy_ppdu->ofdm.evm_max = le32_get_bits(ie->w2, RTW89_PHY_STS_IE01_W2_EVM_MAX);
1591 phy_ppdu->ofdm.evm_min = le32_get_bits(ie->w2, RTW89_PHY_STS_IE01_W2_EVM_MIN);
1592 phy_ppdu->ofdm.has = true;
1603 rtw89_phy_cfo_parse(rtwdev, cfo, phy_ppdu);
1608 struct rtw89_rx_phy_ppdu *phy_ppdu)
1616 rtw89_core_parse_phy_status_ie01(rtwdev, iehdr, phy_ppdu);
1625 static void rtw89_core_update_phy_ppdu(struct rtw89_rx_phy_ppdu *phy_ppdu)
1627 const struct rtw89_phy_sts_hdr *hdr = phy_ppdu->buf;
1628 u8 *rssi = phy_ppdu->rssi;
1630 phy_ppdu->ie = le32_get_bits(hdr->w0, RTW89_PHY_STS_HDR_W0_IE_MAP);
1631 phy_ppdu->rssi_avg = le32_get_bits(hdr->w0, RTW89_PHY_STS_HDR_W0_RSSI_AVG);
1639 struct rtw89_rx_phy_ppdu *phy_ppdu)
1641 const struct rtw89_phy_sts_hdr *hdr = phy_ppdu->buf;
1654 if (len_from_header != phy_ppdu->len) {
1658 rtw89_core_update_phy_ppdu(phy_ppdu);
1664 struct rtw89_rx_phy_ppdu *phy_ppdu)
1674 if (phy_ppdu->ie < RTW89_CCK_PKT)
1678 pos = phy_ppdu->buf + PHY_STS_HDR_LEN;
1679 end = phy_ppdu->buf + phy_ppdu->len;
1681 pos = (u8 *)phy_ppdu->buf + PHY_STS_HDR_LEN;
1682 end = (u8 *)phy_ppdu->buf + phy_ppdu->len;
1692 rtw89_core_process_phy_status_ie(rtwdev, iehdr, phy_ppdu);
1701 rtw89_phy_antdiv_parse(rtwdev, phy_ppdu);
1707 struct rtw89_rx_phy_ppdu *phy_ppdu)
1711 ret = rtw89_core_rx_parse_phy_sts(rtwdev, phy_ppdu);
1715 phy_ppdu->valid = true;
1719 phy_ppdu);
1796 struct rtw89_rx_phy_ppdu *phy_ppdu;
1934 struct rtw89_rx_phy_ppdu *phy_ppdu = iter_data->phy_ppdu;
1957 rtw89_fw_h2c_rssi_offload(rtwdev, phy_ppdu);
1972 struct rtw89_rx_phy_ppdu *phy_ppdu,
1981 iter_data.phy_ppdu = phy_ppdu;
2025 struct rtw89_rx_phy_ppdu *phy_ppdu)
2030 if (!phy_ppdu)
2033 if (phy_ppdu->ldpc)
2035 if (phy_ppdu->stbc)
2139 struct rtw89_rx_phy_ppdu *phy_ppdu,
2151 rtw89_core_rx_stats(rtwdev, phy_ppdu, desc_info, skb_ppdu);
2152 rtw89_core_update_rx_status_by_ppdu(rtwdev, rx_status, phy_ppdu);
2162 struct rtw89_rx_phy_ppdu *phy_ppdu,
2178 rtw89_chip_query_ppdu(rtwdev, phy_ppdu, rx_status);
2180 rtw89_core_rx_to_mac80211(rtwdev, phy_ppdu, desc_info, skb_ppdu, rx_status);
2188 struct rtw89_rx_phy_ppdu phy_ppdu = {.buf = skb->data, .valid = false,
2196 ret = rtw89_core_rx_process_mac_ppdu(rtwdev, skb, &phy_ppdu);
2201 ret = rtw89_core_rx_process_phy_ppdu(rtwdev, &phy_ppdu);
2205 rtw89_core_rx_process_phy_sts(rtwdev, &phy_ppdu);
2208 rtw89_core_rx_pending_skb(rtwdev, &phy_ppdu, desc_info, skb);