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()
1804 u_int scbid; in ahd_handle_seqint() local
1808 scbid = ahd_get_scbptr(ahd); in ahd_handle_seqint()
1809 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_seqint()
1854 u_int scbid; in ahd_handle_seqint() local
1856 scbid = ahd_get_scbptr(ahd); in ahd_handle_seqint()
1857 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_seqint()
1862 printk("SCB %d Packetized Status Overrun", scbid); in ahd_handle_seqint()
1870 u_int scbid; in ahd_handle_seqint() local
1872 scbid = ahd_get_scbptr(ahd); in ahd_handle_seqint()
1873 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_seqint()
1876 printk("CFG4ISTAT: Free SCB %d referenced", scbid); in ahd_handle_seqint()
1912 u_int scbid; in ahd_handle_seqint() local
1925 scbid = ahd_get_scbptr(ahd); in ahd_handle_seqint()
1926 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_seqint()
2244 u_int scbid; in ahd_handle_seqint() local
2250 scbid = ahd_get_scbptr(ahd); in ahd_handle_seqint()
2251 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_seqint()
2269 u_int scbid; in ahd_handle_seqint() local
2272 scbid = ahd_get_scbptr(ahd); in ahd_handle_seqint()
2273 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_seqint()
2323 u_int scbid; in ahd_handle_seqint() local
2330 scbid = ahd_get_scbptr(ahd); in ahd_handle_seqint()
2331 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_seqint()
2393 u_int scbid; in ahd_handle_scsiint() local
2427 scbid = ahd_get_scbptr(ahd); in ahd_handle_scsiint()
2428 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_scsiint()
2491 scbid = ahd_inw(ahd, WAITING_TID_HEAD); in ahd_handle_scsiint()
2492 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_scsiint()
2496 ahd_name(ahd), scbid); in ahd_handle_scsiint()
2504 scbid); in ahd_handle_scsiint()
2581 scbid = ahd_get_scbptr(ahd); in ahd_handle_scsiint()
2582 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_scsiint()
2586 ahd_name(ahd), scbid, mode); in ahd_handle_scsiint()
2670 u_int scbid; in ahd_handle_transmission_error() local
2718 scbid = ahd_get_scbptr(ahd); in ahd_handle_transmission_error()
2719 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_transmission_error()
2905 u_int scbid; in ahd_handle_pkt_busfree() local
2927 scbid = ahd_inw(ahd, CURRSCB); in ahd_handle_pkt_busfree()
2928 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_pkt_busfree()
2955 if (waiting_h != scbid) { in ahd_handle_pkt_busfree()
2957 ahd_outw(ahd, WAITING_TID_HEAD, scbid); in ahd_handle_pkt_busfree()
2960 ahd_outw(ahd, WAITING_TID_TAIL, scbid); in ahd_handle_pkt_busfree()
2966 ahd_set_scbptr(ahd, scbid); in ahd_handle_pkt_busfree()
3003 u_int scbid; in ahd_handle_pkt_busfree() local
3006 scbid = ahd_get_scbptr(ahd); in ahd_handle_pkt_busfree()
3007 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_pkt_busfree()
3037 u_int scbid; in ahd_handle_nonpkt_busfree() local
3055 scbid = ahd_get_scbptr(ahd); in ahd_handle_nonpkt_busfree()
3056 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_nonpkt_busfree()
3319 u_int scbid; in ahd_handle_proto_violation() local
3326 scbid = ahd_get_scbptr(ahd); in ahd_handle_proto_violation()
3327 scb = ahd_lookup_scb(ahd, scbid); in ahd_handle_proto_violation()
7968 u_int scbid; in ahd_find_busy_tcl() local
7973 scbid = ahd_inw_scbram(ahd, scb_offset); in ahd_find_busy_tcl()
7975 return (scbid); in ahd_find_busy_tcl()
7979 ahd_busy_tcl(struct ahd_softc *ahd, u_int tcl, u_int scbid) in ahd_busy_tcl() argument
7985 ahd_outw(ahd, scb_offset, scbid); in ahd_busy_tcl()
8158 u_int scbid; in ahd_search_qinfifo() local
8250 scbid = ahd_inw(ahd, MK_MESSAGE_SCB); in ahd_search_qinfifo()
8251 mk_msg_scb = ahd_lookup_scb(ahd, scbid); in ahd_search_qinfifo()
8258 for (scbid = tid_next; !SCBID_IS_NULL(scbid); scbid = tid_next) { in ahd_search_qinfifo()
8266 if (scbid >= ahd->scb_data.numscbs) { in ahd_search_qinfifo()
8269 ahd_name(ahd), scbid, ahd->scb_data.numscbs); in ahd_search_qinfifo()
8273 scb = ahd_lookup_scb(ahd, scbid); in ahd_search_qinfifo()
8276 ahd_name(ahd), scbid); in ahd_search_qinfifo()
8279 ahd_set_scbptr(ahd, scbid); in ahd_search_qinfifo()
8283 tid_prev = scbid; in ahd_search_qinfifo()
8292 tid_head = scbid; in ahd_search_qinfifo()
8360 if (tid_head != scbid) in ahd_search_qinfifo()
8381 u_int scbid; in ahd_search_scb_list() local
8391 for (scbid = next; !SCBID_IS_NULL(scbid); scbid = next) { in ahd_search_scb_list()
8392 if (scbid >= ahd->scb_data.numscbs) { in ahd_search_scb_list()
8395 ahd_name(ahd), scbid, ahd->scb_data.numscbs); in ahd_search_scb_list()
8399 scb = ahd_lookup_scb(ahd, scbid); in ahd_search_scb_list()
8402 ahd_name(ahd), scbid); in ahd_search_scb_list()
8405 ahd_set_scbptr(ahd, scbid); in ahd_search_scb_list()
8406 *list_tail = scbid; in ahd_search_scb_list()
8410 prev = scbid; in ahd_search_scb_list()
8421 ahd_rem_wscb(ahd, scbid, prev, next, tid); in ahd_search_scb_list()
8427 printk("0x%x ", scbid); in ahd_search_scb_list()
8430 prev = scbid; in ahd_search_scb_list()
8481 ahd_rem_wscb(struct ahd_softc *ahd, u_int scbid, in ahd_rem_wscb() argument
8501 && ahd_inw(ahd, tail_offset) == scbid) in ahd_rem_wscb()
8504 ahd_add_scb_to_free_list(ahd, scbid); in ahd_rem_wscb()
8514 ahd_add_scb_to_free_list(struct ahd_softc *ahd, u_int scbid) in ahd_add_scb_to_free_list() argument
8576 u_int scbid; in ahd_abort_scbs() local
8580 scbid = ahd_find_busy_tcl(ahd, tcl); in ahd_abort_scbs()
8581 scbp = ahd_lookup_scb(ahd, scbid); in ahd_abort_scbs()