Lines Matching refs:rate_n_flags
95 static inline u8 rs_extract_rate(u32 rate_n_flags) in rs_extract_rate() argument
97 return (u8)(rate_n_flags & RATE_MCS_RATE_MSK); in rs_extract_rate()
100 static int iwl_hwrate_to_plcp_idx(u32 rate_n_flags) in iwl_hwrate_to_plcp_idx() argument
105 if (rate_n_flags & RATE_MCS_HT_MSK) { in iwl_hwrate_to_plcp_idx()
106 idx = rs_extract_rate(rate_n_flags); in iwl_hwrate_to_plcp_idx()
124 rs_extract_rate(rate_n_flags)) in iwl_hwrate_to_plcp_idx()
136 struct iwl_lq_sta *lq_sta, u32 rate_n_flags);
142 u32 *rate_n_flags, int index);
145 u32 *rate_n_flags, int index) in rs_dbgfs_set_mcs() argument
403 static inline int get_num_of_ant_from_rate(u32 rate_n_flags) in get_num_of_ant_from_rate() argument
405 return !!(rate_n_flags & RATE_MCS_ANT_A_MSK) + in get_num_of_ant_from_rate()
406 !!(rate_n_flags & RATE_MCS_ANT_B_MSK) + in get_num_of_ant_from_rate()
407 !!(rate_n_flags & RATE_MCS_ANT_C_MSK); in get_num_of_ant_from_rate()
510 u32 rate_n_flags = 0; in rate_n_flags_from_tbl() local
513 rate_n_flags = iwl_rates[index].plcp; in rate_n_flags_from_tbl()
515 rate_n_flags |= RATE_MCS_CCK_MSK; in rate_n_flags_from_tbl()
522 rate_n_flags = RATE_MCS_HT_MSK; in rate_n_flags_from_tbl()
525 rate_n_flags |= iwl_rates[index].plcp_siso; in rate_n_flags_from_tbl()
527 rate_n_flags |= iwl_rates[index].plcp_mimo2; in rate_n_flags_from_tbl()
529 rate_n_flags |= iwl_rates[index].plcp_mimo3; in rate_n_flags_from_tbl()
534 rate_n_flags |= ((tbl->ant_type << RATE_MCS_ANT_POS) & in rate_n_flags_from_tbl()
540 rate_n_flags |= RATE_MCS_DUP_MSK; in rate_n_flags_from_tbl()
542 rate_n_flags |= RATE_MCS_HT40_MSK; in rate_n_flags_from_tbl()
545 rate_n_flags |= RATE_MCS_SGI_MSK; in rate_n_flags_from_tbl()
548 rate_n_flags |= RATE_MCS_GF_MSK; in rate_n_flags_from_tbl()
550 rate_n_flags &= ~RATE_MCS_SGI_MSK; in rate_n_flags_from_tbl()
555 return rate_n_flags; in rate_n_flags_from_tbl()
562 static int rs_get_tbl_info_from_mcs(const u32 rate_n_flags, in rs_get_tbl_info_from_mcs() argument
567 u32 ant_msk = (rate_n_flags & RATE_MCS_ANT_ABC_MSK); in rs_get_tbl_info_from_mcs()
568 u8 num_of_ant = get_num_of_ant_from_rate(rate_n_flags); in rs_get_tbl_info_from_mcs()
572 *rate_idx = iwl_hwrate_to_plcp_idx(rate_n_flags); in rs_get_tbl_info_from_mcs()
586 if (!(rate_n_flags & RATE_MCS_HT_MSK)) { in rs_get_tbl_info_from_mcs()
595 if (rate_n_flags & RATE_MCS_SGI_MSK) in rs_get_tbl_info_from_mcs()
598 if ((rate_n_flags & RATE_MCS_HT40_MSK) || in rs_get_tbl_info_from_mcs()
599 (rate_n_flags & RATE_MCS_DUP_MSK)) in rs_get_tbl_info_from_mcs()
602 if (rate_n_flags & RATE_MCS_DUP_MSK) in rs_get_tbl_info_from_mcs()
605 mcs = rs_extract_rate(rate_n_flags); in rs_get_tbl_info_from_mcs()
628 static int rs_toggle_antenna(u32 valid_ant, u32 *rate_n_flags, in rs_toggle_antenna() argument
649 *rate_n_flags &= ~RATE_MCS_ANT_ABC_MSK; in rs_toggle_antenna()
650 *rate_n_flags |= new_ant_type << RATE_MCS_ANT_POS; in rs_toggle_antenna()
894 tx_rate = le32_to_cpu(table->rs_table[0].rate_n_flags); in rs_tx_status()
973 tx_rate = le32_to_cpu(table->rs_table[0].rate_n_flags); in rs_tx_status()
998 tx_rate = le32_to_cpu(table->rs_table[i].rate_n_flags); in rs_tx_status()
2883 lq_cmd->rs_table[index].rate_n_flags = cpu_to_le32(new_rate); in rs_fill_link_cmd()
2921 lq_cmd->rs_table[index].rate_n_flags = in rs_fill_link_cmd()
2968 lq_cmd->rs_table[index].rate_n_flags = cpu_to_le32(new_rate); in rs_fill_link_cmd()
3013 u32 *rate_n_flags, int index) in rs_dbgfs_set_mcs() argument
3026 *rate_n_flags = lq_sta->dbg_fixed_rate; in rs_dbgfs_set_mcs()
3148 le32_to_cpu(lq_sta->lq.rs_table[i].rate_n_flags)); in rs_sta_dbgfs_scale_table_read()
3151 i, le32_to_cpu(lq_sta->lq.rs_table[i].rate_n_flags)); in rs_sta_dbgfs_scale_table_read()
3154 i, le32_to_cpu(lq_sta->lq.rs_table[i].rate_n_flags), in rs_sta_dbgfs_scale_table_read()
3158 i, le32_to_cpu(lq_sta->lq.rs_table[i].rate_n_flags), in rs_sta_dbgfs_scale_table_read()