Lines Matching refs:isp

110 #define	ISP_MAX_TARGETS(isp)	(IS_FC(isp)? MAX_FC_TARG : MAX_TARGETS)  argument
111 #define ISP_MAX_LUNS(isp) (isp)->isp_maxluns argument
117 #define ISP_READ_ISR(isp, isrp, semap, mbox0p) \ argument
118 (*(isp)->isp_mdvec->dv_rd_isr)(isp, isrp, semap, mbox0p)
120 #define ISP_READ(isp, reg) \ argument
121 (*(isp)->isp_mdvec->dv_rd_reg)((isp), (reg))
123 #define ISP_WRITE(isp, reg, val) \ argument
124 (*(isp)->isp_mdvec->dv_wr_reg)((isp), (reg), (val))
126 #define ISP_MBOXDMASETUP(isp) \ argument
127 (*(isp)->isp_mdvec->dv_mbxdma)((isp))
129 #define ISP_DMASETUP(isp, xs, req) \ argument
130 (*(isp)->isp_mdvec->dv_dmaset)((isp), (xs), (req))
132 #define ISP_DMAFREE(isp, xs, hndl) \ argument
133 if ((isp)->isp_mdvec->dv_dmaclr) \
134 (*(isp)->isp_mdvec->dv_dmaclr)((isp), (xs), (hndl))
136 #define ISP_RESET0(isp) \ argument
137 if ((isp)->isp_mdvec->dv_reset0) (*(isp)->isp_mdvec->dv_reset0)((isp))
138 #define ISP_RESET1(isp) \ argument
139 if ((isp)->isp_mdvec->dv_reset1) (*(isp)->isp_mdvec->dv_reset1)((isp))
140 #define ISP_DUMPREGS(isp, m) \ argument
141 if ((isp)->isp_mdvec->dv_dregs) (*(isp)->isp_mdvec->dv_dregs)((isp),(m))
143 #define ISP_SETBITS(isp, reg, val) \ argument
144 (*(isp)->isp_mdvec->dv_wr_reg)((isp), (reg), ISP_READ((isp), (reg)) | (val))
146 #define ISP_CLRBITS(isp, reg, val) \ argument
147 (*(isp)->isp_mdvec->dv_wr_reg)((isp), (reg), ISP_READ((isp), (reg)) & ~(val))
182 #define ISP_QAVAIL(isp) \ argument
183 ISP_QFREE(isp->isp_reqidx, isp->isp_reqodx, RQUEST_QUEUE_LEN(isp))
185 #define ISP_ADD_REQUEST(isp, nxti) \ argument
186 MEMORYBARRIER(isp, SYNC_REQUEST, isp->isp_reqidx, QENTRY_LEN, -1); \
187 ISP_WRITE(isp, isp->isp_rqstinrp, nxti); \
188 isp->isp_reqidx = nxti
190 #define ISP_SYNC_REQUEST(isp) \ argument
191 MEMORYBARRIER(isp, SYNC_REQUEST, isp->isp_reqidx, QENTRY_LEN, -1); \
192 isp->isp_reqidx = ISP_NXT_QENTRY(isp->isp_reqidx, RQUEST_QUEUE_LEN(isp)); \
193 ISP_WRITE(isp, isp->isp_rqstinrp, isp->isp_reqidx)
685 #define SDPARAM(isp, chan) (&((sdparam *)(isp)->isp_param)[(chan)]) argument
686 #define FCPARAM(isp, chan) (&((fcparam *)(isp)->isp_param)[(chan)]) argument
688 #define ISP_SET_SENDMARKER(isp, chan, val) \ argument
689 if (IS_FC(isp)) { \
690 FCPARAM(isp, chan)->sendmarker = val; \
692 SDPARAM(isp, chan)->sendmarker = val; \
695 #define ISP_TST_SENDMARKER(isp, chan) \ argument
696 (IS_FC(isp)? \
697 FCPARAM(isp, chan)->sendmarker != 0 : \
698 SDPARAM(isp, chan)->sendmarker != 0)
817 #define IS_SCSI(isp) (isp->isp_type & ISP_HA_SCSI) argument
818 #define IS_1020(isp) (isp->isp_type < ISP_HA_SCSI_1240) argument
819 #define IS_1240(isp) (isp->isp_type == ISP_HA_SCSI_1240) argument
820 #define IS_1080(isp) (isp->isp_type == ISP_HA_SCSI_1080) argument
821 #define IS_1280(isp) (isp->isp_type == ISP_HA_SCSI_1280) argument
822 #define IS_10160(isp) (isp->isp_type == ISP_HA_SCSI_10160) argument
823 #define IS_12160(isp) (isp->isp_type == ISP_HA_SCSI_12160) argument
825 #define IS_12X0(isp) (IS_1240(isp) || IS_1280(isp)) argument
826 #define IS_1X160(isp) (IS_10160(isp) || IS_12160(isp)) argument
827 #define IS_DUALBUS(isp) (IS_12X0(isp) || IS_12160(isp)) argument
828 #define IS_ULTRA2(isp) (IS_1080(isp) || IS_1280(isp) || IS_1X160(isp)) argument
829 #define IS_ULTRA3(isp) (IS_1X160(isp)) argument
831 #define IS_FC(isp) ((isp)->isp_type & ISP_HA_FC) argument
832 #define IS_2100(isp) ((isp)->isp_type == ISP_HA_FC_2100) argument
833 #define IS_2200(isp) ((isp)->isp_type == ISP_HA_FC_2200) argument
834 #define IS_23XX(isp) ((isp)->isp_type >= ISP_HA_FC_2300 && \ argument
835 (isp)->isp_type < ISP_HA_FC_2400)
836 #define IS_2300(isp) ((isp)->isp_type == ISP_HA_FC_2300) argument
837 #define IS_2312(isp) ((isp)->isp_type == ISP_HA_FC_2312) argument
838 #define IS_2322(isp) ((isp)->isp_type == ISP_HA_FC_2322) argument
839 #define IS_24XX(isp) ((isp)->isp_type >= ISP_HA_FC_2400) argument
840 #define IS_25XX(isp) ((isp)->isp_type >= ISP_HA_FC_2500) argument
1176 int isp_target_put_entry(ispsoftc_t *isp, void *);