From e87f7a15ad62e1dd25061ddb301662e809692c2c Mon Sep 17 00:00:00 2001 From: phk Date: Sun, 4 Feb 2001 13:13:25 +0000 Subject: Mechanical change to use macro API instead of fondling implementation details. Created with: sed(1) Reviewed by: md5(1) --- sys/alpha/tc/esp.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys/alpha/tc') diff --git a/sys/alpha/tc/esp.c b/sys/alpha/tc/esp.c index e956811..4b46dab 100644 --- a/sys/alpha/tc/esp.c +++ b/sys/alpha/tc/esp.c @@ -367,7 +367,7 @@ esp_init(sc, doreset) esp_done(ecb); sc->sc_nexus = NULL; } - while ((ecb = sc->nexus_list.tqh_first) != NULL) { + while ((ecb = TAILQ_FIRST(&sc->nexus_list)) != NULL) { ecb->xs->error = XS_TIMEOUT; esp_done(ecb); } @@ -550,7 +550,7 @@ esp_scsi_cmd(xs) /* Get a esp command block */ s = splbio(); - ecb = sc->free_list.tqh_first; + ecb = TAILQ_FIRST(&sc->free_list); if (ecb) { TAILQ_REMOVE(&sc->free_list, ecb, chain); ECB_SETQ(ecb, ECB_QNONE); @@ -657,7 +657,7 @@ esp_sched(sc) * Find first ecb in ready queue that is for a target/lunit * combinations that is not busy. */ - for (ecb = sc->ready_list.tqh_first; ecb; ecb = ecb->chain.tqe_next) { + TAILQ_FOREACH(ecb, &sc->ready_list, chain) { sc_link = ecb->xs->sc_link; t = sc_link->target; if (!(sc->sc_tinfo[t].lubusy & (1 << sc_link->lun))) { @@ -1080,8 +1080,8 @@ printf("%s: unimplemented message: %d\n", device_get_nameunit(sc->sc_dev), sc->s * singly linked list. */ lunit = sc->sc_imess[0] & 0x07; - for (ecb = sc->nexus_list.tqh_first; ecb; - ecb = ecb->chain.tqe_next) { + for (ecb = TAILQ_FIRST(&sc->nexus_list); ecb; + ecb = TAILQ_NEXT(ecb, chain)) { sc_link = ecb->xs->sc_link; if (sc_link->lun == lunit && sc->sc_selid == (1<target)) { -- cgit v1.1