qcacmn: Get ast_idx from dp peer structure

Get the ast_idx from dp peer structure to
set search index in HW tx descriptor

Change-Id: Icc7e70d8bb739348403663a1fe647849c57d277a
CRs-Fixed: 3346449
这个提交包含在:
KARTHIK KUMAR T
2022-11-24 18:09:26 +05:30
提交者 Madan Koyyalamudi
父节点 f1acd4d6d6
当前提交 a2625b18ab
修改 5 个文件,包含 86 行新增2 行删除

查看文件

@@ -487,6 +487,21 @@ hal_tx_desc_set_cache_set_num(hal_soc_handle_t hal_soc_hdl, void *desc,
HAL_TX_SM(TCL_DATA_CMD, CACHE_SET_NUM, cache_num);
}
/**
* hal_tx_desc_set_lookup_override_num - set lookup override num
* to the descriptor to Hardware
* @hal_soc_hdl: hal soc handle
* @hal_tx_des_cached: Cached descriptor that software maintains
* @cache_num: set numbernumber
*/
static inline void
hal_tx_desc_set_index_lookup_override(hal_soc_handle_t hal_soc_hdl,
void *desc, uint8_t num)
{
HAL_SET_FLD(desc, TCL_DATA_CMD, INDEX_LOOKUP_OVERRIDE) |=
HAL_TX_SM(TCL_DATA_CMD, INDEX_LOOKUP_OVERRIDE, num);
}
/*---------------------------------------------------------------------------
* WBM Descriptor accessor APIs for Tx completions
* ---------------------------------------------------------------------------