Lines Matching refs:ha
215 #define LOOPID_MAP_SIZE (ha->max_fibre_devices)
666 #define ISP_REQ_Q_IN(ha, reg) \ argument
667 (IS_QLA2100(ha) || IS_QLA2200(ha) ? \
670 #define ISP_REQ_Q_OUT(ha, reg) \ argument
671 (IS_QLA2100(ha) || IS_QLA2200(ha) ? \
674 #define ISP_RSP_Q_IN(ha, reg) \ argument
675 (IS_QLA2100(ha) || IS_QLA2200(ha) ? \
678 #define ISP_RSP_Q_OUT(ha, reg) \ argument
679 (IS_QLA2100(ha) || IS_QLA2200(ha) ? \
686 #define MAILBOX_REG(ha, reg, num) \ argument
687 (IS_QLA2100(ha) || IS_QLA2200(ha) ? \
692 #define RD_MAILBOX_REG(ha, reg, num) \ argument
693 RD_REG_WORD(MAILBOX_REG(ha, reg, num))
694 #define WRT_MAILBOX_REG(ha, reg, num, data) \ argument
695 WRT_REG_WORD(MAILBOX_REG(ha, reg, num), data)
697 #define FB_CMD_REG(ha, reg) \ argument
698 (IS_QLA2100(ha) || IS_QLA2200(ha) ? \
701 #define RD_FB_CMD_REG(ha, reg) \ argument
702 RD_REG_WORD(FB_CMD_REG(ha, reg))
703 #define WRT_FB_CMD_REG(ha, reg, data) \ argument
704 WRT_REG_WORD(FB_CMD_REG(ha, reg), data)
1526 #define SET_TARGET_ID(ha, to, from) \ argument
1528 if (HAS_EXTENDED_IDS(ha)) \
2796 #define ISP_QUE_REG(ha, id) \ argument
2797 ((ha->mqenable || IS_QLA83XX(ha) || IS_QLA27XX(ha)) ? \
2798 ((void __iomem *)ha->mqiobase + (QLA_QUE_PAGE * id)) :\
2799 ((void __iomem *)ha->iobase))
2917 #define Q_FULL_THRESH_HOLD(ha) \ argument
2918 ((ha->fw_xcb_count/100) * Q_FULL_THRESH_HOLD_PERCENT)
3096 #define DT_MASK(ha) ((ha)->device_type & (DT_ISP_LAST - 1)) argument
3097 #define IS_QLA2100(ha) (DT_MASK(ha) & DT_ISP2100) argument
3098 #define IS_QLA2200(ha) (DT_MASK(ha) & DT_ISP2200) argument
3099 #define IS_QLA2300(ha) (DT_MASK(ha) & DT_ISP2300) argument
3100 #define IS_QLA2312(ha) (DT_MASK(ha) & DT_ISP2312) argument
3101 #define IS_QLA2322(ha) (DT_MASK(ha) & DT_ISP2322) argument
3102 #define IS_QLA6312(ha) (DT_MASK(ha) & DT_ISP6312) argument
3103 #define IS_QLA6322(ha) (DT_MASK(ha) & DT_ISP6322) argument
3104 #define IS_QLA2422(ha) (DT_MASK(ha) & DT_ISP2422) argument
3105 #define IS_QLA2432(ha) (DT_MASK(ha) & DT_ISP2432) argument
3106 #define IS_QLA5422(ha) (DT_MASK(ha) & DT_ISP5422) argument
3107 #define IS_QLA5432(ha) (DT_MASK(ha) & DT_ISP5432) argument
3108 #define IS_QLA2532(ha) (DT_MASK(ha) & DT_ISP2532) argument
3109 #define IS_QLA8432(ha) (DT_MASK(ha) & DT_ISP8432) argument
3110 #define IS_QLA8001(ha) (DT_MASK(ha) & DT_ISP8001) argument
3111 #define IS_QLA81XX(ha) (IS_QLA8001(ha)) argument
3112 #define IS_QLA82XX(ha) (DT_MASK(ha) & DT_ISP8021) argument
3113 #define IS_QLA8044(ha) (DT_MASK(ha) & DT_ISP8044) argument
3114 #define IS_QLA2031(ha) (DT_MASK(ha) & DT_ISP2031) argument
3115 #define IS_QLA8031(ha) (DT_MASK(ha) & DT_ISP8031) argument
3116 #define IS_QLAFX00(ha) (DT_MASK(ha) & DT_ISPFX00) argument
3117 #define IS_QLA2071(ha) (DT_MASK(ha) & DT_ISP2071) argument
3118 #define IS_QLA2271(ha) (DT_MASK(ha) & DT_ISP2271) argument
3120 #define IS_QLA23XX(ha) (IS_QLA2300(ha) || IS_QLA2312(ha) || IS_QLA2322(ha) || \ argument
3121 IS_QLA6312(ha) || IS_QLA6322(ha))
3122 #define IS_QLA24XX(ha) (IS_QLA2422(ha) || IS_QLA2432(ha)) argument
3123 #define IS_QLA54XX(ha) (IS_QLA5422(ha) || IS_QLA5432(ha)) argument
3124 #define IS_QLA25XX(ha) (IS_QLA2532(ha)) argument
3125 #define IS_QLA83XX(ha) (IS_QLA2031(ha) || IS_QLA8031(ha)) argument
3126 #define IS_QLA84XX(ha) (IS_QLA8432(ha)) argument
3127 #define IS_QLA27XX(ha) (IS_QLA2071(ha) || IS_QLA2271(ha)) argument
3128 #define IS_QLA24XX_TYPE(ha) (IS_QLA24XX(ha) || IS_QLA54XX(ha) || \ argument
3129 IS_QLA84XX(ha))
3130 #define IS_CNA_CAPABLE(ha) (IS_QLA81XX(ha) || IS_QLA82XX(ha) || \ argument
3131 IS_QLA8031(ha) || IS_QLA8044(ha))
3132 #define IS_P3P_TYPE(ha) (IS_QLA82XX(ha) || IS_QLA8044(ha)) argument
3133 #define IS_QLA2XXX_MIDTYPE(ha) (IS_QLA24XX(ha) || IS_QLA84XX(ha) || \ argument
3134 IS_QLA25XX(ha) || IS_QLA81XX(ha) || \
3135 IS_QLA82XX(ha) || IS_QLA83XX(ha) || \
3136 IS_QLA8044(ha) || IS_QLA27XX(ha))
3137 #define IS_MSIX_NACK_CAPABLE(ha) (IS_QLA81XX(ha) || IS_QLA83XX(ha) || \ argument
3138 IS_QLA27XX(ha))
3139 #define IS_NOPOLLING_TYPE(ha) (IS_QLA81XX(ha) && (ha)->flags.msix_enabled) argument
3140 #define IS_FAC_REQUIRED(ha) (IS_QLA81XX(ha) || IS_QLA83XX(ha) || \ argument
3141 IS_QLA27XX(ha))
3142 #define IS_NOCACHE_VPD_TYPE(ha) (IS_QLA81XX(ha) || IS_QLA83XX(ha) || \ argument
3143 IS_QLA27XX(ha))
3144 #define IS_ALOGIO_CAPABLE(ha) (IS_QLA23XX(ha) || IS_FWI2_CAPABLE(ha)) argument
3146 #define IS_T10_PI_CAPABLE(ha) ((ha)->device_type & DT_T10_PI) argument
3147 #define IS_IIDMA_CAPABLE(ha) ((ha)->device_type & DT_IIDMA) argument
3148 #define IS_FWI2_CAPABLE(ha) ((ha)->device_type & DT_FWI2) argument
3149 #define IS_ZIO_SUPPORTED(ha) ((ha)->device_type & DT_ZIO_SUPPORTED) argument
3150 #define IS_OEM_001(ha) ((ha)->device_type & DT_OEM_001) argument
3151 #define HAS_EXTENDED_IDS(ha) ((ha)->device_type & DT_EXTENDED_IDS) argument
3152 #define IS_CT6_SUPPORTED(ha) ((ha)->device_type & DT_CT6_SUPPORTED) argument
3153 #define IS_MQUE_CAPABLE(ha) ((ha)->mqenable || IS_QLA83XX(ha) || \ argument
3154 IS_QLA27XX(ha))
3155 #define IS_BIDI_CAPABLE(ha) ((IS_QLA25XX(ha) || IS_QLA2031(ha))) argument
3157 #define IS_MCTP_CAPABLE(ha) (IS_QLA2031(ha) && \ argument
3158 ((ha)->fw_attributes_ext[0] & BIT_0))
3159 #define IS_PI_UNINIT_CAPABLE(ha) (IS_QLA83XX(ha)) argument
3160 #define IS_PI_IPGUARD_CAPABLE(ha) (IS_QLA83XX(ha)) argument
3161 #define IS_PI_DIFB_DIX0_CAPABLE(ha) (0) argument
3162 #define IS_PI_SPLIT_DET_CAPABLE_HBA(ha) (IS_QLA83XX(ha)) argument
3163 #define IS_PI_SPLIT_DET_CAPABLE(ha) (IS_PI_SPLIT_DET_CAPABLE_HBA(ha) && \ argument
3164 (((ha)->fw_attributes_h << 16 | (ha)->fw_attributes) & BIT_22))
3165 #define IS_ATIO_MSIX_CAPABLE(ha) (IS_QLA83XX(ha)) argument
3166 #define IS_TGT_MODE_CAPABLE(ha) (ha->tgt.atio_q_length) argument
3167 #define IS_SHADOW_REG_CAPABLE(ha) (IS_QLA27XX(ha)) argument
3168 #define IS_DPORT_CAPABLE(ha) (IS_QLA83XX(ha) || IS_QLA27XX(ha)) argument
3644 #define LOOP_TRANSITION(ha) \ argument
3645 (test_bit(ISP_ABORT_NEEDED, &ha->dpc_flags) || \
3646 test_bit(LOOP_RESYNC_NEEDED, &ha->dpc_flags) || \
3647 atomic_read(&ha->loop_state) == LOOP_DOWN)
3649 #define STATE_TRANSITION(ha) \ argument
3650 (test_bit(ISP_ABORT_NEEDED, &ha->dpc_flags) || \
3651 test_bit(LOOP_RESYNC_NEEDED, &ha->dpc_flags))