Lines Matching refs:sc_current
252 struct sunscpal_req *sr = sc->sc_current;
286 struct sunscpal_req *sr = sc->sc_current;
321 struct sunscpal_req *sr = sc->sc_current;
533 SUNSCPAL_TRACE("reset_scsibus, cur=0x%x\n", (long)sc->sc_current);
558 * Do not touch SBC regs here unless sc_current == NULL
568 * that sc_current == NULL at the beginning...
589 (long)sc->sc_current);
593 (long)sc->sc_current);
600 (long)sc->sc_current);
603 (long)sc->sc_current);
634 (long)sc->sc_current);
637 (long)sc->sc_current);
680 if (sc->sc_current == sr) {
700 (long)sc->sc_current);
703 (long)sc->sc_current);
746 sr = sc->sc_current;
796 (long)sc->sc_current);
799 (long)sc->sc_current);
847 if (sc->sc_current == NULL)
851 sr = sc->sc_current;
854 SUNSCPAL_TRACE("done: top, cur=0x%x\n", (long)sc->sc_current);
920 sc->sc_current = NULL;
963 if (sc->sc_current)
996 (long)sc->sc_current);
1012 if (sc->sc_current) {
1022 sr = sc->sc_current;
1030 sc->sc_current = sr; /* connected */
1151 (long)sc->sc_current);
1154 (long)sc->sc_current);
1169 * reselected, it sets up sc->sc_current.
1189 * sc->sc_current should be NULL.
1192 * sc->sc_current != NULL ==> we were reselected (race!)
1205 if (sc->sc_current) {
1207 (long)sc->sc_current);
1294 struct sunscpal_req *sr = sc->sc_current;
1498 * Note that we call this one with (sc_current == NULL)
1523 struct sunscpal_req *sr = sc->sc_current;
1557 struct sunscpal_req *sr = sc->sc_current;
1643 struct sunscpal_req *sr = sc->sc_current;
1675 if (sc->sc_current == NULL)
1679 sr = sc->sc_current;
1839 /* Note: this will clear sc_current */
1875 * and we need to clear sc_current.
1878 sc_current = NULL;
2014 if (sr == sc->sc_current)
2033 db_printf("sc_current=%p\n", sc->sc_current);
2126 struct sunscpal_req *sr = sc->sc_current;
2193 struct sunscpal_req *sr = sc->sc_current;
2223 struct sunscpal_req *sr = sc->sc_current;