Searched refs:vsi_ctx (Results 1 – 6 of 6) sorted by relevance
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/ |
D | ice_switch.c | 129 ice_aq_add_vsi(struct ice_hw *hw, struct ice_vsi_ctx *vsi_ctx, in ice_aq_add_vsi() argument 142 if (!vsi_ctx->alloc_from_pool) in ice_aq_add_vsi() 143 cmd->vsi_num = cpu_to_le16(vsi_ctx->vsi_num | in ice_aq_add_vsi() 145 cmd->vf_id = vsi_ctx->vf_num; in ice_aq_add_vsi() 147 cmd->vsi_flags = cpu_to_le16(vsi_ctx->flags); in ice_aq_add_vsi() 151 status = ice_aq_send_cmd(hw, &desc, &vsi_ctx->info, in ice_aq_add_vsi() 152 sizeof(vsi_ctx->info), cd); in ice_aq_add_vsi() 155 vsi_ctx->vsi_num = le16_to_cpu(res->vsi_num) & ICE_AQ_VSI_NUM_M; in ice_aq_add_vsi() 156 vsi_ctx->vsis_allocd = le16_to_cpu(res->vsi_used); in ice_aq_add_vsi() 157 vsi_ctx->vsis_unallocated = le16_to_cpu(res->vsi_free); in ice_aq_add_vsi() [all …]
|
D | ice_sched.c | 544 struct ice_vsi_ctx *vsi_ctx; in ice_alloc_lan_q_ctx() local 547 vsi_ctx = ice_get_vsi_ctx(hw, vsi_handle); in ice_alloc_lan_q_ctx() 548 if (!vsi_ctx) in ice_alloc_lan_q_ctx() 551 if (!vsi_ctx->lan_q_ctx[tc]) { in ice_alloc_lan_q_ctx() 552 vsi_ctx->lan_q_ctx[tc] = devm_kcalloc(ice_hw_to_dev(hw), in ice_alloc_lan_q_ctx() 556 if (!vsi_ctx->lan_q_ctx[tc]) in ice_alloc_lan_q_ctx() 558 vsi_ctx->num_lan_q_entries[tc] = new_numqs; in ice_alloc_lan_q_ctx() 562 if (new_numqs > vsi_ctx->num_lan_q_entries[tc]) { in ice_alloc_lan_q_ctx() 563 u16 prev_num = vsi_ctx->num_lan_q_entries[tc]; in ice_alloc_lan_q_ctx() 569 memcpy(q_ctx, vsi_ctx->lan_q_ctx[tc], in ice_alloc_lan_q_ctx() [all …]
|
D | ice_switch.h | 197 ice_add_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx, 200 ice_free_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx, 203 ice_update_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx,
|
D | ice_type.h | 607 struct ice_vsi_ctx *vsi_ctx[ICE_MAX_VSI]; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/i40e/ |
D | i40e_common.c | 1993 struct i40e_vsi_context *vsi_ctx, in i40e_aq_add_vsi() argument 2007 cmd->uplink_seid = cpu_to_le16(vsi_ctx->uplink_seid); in i40e_aq_add_vsi() 2008 cmd->connection_type = vsi_ctx->connection_type; in i40e_aq_add_vsi() 2009 cmd->vf_id = vsi_ctx->vf_num; in i40e_aq_add_vsi() 2010 cmd->vsi_flags = cpu_to_le16(vsi_ctx->flags); in i40e_aq_add_vsi() 2014 status = i40e_asq_send_command(hw, &desc, &vsi_ctx->info, in i40e_aq_add_vsi() 2015 sizeof(vsi_ctx->info), cmd_details); in i40e_aq_add_vsi() 2020 vsi_ctx->seid = le16_to_cpu(resp->seid); in i40e_aq_add_vsi() 2021 vsi_ctx->vsi_number = le16_to_cpu(resp->vsi_number); in i40e_aq_add_vsi() 2022 vsi_ctx->vsis_allocated = le16_to_cpu(resp->vsi_used); in i40e_aq_add_vsi() [all …]
|
D | i40e_prototype.h | 106 struct i40e_vsi_context *vsi_ctx, 131 struct i40e_vsi_context *vsi_ctx, 134 struct i40e_vsi_context *vsi_ctx,
|