linux/drivers/scsi/qla2xxx/qla_inline.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * QLogic Fibre Channel HBA Driver
 * Copyright (c)  2003-2014 QLogic Corporation
 */

#include "qla_target.h"
/**
 * qla24xx_calc_iocbs() - Determine number of Command Type 3 and
 * Continuation Type 1 IOCBs to allocate.
 *
 * @vha: HA context
 * @dsds: number of data segment descriptors needed
 *
 * Returns the number of IOCB entries needed to store @dsds.
 */
static inline uint16_t
qla24xx_calc_iocbs(scsi_qla_host_t *vha, uint16_t dsds)
{}

/*
 * qla2x00_debounce_register
 *      Debounce register.
 *
 * Input:
 *      port = register address.
 *
 * Returns:
 *      register value.
 */
static __inline__ uint16_t
qla2x00_debounce_register(volatile __le16 __iomem *addr)
{}

static inline void
qla2x00_poll(struct rsp_que *rsp)
{}

static inline uint8_t *
host_to_fcp_swap(uint8_t *fcp, uint32_t bsize)
{}

static inline void
host_to_adap(uint8_t *src, uint8_t *dst, uint32_t bsize)
{}

static inline void
qla2x00_clean_dsd_pool(struct qla_hw_data *ha, struct crc_context *ctx)
{}

static inline void
qla2x00_set_fcport_disc_state(fc_port_t *fcport, int state)
{}

static inline int
qla2x00_hba_err_chk_enabled(srb_t *sp)
{}

static inline int
qla2x00_reset_active(scsi_qla_host_t *vha)
{}

static inline int
qla2x00_chip_is_down(scsi_qla_host_t *vha)
{}

static void qla2xxx_init_sp(srb_t *sp, scsi_qla_host_t *vha,
			    struct qla_qpair *qpair, fc_port_t *fcport)
{}

static inline srb_t *
qla2xxx_get_qpair_sp(scsi_qla_host_t *vha, struct qla_qpair *qpair,
    fc_port_t *fcport, gfp_t flag)
{}

void qla2xxx_rel_done_warning(srb_t *sp, int res);
void qla2xxx_rel_free_warning(srb_t *sp);

static inline void
qla2xxx_rel_qpair_sp(struct qla_qpair *qpair, srb_t *sp)
{}

static inline srb_t *
qla2x00_get_sp(scsi_qla_host_t *vha, fc_port_t *fcport, gfp_t flag)
{}

static inline void
qla2x00_rel_sp(srb_t *sp)
{}

static inline int
qla2x00_gid_list_size(struct qla_hw_data *ha)
{}

static inline void
qla2x00_handle_mbx_completion(struct qla_hw_data *ha, int status)
{}

static inline void
qla2x00_set_retry_delay_timestamp(fc_port_t *fcport, uint16_t sts_qual)
{}

static inline bool
qla_is_exch_offld_enabled(struct scsi_qla_host *vha)
{}

static inline void
qla_cpu_update(struct qla_qpair *qpair, uint16_t cpuid)
{}

static inline struct qla_qpair_hint *
qla_qpair_to_hint(struct qla_tgt *tgt, struct qla_qpair *qpair)
{}

static inline void
qla_83xx_start_iocbs(struct qla_qpair *qpair)
{}

static inline int
qla2xxx_get_fc4_priority(struct scsi_qla_host *vha)
{}

enum {};

static inline int
qla_get_fw_resources(struct qla_qpair *qp, struct iocb_resource *iores)
{}

/*
 * decrement to zero.  This routine will not decrement below zero
 * @v:  pointer of type atomic_t
 * @amount: amount to decrement from v
 */
static void qla_atomic_dtz(atomic_t *v, int amount)
{}

static inline void
qla_put_fw_resources(struct qla_qpair *qp, struct iocb_resource *iores)
{}

#define ISP_REG_DISCONNECT
/**************************************************************************
 * qla2x00_isp_reg_stat
 *
 * Description:
 *        Read the host status register of ISP before aborting the command.
 *
 * Input:
 *       ha = pointer to host adapter structure.
 *
 *
 * Returns:
 *       Either true or false.
 *
 * Note: Return true if there is register disconnect.
 **************************************************************************/
static inline
uint32_t qla2x00_isp_reg_stat(struct qla_hw_data *ha)
{}

static inline
bool qla_pci_disconnected(struct scsi_qla_host *vha,
			  struct device_reg_24xx __iomem *reg)
{}

static inline bool
fcport_is_smaller(fc_port_t *fcport)
{}

static inline bool
fcport_is_bigger(fc_port_t *fcport)
{}

static inline struct qla_qpair *
qla_mapq_nvme_select_qpair(struct qla_hw_data *ha, struct qla_qpair *qpair)
{}

static inline void
qla_mapq_init_qp_cpu_map(struct qla_hw_data *ha,
			 struct qla_msix_entry *msix,
			 struct qla_qpair *qpair)
{}

static inline void
qla_mapq_free_qp_cpu_map(struct qla_hw_data *ha)
{}

static inline int qla_mapq_alloc_qp_cpu_map(struct qla_hw_data *ha)
{}

static inline bool val_is_in_range(u32 val, u32 start, u32 end)
{}