Lines Matching refs:ucode_rate
819 u32 ucode_rate = 0; in ucode_rate_from_rs_rate() local
822 ucode_rate |= ((rate->ant << RATE_MCS_ANT_POS) & in ucode_rate_from_rs_rate()
826 ucode_rate |= iwl_rates[index].plcp; in ucode_rate_from_rs_rate()
828 ucode_rate |= RATE_MCS_CCK_MSK; in ucode_rate_from_rs_rate()
829 return ucode_rate; in ucode_rate_from_rs_rate()
836 ucode_rate |= RATE_MCS_RTS_REQUIRED_MSK; in ucode_rate_from_rs_rate()
843 ucode_rate |= RATE_MCS_HT_MSK; in ucode_rate_from_rs_rate()
846 ucode_rate |= iwl_rates[index].plcp_ht_siso; in ucode_rate_from_rs_rate()
848 ucode_rate |= iwl_rates[index].plcp_ht_mimo2; in ucode_rate_from_rs_rate()
856 ucode_rate |= RATE_MCS_VHT_MSK; in ucode_rate_from_rs_rate()
858 ucode_rate |= iwl_rates[index].plcp_vht_siso; in ucode_rate_from_rs_rate()
860 ucode_rate |= iwl_rates[index].plcp_vht_mimo2; in ucode_rate_from_rs_rate()
870 ucode_rate |= RATE_MCS_ANT_AB_MSK; in ucode_rate_from_rs_rate()
871 ucode_rate |= RATE_MCS_STBC_MSK; in ucode_rate_from_rs_rate()
874 ucode_rate |= rate->bw; in ucode_rate_from_rs_rate()
876 ucode_rate |= RATE_MCS_SGI_MSK; in ucode_rate_from_rs_rate()
878 ucode_rate |= RATE_MCS_LDPC_MSK; in ucode_rate_from_rs_rate()
880 return ucode_rate; in ucode_rate_from_rs_rate()
884 static int rs_rate_from_ucode_rate(const u32 ucode_rate, in rs_rate_from_ucode_rate() argument
888 u32 ant_msk = ucode_rate & RATE_MCS_ANT_ABC_MSK; in rs_rate_from_ucode_rate()
889 u8 num_of_ant = get_num_of_ant_from_rate(ucode_rate); in rs_rate_from_ucode_rate()
893 rate->index = iwl_hwrate_to_plcp_idx(ucode_rate); in rs_rate_from_ucode_rate()
901 if (!(ucode_rate & RATE_MCS_HT_MSK) && in rs_rate_from_ucode_rate()
902 !(ucode_rate & RATE_MCS_VHT_MSK) && in rs_rate_from_ucode_rate()
903 !(ucode_rate & RATE_MCS_HE_MSK)) { in rs_rate_from_ucode_rate()
915 if (ucode_rate & RATE_MCS_SGI_MSK) in rs_rate_from_ucode_rate()
917 if (ucode_rate & RATE_MCS_LDPC_MSK) in rs_rate_from_ucode_rate()
919 if (ucode_rate & RATE_MCS_STBC_MSK) in rs_rate_from_ucode_rate()
921 if (ucode_rate & RATE_MCS_BF_MSK) in rs_rate_from_ucode_rate()
924 rate->bw = ucode_rate & RATE_MCS_CHAN_WIDTH_MSK; in rs_rate_from_ucode_rate()
926 if (ucode_rate & RATE_MCS_HT_MSK) { in rs_rate_from_ucode_rate()
927 nss = ((ucode_rate & RATE_HT_MCS_NSS_MSK) >> in rs_rate_from_ucode_rate()
941 } else if (ucode_rate & RATE_MCS_VHT_MSK) { in rs_rate_from_ucode_rate()
942 nss = ((ucode_rate & RATE_VHT_MCS_NSS_MSK) >> in rs_rate_from_ucode_rate()
956 } else if (ucode_rate & RATE_MCS_HE_MSK) { in rs_rate_from_ucode_rate()
957 nss = ((ucode_rate & RATE_VHT_MCS_NSS_MSK) >> in rs_rate_from_ucode_rate()
3320 u32 ucode_rate) in rs_build_rates_table_from_fixed() argument
3325 __le32 ucode_rate_le32 = cpu_to_le32(ucode_rate); in rs_build_rates_table_from_fixed()
3326 u8 ant = (ucode_rate & RATE_MCS_ANT_ABC_MSK) >> RATE_MCS_ANT_POS; in rs_build_rates_table_from_fixed()
3331 if (rs_rate_from_ucode_rate(ucode_rate, band, &rate)) { in rs_build_rates_table_from_fixed()
3362 __le32 ucode_rate; in rs_fill_rates_for_column() local
3370 ucode_rate = cpu_to_le32(ucode_rate_from_rs_rate(mvm, in rs_fill_rates_for_column()
3372 rs_table[index] = ucode_rate; in rs_fill_rates_for_column()