vsi_ctx 1961 drivers/net/ethernet/intel/i40e/i40e_common.c struct i40e_vsi_context *vsi_ctx, vsi_ctx 1975 drivers/net/ethernet/intel/i40e/i40e_common.c cmd->uplink_seid = cpu_to_le16(vsi_ctx->uplink_seid); vsi_ctx 1976 drivers/net/ethernet/intel/i40e/i40e_common.c cmd->connection_type = vsi_ctx->connection_type; vsi_ctx 1977 drivers/net/ethernet/intel/i40e/i40e_common.c cmd->vf_id = vsi_ctx->vf_num; vsi_ctx 1978 drivers/net/ethernet/intel/i40e/i40e_common.c cmd->vsi_flags = cpu_to_le16(vsi_ctx->flags); vsi_ctx 1982 drivers/net/ethernet/intel/i40e/i40e_common.c status = i40e_asq_send_command(hw, &desc, &vsi_ctx->info, vsi_ctx 1983 drivers/net/ethernet/intel/i40e/i40e_common.c sizeof(vsi_ctx->info), cmd_details); vsi_ctx 1988 drivers/net/ethernet/intel/i40e/i40e_common.c vsi_ctx->seid = le16_to_cpu(resp->seid); vsi_ctx 1989 drivers/net/ethernet/intel/i40e/i40e_common.c vsi_ctx->vsi_number = le16_to_cpu(resp->vsi_number); vsi_ctx 1990 drivers/net/ethernet/intel/i40e/i40e_common.c vsi_ctx->vsis_allocated = le16_to_cpu(resp->vsi_used); vsi_ctx 1991 drivers/net/ethernet/intel/i40e/i40e_common.c vsi_ctx->vsis_unallocated = le16_to_cpu(resp->vsi_free); vsi_ctx 2305 drivers/net/ethernet/intel/i40e/i40e_common.c struct i40e_vsi_context *vsi_ctx, vsi_ctx 2319 drivers/net/ethernet/intel/i40e/i40e_common.c cmd->uplink_seid = cpu_to_le16(vsi_ctx->seid); vsi_ctx 2323 drivers/net/ethernet/intel/i40e/i40e_common.c status = i40e_asq_send_command(hw, &desc, &vsi_ctx->info, vsi_ctx 2324 drivers/net/ethernet/intel/i40e/i40e_common.c sizeof(vsi_ctx->info), NULL); vsi_ctx 2329 drivers/net/ethernet/intel/i40e/i40e_common.c vsi_ctx->seid = le16_to_cpu(resp->seid); vsi_ctx 2330 drivers/net/ethernet/intel/i40e/i40e_common.c vsi_ctx->vsi_number = le16_to_cpu(resp->vsi_number); vsi_ctx 2331 drivers/net/ethernet/intel/i40e/i40e_common.c vsi_ctx->vsis_allocated = le16_to_cpu(resp->vsi_used); vsi_ctx 2332 drivers/net/ethernet/intel/i40e/i40e_common.c vsi_ctx->vsis_unallocated = le16_to_cpu(resp->vsi_free); vsi_ctx 2347 drivers/net/ethernet/intel/i40e/i40e_common.c struct i40e_vsi_context *vsi_ctx, vsi_ctx 2360 drivers/net/ethernet/intel/i40e/i40e_common.c cmd->uplink_seid = cpu_to_le16(vsi_ctx->seid); vsi_ctx 2364 drivers/net/ethernet/intel/i40e/i40e_common.c status = i40e_asq_send_command(hw, &desc, &vsi_ctx->info, vsi_ctx 2365 drivers/net/ethernet/intel/i40e/i40e_common.c sizeof(vsi_ctx->info), cmd_details); vsi_ctx 2367 drivers/net/ethernet/intel/i40e/i40e_common.c vsi_ctx->vsis_allocated = le16_to_cpu(resp->vsi_used); vsi_ctx 2368 drivers/net/ethernet/intel/i40e/i40e_common.c vsi_ctx->vsis_unallocated = le16_to_cpu(resp->vsi_free); vsi_ctx 106 drivers/net/ethernet/intel/i40e/i40e_prototype.h struct i40e_vsi_context *vsi_ctx, vsi_ctx 131 drivers/net/ethernet/intel/i40e/i40e_prototype.h struct i40e_vsi_context *vsi_ctx, vsi_ctx 134 drivers/net/ethernet/intel/i40e/i40e_prototype.h struct i40e_vsi_context *vsi_ctx, vsi_ctx 525 drivers/net/ethernet/intel/ice/ice_sched.c struct ice_vsi_ctx *vsi_ctx; vsi_ctx 528 drivers/net/ethernet/intel/ice/ice_sched.c vsi_ctx = ice_get_vsi_ctx(hw, vsi_handle); vsi_ctx 529 drivers/net/ethernet/intel/ice/ice_sched.c if (!vsi_ctx) vsi_ctx 532 drivers/net/ethernet/intel/ice/ice_sched.c if (!vsi_ctx->lan_q_ctx[tc]) { vsi_ctx 533 drivers/net/ethernet/intel/ice/ice_sched.c vsi_ctx->lan_q_ctx[tc] = devm_kcalloc(ice_hw_to_dev(hw), vsi_ctx 537 drivers/net/ethernet/intel/ice/ice_sched.c if (!vsi_ctx->lan_q_ctx[tc]) vsi_ctx 539 drivers/net/ethernet/intel/ice/ice_sched.c vsi_ctx->num_lan_q_entries[tc] = new_numqs; vsi_ctx 543 drivers/net/ethernet/intel/ice/ice_sched.c if (new_numqs > vsi_ctx->num_lan_q_entries[tc]) { vsi_ctx 544 drivers/net/ethernet/intel/ice/ice_sched.c u16 prev_num = vsi_ctx->num_lan_q_entries[tc]; vsi_ctx 550 drivers/net/ethernet/intel/ice/ice_sched.c memcpy(q_ctx, vsi_ctx->lan_q_ctx[tc], vsi_ctx 552 drivers/net/ethernet/intel/ice/ice_sched.c devm_kfree(ice_hw_to_dev(hw), vsi_ctx->lan_q_ctx[tc]); vsi_ctx 553 drivers/net/ethernet/intel/ice/ice_sched.c vsi_ctx->lan_q_ctx[tc] = q_ctx; vsi_ctx 554 drivers/net/ethernet/intel/ice/ice_sched.c vsi_ctx->num_lan_q_entries[tc] = new_numqs; vsi_ctx 1131 drivers/net/ethernet/intel/ice/ice_sched.c struct ice_vsi_ctx *vsi_ctx; vsi_ctx 1138 drivers/net/ethernet/intel/ice/ice_sched.c vsi_ctx = ice_get_vsi_ctx(pi->hw, vsi_handle); vsi_ctx 1139 drivers/net/ethernet/intel/ice/ice_sched.c if (!vsi_ctx) vsi_ctx 1141 drivers/net/ethernet/intel/ice/ice_sched.c vsi_node = vsi_ctx->sched.vsi_node[tc]; vsi_ctx 1418 drivers/net/ethernet/intel/ice/ice_sched.c struct ice_vsi_ctx *vsi_ctx; vsi_ctx 1431 drivers/net/ethernet/intel/ice/ice_sched.c vsi_ctx = ice_get_vsi_ctx(hw, vsi_handle); vsi_ctx 1432 drivers/net/ethernet/intel/ice/ice_sched.c if (!vsi_ctx) vsi_ctx 1435 drivers/net/ethernet/intel/ice/ice_sched.c prev_numqs = vsi_ctx->sched.max_lanq[tc]; vsi_ctx 1456 drivers/net/ethernet/intel/ice/ice_sched.c vsi_ctx->sched.max_lanq[tc] = new_numqs; vsi_ctx 1479 drivers/net/ethernet/intel/ice/ice_sched.c struct ice_vsi_ctx *vsi_ctx; vsi_ctx 1487 drivers/net/ethernet/intel/ice/ice_sched.c vsi_ctx = ice_get_vsi_ctx(hw, vsi_handle); vsi_ctx 1488 drivers/net/ethernet/intel/ice/ice_sched.c if (!vsi_ctx) vsi_ctx 1515 drivers/net/ethernet/intel/ice/ice_sched.c vsi_ctx->sched.vsi_node[tc] = vsi_node; vsi_ctx 1521 drivers/net/ethernet/intel/ice/ice_sched.c vsi_ctx->sched.max_lanq[tc] = 0; vsi_ctx 1602 drivers/net/ethernet/intel/ice/ice_sched.c struct ice_vsi_ctx *vsi_ctx; vsi_ctx 1609 drivers/net/ethernet/intel/ice/ice_sched.c vsi_ctx = ice_get_vsi_ctx(pi->hw, vsi_handle); vsi_ctx 1610 drivers/net/ethernet/intel/ice/ice_sched.c if (!vsi_ctx) vsi_ctx 1646 drivers/net/ethernet/intel/ice/ice_sched.c vsi_ctx->sched.vsi_node[i] = NULL; vsi_ctx 1652 drivers/net/ethernet/intel/ice/ice_sched.c vsi_ctx->sched.max_lanq[i] = 0; vsi_ctx 173 drivers/net/ethernet/intel/ice/ice_switch.c ice_aq_add_vsi(struct ice_hw *hw, struct ice_vsi_ctx *vsi_ctx, vsi_ctx 186 drivers/net/ethernet/intel/ice/ice_switch.c if (!vsi_ctx->alloc_from_pool) vsi_ctx 187 drivers/net/ethernet/intel/ice/ice_switch.c cmd->vsi_num = cpu_to_le16(vsi_ctx->vsi_num | vsi_ctx 189 drivers/net/ethernet/intel/ice/ice_switch.c cmd->vf_id = vsi_ctx->vf_num; vsi_ctx 191 drivers/net/ethernet/intel/ice/ice_switch.c cmd->vsi_flags = cpu_to_le16(vsi_ctx->flags); vsi_ctx 195 drivers/net/ethernet/intel/ice/ice_switch.c status = ice_aq_send_cmd(hw, &desc, &vsi_ctx->info, vsi_ctx 196 drivers/net/ethernet/intel/ice/ice_switch.c sizeof(vsi_ctx->info), cd); vsi_ctx 199 drivers/net/ethernet/intel/ice/ice_switch.c vsi_ctx->vsi_num = le16_to_cpu(res->vsi_num) & ICE_AQ_VSI_NUM_M; vsi_ctx 200 drivers/net/ethernet/intel/ice/ice_switch.c vsi_ctx->vsis_allocd = le16_to_cpu(res->vsi_used); vsi_ctx 201 drivers/net/ethernet/intel/ice/ice_switch.c vsi_ctx->vsis_unallocated = le16_to_cpu(res->vsi_free); vsi_ctx 217 drivers/net/ethernet/intel/ice/ice_switch.c ice_aq_free_vsi(struct ice_hw *hw, struct ice_vsi_ctx *vsi_ctx, vsi_ctx 230 drivers/net/ethernet/intel/ice/ice_switch.c cmd->vsi_num = cpu_to_le16(vsi_ctx->vsi_num | ICE_AQ_VSI_IS_VALID); vsi_ctx 236 drivers/net/ethernet/intel/ice/ice_switch.c vsi_ctx->vsis_allocd = le16_to_cpu(resp->vsi_used); vsi_ctx 237 drivers/net/ethernet/intel/ice/ice_switch.c vsi_ctx->vsis_unallocated = le16_to_cpu(resp->vsi_free); vsi_ctx 252 drivers/net/ethernet/intel/ice/ice_switch.c ice_aq_update_vsi(struct ice_hw *hw, struct ice_vsi_ctx *vsi_ctx, vsi_ctx 265 drivers/net/ethernet/intel/ice/ice_switch.c cmd->vsi_num = cpu_to_le16(vsi_ctx->vsi_num | ICE_AQ_VSI_IS_VALID); vsi_ctx 269 drivers/net/ethernet/intel/ice/ice_switch.c status = ice_aq_send_cmd(hw, &desc, &vsi_ctx->info, vsi_ctx 270 drivers/net/ethernet/intel/ice/ice_switch.c sizeof(vsi_ctx->info), cd); vsi_ctx 273 drivers/net/ethernet/intel/ice/ice_switch.c vsi_ctx->vsis_allocd = le16_to_cpu(resp->vsi_used); vsi_ctx 274 drivers/net/ethernet/intel/ice/ice_switch.c vsi_ctx->vsis_unallocated = le16_to_cpu(resp->vsi_free); vsi_ctx 289 drivers/net/ethernet/intel/ice/ice_switch.c return vsi_handle < ICE_MAX_VSI && hw->vsi_ctx[vsi_handle]; vsi_ctx 302 drivers/net/ethernet/intel/ice/ice_switch.c return hw->vsi_ctx[vsi_handle]->vsi_num; vsi_ctx 314 drivers/net/ethernet/intel/ice/ice_switch.c return (vsi_handle >= ICE_MAX_VSI) ? NULL : hw->vsi_ctx[vsi_handle]; vsi_ctx 328 drivers/net/ethernet/intel/ice/ice_switch.c hw->vsi_ctx[vsi_handle] = vsi; vsi_ctx 367 drivers/net/ethernet/intel/ice/ice_switch.c hw->vsi_ctx[vsi_handle] = NULL; vsi_ctx 395 drivers/net/ethernet/intel/ice/ice_switch.c ice_add_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx, vsi_ctx 403 drivers/net/ethernet/intel/ice/ice_switch.c status = ice_aq_add_vsi(hw, vsi_ctx, cd); vsi_ctx 412 drivers/net/ethernet/intel/ice/ice_switch.c ice_aq_free_vsi(hw, vsi_ctx, false, cd); vsi_ctx 415 drivers/net/ethernet/intel/ice/ice_switch.c *tmp_vsi_ctx = *vsi_ctx; vsi_ctx 419 drivers/net/ethernet/intel/ice/ice_switch.c if (tmp_vsi_ctx->vsi_num != vsi_ctx->vsi_num) vsi_ctx 420 drivers/net/ethernet/intel/ice/ice_switch.c tmp_vsi_ctx->vsi_num = vsi_ctx->vsi_num; vsi_ctx 437 drivers/net/ethernet/intel/ice/ice_switch.c ice_free_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx, vsi_ctx 444 drivers/net/ethernet/intel/ice/ice_switch.c vsi_ctx->vsi_num = ice_get_hw_vsi_num(hw, vsi_handle); vsi_ctx 445 drivers/net/ethernet/intel/ice/ice_switch.c status = ice_aq_free_vsi(hw, vsi_ctx, keep_vsi_alloc, cd); vsi_ctx 461 drivers/net/ethernet/intel/ice/ice_switch.c ice_update_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx, vsi_ctx 466 drivers/net/ethernet/intel/ice/ice_switch.c vsi_ctx->vsi_num = ice_get_hw_vsi_num(hw, vsi_handle); vsi_ctx 467 drivers/net/ethernet/intel/ice/ice_switch.c return ice_aq_update_vsi(hw, vsi_ctx, cd); vsi_ctx 202 drivers/net/ethernet/intel/ice/ice_switch.h ice_add_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx, vsi_ctx 205 drivers/net/ethernet/intel/ice/ice_switch.h ice_free_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx, vsi_ctx 208 drivers/net/ethernet/intel/ice/ice_switch.h ice_update_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx, vsi_ctx 427 drivers/net/ethernet/intel/ice/ice_type.h struct ice_vsi_ctx *vsi_ctx[ICE_MAX_VSI];