Lines Matching refs:phy_data
1203 struct iwl_mvm_rx_phy_data *phy_data, in iwl_mvm_decode_he_mu_ext() argument
1206 u32 phy_data2 = le32_to_cpu(phy_data->d2); in iwl_mvm_decode_he_mu_ext()
1207 u32 phy_data3 = le32_to_cpu(phy_data->d3); in iwl_mvm_decode_he_mu_ext()
1208 u16 phy_data4 = le16_to_cpu(phy_data->d4); in iwl_mvm_decode_he_mu_ext()
1209 u32 rate_n_flags = phy_data->rate_n_flags; in iwl_mvm_decode_he_mu_ext()
1254 iwl_mvm_decode_he_phy_ru_alloc(struct iwl_mvm_rx_phy_data *phy_data, in iwl_mvm_decode_he_phy_ru_alloc() argument
1267 u8 ru = le32_get_bits(phy_data->d1, IWL_RX_PHY_DATA1_HE_RU_ALLOC_MASK); in iwl_mvm_decode_he_phy_ru_alloc()
1268 u32 rate_n_flags = phy_data->rate_n_flags; in iwl_mvm_decode_he_phy_ru_alloc()
1308 if (phy_data->d1 & cpu_to_le32(IWL_RX_PHY_DATA1_HE_RU_ALLOC_SEC80)) in iwl_mvm_decode_he_phy_ru_alloc()
1336 struct iwl_mvm_rx_phy_data *phy_data, in iwl_mvm_decode_he_phy_data() argument
1342 switch (phy_data->info_type) { in iwl_mvm_decode_he_phy_data()
1355 he->data4 |= le16_encode_bits(le32_get_bits(phy_data->d2, in iwl_mvm_decode_he_phy_data()
1358 he->data4 |= le16_encode_bits(le32_get_bits(phy_data->d2, in iwl_mvm_decode_he_phy_data()
1361 he->data4 |= le16_encode_bits(le32_get_bits(phy_data->d2, in iwl_mvm_decode_he_phy_data()
1364 he->data4 |= le16_encode_bits(le32_get_bits(phy_data->d2, in iwl_mvm_decode_he_phy_data()
1380 he->data3 |= le16_encode_bits(le32_get_bits(phy_data->d0, in iwl_mvm_decode_he_phy_data()
1383 if (phy_data->info_type != IWL_RX_PHY_INFO_TYPE_HE_TB && in iwl_mvm_decode_he_phy_data()
1384 phy_data->info_type != IWL_RX_PHY_INFO_TYPE_HE_TB_EXT) { in iwl_mvm_decode_he_phy_data()
1386 he->data3 |= le16_encode_bits(le32_get_bits(phy_data->d0, in iwl_mvm_decode_he_phy_data()
1390 he->data3 |= le16_encode_bits(le32_get_bits(phy_data->d0, in iwl_mvm_decode_he_phy_data()
1393 he->data5 |= le16_encode_bits(le32_get_bits(phy_data->d0, in iwl_mvm_decode_he_phy_data()
1396 he->data5 |= le16_encode_bits(le32_get_bits(phy_data->d0, in iwl_mvm_decode_he_phy_data()
1399 he->data5 |= le16_encode_bits(le32_get_bits(phy_data->d1, in iwl_mvm_decode_he_phy_data()
1402 he->data6 |= le16_encode_bits(le32_get_bits(phy_data->d0, in iwl_mvm_decode_he_phy_data()
1405 he->data6 |= le16_encode_bits(le32_get_bits(phy_data->d0, in iwl_mvm_decode_he_phy_data()
1411 switch (phy_data->info_type) { in iwl_mvm_decode_he_phy_data()
1416 he->data4 |= le16_encode_bits(le32_get_bits(phy_data->d0, in iwl_mvm_decode_he_phy_data()
1425 switch (phy_data->info_type) { in iwl_mvm_decode_he_phy_data()
1428 le16_encode_bits(le16_get_bits(phy_data->d4, in iwl_mvm_decode_he_phy_data()
1432 le16_encode_bits(le16_get_bits(phy_data->d4, in iwl_mvm_decode_he_phy_data()
1436 le16_encode_bits(le16_get_bits(phy_data->d4, in iwl_mvm_decode_he_phy_data()
1439 iwl_mvm_decode_he_mu_ext(mvm, phy_data, he_mu); in iwl_mvm_decode_he_phy_data()
1443 le16_encode_bits(le32_get_bits(phy_data->d1, in iwl_mvm_decode_he_phy_data()
1447 le16_encode_bits(le32_get_bits(phy_data->d1, in iwl_mvm_decode_he_phy_data()
1453 iwl_mvm_decode_he_phy_ru_alloc(phy_data, he, he_mu, rx_status); in iwl_mvm_decode_he_phy_data()
1457 he->data3 |= le16_encode_bits(le32_get_bits(phy_data->d0, in iwl_mvm_decode_he_phy_data()
1468 struct iwl_mvm_rx_phy_data *phy_data, in iwl_mvm_rx_he() argument
1474 u32 rate_n_flags = phy_data->rate_n_flags; in iwl_mvm_rx_he()
1493 u16 phy_info = phy_data->phy_info; in iwl_mvm_rx_he()
1498 if (phy_data->info_type == IWL_RX_PHY_INFO_TYPE_HE_MU || in iwl_mvm_rx_he()
1499 phy_data->info_type == IWL_RX_PHY_INFO_TYPE_HE_MU_EXT) { in iwl_mvm_rx_he()
1508 if (phy_data->d0 & cpu_to_le32(IWL_RX_PHY_DATA0_HE_DELIM_EOF)) in iwl_mvm_rx_he()
1513 iwl_mvm_decode_he_phy_data(mvm, phy_data, he, he_mu, rx_status, in iwl_mvm_rx_he()
1524 if (phy_data->d0 & cpu_to_le32(IWL_RX_PHY_DATA0_HE_DELIM_EOF)) in iwl_mvm_rx_he()
1600 struct iwl_mvm_rx_phy_data *phy_data) in iwl_mvm_decode_lsig() argument
1605 switch (phy_data->info_type) { in iwl_mvm_decode_lsig()
1616 lsig->data2 = le16_encode_bits(le32_get_bits(phy_data->d1, in iwl_mvm_decode_lsig()
1664 struct iwl_mvm_rx_phy_data *phy_data, in iwl_mvm_rx_fill_status() argument
1668 u32 rate_n_flags = phy_data->rate_n_flags; in iwl_mvm_rx_fill_status()
1673 phy_data->info_type = IWL_RX_PHY_INFO_TYPE_NONE; in iwl_mvm_rx_fill_status()
1675 if (phy_data->phy_info & IWL_RX_MPDU_PHY_TSF_OVERLOAD) in iwl_mvm_rx_fill_status()
1676 phy_data->info_type = in iwl_mvm_rx_fill_status()
1677 le32_get_bits(phy_data->d1, in iwl_mvm_rx_fill_status()
1697 iwl_mvm_rx_he(mvm, skb, phy_data, queue); in iwl_mvm_rx_fill_status()
1699 iwl_mvm_decode_lsig(skb, phy_data); in iwl_mvm_rx_fill_status()
1701 rx_status->device_timestamp = phy_data->gp2_on_air_rise; in iwl_mvm_rx_fill_status()
1702 rx_status->freq = ieee80211_channel_to_frequency(phy_data->channel, in iwl_mvm_rx_fill_status()
1705 phy_data->energy_a, phy_data->energy_b); in iwl_mvm_rx_fill_status()
1772 struct iwl_mvm_rx_phy_data phy_data = {}; in iwl_mvm_rx_mpdu_mq() local
1789 phy_data.rate_n_flags = le32_to_cpu(desc->v3.rate_n_flags); in iwl_mvm_rx_mpdu_mq()
1790 phy_data.channel = desc->v3.channel; in iwl_mvm_rx_mpdu_mq()
1791 phy_data.gp2_on_air_rise = le32_to_cpu(desc->v3.gp2_on_air_rise); in iwl_mvm_rx_mpdu_mq()
1792 phy_data.energy_a = desc->v3.energy_a; in iwl_mvm_rx_mpdu_mq()
1793 phy_data.energy_b = desc->v3.energy_b; in iwl_mvm_rx_mpdu_mq()
1795 phy_data.d0 = desc->v3.phy_data0; in iwl_mvm_rx_mpdu_mq()
1796 phy_data.d1 = desc->v3.phy_data1; in iwl_mvm_rx_mpdu_mq()
1797 phy_data.d2 = desc->v3.phy_data2; in iwl_mvm_rx_mpdu_mq()
1798 phy_data.d3 = desc->v3.phy_data3; in iwl_mvm_rx_mpdu_mq()
1800 phy_data.rate_n_flags = le32_to_cpu(desc->v1.rate_n_flags); in iwl_mvm_rx_mpdu_mq()
1801 phy_data.channel = desc->v1.channel; in iwl_mvm_rx_mpdu_mq()
1802 phy_data.gp2_on_air_rise = le32_to_cpu(desc->v1.gp2_on_air_rise); in iwl_mvm_rx_mpdu_mq()
1803 phy_data.energy_a = desc->v1.energy_a; in iwl_mvm_rx_mpdu_mq()
1804 phy_data.energy_b = desc->v1.energy_b; in iwl_mvm_rx_mpdu_mq()
1806 phy_data.d0 = desc->v1.phy_data0; in iwl_mvm_rx_mpdu_mq()
1807 phy_data.d1 = desc->v1.phy_data1; in iwl_mvm_rx_mpdu_mq()
1808 phy_data.d2 = desc->v1.phy_data2; in iwl_mvm_rx_mpdu_mq()
1809 phy_data.d3 = desc->v1.phy_data3; in iwl_mvm_rx_mpdu_mq()
1814 phy_data.rate_n_flags = iwl_new_rate_from_v1(phy_data.rate_n_flags); in iwl_mvm_rx_mpdu_mq()
1816 phy_data.rate_n_flags); in iwl_mvm_rx_mpdu_mq()
1819 format = phy_data.rate_n_flags & RATE_MCS_MOD_TYPE_MSK; in iwl_mvm_rx_mpdu_mq()
1828 phy_data.phy_info = le16_to_cpu(desc->phy_info); in iwl_mvm_rx_mpdu_mq()
1829 phy_data.d4 = desc->phy_data4; in iwl_mvm_rx_mpdu_mq()
1866 phy_data.phy_info & IWL_RX_MPDU_PHY_SHORT_PREAMBLE) in iwl_mvm_rx_mpdu_mq()
1869 if (likely(!(phy_data.phy_info & IWL_RX_MPDU_PHY_TSF_OVERLOAD))) { in iwl_mvm_rx_mpdu_mq()
1888 rx_status->band = phy_data.channel > 14 ? NL80211_BAND_5GHZ : in iwl_mvm_rx_mpdu_mq()
1893 if (!queue && (phy_data.phy_info & IWL_RX_MPDU_PHY_AMPDU)) { in iwl_mvm_rx_mpdu_mq()
1896 toggle_bit = phy_data.phy_info & IWL_RX_MPDU_PHY_AMPDU_TOGGLE; in iwl_mvm_rx_mpdu_mq()
1930 if (iwl_mvm_rx_crypto(mvm, sta, hdr, rx_status, phy_data.phy_info, desc, in iwl_mvm_rx_mpdu_mq()
1937 iwl_mvm_rx_fill_status(mvm, skb, &phy_data, queue); in iwl_mvm_rx_mpdu_mq()
2071 struct iwl_mvm_rx_phy_data phy_data = { in iwl_mvm_rx_monitor_no_data() local
2086 phy_data.rate_n_flags); in iwl_mvm_rx_monitor_no_data()
2087 phy_data.rate_n_flags = iwl_new_rate_from_v1(phy_data.rate_n_flags); in iwl_mvm_rx_monitor_no_data()
2089 phy_data.rate_n_flags); in iwl_mvm_rx_monitor_no_data()
2092 format = phy_data.rate_n_flags & RATE_MCS_MOD_TYPE_MSK; in iwl_mvm_rx_monitor_no_data()
2130 rx_status->band = phy_data.channel > 14 ? NL80211_BAND_5GHZ : in iwl_mvm_rx_monitor_no_data()
2133 iwl_mvm_rx_fill_status(mvm, skb, &phy_data, queue); in iwl_mvm_rx_monitor_no_data()