Lines Matching refs:scb

76 #define	SCB_IS_SCSIBUS_B(ahd, scb) (0)
77 #define SCB_GET_OUR_ID(scb) \
78 SCSIID_OUR_ID((scb)->hscb->scsiid)
79 #define SCB_GET_TARGET(ahd, scb) \
80 SCSIID_TARGET((ahd), (scb)->hscb->scsiid)
81 #define SCB_GET_CHANNEL(ahd, scb) \
82 SCSIID_CHANNEL(ahd, (scb)->hscb->scsiid)
83 #define SCB_GET_LUN(scb) \
84 ((scb)->hscb->lun)
85 #define SCB_GET_TARGET_OFFSET(ahd, scb) \
86 SCB_GET_TARGET(ahd, scb)
87 #define SCB_GET_TARGET_MASK(ahd, scb) \
88 (0x01 << (SCB_GET_TARGET_OFFSET(ahd, scb)))
90 #define SCB_IS_SILENT(scb) \
92 && (((scb)->flags & SCB_SILENT) != 0))
94 #define SCB_IS_SILENT(scb) \
95 (((scb)->flags & SCB_SILENT) != 0)
109 #define SCB_GET_TAG(scb) \
110 ahd_le16toh(scb->hscb->tag)
120 #define AHD_GET_SCB_COL_IDX(ahd, scb) \
121 ((SCB_GET_LUN(scb) << 4) | SCB_GET_TARGET(ahd, scb))
123 #define AHD_SET_SCB_COL_IDX(scb, col_idx) \
125 (scb)->hscb->scsiid = ((col_idx) << TID_SHIFT) & TID; \
126 (scb)->hscb->lun = ((col_idx) >> 4) & (AHD_NUM_LUNS_NONPKT-1); \
374 * The driver keeps up to MAX_SCB scb structures per card in memory. The SCB
378 * To minimize space utilization, a portion of the hardware scb stores
452 * The scb is presented to the sequencer with the dataptr and datacnt
470 * sgptr and dma the scb back into host memory. To sumarize:
480 * o A residual can only have occurred if a completed scb has the
592 struct scb {
595 SLIST_ENTRY(scb) sle;
596 LIST_ENTRY(scb) le;
597 TAILQ_ENTRY(scb) tqe;
600 SLIST_ENTRY(scb) sle;
601 LIST_ENTRY(scb) le;
602 TAILQ_ENTRY(scb) tqe;
606 struct scb *col_scb;
623 TAILQ_HEAD(scb_tailq, scb);
624 BSD_LIST_HEAD(scb_list, scb);
647 struct scb *scbindex[AHD_SCB_MAX];
1064 BSD_LIST_HEAD(, scb) pending_scbs;
1338 struct scb *scb);
1356 struct scb *ahd_get_scb(struct ahd_softc *ahd, u_int col_idx);
1357 void ahd_free_scb(struct ahd_softc *ahd, struct scb *scb);