Lines Matching refs:scb

87 #define	SCB_IS_SCSIBUS_B(ahc, scb) \
88 (SCSIID_CHANNEL(ahc, (scb)->hscb->scsiid) == 'B')
89 #define SCB_GET_OUR_ID(scb) \
90 SCSIID_OUR_ID((scb)->hscb->scsiid)
91 #define SCB_GET_TARGET(ahc, scb) \
92 SCSIID_TARGET((ahc), (scb)->hscb->scsiid)
93 #define SCB_GET_CHANNEL(ahc, scb) \
94 SCSIID_CHANNEL(ahc, (scb)->hscb->scsiid)
95 #define SCB_GET_LUN(scb) \
96 ((scb)->hscb->lun & LID)
97 #define SCB_GET_TARGET_OFFSET(ahc, scb) \
98 (SCB_GET_TARGET(ahc, scb) + (SCB_IS_SCSIBUS_B(ahc, scb) ? 8 : 0))
99 #define SCB_GET_TARGET_MASK(ahc, scb) \
100 (0x01 << (SCB_GET_TARGET_OFFSET(ahc, scb)))
102 #define SCB_IS_SILENT(scb) \
104 && (((scb)->flags & SCB_SILENT) != 0))
106 #define SCB_IS_SILENT(scb) \
107 (((scb)->flags & SCB_SILENT) != 0)
380 * The driver keeps up to MAX_SCB scb structures per card in memory. The SCB
384 * To minimize space utilization, a portion of the hardware scb stores
435 * The scb is presented to the sequencer with the dataptr and datacnt
452 * will set the SG_RESID_VALID flag in sgptr and dma the scb back into
463 * o A residual has occurred if a completed scb has the
581 struct scb {
584 SLIST_ENTRY(scb) sle;
585 TAILQ_ENTRY(scb) tqe;
587 LIST_ENTRY(scb) pending_links;
588 LIST_ENTRY(scb) timedout_links;
604 SLIST_HEAD(, scb) free_scbs; /*
608 struct scb *scbindex[256]; /*
618 struct scb *scbarray; /* Array of kernel SCBs */
893 TAILQ_HEAD(scb_tailq, scb);
940 struct scb *next_queued_scb;
945 LIST_HEAD(, scb) pending_scbs;
950 LIST_HEAD(, scb) timedout_scbs;
1212 struct scb *scb);
1213 int ahc_match_scb(struct ahc_softc *ahc, struct scb *scb,
1266 void ahc_freeze_devq(struct ahc_softc *ahc, struct scb *scb);
1274 struct scb *scb);
1275 void ahc_timeout(struct scb *scb);
1363 void ahc_print_scb(struct scb *scb);