Lines Matching refs:vsi_ctx
1539 ice_aq_add_vsi(struct ice_hw *hw, struct ice_vsi_ctx *vsi_ctx, in ice_aq_add_vsi() argument
1552 if (!vsi_ctx->alloc_from_pool) in ice_aq_add_vsi()
1553 cmd->vsi_num = cpu_to_le16(vsi_ctx->vsi_num | in ice_aq_add_vsi()
1555 cmd->vf_id = vsi_ctx->vf_num; in ice_aq_add_vsi()
1557 cmd->vsi_flags = cpu_to_le16(vsi_ctx->flags); in ice_aq_add_vsi()
1561 status = ice_aq_send_cmd(hw, &desc, &vsi_ctx->info, in ice_aq_add_vsi()
1562 sizeof(vsi_ctx->info), cd); in ice_aq_add_vsi()
1565 vsi_ctx->vsi_num = le16_to_cpu(res->vsi_num) & ICE_AQ_VSI_NUM_M; in ice_aq_add_vsi()
1566 vsi_ctx->vsis_allocd = le16_to_cpu(res->vsi_used); in ice_aq_add_vsi()
1567 vsi_ctx->vsis_unallocated = le16_to_cpu(res->vsi_free); in ice_aq_add_vsi()
1583 ice_aq_free_vsi(struct ice_hw *hw, struct ice_vsi_ctx *vsi_ctx, in ice_aq_free_vsi() argument
1596 cmd->vsi_num = cpu_to_le16(vsi_ctx->vsi_num | ICE_AQ_VSI_IS_VALID); in ice_aq_free_vsi()
1602 vsi_ctx->vsis_allocd = le16_to_cpu(resp->vsi_used); in ice_aq_free_vsi()
1603 vsi_ctx->vsis_unallocated = le16_to_cpu(resp->vsi_free); in ice_aq_free_vsi()
1618 ice_aq_update_vsi(struct ice_hw *hw, struct ice_vsi_ctx *vsi_ctx, in ice_aq_update_vsi() argument
1631 cmd->vsi_num = cpu_to_le16(vsi_ctx->vsi_num | ICE_AQ_VSI_IS_VALID); in ice_aq_update_vsi()
1635 status = ice_aq_send_cmd(hw, &desc, &vsi_ctx->info, in ice_aq_update_vsi()
1636 sizeof(vsi_ctx->info), cd); in ice_aq_update_vsi()
1639 vsi_ctx->vsis_allocd = le16_to_cpu(resp->vsi_used); in ice_aq_update_vsi()
1640 vsi_ctx->vsis_unallocated = le16_to_cpu(resp->vsi_free); in ice_aq_update_vsi()
1655 return vsi_handle < ICE_MAX_VSI && hw->vsi_ctx[vsi_handle]; in ice_is_vsi_valid()
1668 return hw->vsi_ctx[vsi_handle]->vsi_num; in ice_get_hw_vsi_num()
1680 return (vsi_handle >= ICE_MAX_VSI) ? NULL : hw->vsi_ctx[vsi_handle]; in ice_get_vsi_ctx()
1694 hw->vsi_ctx[vsi_handle] = vsi; in ice_save_vsi_ctx()
1732 hw->vsi_ctx[vsi_handle] = NULL; in ice_clear_vsi_ctx()
1760 ice_add_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx, in ice_add_vsi() argument
1768 status = ice_aq_add_vsi(hw, vsi_ctx, cd); in ice_add_vsi()
1777 ice_aq_free_vsi(hw, vsi_ctx, false, cd); in ice_add_vsi()
1780 *tmp_vsi_ctx = *vsi_ctx; in ice_add_vsi()
1784 tmp_vsi_ctx->vsi_num = vsi_ctx->vsi_num; in ice_add_vsi()
1801 ice_free_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx, in ice_free_vsi() argument
1808 vsi_ctx->vsi_num = ice_get_hw_vsi_num(hw, vsi_handle); in ice_free_vsi()
1809 status = ice_aq_free_vsi(hw, vsi_ctx, keep_vsi_alloc, cd); in ice_free_vsi()
1825 ice_update_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx, in ice_update_vsi() argument
1830 vsi_ctx->vsi_num = ice_get_hw_vsi_num(hw, vsi_handle); in ice_update_vsi()
1831 return ice_aq_update_vsi(hw, vsi_ctx, cd); in ice_update_vsi()