Lines Matching refs:phy_data
1209 struct iwl_mvm_rx_phy_data *phy_data, in iwl_mvm_decode_he_mu_ext() argument
1212 u32 phy_data2 = le32_to_cpu(phy_data->d2); in iwl_mvm_decode_he_mu_ext()
1213 u32 phy_data3 = le32_to_cpu(phy_data->d3); in iwl_mvm_decode_he_mu_ext()
1214 u16 phy_data4 = le16_to_cpu(phy_data->d4); in iwl_mvm_decode_he_mu_ext()
1215 u32 rate_n_flags = phy_data->rate_n_flags; in iwl_mvm_decode_he_mu_ext()
1260 iwl_mvm_decode_he_phy_ru_alloc(struct iwl_mvm_rx_phy_data *phy_data, in iwl_mvm_decode_he_phy_ru_alloc() argument
1273 u8 ru = le32_get_bits(phy_data->d1, IWL_RX_PHY_DATA1_HE_RU_ALLOC_MASK); in iwl_mvm_decode_he_phy_ru_alloc()
1274 u32 rate_n_flags = phy_data->rate_n_flags; in iwl_mvm_decode_he_phy_ru_alloc()
1314 if (phy_data->d1 & cpu_to_le32(IWL_RX_PHY_DATA1_HE_RU_ALLOC_SEC80)) in iwl_mvm_decode_he_phy_ru_alloc()
1342 struct iwl_mvm_rx_phy_data *phy_data, in iwl_mvm_decode_he_phy_data() argument
1348 switch (phy_data->info_type) { in iwl_mvm_decode_he_phy_data()
1365 he->data4 |= le16_encode_bits(le32_get_bits(phy_data->d2, in iwl_mvm_decode_he_phy_data()
1368 he->data4 |= le16_encode_bits(le32_get_bits(phy_data->d2, in iwl_mvm_decode_he_phy_data()
1371 he->data4 |= le16_encode_bits(le32_get_bits(phy_data->d2, in iwl_mvm_decode_he_phy_data()
1374 he->data4 |= le16_encode_bits(le32_get_bits(phy_data->d2, 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 if (phy_data->info_type != IWL_RX_PHY_INFO_TYPE_HE_TB && in iwl_mvm_decode_he_phy_data()
1394 phy_data->info_type != IWL_RX_PHY_INFO_TYPE_HE_TB_EXT) { in iwl_mvm_decode_he_phy_data()
1396 he->data3 |= le16_encode_bits(le32_get_bits(phy_data->d0, in iwl_mvm_decode_he_phy_data()
1400 he->data3 |= le16_encode_bits(le32_get_bits(phy_data->d0, in iwl_mvm_decode_he_phy_data()
1403 he->data5 |= le16_encode_bits(le32_get_bits(phy_data->d0, in iwl_mvm_decode_he_phy_data()
1406 he->data5 |= le16_encode_bits(le32_get_bits(phy_data->d0, in iwl_mvm_decode_he_phy_data()
1409 he->data5 |= le16_encode_bits(le32_get_bits(phy_data->d1, in iwl_mvm_decode_he_phy_data()
1412 he->data6 |= le16_encode_bits(le32_get_bits(phy_data->d0, in iwl_mvm_decode_he_phy_data()
1415 he->data6 |= le16_encode_bits(le32_get_bits(phy_data->d0, in iwl_mvm_decode_he_phy_data()
1421 switch (phy_data->info_type) { in iwl_mvm_decode_he_phy_data()
1426 he->data4 |= le16_encode_bits(le32_get_bits(phy_data->d0, in iwl_mvm_decode_he_phy_data()
1435 switch (phy_data->info_type) { in iwl_mvm_decode_he_phy_data()
1438 le16_encode_bits(le16_get_bits(phy_data->d4, in iwl_mvm_decode_he_phy_data()
1442 le16_encode_bits(le16_get_bits(phy_data->d4, in iwl_mvm_decode_he_phy_data()
1446 le16_encode_bits(le16_get_bits(phy_data->d4, in iwl_mvm_decode_he_phy_data()
1449 iwl_mvm_decode_he_mu_ext(mvm, phy_data, he_mu); in iwl_mvm_decode_he_phy_data()
1453 le16_encode_bits(le32_get_bits(phy_data->d1, in iwl_mvm_decode_he_phy_data()
1457 le16_encode_bits(le32_get_bits(phy_data->d1, in iwl_mvm_decode_he_phy_data()
1463 iwl_mvm_decode_he_phy_ru_alloc(phy_data, he, he_mu, rx_status); in iwl_mvm_decode_he_phy_data()
1467 he->data3 |= le16_encode_bits(le32_get_bits(phy_data->d0, in iwl_mvm_decode_he_phy_data()
1523 struct iwl_mvm_rx_phy_data *phy_data, in iwl_mvm_decode_eht_ext_mu() argument
1528 if (phy_data->with_data) { in iwl_mvm_decode_eht_ext_mu()
1529 __le32 data1 = phy_data->d1; in iwl_mvm_decode_eht_ext_mu()
1530 __le32 data2 = phy_data->d2; in iwl_mvm_decode_eht_ext_mu()
1531 __le32 data3 = phy_data->d3; in iwl_mvm_decode_eht_ext_mu()
1532 __le32 data4 = phy_data->eht_d4; in iwl_mvm_decode_eht_ext_mu()
1533 __le32 data5 = phy_data->d5; in iwl_mvm_decode_eht_ext_mu()
1534 u32 phy_bw = phy_data->rate_n_flags & RATE_MCS_CHAN_WIDTH_MSK; in iwl_mvm_decode_eht_ext_mu()
1599 __le32 usig_a1 = phy_data->rx_vec[0]; in iwl_mvm_decode_eht_ext_mu()
1600 __le32 usig_a2 = phy_data->rx_vec[1]; in iwl_mvm_decode_eht_ext_mu()
1633 struct iwl_mvm_rx_phy_data *phy_data, in iwl_mvm_decode_eht_ext_tb() argument
1638 if (phy_data->with_data) { in iwl_mvm_decode_eht_ext_tb()
1639 __le32 data5 = phy_data->d5; in iwl_mvm_decode_eht_ext_tb()
1652 __le32 usig_a1 = phy_data->rx_vec[0]; in iwl_mvm_decode_eht_ext_tb()
1653 __le32 usig_a2 = phy_data->rx_vec[1]; in iwl_mvm_decode_eht_ext_tb()
1749 struct iwl_mvm_rx_phy_data *phy_data, in iwl_mvm_decode_eht_phy_data() argument
1755 __le32 data0 = phy_data->d0; in iwl_mvm_decode_eht_phy_data()
1756 __le32 data1 = phy_data->d1; in iwl_mvm_decode_eht_phy_data()
1757 __le32 usig_a1 = phy_data->rx_vec[0]; in iwl_mvm_decode_eht_phy_data()
1758 u8 info_type = phy_data->info_type; in iwl_mvm_decode_eht_phy_data()
1768 if (phy_data->with_data) { in iwl_mvm_decode_eht_phy_data()
1819 if (phy_data->with_data) in iwl_mvm_decode_eht_phy_data()
1858 iwl_mvm_decode_eht_ext_tb(mvm, phy_data, rx_status, eht, usig); in iwl_mvm_decode_eht_phy_data()
1862 iwl_mvm_decode_eht_ext_mu(mvm, phy_data, rx_status, eht, usig); in iwl_mvm_decode_eht_phy_data()
1866 struct iwl_mvm_rx_phy_data *phy_data, in iwl_mvm_rx_eht() argument
1875 u32 rate_n_flags = phy_data->rate_n_flags; in iwl_mvm_rx_eht()
1879 u16 phy_info = phy_data->phy_info; in iwl_mvm_rx_eht()
1883 if (phy_data->with_data) in iwl_mvm_rx_eht()
1898 le32_to_cpu(phy_data->d0)); in iwl_mvm_rx_eht()
1907 if (phy_data->d0 & cpu_to_le32(IWL_RX_PHY_DATA0_EHT_DELIM_EOF)) in iwl_mvm_rx_eht()
1913 (phy_info & IWL_RX_MPDU_PHY_AMPDU) && phy_data->first_subframe) { in iwl_mvm_rx_eht()
1915 if (phy_data->d0 & cpu_to_le32(IWL_RX_PHY_DATA0_EHT_DELIM_EOF)) in iwl_mvm_rx_eht()
1920 iwl_mvm_decode_eht_phy_data(mvm, phy_data, rx_status, eht, usig); in iwl_mvm_rx_eht()
1973 if (!phy_data->with_data) { in iwl_mvm_rx_eht()
1977 le32_encode_bits(le32_get_bits(phy_data->rx_vec[2], in iwl_mvm_rx_eht()
2009 struct iwl_mvm_rx_phy_data *phy_data, in iwl_mvm_rx_he() argument
2015 u32 rate_n_flags = phy_data->rate_n_flags; in iwl_mvm_rx_he()
2034 u16 phy_info = phy_data->phy_info; in iwl_mvm_rx_he()
2039 if (phy_data->info_type == IWL_RX_PHY_INFO_TYPE_HE_MU || in iwl_mvm_rx_he()
2040 phy_data->info_type == IWL_RX_PHY_INFO_TYPE_HE_MU_EXT) { in iwl_mvm_rx_he()
2049 if (phy_data->d0 & cpu_to_le32(IWL_RX_PHY_DATA0_HE_DELIM_EOF)) in iwl_mvm_rx_he()
2054 iwl_mvm_decode_he_phy_data(mvm, phy_data, he, he_mu, rx_status, in iwl_mvm_rx_he()
2059 (phy_info & IWL_RX_MPDU_PHY_AMPDU) && phy_data->first_subframe) { in iwl_mvm_rx_he()
2061 if (phy_data->d0 & cpu_to_le32(IWL_RX_PHY_DATA0_EHT_DELIM_EOF)) in iwl_mvm_rx_he()
2136 struct iwl_mvm_rx_phy_data *phy_data) in iwl_mvm_decode_lsig() argument
2141 switch (phy_data->info_type) { in iwl_mvm_decode_lsig()
2156 lsig->data2 = le16_encode_bits(le32_get_bits(phy_data->d1, in iwl_mvm_decode_lsig()
2204 struct iwl_mvm_rx_phy_data *phy_data, in iwl_mvm_rx_fill_status() argument
2208 u32 rate_n_flags = phy_data->rate_n_flags; in iwl_mvm_rx_fill_status()
2213 phy_data->info_type = IWL_RX_PHY_INFO_TYPE_NONE; in iwl_mvm_rx_fill_status()
2215 if (phy_data->phy_info & IWL_RX_MPDU_PHY_TSF_OVERLOAD) in iwl_mvm_rx_fill_status()
2216 phy_data->info_type = in iwl_mvm_rx_fill_status()
2217 le32_get_bits(phy_data->d1, in iwl_mvm_rx_fill_status()
2240 iwl_mvm_rx_he(mvm, skb, phy_data, queue); in iwl_mvm_rx_fill_status()
2242 iwl_mvm_decode_lsig(skb, phy_data); in iwl_mvm_rx_fill_status()
2244 rx_status->device_timestamp = phy_data->gp2_on_air_rise; in iwl_mvm_rx_fill_status()
2245 rx_status->freq = ieee80211_channel_to_frequency(phy_data->channel, in iwl_mvm_rx_fill_status()
2248 phy_data->energy_a, phy_data->energy_b); in iwl_mvm_rx_fill_status()
2252 iwl_mvm_rx_eht(mvm, skb, phy_data, queue); in iwl_mvm_rx_fill_status()
2327 struct iwl_mvm_rx_phy_data phy_data = {}; in iwl_mvm_rx_mpdu_mq() local
2344 phy_data.rate_n_flags = le32_to_cpu(desc->v3.rate_n_flags); in iwl_mvm_rx_mpdu_mq()
2345 phy_data.channel = desc->v3.channel; in iwl_mvm_rx_mpdu_mq()
2346 phy_data.gp2_on_air_rise = le32_to_cpu(desc->v3.gp2_on_air_rise); in iwl_mvm_rx_mpdu_mq()
2347 phy_data.energy_a = desc->v3.energy_a; in iwl_mvm_rx_mpdu_mq()
2348 phy_data.energy_b = desc->v3.energy_b; in iwl_mvm_rx_mpdu_mq()
2350 phy_data.d0 = desc->v3.phy_data0; in iwl_mvm_rx_mpdu_mq()
2351 phy_data.d1 = desc->v3.phy_data1; in iwl_mvm_rx_mpdu_mq()
2352 phy_data.d2 = desc->v3.phy_data2; in iwl_mvm_rx_mpdu_mq()
2353 phy_data.d3 = desc->v3.phy_data3; in iwl_mvm_rx_mpdu_mq()
2354 phy_data.eht_d4 = desc->phy_eht_data4; in iwl_mvm_rx_mpdu_mq()
2355 phy_data.d5 = desc->v3.phy_data5; in iwl_mvm_rx_mpdu_mq()
2357 phy_data.rate_n_flags = le32_to_cpu(desc->v1.rate_n_flags); in iwl_mvm_rx_mpdu_mq()
2358 phy_data.channel = desc->v1.channel; in iwl_mvm_rx_mpdu_mq()
2359 phy_data.gp2_on_air_rise = le32_to_cpu(desc->v1.gp2_on_air_rise); in iwl_mvm_rx_mpdu_mq()
2360 phy_data.energy_a = desc->v1.energy_a; in iwl_mvm_rx_mpdu_mq()
2361 phy_data.energy_b = desc->v1.energy_b; in iwl_mvm_rx_mpdu_mq()
2363 phy_data.d0 = desc->v1.phy_data0; in iwl_mvm_rx_mpdu_mq()
2364 phy_data.d1 = desc->v1.phy_data1; in iwl_mvm_rx_mpdu_mq()
2365 phy_data.d2 = desc->v1.phy_data2; in iwl_mvm_rx_mpdu_mq()
2366 phy_data.d3 = desc->v1.phy_data3; in iwl_mvm_rx_mpdu_mq()
2371 phy_data.rate_n_flags = iwl_new_rate_from_v1(phy_data.rate_n_flags); in iwl_mvm_rx_mpdu_mq()
2373 phy_data.rate_n_flags); in iwl_mvm_rx_mpdu_mq()
2376 format = phy_data.rate_n_flags & RATE_MCS_MOD_TYPE_MSK; in iwl_mvm_rx_mpdu_mq()
2385 phy_data.with_data = true; in iwl_mvm_rx_mpdu_mq()
2386 phy_data.phy_info = le16_to_cpu(desc->phy_info); in iwl_mvm_rx_mpdu_mq()
2387 phy_data.d4 = desc->phy_data4; in iwl_mvm_rx_mpdu_mq()
2424 phy_data.phy_info & IWL_RX_MPDU_PHY_SHORT_PREAMBLE) in iwl_mvm_rx_mpdu_mq()
2427 if (likely(!(phy_data.phy_info & IWL_RX_MPDU_PHY_TSF_OVERLOAD))) { in iwl_mvm_rx_mpdu_mq()
2446 rx_status->band = phy_data.channel > 14 ? NL80211_BAND_5GHZ : in iwl_mvm_rx_mpdu_mq()
2451 if (!queue && (phy_data.phy_info & IWL_RX_MPDU_PHY_AMPDU)) { in iwl_mvm_rx_mpdu_mq()
2454 toggle_bit = phy_data.phy_info & IWL_RX_MPDU_PHY_AMPDU_TOGGLE; in iwl_mvm_rx_mpdu_mq()
2466 phy_data.first_subframe = true; in iwl_mvm_rx_mpdu_mq()
2490 if (iwl_mvm_rx_crypto(mvm, sta, hdr, rx_status, phy_data.phy_info, desc, in iwl_mvm_rx_mpdu_mq()
2497 iwl_mvm_rx_fill_status(mvm, skb, &phy_data, queue); in iwl_mvm_rx_mpdu_mq()
2633 struct iwl_mvm_rx_phy_data phy_data; in iwl_mvm_rx_monitor_no_data() local
2644 phy_data.d0 = desc->phy_info[0]; in iwl_mvm_rx_monitor_no_data()
2645 phy_data.d1 = desc->phy_info[1]; in iwl_mvm_rx_monitor_no_data()
2646 phy_data.phy_info = IWL_RX_MPDU_PHY_TSF_OVERLOAD; in iwl_mvm_rx_monitor_no_data()
2647 phy_data.gp2_on_air_rise = le32_to_cpu(desc->on_air_rise_time); in iwl_mvm_rx_monitor_no_data()
2648 phy_data.rate_n_flags = le32_to_cpu(desc->rate); in iwl_mvm_rx_monitor_no_data()
2649 phy_data.energy_a = u32_get_bits(rssi, RX_NO_DATA_CHAIN_A_MSK); in iwl_mvm_rx_monitor_no_data()
2650 phy_data.energy_b = u32_get_bits(rssi, RX_NO_DATA_CHAIN_B_MSK); in iwl_mvm_rx_monitor_no_data()
2651 phy_data.channel = u32_get_bits(rssi, RX_NO_DATA_CHANNEL_MSK); in iwl_mvm_rx_monitor_no_data()
2652 phy_data.with_data = false; in iwl_mvm_rx_monitor_no_data()
2653 phy_data.rx_vec[0] = desc->rx_vec[0]; in iwl_mvm_rx_monitor_no_data()
2654 phy_data.rx_vec[1] = desc->rx_vec[1]; in iwl_mvm_rx_monitor_no_data()
2659 phy_data.rate_n_flags); in iwl_mvm_rx_monitor_no_data()
2660 phy_data.rate_n_flags = iwl_new_rate_from_v1(phy_data.rate_n_flags); in iwl_mvm_rx_monitor_no_data()
2662 phy_data.rate_n_flags); in iwl_mvm_rx_monitor_no_data()
2665 format = phy_data.rate_n_flags & RATE_MCS_MOD_TYPE_MSK; in iwl_mvm_rx_monitor_no_data()
2673 phy_data.rx_vec[2] = desc->rx_vec[2]; in iwl_mvm_rx_monitor_no_data()
2674 phy_data.rx_vec[3] = desc->rx_vec[3]; in iwl_mvm_rx_monitor_no_data()
2711 rx_status->band = phy_data.channel > 14 ? NL80211_BAND_5GHZ : in iwl_mvm_rx_monitor_no_data()
2714 iwl_mvm_rx_fill_status(mvm, skb, &phy_data, queue); in iwl_mvm_rx_monitor_no_data()