Lines Matching refs:htt
287 int ath10k_htt_connect(struct ath10k_htt *htt) in ath10k_htt_connect() argument
291 struct ath10k *ar = htt->ar; in ath10k_htt_connect()
305 status = ath10k_htc_connect_service(&htt->ar->htc, &conn_req, in ath10k_htt_connect()
311 htt->eid = conn_resp.eid; in ath10k_htt_connect()
314 ep = &ar->htc.endpoint[htt->eid]; in ath10k_htt_connect()
318 htt->disable_tx_comp = ath10k_hif_get_htt_tx_complete(htt->ar); in ath10k_htt_connect()
319 if (htt->disable_tx_comp) in ath10k_htt_connect()
320 ath10k_htc_change_tx_credit_flow(&htt->ar->htc, htt->eid, true); in ath10k_htt_connect()
327 struct ath10k_htt *htt = &ar->htt; in ath10k_htt_init() local
329 htt->ar = ar; in ath10k_htt_init()
337 htt->prefetch_len = in ath10k_htt_init()
345 ar->htt.t2h_msg_types = htt_10_4_t2h_msg_types; in ath10k_htt_init()
346 ar->htt.t2h_msg_types_max = HTT_10_4_T2H_NUM_MSGS; in ath10k_htt_init()
349 ar->htt.t2h_msg_types = htt_10x_t2h_msg_types; in ath10k_htt_init()
350 ar->htt.t2h_msg_types_max = HTT_10X_T2H_NUM_MSGS; in ath10k_htt_init()
353 ar->htt.t2h_msg_types = htt_tlv_t2h_msg_types; in ath10k_htt_init()
354 ar->htt.t2h_msg_types_max = HTT_TLV_T2H_NUM_MSGS; in ath10k_htt_init()
357 ar->htt.t2h_msg_types = htt_main_t2h_msg_types; in ath10k_htt_init()
358 ar->htt.t2h_msg_types_max = HTT_MAIN_T2H_NUM_MSGS; in ath10k_htt_init()
365 ath10k_htt_set_tx_ops(htt); in ath10k_htt_init()
366 ath10k_htt_set_rx_ops(htt); in ath10k_htt_init()
373 static int ath10k_htt_verify_version(struct ath10k_htt *htt) in ath10k_htt_verify_version() argument
375 struct ath10k *ar = htt->ar; in ath10k_htt_verify_version()
378 htt->target_version_major, htt->target_version_minor); in ath10k_htt_verify_version()
380 if (htt->target_version_major != 2 && in ath10k_htt_verify_version()
381 htt->target_version_major != 3) { in ath10k_htt_verify_version()
383 htt->target_version_major); in ath10k_htt_verify_version()
390 int ath10k_htt_setup(struct ath10k_htt *htt) in ath10k_htt_setup() argument
392 struct ath10k *ar = htt->ar; in ath10k_htt_setup()
395 init_completion(&htt->target_version_received); in ath10k_htt_setup()
397 status = ath10k_htt_h2t_ver_req_msg(htt); in ath10k_htt_setup()
401 status = wait_for_completion_timeout(&htt->target_version_received, in ath10k_htt_setup()
408 status = ath10k_htt_verify_version(htt); in ath10k_htt_setup()
415 status = ath10k_htt_send_frag_desc_bank_cfg(htt); in ath10k_htt_setup()
419 status = ath10k_htt_send_rx_ring_cfg(htt); in ath10k_htt_setup()
426 status = ath10k_htt_h2t_aggr_cfg_msg(htt, in ath10k_htt_setup()
427 htt->max_num_ampdu, in ath10k_htt_setup()
428 htt->max_num_amsdu); in ath10k_htt_setup()