Lines Matching refs:rate_n_flags
330 static inline u8 rs_extract_rate(u32 rate_n_flags) in rs_extract_rate() argument
333 return (u8)(rate_n_flags & RATE_LEGACY_RATE_MSK_V1); in rs_extract_rate()
336 static int iwl_hwrate_to_plcp_idx(u32 rate_n_flags) in iwl_hwrate_to_plcp_idx() argument
340 if (rate_n_flags & RATE_MCS_HT_MSK_V1) { in iwl_hwrate_to_plcp_idx()
341 idx = rate_n_flags & RATE_HT_MCS_RATE_CODE_MSK_V1; in iwl_hwrate_to_plcp_idx()
349 } else if (rate_n_flags & RATE_MCS_VHT_MSK_V1 || in iwl_hwrate_to_plcp_idx()
350 rate_n_flags & RATE_MCS_HE_MSK_V1) { in iwl_hwrate_to_plcp_idx()
351 idx = rate_n_flags & RATE_VHT_MCS_RATE_CODE_MSK; in iwl_hwrate_to_plcp_idx()
359 if ((rate_n_flags & RATE_MCS_HE_MSK_V1) && in iwl_hwrate_to_plcp_idx()
365 u8 legacy_rate = rs_extract_rate(rate_n_flags); in iwl_hwrate_to_plcp_idx()
611 static inline int get_num_of_ant_from_rate(u32 rate_n_flags) in get_num_of_ant_from_rate() argument
613 return !!(rate_n_flags & RATE_MCS_ANT_A_MSK) + in get_num_of_ant_from_rate()
614 !!(rate_n_flags & RATE_MCS_ANT_B_MSK); in get_num_of_ant_from_rate()