Lines Matching refs:tlan_ctx
279 ice_setup_tx_ctx(struct ice_tx_ring *ring, struct ice_tlan_ctx *tlan_ctx, u16 pf_q) in ice_setup_tx_ctx() argument
284 tlan_ctx->base = ring->dma >> ICE_TLAN_CTX_BASE_S; in ice_setup_tx_ctx()
286 tlan_ctx->port_num = vsi->port_info->lport; in ice_setup_tx_ctx()
289 tlan_ctx->qlen = ring->count; in ice_setup_tx_ctx()
291 ice_set_cgd_num(tlan_ctx, ring->dcb_tc); in ice_setup_tx_ctx()
294 tlan_ctx->pf_num = hw->pf_id; in ice_setup_tx_ctx()
307 tlan_ctx->vmvf_type = ICE_TLAN_CTX_VMVF_TYPE_VMQ; in ice_setup_tx_ctx()
309 tlan_ctx->vmvf_type = ICE_TLAN_CTX_VMVF_TYPE_PF; in ice_setup_tx_ctx()
313 tlan_ctx->vmvf_num = hw->func_caps.vf_base_id + vsi->vf->vf_id; in ice_setup_tx_ctx()
314 tlan_ctx->vmvf_type = ICE_TLAN_CTX_VMVF_TYPE_VF; in ice_setup_tx_ctx()
317 tlan_ctx->vmvf_type = ICE_TLAN_CTX_VMVF_TYPE_VMQ; in ice_setup_tx_ctx()
325 tlan_ctx->src_vsi = ring->ch->vsi_num; in ice_setup_tx_ctx()
327 tlan_ctx->src_vsi = ice_get_hw_vsi_num(hw, vsi->idx); in ice_setup_tx_ctx()
332 tlan_ctx->tsyn_ena = 1; in ice_setup_tx_ctx()
338 tlan_ctx->tso_ena = ICE_TX_LEGACY; in ice_setup_tx_ctx()
339 tlan_ctx->tso_qnum = pf_q; in ice_setup_tx_ctx()
345 tlan_ctx->legacy_int = ICE_TX_LEGACY; in ice_setup_tx_ctx()
771 struct ice_tlan_ctx tlan_ctx = { 0 }; in ice_vsi_cfg_txq() local
784 ice_setup_tx_ctx(ring, &tlan_ctx, pf_q); in ice_vsi_cfg_txq()
787 ice_set_ctx(hw, (u8 *)&tlan_ctx, qg_buf->txqs[0].txq_ctx, in ice_vsi_cfg_txq()