scbid              69 drivers/scsi/aic7xxx/aic79xx.h #define SCBID_IS_NULL(scbid) (((scbid) & 0xFF00 ) == SCB_LIST_NULL)
scbid             198 drivers/scsi/aic7xxx/aic79xx_core.c 						 u_int scbid);
scbid             199 drivers/scsi/aic7xxx/aic79xx_core.c static u_int		ahd_rem_wscb(struct ahd_softc *ahd, u_int scbid,
scbid             237 drivers/scsi/aic7xxx/aic79xx_core.c 				     u_int scbid);
scbid            1193 drivers/scsi/aic7xxx/aic79xx_core.c 	u_int		scbid;
scbid            1207 drivers/scsi/aic7xxx/aic79xx_core.c 		scbid = ahd_inw(ahd, GSFIFO);
scbid            1208 drivers/scsi/aic7xxx/aic79xx_core.c 		scb = ahd_lookup_scb(ahd, scbid);
scbid            1211 drivers/scsi/aic7xxx/aic79xx_core.c 			       ahd_name(ahd), scbid);
scbid            1249 drivers/scsi/aic7xxx/aic79xx_core.c 		ahd_set_scbptr(ahd, scbid);
scbid            1266 drivers/scsi/aic7xxx/aic79xx_core.c 			ahd_outw(ahd, SCB_TAG, scbid);
scbid            1270 drivers/scsi/aic7xxx/aic79xx_core.c 				ahd_outw(ahd, COMPLETE_DMA_SCB_HEAD, scbid);
scbid            1271 drivers/scsi/aic7xxx/aic79xx_core.c 				ahd_outw(ahd, COMPLETE_DMA_SCB_TAIL, scbid);
scbid            1277 drivers/scsi/aic7xxx/aic79xx_core.c 				ahd_outw(ahd, SCB_NEXT_COMPLETE, scbid);
scbid            1278 drivers/scsi/aic7xxx/aic79xx_core.c 				ahd_outw(ahd, COMPLETE_DMA_SCB_TAIL, scbid);
scbid            1279 drivers/scsi/aic7xxx/aic79xx_core.c 				ahd_set_scbptr(ahd, scbid);
scbid            1325 drivers/scsi/aic7xxx/aic79xx_core.c 	scbid = ahd_inw(ahd, COMPLETE_DMA_SCB_HEAD);
scbid            1326 drivers/scsi/aic7xxx/aic79xx_core.c 	while (!SCBID_IS_NULL(scbid)) {
scbid            1330 drivers/scsi/aic7xxx/aic79xx_core.c 		ahd_set_scbptr(ahd, scbid);
scbid            1332 drivers/scsi/aic7xxx/aic79xx_core.c 		scb = ahd_lookup_scb(ahd, scbid);
scbid            1335 drivers/scsi/aic7xxx/aic79xx_core.c 			       "SCB %d invalid\n", ahd_name(ahd), scbid);
scbid            1343 drivers/scsi/aic7xxx/aic79xx_core.c 		scbid = next_scbid;
scbid            1348 drivers/scsi/aic7xxx/aic79xx_core.c 	scbid = ahd_inw(ahd, COMPLETE_ON_QFREEZE_HEAD);
scbid            1349 drivers/scsi/aic7xxx/aic79xx_core.c 	while (!SCBID_IS_NULL(scbid)) {
scbid            1351 drivers/scsi/aic7xxx/aic79xx_core.c 		ahd_set_scbptr(ahd, scbid);
scbid            1353 drivers/scsi/aic7xxx/aic79xx_core.c 		scb = ahd_lookup_scb(ahd, scbid);
scbid            1356 drivers/scsi/aic7xxx/aic79xx_core.c 			       ahd_name(ahd), scbid);
scbid            1361 drivers/scsi/aic7xxx/aic79xx_core.c 		scbid = next_scbid;
scbid            1365 drivers/scsi/aic7xxx/aic79xx_core.c 	scbid = ahd_inw(ahd, COMPLETE_SCB_HEAD);
scbid            1366 drivers/scsi/aic7xxx/aic79xx_core.c 	while (!SCBID_IS_NULL(scbid)) {
scbid            1368 drivers/scsi/aic7xxx/aic79xx_core.c 		ahd_set_scbptr(ahd, scbid);
scbid            1370 drivers/scsi/aic7xxx/aic79xx_core.c 		scb = ahd_lookup_scb(ahd, scbid);
scbid            1373 drivers/scsi/aic7xxx/aic79xx_core.c 			       ahd_name(ahd), scbid);
scbid            1378 drivers/scsi/aic7xxx/aic79xx_core.c 		scbid = next_scbid;
scbid            1804 drivers/scsi/aic7xxx/aic79xx_core.c 		u_int	scbid;
scbid            1808 drivers/scsi/aic7xxx/aic79xx_core.c 		scbid = ahd_get_scbptr(ahd);
scbid            1809 drivers/scsi/aic7xxx/aic79xx_core.c 		scb = ahd_lookup_scb(ahd, scbid);
scbid            1854 drivers/scsi/aic7xxx/aic79xx_core.c 		u_int	scbid;
scbid            1856 drivers/scsi/aic7xxx/aic79xx_core.c 		scbid = ahd_get_scbptr(ahd);
scbid            1857 drivers/scsi/aic7xxx/aic79xx_core.c 		scb = ahd_lookup_scb(ahd, scbid);
scbid            1862 drivers/scsi/aic7xxx/aic79xx_core.c 		printk("SCB %d Packetized Status Overrun", scbid);
scbid            1870 drivers/scsi/aic7xxx/aic79xx_core.c 		u_int	scbid;
scbid            1872 drivers/scsi/aic7xxx/aic79xx_core.c 		scbid = ahd_get_scbptr(ahd);
scbid            1873 drivers/scsi/aic7xxx/aic79xx_core.c 		scb = ahd_lookup_scb(ahd, scbid);
scbid            1876 drivers/scsi/aic7xxx/aic79xx_core.c 			printk("CFG4ISTAT: Free SCB %d referenced", scbid);
scbid            1912 drivers/scsi/aic7xxx/aic79xx_core.c 			u_int	scbid;
scbid            1925 drivers/scsi/aic7xxx/aic79xx_core.c 			scbid = ahd_get_scbptr(ahd);
scbid            1926 drivers/scsi/aic7xxx/aic79xx_core.c 			scb = ahd_lookup_scb(ahd, scbid);
scbid            2244 drivers/scsi/aic7xxx/aic79xx_core.c 		u_int scbid;
scbid            2250 drivers/scsi/aic7xxx/aic79xx_core.c 		scbid = ahd_get_scbptr(ahd);
scbid            2251 drivers/scsi/aic7xxx/aic79xx_core.c 		scb = ahd_lookup_scb(ahd, scbid);
scbid            2269 drivers/scsi/aic7xxx/aic79xx_core.c 		u_int	scbid;
scbid            2272 drivers/scsi/aic7xxx/aic79xx_core.c 		scbid = ahd_get_scbptr(ahd);
scbid            2273 drivers/scsi/aic7xxx/aic79xx_core.c 		scb = ahd_lookup_scb(ahd, scbid);
scbid            2323 drivers/scsi/aic7xxx/aic79xx_core.c 		u_int	scbid;
scbid            2330 drivers/scsi/aic7xxx/aic79xx_core.c 		scbid = ahd_get_scbptr(ahd);
scbid            2331 drivers/scsi/aic7xxx/aic79xx_core.c 		scb = ahd_lookup_scb(ahd, scbid);
scbid            2393 drivers/scsi/aic7xxx/aic79xx_core.c 	u_int		 scbid;
scbid            2427 drivers/scsi/aic7xxx/aic79xx_core.c 	scbid = ahd_get_scbptr(ahd);
scbid            2428 drivers/scsi/aic7xxx/aic79xx_core.c 	scb = ahd_lookup_scb(ahd, scbid);
scbid            2491 drivers/scsi/aic7xxx/aic79xx_core.c 		scbid = ahd_inw(ahd, WAITING_TID_HEAD);
scbid            2492 drivers/scsi/aic7xxx/aic79xx_core.c 		scb = ahd_lookup_scb(ahd, scbid);
scbid            2496 drivers/scsi/aic7xxx/aic79xx_core.c 			       ahd_name(ahd), scbid);
scbid            2504 drivers/scsi/aic7xxx/aic79xx_core.c 				       scbid);
scbid            2581 drivers/scsi/aic7xxx/aic79xx_core.c 			scbid = ahd_get_scbptr(ahd);
scbid            2582 drivers/scsi/aic7xxx/aic79xx_core.c 			scb = ahd_lookup_scb(ahd, scbid);
scbid            2586 drivers/scsi/aic7xxx/aic79xx_core.c 				       ahd_name(ahd), scbid, mode);
scbid            2670 drivers/scsi/aic7xxx/aic79xx_core.c 	u_int	scbid;
scbid            2718 drivers/scsi/aic7xxx/aic79xx_core.c 		scbid = ahd_get_scbptr(ahd);
scbid            2719 drivers/scsi/aic7xxx/aic79xx_core.c 		scb = ahd_lookup_scb(ahd, scbid);
scbid            2905 drivers/scsi/aic7xxx/aic79xx_core.c 		u_int scbid;
scbid            2927 drivers/scsi/aic7xxx/aic79xx_core.c 		scbid = ahd_inw(ahd, CURRSCB);
scbid            2928 drivers/scsi/aic7xxx/aic79xx_core.c 		scb = ahd_lookup_scb(ahd, scbid);
scbid            2955 drivers/scsi/aic7xxx/aic79xx_core.c 		if (waiting_h != scbid) {
scbid            2957 drivers/scsi/aic7xxx/aic79xx_core.c 			ahd_outw(ahd, WAITING_TID_HEAD, scbid);
scbid            2960 drivers/scsi/aic7xxx/aic79xx_core.c 				ahd_outw(ahd, WAITING_TID_TAIL, scbid);
scbid            2966 drivers/scsi/aic7xxx/aic79xx_core.c 			ahd_set_scbptr(ahd, scbid);
scbid            3003 drivers/scsi/aic7xxx/aic79xx_core.c 		u_int	scbid;
scbid            3006 drivers/scsi/aic7xxx/aic79xx_core.c 		scbid = ahd_get_scbptr(ahd);
scbid            3007 drivers/scsi/aic7xxx/aic79xx_core.c 		scb = ahd_lookup_scb(ahd, scbid);
scbid            3037 drivers/scsi/aic7xxx/aic79xx_core.c 	u_int	scbid;
scbid            3055 drivers/scsi/aic7xxx/aic79xx_core.c 	scbid = ahd_get_scbptr(ahd);
scbid            3056 drivers/scsi/aic7xxx/aic79xx_core.c 	scb = ahd_lookup_scb(ahd, scbid);
scbid            3319 drivers/scsi/aic7xxx/aic79xx_core.c 	u_int	scbid;
scbid            3326 drivers/scsi/aic7xxx/aic79xx_core.c 	scbid = ahd_get_scbptr(ahd);
scbid            3327 drivers/scsi/aic7xxx/aic79xx_core.c 	scb = ahd_lookup_scb(ahd, scbid);
scbid            7968 drivers/scsi/aic7xxx/aic79xx_core.c 	u_int scbid;
scbid            7973 drivers/scsi/aic7xxx/aic79xx_core.c 	scbid = ahd_inw_scbram(ahd, scb_offset);
scbid            7975 drivers/scsi/aic7xxx/aic79xx_core.c 	return (scbid);
scbid            7979 drivers/scsi/aic7xxx/aic79xx_core.c ahd_busy_tcl(struct ahd_softc *ahd, u_int tcl, u_int scbid)
scbid            7985 drivers/scsi/aic7xxx/aic79xx_core.c 	ahd_outw(ahd, scb_offset, scbid);
scbid            8158 drivers/scsi/aic7xxx/aic79xx_core.c 	u_int		 scbid;
scbid            8250 drivers/scsi/aic7xxx/aic79xx_core.c 		scbid = ahd_inw(ahd, MK_MESSAGE_SCB);
scbid            8251 drivers/scsi/aic7xxx/aic79xx_core.c 		mk_msg_scb = ahd_lookup_scb(ahd, scbid);
scbid            8258 drivers/scsi/aic7xxx/aic79xx_core.c 	for (scbid = tid_next; !SCBID_IS_NULL(scbid); scbid = tid_next) {
scbid            8266 drivers/scsi/aic7xxx/aic79xx_core.c 		if (scbid >= ahd->scb_data.numscbs) {
scbid            8269 drivers/scsi/aic7xxx/aic79xx_core.c 			       ahd_name(ahd), scbid, ahd->scb_data.numscbs);
scbid            8273 drivers/scsi/aic7xxx/aic79xx_core.c 		scb = ahd_lookup_scb(ahd, scbid);
scbid            8276 drivers/scsi/aic7xxx/aic79xx_core.c 			       ahd_name(ahd), scbid);
scbid            8279 drivers/scsi/aic7xxx/aic79xx_core.c 		ahd_set_scbptr(ahd, scbid);
scbid            8283 drivers/scsi/aic7xxx/aic79xx_core.c 			tid_prev = scbid;
scbid            8292 drivers/scsi/aic7xxx/aic79xx_core.c 		tid_head = scbid;
scbid            8360 drivers/scsi/aic7xxx/aic79xx_core.c 		if (tid_head != scbid)
scbid            8381 drivers/scsi/aic7xxx/aic79xx_core.c 	u_int	scbid;
scbid            8391 drivers/scsi/aic7xxx/aic79xx_core.c 	for (scbid = next; !SCBID_IS_NULL(scbid); scbid = next) {
scbid            8392 drivers/scsi/aic7xxx/aic79xx_core.c 		if (scbid >= ahd->scb_data.numscbs) {
scbid            8395 drivers/scsi/aic7xxx/aic79xx_core.c 			       ahd_name(ahd), scbid, ahd->scb_data.numscbs);
scbid            8399 drivers/scsi/aic7xxx/aic79xx_core.c 		scb = ahd_lookup_scb(ahd, scbid);
scbid            8402 drivers/scsi/aic7xxx/aic79xx_core.c 			       ahd_name(ahd), scbid);
scbid            8405 drivers/scsi/aic7xxx/aic79xx_core.c 		ahd_set_scbptr(ahd, scbid);
scbid            8406 drivers/scsi/aic7xxx/aic79xx_core.c 		*list_tail = scbid;
scbid            8410 drivers/scsi/aic7xxx/aic79xx_core.c 			prev = scbid;
scbid            8421 drivers/scsi/aic7xxx/aic79xx_core.c 			ahd_rem_wscb(ahd, scbid, prev, next, tid);
scbid            8427 drivers/scsi/aic7xxx/aic79xx_core.c 			printk("0x%x ", scbid);
scbid            8430 drivers/scsi/aic7xxx/aic79xx_core.c 			prev = scbid;
scbid            8481 drivers/scsi/aic7xxx/aic79xx_core.c ahd_rem_wscb(struct ahd_softc *ahd, u_int scbid,
scbid            8501 drivers/scsi/aic7xxx/aic79xx_core.c 	 && ahd_inw(ahd, tail_offset) == scbid)
scbid            8504 drivers/scsi/aic7xxx/aic79xx_core.c 	ahd_add_scb_to_free_list(ahd, scbid);
scbid            8514 drivers/scsi/aic7xxx/aic79xx_core.c ahd_add_scb_to_free_list(struct ahd_softc *ahd, u_int scbid)
scbid            8576 drivers/scsi/aic7xxx/aic79xx_core.c 				u_int scbid;
scbid            8580 drivers/scsi/aic7xxx/aic79xx_core.c 				scbid = ahd_find_busy_tcl(ahd, tcl);
scbid            8581 drivers/scsi/aic7xxx/aic79xx_core.c 				scbp = ahd_lookup_scb(ahd, scbid);
scbid            3135 drivers/scsi/aic7xxx/aic7xxx_core.c 	u_int	scbid;
scbid            3142 drivers/scsi/aic7xxx/aic7xxx_core.c 	scbid = ahc_inb(ahc, SCB_TAG);
scbid            3143 drivers/scsi/aic7xxx/aic7xxx_core.c 	scb = ahc_lookup_scb(ahc, scbid);
scbid            5666 drivers/scsi/aic7xxx/aic7xxx_core.c 	u_int scbid;
scbid            5674 drivers/scsi/aic7xxx/aic7xxx_core.c 		scbid = ahc_inb(ahc, SCB_64_BTT + TCL_TARGET_OFFSET(tcl));
scbid            5678 drivers/scsi/aic7xxx/aic7xxx_core.c 		scbid = ahc_inb(ahc, BUSY_TARGETS + target_offset);
scbid            5681 drivers/scsi/aic7xxx/aic7xxx_core.c 	return (scbid);
scbid            5703 drivers/scsi/aic7xxx/aic7xxx_core.c ahc_busy_tcl(struct ahc_softc *ahc, u_int tcl, u_int scbid)
scbid            5712 drivers/scsi/aic7xxx/aic7xxx_core.c 		ahc_outb(ahc, SCB_64_BTT + TCL_TARGET_OFFSET(tcl), scbid);
scbid            5716 drivers/scsi/aic7xxx/aic7xxx_core.c 		ahc_outb(ahc, BUSY_TARGETS + target_offset, scbid);
scbid            6356 drivers/scsi/aic7xxx/aic7xxx_core.c 				u_int scbid;
scbid            6360 drivers/scsi/aic7xxx/aic7xxx_core.c 				scbid = ahc_index_busy_tcl(ahc, tcl);
scbid            6361 drivers/scsi/aic7xxx/aic7xxx_core.c 				scbp = ahc_lookup_scb(ahc, scbid);
scbid            6389 drivers/scsi/aic7xxx/aic7xxx_core.c 		u_int scbid;
scbid            6392 drivers/scsi/aic7xxx/aic7xxx_core.c 		scbid = ahc_inb(ahc, SCB_TAG);
scbid            6393 drivers/scsi/aic7xxx/aic7xxx_core.c 		scbp = ahc_lookup_scb(ahc, scbid);
scbid            6394 drivers/scsi/aic7xxx/aic7xxx_core.c 		if ((scbp == NULL && scbid != SCB_LIST_NULL)