Lines Matching refs:scbid
206 u_int scbid);
207 static u_int ahd_rem_wscb(struct ahd_softc *ahd, u_int scbid,
245 u_int scbid);
1201 u_int scbid; in ahd_flush_qoutfifo() local
1215 scbid = ahd_inw(ahd, GSFIFO); in ahd_flush_qoutfifo()
1216 scb = ahd_lookup_scb(ahd, scbid); in ahd_flush_qoutfifo()
1219 ahd_name(ahd), scbid); in ahd_flush_qoutfifo()
1257 ahd_set_scbptr(ahd, scbid); in ahd_flush_qoutfifo()
1274 ahd_outw(ahd, SCB_TAG, scbid); in ahd_flush_qoutfifo()
1278 ahd_outw(ahd, COMPLETE_DMA_SCB_HEAD, scbid); in ahd_flush_qoutfifo()
1279 ahd_outw(ahd, COMPLETE_DMA_SCB_TAIL, scbid); in ahd_flush_qoutfifo()
1285 ahd_outw(ahd, SCB_NEXT_COMPLETE, scbid); in ahd_flush_qoutfifo()
1286 ahd_outw(ahd, COMPLETE_DMA_SCB_TAIL, scbid); in ahd_flush_qoutfifo()
1287 ahd_set_scbptr(ahd, scbid); in ahd_flush_qoutfifo()
1333 scbid = ahd_inw(ahd, COMPLETE_DMA_SCB_HEAD); in ahd_flush_qoutfifo()
1334 while (!SCBID_IS_NULL(scbid)) { in ahd_flush_qoutfifo()
1338 ahd_set_scbptr(ahd, scbid); in ahd_flush_qoutfifo()
1340 scb = ahd_lookup_scb(ahd, scbid); in ahd_flush_qoutfifo()
1343 "SCB %d invalid\n", ahd_name(ahd), scbid); in ahd_flush_qoutfifo()
1351 scbid = next_scbid; in ahd_flush_qoutfifo()
1356 scbid = ahd_inw(ahd, COMPLETE_ON_QFREEZE_HEAD); in ahd_flush_qoutfifo()
1357 while (!SCBID_IS_NULL(scbid)) { in ahd_flush_qoutfifo()
1359 ahd_set_scbptr(ahd, scbid); in ahd_flush_qoutfifo()
1361 scb = ahd_lookup_scb(ahd, scbid); in ahd_flush_qoutfifo()
1364 ahd_name(ahd), scbid); in ahd_flush_qoutfifo()
1369 scbid = next_scbid; in ahd_flush_qoutfifo()
1373 scbid = ahd_inw(ahd, COMPLETE_SCB_HEAD); in ahd_flush_qoutfifo()
1374 while (!SCBID_IS_NULL(scbid)) { in ahd_flush_qoutfifo()
1376 ahd_set_scbptr(ahd, scbid); in ahd_flush_qoutfifo()
1378 scb = ahd_lookup_scb(ahd, scbid); in ahd_flush_qoutfifo()
1381 ahd_name(ahd), scbid); in ahd_flush_qoutfifo()
1386 scbid = next_scbid; in ahd_flush_qoutfifo()
1812 u_int scbid; in ahd_handle_seqint() local
1816 scbid = ahd_get_scbptr(ahd); in ahd_handle_seqint()
1817 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_seqint()
1862 u_int scbid; in ahd_handle_seqint() local
1864 scbid = ahd_get_scbptr(ahd); in ahd_handle_seqint()
1865 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_seqint()
1870 printk("SCB %d Packetized Status Overrun", scbid); in ahd_handle_seqint()
1878 u_int scbid; in ahd_handle_seqint() local
1880 scbid = ahd_get_scbptr(ahd); in ahd_handle_seqint()
1881 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_seqint()
1884 printk("CFG4ISTAT: Free SCB %d referenced", scbid); in ahd_handle_seqint()
1920 u_int scbid; in ahd_handle_seqint() local
1933 scbid = ahd_get_scbptr(ahd); in ahd_handle_seqint()
1934 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_seqint()
2252 u_int scbid; in ahd_handle_seqint() local
2258 scbid = ahd_get_scbptr(ahd); in ahd_handle_seqint()
2259 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_seqint()
2277 u_int scbid; in ahd_handle_seqint() local
2280 scbid = ahd_get_scbptr(ahd); in ahd_handle_seqint()
2281 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_seqint()
2329 u_int scbid; in ahd_handle_seqint() local
2336 scbid = ahd_get_scbptr(ahd); in ahd_handle_seqint()
2337 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_seqint()
2399 u_int scbid; in ahd_handle_scsiint() local
2433 scbid = ahd_get_scbptr(ahd); in ahd_handle_scsiint()
2434 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_scsiint()
2497 scbid = ahd_inw(ahd, WAITING_TID_HEAD); in ahd_handle_scsiint()
2498 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_scsiint()
2502 ahd_name(ahd), scbid); in ahd_handle_scsiint()
2510 scbid); in ahd_handle_scsiint()
2587 scbid = ahd_get_scbptr(ahd); in ahd_handle_scsiint()
2588 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_scsiint()
2592 ahd_name(ahd), scbid, mode); in ahd_handle_scsiint()
2676 u_int scbid; in ahd_handle_transmission_error() local
2724 scbid = ahd_get_scbptr(ahd); in ahd_handle_transmission_error()
2725 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_transmission_error()
2911 u_int scbid; in ahd_handle_pkt_busfree() local
2933 scbid = ahd_inw(ahd, CURRSCB); in ahd_handle_pkt_busfree()
2934 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_pkt_busfree()
2961 if (waiting_h != scbid) { in ahd_handle_pkt_busfree()
2963 ahd_outw(ahd, WAITING_TID_HEAD, scbid); in ahd_handle_pkt_busfree()
2966 ahd_outw(ahd, WAITING_TID_TAIL, scbid); in ahd_handle_pkt_busfree()
2972 ahd_set_scbptr(ahd, scbid); in ahd_handle_pkt_busfree()
3009 u_int scbid; in ahd_handle_pkt_busfree() local
3012 scbid = ahd_get_scbptr(ahd); in ahd_handle_pkt_busfree()
3013 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_pkt_busfree()
3043 u_int scbid; in ahd_handle_nonpkt_busfree() local
3061 scbid = ahd_get_scbptr(ahd); in ahd_handle_nonpkt_busfree()
3062 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_nonpkt_busfree()
3325 u_int scbid; in ahd_handle_proto_violation() local
3332 scbid = ahd_get_scbptr(ahd); in ahd_handle_proto_violation()
3333 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_proto_violation()
8020 u_int scbid; in ahd_find_busy_tcl() local
8025 scbid = ahd_inw_scbram(ahd, scb_offset); in ahd_find_busy_tcl()
8027 return (scbid); in ahd_find_busy_tcl()
8031 ahd_busy_tcl(struct ahd_softc *ahd, u_int tcl, u_int scbid) in ahd_busy_tcl() argument
8037 ahd_outw(ahd, scb_offset, scbid); in ahd_busy_tcl()
8210 u_int scbid; in ahd_search_qinfifo() local
8302 scbid = ahd_inw(ahd, MK_MESSAGE_SCB); in ahd_search_qinfifo()
8303 mk_msg_scb = ahd_lookup_scb(ahd, scbid); in ahd_search_qinfifo()
8310 for (scbid = tid_next; !SCBID_IS_NULL(scbid); scbid = tid_next) { in ahd_search_qinfifo()
8318 if (scbid >= ahd->scb_data.numscbs) { in ahd_search_qinfifo()
8321 ahd_name(ahd), scbid, ahd->scb_data.numscbs); in ahd_search_qinfifo()
8325 scb = ahd_lookup_scb(ahd, scbid); in ahd_search_qinfifo()
8328 ahd_name(ahd), scbid); in ahd_search_qinfifo()
8331 ahd_set_scbptr(ahd, scbid); in ahd_search_qinfifo()
8335 tid_prev = scbid; in ahd_search_qinfifo()
8344 tid_head = scbid; in ahd_search_qinfifo()
8412 if (tid_head != scbid) in ahd_search_qinfifo()
8433 u_int scbid; in ahd_search_scb_list() local
8443 for (scbid = next; !SCBID_IS_NULL(scbid); scbid = next) { in ahd_search_scb_list()
8444 if (scbid >= ahd->scb_data.numscbs) { in ahd_search_scb_list()
8447 ahd_name(ahd), scbid, ahd->scb_data.numscbs); in ahd_search_scb_list()
8451 scb = ahd_lookup_scb(ahd, scbid); in ahd_search_scb_list()
8454 ahd_name(ahd), scbid); in ahd_search_scb_list()
8457 ahd_set_scbptr(ahd, scbid); in ahd_search_scb_list()
8458 *list_tail = scbid; in ahd_search_scb_list()
8462 prev = scbid; in ahd_search_scb_list()
8473 ahd_rem_wscb(ahd, scbid, prev, next, tid); in ahd_search_scb_list()
8479 printk("0x%x ", scbid); in ahd_search_scb_list()
8481 prev = scbid; in ahd_search_scb_list()
8532 ahd_rem_wscb(struct ahd_softc *ahd, u_int scbid, in ahd_rem_wscb() argument
8552 && ahd_inw(ahd, tail_offset) == scbid) in ahd_rem_wscb()
8555 ahd_add_scb_to_free_list(ahd, scbid); in ahd_rem_wscb()
8565 ahd_add_scb_to_free_list(struct ahd_softc *ahd, u_int scbid) in ahd_add_scb_to_free_list() argument
8627 u_int scbid; in ahd_abort_scbs() local
8631 scbid = ahd_find_busy_tcl(ahd, tcl); in ahd_abort_scbs()
8632 scbp = ahd_lookup_scb(ahd, scbid); in ahd_abort_scbs()