Lines Matching refs:scb
77 #define SCB_IS_SCSIBUS_B(ahc, scb) \
78 (SCSIID_CHANNEL(ahc, (scb)->hscb->scsiid) == 'B')
79 #define SCB_GET_OUR_ID(scb) \
80 SCSIID_OUR_ID((scb)->hscb->scsiid)
81 #define SCB_GET_TARGET(ahc, scb) \
82 SCSIID_TARGET((ahc), (scb)->hscb->scsiid)
83 #define SCB_GET_CHANNEL(ahc, scb) \
84 SCSIID_CHANNEL(ahc, (scb)->hscb->scsiid)
85 #define SCB_GET_LUN(scb) \
86 ((scb)->hscb->lun & LID)
87 #define SCB_GET_TARGET_OFFSET(ahc, scb) \
88 (SCB_GET_TARGET(ahc, scb) + (SCB_IS_SCSIBUS_B(ahc, scb) ? 8 : 0))
89 #define SCB_GET_TARGET_MASK(ahc, scb) \
90 (0x01 << (SCB_GET_TARGET_OFFSET(ahc, scb)))
92 #define SCB_IS_SILENT(scb) \
94 && (((scb)->flags & SCB_SILENT) != 0))
96 #define SCB_IS_SILENT(scb) \
97 (((scb)->flags & SCB_SILENT) != 0)
365 * The driver keeps up to MAX_SCB scb structures per card in memory. The SCB
369 * To minimize space utilization, a portion of the hardware scb stores
419 * The scb is presented to the sequencer with the dataptr and datacnt
436 * will set the SG_RESID_VALID flag in sgptr and dma the scb back into
447 * o A residual has occurred if a completed scb has the
561 struct scb {
564 SLIST_ENTRY(scb) sle;
565 TAILQ_ENTRY(scb) tqe;
567 LIST_ENTRY(scb) pending_links;
579 SLIST_HEAD(, scb) free_scbs; /*
583 struct scb *scbindex[256]; /*
593 struct scb *scbarray; /* Array of kernel SCBs */
866 TAILQ_HEAD(scb_tailq, scb);
906 struct scb *next_queued_scb;
911 BSD_LIST_HEAD(, scb) pending_scbs;
1146 struct scb *scb);
1147 int ahc_match_scb(struct ahc_softc *ahc, struct scb *scb,