X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/378393581903b274cb7a4d18e0d978071a6b592d..0c530ab8987f0ae6a1a3d9284f40182b88852816:/bsd/netat/adsp_reset.c diff --git a/bsd/netat/adsp_reset.c b/bsd/netat/adsp_reset.c index bcb738907..6f19c238e 100644 --- a/bsd/netat/adsp_reset.c +++ b/bsd/netat/adsp_reset.c @@ -72,10 +72,8 @@ int RXFReset(sp, f) /* (CCBPtr sp, ADSP_FRAMEPtr f) */ unsigned int hi; register gbuf_t *mp; register struct adspcmd *pb; - int s; - ATDISABLE(s, sp->lock); - pktFirstByteSeq = netdw(UAL_VALUE(f->pktFirstByteSeq)); + pktFirstByteSeq = UAL_VALUE_NTOH(f->pktFirstByteSeq); hi = sp->recvSeq + CalcRecvWdw(sp); @@ -114,7 +112,6 @@ int RXFReset(sp, f) /* (CCBPtr sp, ADSP_FRAMEPtr f) */ sp->callSend = 1; } - ATENABLE(s, sp->lock); return 0; } @@ -137,13 +134,11 @@ int RXFResetAck(sp, f) /* (CCBPtr sp, ADSP_FRAMEPtr f) */ ADSP_FRAMEPtr f; { unsigned int PktNextRecvSeq; - int s; if (sp->frpb == 0) /* Not expecting frwd reset Ack packet */ return 1; - ATDISABLE(s, sp->lock); - PktNextRecvSeq = netdw(UAL_VALUE(f->pktNextRecvSeq)); + PktNextRecvSeq = UAL_VALUE_NTOH(f->pktNextRecvSeq); if (BETWEEN(sp->sendSeq, PktNextRecvSeq, sp->sendWdwSeq+1)) { struct adspcmd *pb; @@ -170,7 +165,6 @@ int RXFResetAck(sp, f) /* (CCBPtr sp, ADSP_FRAMEPtr f) */ } } - ATENABLE(s, sp->lock); return 0; } @@ -193,7 +187,6 @@ int adspReset(sp, pb) /* (DSPPBPtr pb) */ CCBPtr sp; struct adspcmd *pb; { - int s; register gbuf_t *mp; register struct adspcmd *rpb; @@ -207,7 +200,6 @@ int adspReset(sp, pb) /* (DSPPBPtr pb) */ return EINVAL; } - ATDISABLE(s, sp->lock); while (mp = sp->sbuf_mb) { /* clear the send queue */ sp->sbuf_mb = gbuf_next(mp); @@ -235,7 +227,6 @@ int adspReset(sp, pb) /* (DSPPBPtr pb) */ * bookkeeping for it. yetch! */ adspioc_ack(0, pb->ioc, pb->gref); } - ATENABLE(s, sp->lock); CheckSend(sp); return STR_IGNORE;