Searched refs:vsi_ctx (Results 1 – 6 of 6) sorted by relevance
/drivers/net/ethernet/intel/ice/ |
D | ice_sched.c | 564 struct ice_vsi_ctx *vsi_ctx; in ice_alloc_lan_q_ctx() local 567 vsi_ctx = ice_get_vsi_ctx(hw, vsi_handle); in ice_alloc_lan_q_ctx() 568 if (!vsi_ctx) in ice_alloc_lan_q_ctx() 571 if (!vsi_ctx->lan_q_ctx[tc]) { in ice_alloc_lan_q_ctx() 572 vsi_ctx->lan_q_ctx[tc] = devm_kcalloc(ice_hw_to_dev(hw), in ice_alloc_lan_q_ctx() 576 if (!vsi_ctx->lan_q_ctx[tc]) in ice_alloc_lan_q_ctx() 578 vsi_ctx->num_lan_q_entries[tc] = new_numqs; in ice_alloc_lan_q_ctx() 582 if (new_numqs > vsi_ctx->num_lan_q_entries[tc]) { in ice_alloc_lan_q_ctx() 583 u16 prev_num = vsi_ctx->num_lan_q_entries[tc]; in ice_alloc_lan_q_ctx() 589 memcpy(q_ctx, vsi_ctx->lan_q_ctx[tc], in ice_alloc_lan_q_ctx() [all …]
|
D | ice_switch.c | 130 ice_aq_add_vsi(struct ice_hw *hw, struct ice_vsi_ctx *vsi_ctx, in ice_aq_add_vsi() argument 143 if (!vsi_ctx->alloc_from_pool) in ice_aq_add_vsi() 144 cmd->vsi_num = cpu_to_le16(vsi_ctx->vsi_num | in ice_aq_add_vsi() 146 cmd->vf_id = vsi_ctx->vf_num; in ice_aq_add_vsi() 148 cmd->vsi_flags = cpu_to_le16(vsi_ctx->flags); in ice_aq_add_vsi() 152 status = ice_aq_send_cmd(hw, &desc, &vsi_ctx->info, in ice_aq_add_vsi() 153 sizeof(vsi_ctx->info), cd); in ice_aq_add_vsi() 156 vsi_ctx->vsi_num = le16_to_cpu(res->vsi_num) & ICE_AQ_VSI_NUM_M; in ice_aq_add_vsi() 157 vsi_ctx->vsis_allocd = le16_to_cpu(res->vsi_used); in ice_aq_add_vsi() 158 vsi_ctx->vsis_unallocated = le16_to_cpu(res->vsi_free); in ice_aq_add_vsi() [all …]
|
D | ice_switch.h | 199 ice_add_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx, 202 ice_free_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx, 205 ice_update_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx,
|
D | ice_type.h | 798 struct ice_vsi_ctx *vsi_ctx[ICE_MAX_VSI]; member
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_common.c | 1735 struct i40e_vsi_context *vsi_ctx, in i40e_aq_add_vsi() argument 1749 cmd->uplink_seid = cpu_to_le16(vsi_ctx->uplink_seid); in i40e_aq_add_vsi() 1750 cmd->connection_type = vsi_ctx->connection_type; in i40e_aq_add_vsi() 1751 cmd->vf_id = vsi_ctx->vf_num; in i40e_aq_add_vsi() 1752 cmd->vsi_flags = cpu_to_le16(vsi_ctx->flags); in i40e_aq_add_vsi() 1756 status = i40e_asq_send_command(hw, &desc, &vsi_ctx->info, in i40e_aq_add_vsi() 1757 sizeof(vsi_ctx->info), cmd_details); in i40e_aq_add_vsi() 1762 vsi_ctx->seid = le16_to_cpu(resp->seid); in i40e_aq_add_vsi() 1763 vsi_ctx->vsi_number = le16_to_cpu(resp->vsi_number); in i40e_aq_add_vsi() 1764 vsi_ctx->vsis_allocated = le16_to_cpu(resp->vsi_used); in i40e_aq_add_vsi() [all …]
|
D | i40e_prototype.h | 95 struct i40e_vsi_context *vsi_ctx, 119 struct i40e_vsi_context *vsi_ctx, 122 struct i40e_vsi_context *vsi_ctx,
|