Lines Matching refs:vsi_ctx
1474 ice_aq_add_vsi(struct ice_hw *hw, struct ice_vsi_ctx *vsi_ctx, in ice_aq_add_vsi() argument
1487 if (!vsi_ctx->alloc_from_pool) in ice_aq_add_vsi()
1488 cmd->vsi_num = cpu_to_le16(vsi_ctx->vsi_num | in ice_aq_add_vsi()
1490 cmd->vf_id = vsi_ctx->vf_num; in ice_aq_add_vsi()
1492 cmd->vsi_flags = cpu_to_le16(vsi_ctx->flags); in ice_aq_add_vsi()
1496 status = ice_aq_send_cmd(hw, &desc, &vsi_ctx->info, in ice_aq_add_vsi()
1497 sizeof(vsi_ctx->info), cd); in ice_aq_add_vsi()
1500 vsi_ctx->vsi_num = le16_to_cpu(res->vsi_num) & ICE_AQ_VSI_NUM_M; in ice_aq_add_vsi()
1501 vsi_ctx->vsis_allocd = le16_to_cpu(res->vsi_used); in ice_aq_add_vsi()
1502 vsi_ctx->vsis_unallocated = le16_to_cpu(res->vsi_free); in ice_aq_add_vsi()
1518 ice_aq_free_vsi(struct ice_hw *hw, struct ice_vsi_ctx *vsi_ctx, in ice_aq_free_vsi() argument
1531 cmd->vsi_num = cpu_to_le16(vsi_ctx->vsi_num | ICE_AQ_VSI_IS_VALID); in ice_aq_free_vsi()
1537 vsi_ctx->vsis_allocd = le16_to_cpu(resp->vsi_used); in ice_aq_free_vsi()
1538 vsi_ctx->vsis_unallocated = le16_to_cpu(resp->vsi_free); in ice_aq_free_vsi()
1553 ice_aq_update_vsi(struct ice_hw *hw, struct ice_vsi_ctx *vsi_ctx, in ice_aq_update_vsi() argument
1566 cmd->vsi_num = cpu_to_le16(vsi_ctx->vsi_num | ICE_AQ_VSI_IS_VALID); in ice_aq_update_vsi()
1570 status = ice_aq_send_cmd(hw, &desc, &vsi_ctx->info, in ice_aq_update_vsi()
1571 sizeof(vsi_ctx->info), cd); in ice_aq_update_vsi()
1574 vsi_ctx->vsis_allocd = le16_to_cpu(resp->vsi_used); in ice_aq_update_vsi()
1575 vsi_ctx->vsis_unallocated = le16_to_cpu(resp->vsi_free); in ice_aq_update_vsi()
1590 return vsi_handle < ICE_MAX_VSI && hw->vsi_ctx[vsi_handle]; in ice_is_vsi_valid()
1603 return hw->vsi_ctx[vsi_handle]->vsi_num; in ice_get_hw_vsi_num()
1615 return (vsi_handle >= ICE_MAX_VSI) ? NULL : hw->vsi_ctx[vsi_handle]; in ice_get_vsi_ctx()
1629 hw->vsi_ctx[vsi_handle] = vsi; in ice_save_vsi_ctx()
1672 hw->vsi_ctx[vsi_handle] = NULL; in ice_clear_vsi_ctx()
1700 ice_add_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx, in ice_add_vsi() argument
1708 status = ice_aq_add_vsi(hw, vsi_ctx, cd); in ice_add_vsi()
1717 ice_aq_free_vsi(hw, vsi_ctx, false, cd); in ice_add_vsi()
1720 *tmp_vsi_ctx = *vsi_ctx; in ice_add_vsi()
1724 tmp_vsi_ctx->vsi_num = vsi_ctx->vsi_num; in ice_add_vsi()
1741 ice_free_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx, in ice_free_vsi() argument
1748 vsi_ctx->vsi_num = ice_get_hw_vsi_num(hw, vsi_handle); in ice_free_vsi()
1749 status = ice_aq_free_vsi(hw, vsi_ctx, keep_vsi_alloc, cd); in ice_free_vsi()
1765 ice_update_vsi(struct ice_hw *hw, u16 vsi_handle, struct ice_vsi_ctx *vsi_ctx, in ice_update_vsi() argument
1770 vsi_ctx->vsi_num = ice_get_hw_vsi_num(hw, vsi_handle); in ice_update_vsi()
1771 return ice_aq_update_vsi(hw, vsi_ctx, cd); in ice_update_vsi()