Lines Matching refs:phy_data

1212 				     struct iwl_mvm_rx_phy_data *phy_data,  in iwl_mvm_decode_he_mu_ext()  argument
1215 u32 phy_data2 = le32_to_cpu(phy_data->d2); in iwl_mvm_decode_he_mu_ext()
1216 u32 phy_data3 = le32_to_cpu(phy_data->d3); in iwl_mvm_decode_he_mu_ext()
1217 u16 phy_data4 = le16_to_cpu(phy_data->d4); in iwl_mvm_decode_he_mu_ext()
1218 u32 rate_n_flags = phy_data->rate_n_flags; in iwl_mvm_decode_he_mu_ext()
1263 iwl_mvm_decode_he_phy_ru_alloc(struct iwl_mvm_rx_phy_data *phy_data, in iwl_mvm_decode_he_phy_ru_alloc() argument
1276 u8 ru = le32_get_bits(phy_data->d1, IWL_RX_PHY_DATA1_HE_RU_ALLOC_MASK); in iwl_mvm_decode_he_phy_ru_alloc()
1277 u32 rate_n_flags = phy_data->rate_n_flags; in iwl_mvm_decode_he_phy_ru_alloc()
1317 if (phy_data->d1 & cpu_to_le32(IWL_RX_PHY_DATA1_HE_RU_ALLOC_SEC80)) in iwl_mvm_decode_he_phy_ru_alloc()
1345 struct iwl_mvm_rx_phy_data *phy_data, in iwl_mvm_decode_he_phy_data() argument
1351 switch (phy_data->info_type) { 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()
1377 he->data4 |= le16_encode_bits(le32_get_bits(phy_data->d2, in iwl_mvm_decode_he_phy_data()
1393 he->data3 |= le16_encode_bits(le32_get_bits(phy_data->d0, in iwl_mvm_decode_he_phy_data()
1396 if (phy_data->info_type != IWL_RX_PHY_INFO_TYPE_HE_TB && in iwl_mvm_decode_he_phy_data()
1397 phy_data->info_type != IWL_RX_PHY_INFO_TYPE_HE_TB_EXT) { in iwl_mvm_decode_he_phy_data()
1399 he->data3 |= le16_encode_bits(le32_get_bits(phy_data->d0, in iwl_mvm_decode_he_phy_data()
1403 he->data3 |= 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->d0, in iwl_mvm_decode_he_phy_data()
1412 he->data5 |= le16_encode_bits(le32_get_bits(phy_data->d1, 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()
1418 he->data6 |= le16_encode_bits(le32_get_bits(phy_data->d0, in iwl_mvm_decode_he_phy_data()
1424 switch (phy_data->info_type) { in iwl_mvm_decode_he_phy_data()
1429 he->data4 |= le16_encode_bits(le32_get_bits(phy_data->d0, in iwl_mvm_decode_he_phy_data()
1438 switch (phy_data->info_type) { in iwl_mvm_decode_he_phy_data()
1441 le16_encode_bits(le16_get_bits(phy_data->d4, in iwl_mvm_decode_he_phy_data()
1445 le16_encode_bits(le16_get_bits(phy_data->d4, in iwl_mvm_decode_he_phy_data()
1449 le16_encode_bits(le16_get_bits(phy_data->d4, in iwl_mvm_decode_he_phy_data()
1452 iwl_mvm_decode_he_mu_ext(mvm, phy_data, he_mu); in iwl_mvm_decode_he_phy_data()
1456 le16_encode_bits(le32_get_bits(phy_data->d1, in iwl_mvm_decode_he_phy_data()
1460 le16_encode_bits(le32_get_bits(phy_data->d1, in iwl_mvm_decode_he_phy_data()
1466 iwl_mvm_decode_he_phy_ru_alloc(phy_data, he, he_mu, rx_status); in iwl_mvm_decode_he_phy_data()
1470 he->data3 |= le16_encode_bits(le32_get_bits(phy_data->d0, in iwl_mvm_decode_he_phy_data()
1526 struct iwl_mvm_rx_phy_data *phy_data, in iwl_mvm_decode_eht_ext_mu() argument
1531 if (phy_data->with_data) { in iwl_mvm_decode_eht_ext_mu()
1532 __le32 data1 = phy_data->d1; in iwl_mvm_decode_eht_ext_mu()
1533 __le32 data2 = phy_data->d2; in iwl_mvm_decode_eht_ext_mu()
1534 __le32 data3 = phy_data->d3; in iwl_mvm_decode_eht_ext_mu()
1535 __le32 data4 = phy_data->eht_d4; in iwl_mvm_decode_eht_ext_mu()
1536 __le32 data5 = phy_data->d5; in iwl_mvm_decode_eht_ext_mu()
1537 u32 phy_bw = phy_data->rate_n_flags & RATE_MCS_CHAN_WIDTH_MSK; in iwl_mvm_decode_eht_ext_mu()
1602 __le32 usig_a1 = phy_data->rx_vec[0]; in iwl_mvm_decode_eht_ext_mu()
1603 __le32 usig_a2 = phy_data->rx_vec[1]; in iwl_mvm_decode_eht_ext_mu()
1636 struct iwl_mvm_rx_phy_data *phy_data, in iwl_mvm_decode_eht_ext_tb() argument
1641 if (phy_data->with_data) { in iwl_mvm_decode_eht_ext_tb()
1642 __le32 data5 = phy_data->d5; in iwl_mvm_decode_eht_ext_tb()
1655 __le32 usig_a1 = phy_data->rx_vec[0]; in iwl_mvm_decode_eht_ext_tb()
1656 __le32 usig_a2 = phy_data->rx_vec[1]; in iwl_mvm_decode_eht_ext_tb()
1752 struct iwl_mvm_rx_phy_data *phy_data, in iwl_mvm_decode_eht_phy_data() argument
1758 __le32 data0 = phy_data->d0; in iwl_mvm_decode_eht_phy_data()
1759 __le32 data1 = phy_data->d1; in iwl_mvm_decode_eht_phy_data()
1760 __le32 usig_a1 = phy_data->rx_vec[0]; in iwl_mvm_decode_eht_phy_data()
1761 u8 info_type = phy_data->info_type; in iwl_mvm_decode_eht_phy_data()
1771 if (phy_data->with_data) { in iwl_mvm_decode_eht_phy_data()
1822 if (phy_data->with_data) in iwl_mvm_decode_eht_phy_data()
1861 iwl_mvm_decode_eht_ext_tb(mvm, phy_data, rx_status, eht, usig); in iwl_mvm_decode_eht_phy_data()
1865 iwl_mvm_decode_eht_ext_mu(mvm, phy_data, rx_status, eht, usig); in iwl_mvm_decode_eht_phy_data()
1869 struct iwl_mvm_rx_phy_data *phy_data, in iwl_mvm_rx_eht() argument
1878 u32 rate_n_flags = phy_data->rate_n_flags; in iwl_mvm_rx_eht()
1882 u16 phy_info = phy_data->phy_info; in iwl_mvm_rx_eht()
1886 if (phy_data->with_data) in iwl_mvm_rx_eht()
1901 le32_to_cpu(phy_data->d0)); in iwl_mvm_rx_eht()
1910 if (phy_data->d0 & cpu_to_le32(IWL_RX_PHY_DATA0_EHT_DELIM_EOF)) in iwl_mvm_rx_eht()
1916 (phy_info & IWL_RX_MPDU_PHY_AMPDU) && phy_data->first_subframe) { in iwl_mvm_rx_eht()
1918 if (phy_data->d0 & cpu_to_le32(IWL_RX_PHY_DATA0_EHT_DELIM_EOF)) in iwl_mvm_rx_eht()
1923 iwl_mvm_decode_eht_phy_data(mvm, phy_data, rx_status, eht, usig); in iwl_mvm_rx_eht()
1976 if (!phy_data->with_data) { in iwl_mvm_rx_eht()
1980 le32_encode_bits(le32_get_bits(phy_data->rx_vec[2], in iwl_mvm_rx_eht()
2012 struct iwl_mvm_rx_phy_data *phy_data, in iwl_mvm_rx_he() argument
2018 u32 rate_n_flags = phy_data->rate_n_flags; in iwl_mvm_rx_he()
2037 u16 phy_info = phy_data->phy_info; in iwl_mvm_rx_he()
2042 if (phy_data->info_type == IWL_RX_PHY_INFO_TYPE_HE_MU || in iwl_mvm_rx_he()
2043 phy_data->info_type == IWL_RX_PHY_INFO_TYPE_HE_MU_EXT) { in iwl_mvm_rx_he()
2052 if (phy_data->d0 & cpu_to_le32(IWL_RX_PHY_DATA0_HE_DELIM_EOF)) in iwl_mvm_rx_he()
2057 iwl_mvm_decode_he_phy_data(mvm, phy_data, he, he_mu, rx_status, in iwl_mvm_rx_he()
2062 (phy_info & IWL_RX_MPDU_PHY_AMPDU) && phy_data->first_subframe) { in iwl_mvm_rx_he()
2064 if (phy_data->d0 & cpu_to_le32(IWL_RX_PHY_DATA0_EHT_DELIM_EOF)) in iwl_mvm_rx_he()
2139 struct iwl_mvm_rx_phy_data *phy_data) in iwl_mvm_decode_lsig() argument
2144 switch (phy_data->info_type) { in iwl_mvm_decode_lsig()
2159 lsig->data2 = le16_encode_bits(le32_get_bits(phy_data->d1, in iwl_mvm_decode_lsig()
2207 struct iwl_mvm_rx_phy_data *phy_data, in iwl_mvm_rx_fill_status() argument
2211 u32 rate_n_flags = phy_data->rate_n_flags; in iwl_mvm_rx_fill_status()
2216 phy_data->info_type = IWL_RX_PHY_INFO_TYPE_NONE; in iwl_mvm_rx_fill_status()
2218 if (phy_data->phy_info & IWL_RX_MPDU_PHY_TSF_OVERLOAD) in iwl_mvm_rx_fill_status()
2219 phy_data->info_type = in iwl_mvm_rx_fill_status()
2220 le32_get_bits(phy_data->d1, in iwl_mvm_rx_fill_status()
2243 iwl_mvm_rx_he(mvm, skb, phy_data, queue); in iwl_mvm_rx_fill_status()
2245 iwl_mvm_decode_lsig(skb, phy_data); in iwl_mvm_rx_fill_status()
2247 rx_status->device_timestamp = phy_data->gp2_on_air_rise; in iwl_mvm_rx_fill_status()
2248 rx_status->freq = ieee80211_channel_to_frequency(phy_data->channel, in iwl_mvm_rx_fill_status()
2251 phy_data->energy_a, phy_data->energy_b); in iwl_mvm_rx_fill_status()
2255 iwl_mvm_rx_eht(mvm, skb, phy_data, queue); in iwl_mvm_rx_fill_status()
2330 struct iwl_mvm_rx_phy_data phy_data = {}; in iwl_mvm_rx_mpdu_mq() local
2347 phy_data.rate_n_flags = le32_to_cpu(desc->v3.rate_n_flags); in iwl_mvm_rx_mpdu_mq()
2348 phy_data.channel = desc->v3.channel; in iwl_mvm_rx_mpdu_mq()
2349 phy_data.gp2_on_air_rise = le32_to_cpu(desc->v3.gp2_on_air_rise); in iwl_mvm_rx_mpdu_mq()
2350 phy_data.energy_a = desc->v3.energy_a; in iwl_mvm_rx_mpdu_mq()
2351 phy_data.energy_b = desc->v3.energy_b; in iwl_mvm_rx_mpdu_mq()
2353 phy_data.d0 = desc->v3.phy_data0; in iwl_mvm_rx_mpdu_mq()
2354 phy_data.d1 = desc->v3.phy_data1; in iwl_mvm_rx_mpdu_mq()
2355 phy_data.d2 = desc->v3.phy_data2; in iwl_mvm_rx_mpdu_mq()
2356 phy_data.d3 = desc->v3.phy_data3; in iwl_mvm_rx_mpdu_mq()
2357 phy_data.eht_d4 = desc->phy_eht_data4; in iwl_mvm_rx_mpdu_mq()
2358 phy_data.d5 = desc->v3.phy_data5; in iwl_mvm_rx_mpdu_mq()
2360 phy_data.rate_n_flags = le32_to_cpu(desc->v1.rate_n_flags); in iwl_mvm_rx_mpdu_mq()
2361 phy_data.channel = desc->v1.channel; in iwl_mvm_rx_mpdu_mq()
2362 phy_data.gp2_on_air_rise = le32_to_cpu(desc->v1.gp2_on_air_rise); in iwl_mvm_rx_mpdu_mq()
2363 phy_data.energy_a = desc->v1.energy_a; in iwl_mvm_rx_mpdu_mq()
2364 phy_data.energy_b = desc->v1.energy_b; in iwl_mvm_rx_mpdu_mq()
2366 phy_data.d0 = desc->v1.phy_data0; in iwl_mvm_rx_mpdu_mq()
2367 phy_data.d1 = desc->v1.phy_data1; in iwl_mvm_rx_mpdu_mq()
2368 phy_data.d2 = desc->v1.phy_data2; in iwl_mvm_rx_mpdu_mq()
2369 phy_data.d3 = desc->v1.phy_data3; in iwl_mvm_rx_mpdu_mq()
2374 phy_data.rate_n_flags = iwl_new_rate_from_v1(phy_data.rate_n_flags); in iwl_mvm_rx_mpdu_mq()
2376 phy_data.rate_n_flags); in iwl_mvm_rx_mpdu_mq()
2379 format = phy_data.rate_n_flags & RATE_MCS_MOD_TYPE_MSK; in iwl_mvm_rx_mpdu_mq()
2388 phy_data.with_data = true; in iwl_mvm_rx_mpdu_mq()
2389 phy_data.phy_info = le16_to_cpu(desc->phy_info); in iwl_mvm_rx_mpdu_mq()
2390 phy_data.d4 = desc->phy_data4; in iwl_mvm_rx_mpdu_mq()
2427 phy_data.phy_info & IWL_RX_MPDU_PHY_SHORT_PREAMBLE) in iwl_mvm_rx_mpdu_mq()
2430 if (likely(!(phy_data.phy_info & IWL_RX_MPDU_PHY_TSF_OVERLOAD))) { in iwl_mvm_rx_mpdu_mq()
2449 rx_status->band = phy_data.channel > 14 ? NL80211_BAND_5GHZ : in iwl_mvm_rx_mpdu_mq()
2454 if (!queue && (phy_data.phy_info & IWL_RX_MPDU_PHY_AMPDU)) { in iwl_mvm_rx_mpdu_mq()
2457 toggle_bit = phy_data.phy_info & IWL_RX_MPDU_PHY_AMPDU_TOGGLE; in iwl_mvm_rx_mpdu_mq()
2469 phy_data.first_subframe = true; in iwl_mvm_rx_mpdu_mq()
2498 if (iwl_mvm_rx_crypto(mvm, sta, hdr, rx_status, phy_data.phy_info, desc, in iwl_mvm_rx_mpdu_mq()
2505 iwl_mvm_rx_fill_status(mvm, skb, &phy_data, queue); in iwl_mvm_rx_mpdu_mq()
2646 struct iwl_mvm_rx_phy_data phy_data; in iwl_mvm_rx_monitor_no_data() local
2657 phy_data.d0 = desc->phy_info[0]; in iwl_mvm_rx_monitor_no_data()
2658 phy_data.d1 = desc->phy_info[1]; in iwl_mvm_rx_monitor_no_data()
2659 phy_data.phy_info = IWL_RX_MPDU_PHY_TSF_OVERLOAD; in iwl_mvm_rx_monitor_no_data()
2660 phy_data.gp2_on_air_rise = le32_to_cpu(desc->on_air_rise_time); in iwl_mvm_rx_monitor_no_data()
2661 phy_data.rate_n_flags = le32_to_cpu(desc->rate); in iwl_mvm_rx_monitor_no_data()
2662 phy_data.energy_a = u32_get_bits(rssi, RX_NO_DATA_CHAIN_A_MSK); in iwl_mvm_rx_monitor_no_data()
2663 phy_data.energy_b = u32_get_bits(rssi, RX_NO_DATA_CHAIN_B_MSK); in iwl_mvm_rx_monitor_no_data()
2664 phy_data.channel = u32_get_bits(rssi, RX_NO_DATA_CHANNEL_MSK); in iwl_mvm_rx_monitor_no_data()
2665 phy_data.with_data = false; in iwl_mvm_rx_monitor_no_data()
2666 phy_data.rx_vec[0] = desc->rx_vec[0]; in iwl_mvm_rx_monitor_no_data()
2667 phy_data.rx_vec[1] = desc->rx_vec[1]; in iwl_mvm_rx_monitor_no_data()
2672 phy_data.rate_n_flags); in iwl_mvm_rx_monitor_no_data()
2673 phy_data.rate_n_flags = iwl_new_rate_from_v1(phy_data.rate_n_flags); in iwl_mvm_rx_monitor_no_data()
2675 phy_data.rate_n_flags); in iwl_mvm_rx_monitor_no_data()
2678 format = phy_data.rate_n_flags & RATE_MCS_MOD_TYPE_MSK; in iwl_mvm_rx_monitor_no_data()
2686 phy_data.rx_vec[2] = desc->rx_vec[2]; in iwl_mvm_rx_monitor_no_data()
2687 phy_data.rx_vec[3] = desc->rx_vec[3]; in iwl_mvm_rx_monitor_no_data()
2724 rx_status->band = phy_data.channel > 14 ? NL80211_BAND_5GHZ : in iwl_mvm_rx_monitor_no_data()
2727 iwl_mvm_rx_fill_status(mvm, skb, &phy_data, queue); in iwl_mvm_rx_monitor_no_data()