Home
last modified time | relevance | path

Searched refs:vsi_ctx (Results 1 – 6 of 6) sorted by relevance

/drivers/net/ethernet/intel/ice/
Dice_sched.c525 struct ice_vsi_ctx *vsi_ctx; in ice_alloc_lan_q_ctx() local
528 vsi_ctx = ice_get_vsi_ctx(hw, vsi_handle); in ice_alloc_lan_q_ctx()
529 if (!vsi_ctx) in ice_alloc_lan_q_ctx()
532 if (!vsi_ctx->lan_q_ctx[tc]) { in ice_alloc_lan_q_ctx()
533 vsi_ctx->lan_q_ctx[tc] = devm_kcalloc(ice_hw_to_dev(hw), in ice_alloc_lan_q_ctx()
537 if (!vsi_ctx->lan_q_ctx[tc]) in ice_alloc_lan_q_ctx()
539 vsi_ctx->num_lan_q_entries[tc] = new_numqs; in ice_alloc_lan_q_ctx()
543 if (new_numqs > vsi_ctx->num_lan_q_entries[tc]) { in ice_alloc_lan_q_ctx()
544 u16 prev_num = vsi_ctx->num_lan_q_entries[tc]; in ice_alloc_lan_q_ctx()
550 memcpy(q_ctx, vsi_ctx->lan_q_ctx[tc], in ice_alloc_lan_q_ctx()
[all …]
Dice_switch.c173 ice_aq_add_vsi(struct ice_hw *hw, struct ice_vsi_ctx *vsi_ctx, in ice_aq_add_vsi() argument
186 if (!vsi_ctx->alloc_from_pool) in ice_aq_add_vsi()
187 cmd->vsi_num = cpu_to_le16(vsi_ctx->vsi_num | in ice_aq_add_vsi()
189 cmd->vf_id = vsi_ctx->vf_num; in ice_aq_add_vsi()
191 cmd->vsi_flags = cpu_to_le16(vsi_ctx->flags); in ice_aq_add_vsi()
195 status = ice_aq_send_cmd(hw, &desc, &vsi_ctx->info, in ice_aq_add_vsi()
196 sizeof(vsi_ctx->info), cd); in ice_aq_add_vsi()
199 vsi_ctx->vsi_num = le16_to_cpu(res->vsi_num) & ICE_AQ_VSI_NUM_M; in ice_aq_add_vsi()
200 vsi_ctx->vsis_allocd = le16_to_cpu(res->vsi_used); in ice_aq_add_vsi()
201 vsi_ctx->vsis_unallocated = le16_to_cpu(res->vsi_free); in ice_aq_add_vsi()
[all …]
Dice_switch.h202 ice_add_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx,
205 ice_free_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx,
208 ice_update_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx,
Dice_type.h427 struct ice_vsi_ctx *vsi_ctx[ICE_MAX_VSI]; member
/drivers/net/ethernet/intel/i40e/
Di40e_common.c1961 struct i40e_vsi_context *vsi_ctx, in i40e_aq_add_vsi() argument
1975 cmd->uplink_seid = cpu_to_le16(vsi_ctx->uplink_seid); in i40e_aq_add_vsi()
1976 cmd->connection_type = vsi_ctx->connection_type; in i40e_aq_add_vsi()
1977 cmd->vf_id = vsi_ctx->vf_num; in i40e_aq_add_vsi()
1978 cmd->vsi_flags = cpu_to_le16(vsi_ctx->flags); in i40e_aq_add_vsi()
1982 status = i40e_asq_send_command(hw, &desc, &vsi_ctx->info, in i40e_aq_add_vsi()
1983 sizeof(vsi_ctx->info), cmd_details); in i40e_aq_add_vsi()
1988 vsi_ctx->seid = le16_to_cpu(resp->seid); in i40e_aq_add_vsi()
1989 vsi_ctx->vsi_number = le16_to_cpu(resp->vsi_number); in i40e_aq_add_vsi()
1990 vsi_ctx->vsis_allocated = le16_to_cpu(resp->vsi_used); in i40e_aq_add_vsi()
[all …]
Di40e_prototype.h106 struct i40e_vsi_context *vsi_ctx,
131 struct i40e_vsi_context *vsi_ctx,
134 struct i40e_vsi_context *vsi_ctx,