Lines Matching refs:scbid
198 u_int scbid);
199 static u_int ahd_rem_wscb(struct ahd_softc *ahd, u_int scbid,
237 u_int scbid);
1193 u_int scbid; in ahd_flush_qoutfifo() local
1207 scbid = ahd_inw(ahd, GSFIFO); in ahd_flush_qoutfifo()
1208 scb = ahd_lookup_scb(ahd, scbid); in ahd_flush_qoutfifo()
1211 ahd_name(ahd), scbid); in ahd_flush_qoutfifo()
1249 ahd_set_scbptr(ahd, scbid); in ahd_flush_qoutfifo()
1266 ahd_outw(ahd, SCB_TAG, scbid); in ahd_flush_qoutfifo()
1270 ahd_outw(ahd, COMPLETE_DMA_SCB_HEAD, scbid); in ahd_flush_qoutfifo()
1271 ahd_outw(ahd, COMPLETE_DMA_SCB_TAIL, scbid); in ahd_flush_qoutfifo()
1277 ahd_outw(ahd, SCB_NEXT_COMPLETE, scbid); in ahd_flush_qoutfifo()
1278 ahd_outw(ahd, COMPLETE_DMA_SCB_TAIL, scbid); in ahd_flush_qoutfifo()
1279 ahd_set_scbptr(ahd, scbid); in ahd_flush_qoutfifo()
1325 scbid = ahd_inw(ahd, COMPLETE_DMA_SCB_HEAD); in ahd_flush_qoutfifo()
1326 while (!SCBID_IS_NULL(scbid)) { in ahd_flush_qoutfifo()
1330 ahd_set_scbptr(ahd, scbid); in ahd_flush_qoutfifo()
1332 scb = ahd_lookup_scb(ahd, scbid); in ahd_flush_qoutfifo()
1335 "SCB %d invalid\n", ahd_name(ahd), scbid); in ahd_flush_qoutfifo()
1343 scbid = next_scbid; in ahd_flush_qoutfifo()
1348 scbid = ahd_inw(ahd, COMPLETE_ON_QFREEZE_HEAD); in ahd_flush_qoutfifo()
1349 while (!SCBID_IS_NULL(scbid)) { in ahd_flush_qoutfifo()
1351 ahd_set_scbptr(ahd, scbid); in ahd_flush_qoutfifo()
1353 scb = ahd_lookup_scb(ahd, scbid); in ahd_flush_qoutfifo()
1356 ahd_name(ahd), scbid); in ahd_flush_qoutfifo()
1361 scbid = next_scbid; in ahd_flush_qoutfifo()
1365 scbid = ahd_inw(ahd, COMPLETE_SCB_HEAD); in ahd_flush_qoutfifo()
1366 while (!SCBID_IS_NULL(scbid)) { in ahd_flush_qoutfifo()
1368 ahd_set_scbptr(ahd, scbid); in ahd_flush_qoutfifo()
1370 scb = ahd_lookup_scb(ahd, scbid); in ahd_flush_qoutfifo()
1373 ahd_name(ahd), scbid); in ahd_flush_qoutfifo()
1378 scbid = next_scbid; in ahd_flush_qoutfifo()
1802 u_int scbid; in ahd_handle_seqint() local
1806 scbid = ahd_get_scbptr(ahd); in ahd_handle_seqint()
1807 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_seqint()
1852 u_int scbid; in ahd_handle_seqint() local
1854 scbid = ahd_get_scbptr(ahd); in ahd_handle_seqint()
1855 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_seqint()
1860 printk("SCB %d Packetized Status Overrun", scbid); in ahd_handle_seqint()
1868 u_int scbid; in ahd_handle_seqint() local
1870 scbid = ahd_get_scbptr(ahd); in ahd_handle_seqint()
1871 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_seqint()
1874 printk("CFG4ISTAT: Free SCB %d referenced", scbid); in ahd_handle_seqint()
1907 u_int scbid; in ahd_handle_seqint() local
1920 scbid = ahd_get_scbptr(ahd); in ahd_handle_seqint()
1921 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_seqint()
2232 u_int scbid; in ahd_handle_seqint() local
2238 scbid = ahd_get_scbptr(ahd); in ahd_handle_seqint()
2239 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_seqint()
2257 u_int scbid; in ahd_handle_seqint() local
2260 scbid = ahd_get_scbptr(ahd); in ahd_handle_seqint()
2261 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_seqint()
2311 u_int scbid; in ahd_handle_seqint() local
2318 scbid = ahd_get_scbptr(ahd); in ahd_handle_seqint()
2319 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_seqint()
2381 u_int scbid; in ahd_handle_scsiint() local
2415 scbid = ahd_get_scbptr(ahd); in ahd_handle_scsiint()
2416 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_scsiint()
2479 scbid = ahd_inw(ahd, WAITING_TID_HEAD); in ahd_handle_scsiint()
2480 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_scsiint()
2484 ahd_name(ahd), scbid); in ahd_handle_scsiint()
2492 scbid); in ahd_handle_scsiint()
2569 scbid = ahd_get_scbptr(ahd); in ahd_handle_scsiint()
2570 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_scsiint()
2574 ahd_name(ahd), scbid, mode); in ahd_handle_scsiint()
2658 u_int scbid; in ahd_handle_transmission_error() local
2705 scbid = ahd_get_scbptr(ahd); in ahd_handle_transmission_error()
2706 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_transmission_error()
2892 u_int scbid; in ahd_handle_pkt_busfree() local
2914 scbid = ahd_inw(ahd, CURRSCB); in ahd_handle_pkt_busfree()
2915 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_pkt_busfree()
2942 if (waiting_h != scbid) { in ahd_handle_pkt_busfree()
2944 ahd_outw(ahd, WAITING_TID_HEAD, scbid); in ahd_handle_pkt_busfree()
2947 ahd_outw(ahd, WAITING_TID_TAIL, scbid); in ahd_handle_pkt_busfree()
2953 ahd_set_scbptr(ahd, scbid); in ahd_handle_pkt_busfree()
2990 u_int scbid; in ahd_handle_pkt_busfree() local
2993 scbid = ahd_get_scbptr(ahd); in ahd_handle_pkt_busfree()
2994 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_pkt_busfree()
3024 u_int scbid; in ahd_handle_nonpkt_busfree() local
3042 scbid = ahd_get_scbptr(ahd); in ahd_handle_nonpkt_busfree()
3043 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_nonpkt_busfree()
3293 u_int scbid; in ahd_handle_proto_violation() local
3300 scbid = ahd_get_scbptr(ahd); in ahd_handle_proto_violation()
3301 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_proto_violation()
7923 u_int scbid; in ahd_find_busy_tcl() local
7928 scbid = ahd_inw_scbram(ahd, scb_offset); in ahd_find_busy_tcl()
7930 return (scbid); in ahd_find_busy_tcl()
7934 ahd_busy_tcl(struct ahd_softc *ahd, u_int tcl, u_int scbid) in ahd_busy_tcl() argument
7940 ahd_outw(ahd, scb_offset, scbid); in ahd_busy_tcl()
8113 u_int scbid; in ahd_search_qinfifo() local
8205 scbid = ahd_inw(ahd, MK_MESSAGE_SCB); in ahd_search_qinfifo()
8206 mk_msg_scb = ahd_lookup_scb(ahd, scbid); in ahd_search_qinfifo()
8213 for (scbid = tid_next; !SCBID_IS_NULL(scbid); scbid = tid_next) { in ahd_search_qinfifo()
8221 if (scbid >= ahd->scb_data.numscbs) { in ahd_search_qinfifo()
8224 ahd_name(ahd), scbid, ahd->scb_data.numscbs); in ahd_search_qinfifo()
8228 scb = ahd_lookup_scb(ahd, scbid); in ahd_search_qinfifo()
8231 ahd_name(ahd), scbid); in ahd_search_qinfifo()
8234 ahd_set_scbptr(ahd, scbid); in ahd_search_qinfifo()
8238 tid_prev = scbid; in ahd_search_qinfifo()
8247 tid_head = scbid; in ahd_search_qinfifo()
8315 if (tid_head != scbid) in ahd_search_qinfifo()
8336 u_int scbid; in ahd_search_scb_list() local
8346 for (scbid = next; !SCBID_IS_NULL(scbid); scbid = next) { in ahd_search_scb_list()
8347 if (scbid >= ahd->scb_data.numscbs) { in ahd_search_scb_list()
8350 ahd_name(ahd), scbid, ahd->scb_data.numscbs); in ahd_search_scb_list()
8354 scb = ahd_lookup_scb(ahd, scbid); in ahd_search_scb_list()
8357 ahd_name(ahd), scbid); in ahd_search_scb_list()
8360 ahd_set_scbptr(ahd, scbid); in ahd_search_scb_list()
8361 *list_tail = scbid; in ahd_search_scb_list()
8365 prev = scbid; in ahd_search_scb_list()
8376 ahd_rem_wscb(ahd, scbid, prev, next, tid); in ahd_search_scb_list()
8382 printk("0x%x ", scbid); in ahd_search_scb_list()
8385 prev = scbid; in ahd_search_scb_list()
8436 ahd_rem_wscb(struct ahd_softc *ahd, u_int scbid, in ahd_rem_wscb() argument
8456 && ahd_inw(ahd, tail_offset) == scbid) in ahd_rem_wscb()
8459 ahd_add_scb_to_free_list(ahd, scbid); in ahd_rem_wscb()
8469 ahd_add_scb_to_free_list(struct ahd_softc *ahd, u_int scbid) in ahd_add_scb_to_free_list() argument
8531 u_int scbid; in ahd_abort_scbs() local
8535 scbid = ahd_find_busy_tcl(ahd, tcl); in ahd_abort_scbs()
8536 scbp = ahd_lookup_scb(ahd, scbid); in ahd_abort_scbs()