Lines Matching refs:il

126 static void il4965_rs_rate_scale_perform(struct il_priv *il,
130 static void il4965_rs_fill_link_cmd(struct il_priv *il,
338 il4965_rs_tl_turn_on_agg_for_tid(struct il_priv *il, struct il_lq_sta *lq_data, in il4965_rs_tl_turn_on_agg_for_tid() argument
366 il4965_rs_tl_turn_on_agg(struct il_priv *il, u8 tid, struct il_lq_sta *lq_data, in il4965_rs_tl_turn_on_agg() argument
370 il4965_rs_tl_turn_on_agg_for_tid(il, lq_data, tid, sta); in il4965_rs_tl_turn_on_agg()
482 il4965_rate_n_flags_from_tbl(struct il_priv *il, struct il_scale_tbl_info *tbl, in il4965_rate_n_flags_from_tbl() argument
628 il4965_rs_use_green(struct il_priv *il, struct ieee80211_sta *sta) in il4965_rs_use_green() argument
631 !il->ht.non_gf_sta_present; in il4965_rs_use_green()
657 il4965_rs_get_adjacent_rate(struct il_priv *il, u8 idx, u16 rate_mask, in il4965_rs_get_adjacent_rate() argument
723 struct il_priv *il = lq_sta->drv; in il4965_rs_get_lower_rate() local
738 il4965_first_antenna(il->hw_params.valid_tx_ant); in il4965_rs_get_lower_rate()
801 struct il_priv *il = (struct il_priv *)il_r; in il4965_rs_tx_status() local
838 il4965_rs_get_tbl_info_from_mcs(tx_rate, il->band, &tbl_type, &rs_idx); in il4965_rs_tx_status()
839 if (il->band == NL80211_BAND_5GHZ) in il4965_rs_tx_status()
852 if (il->band == NL80211_BAND_2GHZ) in il4965_rs_tx_status()
874 il_send_lq_cmd(il, &lq_sta->lq, CMD_ASYNC, false); in il4965_rs_tx_status()
919 il4965_rs_get_tbl_info_from_mcs(tx_rate, il->band, &tbl_type, in il4965_rs_tx_status()
945 il4965_rs_get_tbl_info_from_mcs(tx_rate, il->band, in il4965_rs_tx_status()
974 il4965_rs_rate_scale_perform(il, skb, sta, lq_sta); in il4965_rs_tx_status()
986 il4965_rs_set_stay_in_table(struct il_priv *il, u8 is_legacy, in il4965_rs_set_stay_in_table() argument
1064 il4965_rs_get_best_rate(struct il_priv *il, struct il_lq_sta *lq_sta, in il4965_rs_get_best_rate() argument
1085 il4965_rs_get_adjacent_rate(il, rate, rate_mask, in il4965_rs_get_best_rate()
1158 il4965_rs_switch_to_mimo2(struct il_priv *il, struct il_lq_sta *lq_sta, in il4965_rs_switch_to_mimo2() argument
1174 if (il->hw_params.tx_chains_num < 2) in il4965_rs_switch_to_mimo2()
1185 if (il_is_ht40_tx_allowed(il, &sta->deflink.ht_cap)) in il4965_rs_switch_to_mimo2()
1192 rate = il4965_rs_get_best_rate(il, lq_sta, tbl, rate_mask, idx); in il4965_rs_switch_to_mimo2()
1201 il4965_rate_n_flags_from_tbl(il, tbl, rate, is_green); in il4965_rs_switch_to_mimo2()
1212 il4965_rs_switch_to_siso(struct il_priv *il, struct il_lq_sta *lq_sta, in il4965_rs_switch_to_siso() argument
1231 if (il_is_ht40_tx_allowed(il, &sta->deflink.ht_cap)) in il4965_rs_switch_to_siso()
1240 rate = il4965_rs_get_best_rate(il, lq_sta, tbl, rate_mask, idx); in il4965_rs_switch_to_siso()
1249 il4965_rate_n_flags_from_tbl(il, tbl, rate, is_green); in il4965_rs_switch_to_siso()
1259 il4965_rs_move_legacy_other(struct il_priv *il, struct il_lq_sta *lq_sta, in il4965_rs_move_legacy_other() argument
1271 u8 valid_tx_ant = il->hw_params.valid_tx_ant; in il4965_rs_move_legacy_other()
1272 u8 tx_chains_num = il->hw_params.tx_chains_num; in il4965_rs_move_legacy_other()
1315 il4965_rs_switch_to_siso(il, lq_sta, conf, sta, in il4965_rs_move_legacy_other()
1344 il4965_rs_switch_to_mimo2(il, lq_sta, conf, sta, in il4965_rs_move_legacy_other()
1378 il4965_rs_move_siso_to_other(struct il_priv *il, struct il_lq_sta *lq_sta, in il4965_rs_move_siso_to_other() argument
1392 u8 valid_tx_ant = il->hw_params.valid_tx_ant; in il4965_rs_move_siso_to_other()
1393 u8 tx_chains_num = il->hw_params.tx_chains_num; in il4965_rs_move_siso_to_other()
1441 il4965_rs_switch_to_mimo2(il, lq_sta, conf, sta, in il4965_rs_move_siso_to_other()
1471 il4965_rate_n_flags_from_tbl(il, search_tbl, idx, in il4965_rs_move_siso_to_other()
1501 il4965_rs_move_mimo2_to_other(struct il_priv *il, struct il_lq_sta *lq_sta, in il4965_rs_move_mimo2_to_other() argument
1515 u8 valid_tx_ant = il->hw_params.valid_tx_ant; in il4965_rs_move_mimo2_to_other()
1516 u8 tx_chains_num = il->hw_params.tx_chains_num; in il4965_rs_move_mimo2_to_other()
1562 il4965_rs_switch_to_siso(il, lq_sta, conf, sta, in il4965_rs_move_mimo2_to_other()
1595 il4965_rate_n_flags_from_tbl(il, search_tbl, idx, in il4965_rs_move_mimo2_to_other()
1636 struct il_priv *il; in il4965_rs_stay_in_table() local
1638 il = lq_sta->drv; in il4965_rs_stay_in_table()
1710 il4965_rs_update_rate_tbl(struct il_priv *il, struct il_lq_sta *lq_sta, in il4965_rs_update_rate_tbl() argument
1716 rate = il4965_rate_n_flags_from_tbl(il, tbl, idx, is_green); in il4965_rs_update_rate_tbl()
1717 il4965_rs_fill_link_cmd(il, lq_sta, rate); in il4965_rs_update_rate_tbl()
1718 il_send_lq_cmd(il, &lq_sta->lq, CMD_ASYNC, false); in il4965_rs_update_rate_tbl()
1725 il4965_rs_rate_scale_perform(struct il_priv *il, struct sk_buff *skb, in il4965_rs_rate_scale_perform() argument
1729 struct ieee80211_hw *hw = il->hw; in il4965_rs_rate_scale_perform()
1767 tid_data = &il->stations[lq_sta->lq.sta_id].tid[tid]; in il4965_rs_rate_scale_perform()
1789 lq_sta->is_green = il4965_rs_use_green(il, sta); in il4965_rs_rate_scale_perform()
1828 il4965_rs_update_rate_tbl(il, lq_sta, tbl, idx, in il4965_rs_rate_scale_perform()
1933 il4965_rs_get_adjacent_rate(il, idx, rate_scale_idx_msk, in il4965_rs_rate_scale_perform()
2031 il4965_rs_update_rate_tbl(il, lq_sta, tbl, idx, is_green); in il4965_rs_rate_scale_perform()
2050 il4965_rs_move_legacy_other(il, lq_sta, conf, sta, idx); in il4965_rs_rate_scale_perform()
2052 il4965_rs_move_siso_to_other(il, lq_sta, conf, sta, in il4965_rs_rate_scale_perform()
2055 il4965_rs_move_mimo2_to_other(il, lq_sta, conf, sta, in il4965_rs_rate_scale_perform()
2070 il4965_rs_fill_link_cmd(il, lq_sta, tbl->current_rate); in il4965_rs_rate_scale_perform()
2071 il_send_lq_cmd(il, &lq_sta->lq, CMD_ASYNC, false); in il4965_rs_rate_scale_perform()
2086 il4965_rs_set_stay_in_table(il, 1, lq_sta); in il4965_rs_rate_scale_perform()
2098 &il->stations[lq_sta->lq.sta_id].tid[tid]; in il4965_rs_rate_scale_perform()
2102 il4965_rs_tl_turn_on_agg(il, tid, in il4965_rs_rate_scale_perform()
2106 il4965_rs_set_stay_in_table(il, 0, lq_sta); in il4965_rs_rate_scale_perform()
2112 il4965_rate_n_flags_from_tbl(il, tbl, idx, is_green); in il4965_rs_rate_scale_perform()
2132 il4965_rs_initialize_lq(struct il_priv *il, struct ieee80211_conf *conf, in il4965_rs_initialize_lq() argument
2146 use_green = il4965_rs_use_green(il, sta); in il4965_rs_initialize_lq()
2150 valid_tx_ant = il->hw_params.valid_tx_ant; in il4965_rs_initialize_lq()
2169 il4965_rs_get_tbl_info_from_mcs(rate, il->band, tbl, &rate_idx); in il4965_rs_initialize_lq()
2173 rate = il4965_rate_n_flags_from_tbl(il, tbl, rate_idx, use_green); in il4965_rs_initialize_lq()
2177 il->stations[lq_sta->lq.sta_id].lq = &lq_sta->lq; in il4965_rs_initialize_lq()
2178 il_send_lq_cmd(il, &lq_sta->lq, CMD_SYNC, true); in il4965_rs_initialize_lq()
2188 struct il_priv *il __maybe_unused = (struct il_priv *)il_r; in il4965_rs_get_rate()
2257 struct il_priv *il; in il4965_rs_alloc_sta() local
2259 il = (struct il_priv *)il_rate; in il4965_rs_alloc_sta()
2269 il4965_rs_rate_init(struct il_priv *il, struct ieee80211_sta *sta, u8 sta_id) in il4965_rs_rate_init() argument
2272 struct ieee80211_hw *hw = il->hw; in il4965_rs_rate_init()
2273 struct ieee80211_conf *conf = &il->hw->conf; in il4965_rs_rate_init()
2307 lq_sta->is_green = il4965_rs_use_green(il, sta); in il4965_rs_rate_init()
2308 lq_sta->active_legacy_rate = il->active_rate & ~(0x1000); in il4965_rs_rate_init()
2309 lq_sta->band = il->band; in il4965_rs_rate_init()
2327 il4965_first_antenna(il->hw_params.valid_tx_ant); in il4965_rs_rate_init()
2329 il->hw_params.valid_tx_ant & ~il4965_first_antenna(il->hw_params. in il4965_rs_rate_init()
2333 } else if (il4965_num_of_ant(il->hw_params.valid_tx_ant) == 2) { in il4965_rs_rate_init()
2335 il->hw_params.valid_tx_ant; in il4965_rs_rate_init()
2340 lq_sta->drv = il; in il4965_rs_rate_init()
2352 il4965_rs_initialize_lq(il, conf, sta, lq_sta); in il4965_rs_rate_init()
2356 il4965_rs_fill_link_cmd(struct il_priv *il, struct il_lq_sta *lq_sta, in il4965_rs_fill_link_cmd() argument
2398 if (il) in il4965_rs_fill_link_cmd()
2399 valid_tx_ant = il->hw_params.valid_tx_ant; in il4965_rs_fill_link_cmd()
2410 else if (il && in il4965_rs_fill_link_cmd()
2445 else if (il && in il4965_rs_fill_link_cmd()
2492 struct il_priv *il __maybe_unused = il_r; in il4965_rs_free_sta()
2503 struct il_priv *il; in il4965_rs_dbgfs_set_mcs() local
2507 il = lq_sta->drv; in il4965_rs_dbgfs_set_mcs()
2508 valid_tx_ant = il->hw_params.valid_tx_ant; in il4965_rs_dbgfs_set_mcs()
2535 struct il_priv *il; in il4965_rs_sta_dbgfs_scale_table_write() local
2540 il = lq_sta->drv; in il4965_rs_sta_dbgfs_scale_table_write()
2577 struct il_priv *il; in il4965_rs_sta_dbgfs_scale_table_read() local
2580 il = lq_sta->drv; in il4965_rs_sta_dbgfs_scale_table_read()
2594 (il->hw_params.valid_tx_ant & ANT_A) ? "ANT_A," : "", in il4965_rs_sta_dbgfs_scale_table_read()
2595 (il->hw_params.valid_tx_ant & ANT_B) ? "ANT_B," : "", in il4965_rs_sta_dbgfs_scale_table_read()
2596 (il->hw_params.valid_tx_ant & ANT_C) ? "ANT_C" : ""); in il4965_rs_sta_dbgfs_scale_table_read()
2748 il4965_rs_add_debugfs(void *il, void *il_sta, struct dentry *dir) in il4965_rs_add_debugfs() argument