From patchwork Wed Dec 16 05:29:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Muneendra Kumar M X-Patchwork-Id: 11977427 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.2 required=3.0 tests=BAYES_00,DATE_IN_PAST_06_12, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07C6BC2BBD5 for ; Wed, 16 Dec 2020 12:24:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BDB0823123 for ; Wed, 16 Dec 2020 12:24:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725948AbgLPMYO (ORCPT ); Wed, 16 Dec 2020 07:24:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49002 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725951AbgLPMYM (ORCPT ); Wed, 16 Dec 2020 07:24:12 -0500 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0FAEEC0611CB for ; Wed, 16 Dec 2020 04:23:09 -0800 (PST) Received: by mail-pl1-x633.google.com with SMTP id q4so7119267plr.7 for ; Wed, 16 Dec 2020 04:23:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:from:to:cc:subject:date:message-id:in-reply-to :references; bh=uWLVd5oDpmMwjGQRoknsDEQpUi4brRfGInfV5EbtBho=; b=IewOwMdn6mIp8fV7lh2Y5ifFmy5rifor3/KhGpIT/1Ms3RHHxCOUdMPeRKxo0iyrkI tSTLemiPJ1Gf4Z0FNIcZk3ZTDeHrFxhRNm+Q/+nS21ZnK6dvJVQzKr/Bc9HHtzfslE8x LE+4vPExfUqaM0Q3V0n4JSbe1I3eaHdIB0kXY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :in-reply-to:references; bh=uWLVd5oDpmMwjGQRoknsDEQpUi4brRfGInfV5EbtBho=; b=Bw3NSSaRDMjIHnRhLDj41Q5Ds+trHa17cFyi9KEgTmhneWgY1x2IFszzpd6fHUbAIT BCppcCP2S5kflLmU2+6HksXVMPpUwW+pNRoGMI5ykseE9sMwYmLKtt6b2SEbb+d/aUVj cK++qgzCNpNYDclE+NC+FHIVtLNg0IpW/PLlmcCqlZdv4x62yfkXtoefD3G4G/SMrUGA Yl02KEcEvhXIbij4hR9GA/7uxgDXyqC1fx0A9ENwV2Y5N9ztXD9x3trIyfHtlfOwSjVb 8AA2F9Ql2VhBHDuDpJ6RFrYEPO6Lot7XXl7MHV5erfxL2v0UGuFkPPPHgn/rUGLgU4fM s+9A== MIME-Version: 1.0 X-Gm-Message-State: AOAM531+uYkskSfQEPjrPIgLaP8VPsBUT5sCWBDPh3Z0au0UbIK64mbG 5nAQYj//ZCXQJyFQAU4YdEkhGj4YWhchZXI81n8my4blnwY78kr3WHuD07NEZt5qFrXBPGE12nu P/dqe+Etyc44DtkgvQh77D6k= X-Google-Smtp-Source: ABdhPJzUsyTGQlLsgKM+DKxLFcCchqt1kt9FJu4/rSMz6EFenmRbn1fgs4JD8ALIRvGP+IZjOUhlFg== X-Received: by 2002:a17:90a:4d84:: with SMTP id m4mr2869774pjh.145.1608121388489; Wed, 16 Dec 2020 04:23:08 -0800 (PST) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id s7sm2477296pfh.207.2020.12.16.04.23.05 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Dec 2020 04:23:07 -0800 (PST) From: Muneendra To: linux-block@vger.kernel.org, linux-scsi@vger.kernel.org, tj@kernel.org, linux-nvme@lists.infradead.org, hare@suse.de Cc: jsmart2021@gmail.com, emilne@redhat.com, mkumar@redhat.com, pbonzini@redhat.com, Gaurav Srivastava Subject: [PATCH v5 06/16] lpfc: vmid: Forward declarations for APIs Date: Wed, 16 Dec 2020 10:59:36 +0530 Message-Id: <1608096586-21656-7-git-send-email-muneendra.kumar@broadcom.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1608096586-21656-1-git-send-email-muneendra.kumar@broadcom.com> References: <1608096586-21656-1-git-send-email-muneendra.kumar@broadcom.com> Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org From: Gaurav Srivastava This patch contains the forward declarations of commonly used APIs which are used outside the scope of the file. Signed-off-by: Gaurav Srivastava Signed-off-by: James Smart --- v5: No change v4: No change v3: No change v2: Ported the patch on top of 5.10/scsi-queue --- drivers/scsi/lpfc/lpfc_crtn.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/drivers/scsi/lpfc/lpfc_crtn.h b/drivers/scsi/lpfc/lpfc_crtn.h index f78e52a18b0b..7eb0200ecaa8 100644 --- a/drivers/scsi/lpfc/lpfc_crtn.h +++ b/drivers/scsi/lpfc/lpfc_crtn.h @@ -606,3 +606,14 @@ extern unsigned long lpfc_no_hba_reset[]; extern union lpfc_wqe128 lpfc_iread_cmd_template; extern union lpfc_wqe128 lpfc_iwrite_cmd_template; extern union lpfc_wqe128 lpfc_icmnd_cmd_template; + +/* vmid interface */ +int lpfc_vmid_uvem(struct lpfc_vport *vport, struct lpfc_vmid *vmid, bool ins); +uint32_t lpfc_vmid_get_cs_ctl(struct lpfc_vport *vport); +int lpfc_vmid_cmd(struct lpfc_vport *vport, + int cmdcode, struct lpfc_vmid *vmid); +int lpfc_vmid_hash_fn(char *vmid, int len); +struct lpfc_vmid *lpfc_get_vmid_from_hastable(struct lpfc_vport *vport, + uint32_t hash, uint8_t *buf); +void lpfc_vmid_vport_cleanup(struct lpfc_vport *vport); +int lpfc_issue_els_qfpa(struct lpfc_vport *vport);