Lines Matching defs:uTxDir
169 uint8_t uTxDir;
333 uint8_t uTxDir;
802 LogRel(("new transfer request, iIf=%d iBeginTransfer=%d iSourceSink=%d cbTotalTransfer=%d uTxDir=%d\n", pCtl->aAsyncIORequests[curr].u.t.iIf, pCtl->aAsyncIORequests[curr].u.t.iBeginTransfer, pCtl->aAsyncIORequests[curr].u.t.iSourceSink, pCtl->aAsyncIORequests[curr].u.t.cbTotalTransfer, pCtl->aAsyncIORequests[curr].u.t.uTxDir));
859 * @param uTxDir Data transfer direction.
864 static void ataStartTransfer(ATADevState *s, uint32_t cbTotalTransfer, uint8_t uTxDir, ATAFNBT iBeginTransfer, ATAFNSS iSourceSink, bool fChainedTransfer)
894 Req.u.t.uTxDir = uTxDir;
1186 s->uTxDir = PDMBLOCKTXDIR_NONE;
1208 Assert(s->uTxDir == PDMBLOCKTXDIR_FROM_DEVICE);
1322 Assert(s->uTxDir == PDMBLOCKTXDIR_NONE);
1343 Assert(s->uTxDir == PDMBLOCKTXDIR_FROM_DEVICE);
1635 if (s->uTxDir == PDMBLOCKTXDIR_TO_DEVICE)
1721 | ((s->uTxDir != PDMBLOCKTXDIR_TO_DEVICE) ? ATAPI_INT_REASON_IO : 0)
1746 s->uTxDir = PDMBLOCKTXDIR_NONE;
1772 if (s->uTxDir == PDMBLOCKTXDIR_TO_DEVICE)
1784 if (s->uTxDir == PDMBLOCKTXDIR_TO_DEVICE)
1847 s->uTxDir = PDMBLOCKTXDIR_NONE;
1861 Assert(s->uTxDir == PDMBLOCKTXDIR_FROM_DEVICE);
1963 if (s->uTxDir == PDMBLOCKTXDIR_TO_DEVICE)
1970 if (s->uTxDir != PDMBLOCKTXDIR_TO_DEVICE)
2094 rc = s->pDrvBlock->pfnSendCmd(s->pDrvBlock, aATAPICmd, (PDMBLOCKTXDIR)s->uTxDir, pbBuf, &cbCurrTX, abATAPISense, sizeof(abATAPISense), 30000 /**< @todo timeout */);
2135 rc = s->pDrvBlock->pfnSendCmd(s->pDrvBlock, s->aATAPICmd, (PDMBLOCKTXDIR)s->uTxDir, s->CTX_SUFF(pbIOBuffer), &cbTransfer, abATAPISense, sizeof(abATAPISense), 30000 /**< @todo timeout */);
2145 if (s->uTxDir != PDMBLOCKTXDIR_TO_DEVICE)
2185 if (s->uTxDir == PDMBLOCKTXDIR_FROM_DEVICE)
2418 Assert(s->uTxDir == PDMBLOCKTXDIR_FROM_DEVICE);
2432 Assert(s->uTxDir == PDMBLOCKTXDIR_FROM_DEVICE);
2458 Assert(s->uTxDir == PDMBLOCKTXDIR_FROM_DEVICE);
2606 Assert(s->uTxDir == PDMBLOCKTXDIR_FROM_DEVICE);
2670 Assert(s->uTxDir == PDMBLOCKTXDIR_FROM_DEVICE);
2745 Assert(s->uTxDir == PDMBLOCKTXDIR_FROM_DEVICE);
2773 Assert(s->uTxDir == PDMBLOCKTXDIR_FROM_DEVICE);
2801 Assert(s->uTxDir == PDMBLOCKTXDIR_FROM_DEVICE);
2849 Assert(s->uTxDir == PDMBLOCKTXDIR_FROM_DEVICE);
2862 Assert(s->uTxDir == PDMBLOCKTXDIR_FROM_DEVICE);
2883 Assert(s->uTxDir == PDMBLOCKTXDIR_FROM_DEVICE);
2944 Assert(s->uTxDir == PDMBLOCKTXDIR_FROM_DEVICE);
2977 Assert(s->uTxDir == PDMBLOCKTXDIR_FROM_DEVICE);
3432 PDMBLOCKTXDIR uTxDir = PDMBLOCKTXDIR_NONE;
3446 uTxDir = PDMBLOCKTXDIR_TO_DEVICE;
3450 uTxDir = PDMBLOCKTXDIR_TO_DEVICE;
3454 uTxDir = PDMBLOCKTXDIR_FROM_DEVICE;
3463 uTxDir = PDMBLOCKTXDIR_FROM_DEVICE;
3467 uTxDir = PDMBLOCKTXDIR_FROM_DEVICE;
3471 uTxDir = PDMBLOCKTXDIR_FROM_DEVICE;
3477 uTxDir = PDMBLOCKTXDIR_FROM_DEVICE;
3481 uTxDir = PDMBLOCKTXDIR_TO_DEVICE;
3485 uTxDir = PDMBLOCKTXDIR_FROM_DEVICE;
3504 uTxDir = PDMBLOCKTXDIR_FROM_DEVICE;
3512 uTxDir = PDMBLOCKTXDIR_FROM_DEVICE;
3516 uTxDir = PDMBLOCKTXDIR_FROM_DEVICE;
3520 uTxDir = PDMBLOCKTXDIR_FROM_DEVICE;
3524 uTxDir = PDMBLOCKTXDIR_FROM_DEVICE;
3576 uTxDir = PDMBLOCKTXDIR_FROM_DEVICE;
3581 uTxDir = PDMBLOCKTXDIR_FROM_DEVICE;
3585 uTxDir = PDMBLOCKTXDIR_FROM_DEVICE;
3589 uTxDir = PDMBLOCKTXDIR_FROM_DEVICE;
3593 uTxDir = PDMBLOCKTXDIR_FROM_DEVICE;
3597 uTxDir = PDMBLOCKTXDIR_FROM_DEVICE;
3601 uTxDir = PDMBLOCKTXDIR_FROM_DEVICE;
3607 uTxDir = PDMBLOCKTXDIR_FROM_DEVICE;
3616 uTxDir = PDMBLOCKTXDIR_FROM_DEVICE;
3626 uTxDir = PDMBLOCKTXDIR_TO_DEVICE;
3630 uTxDir = PDMBLOCKTXDIR_TO_DEVICE;
3634 uTxDir = PDMBLOCKTXDIR_TO_DEVICE;
3638 uTxDir = PDMBLOCKTXDIR_TO_DEVICE;
3642 uTxDir = PDMBLOCKTXDIR_TO_DEVICE;
3650 uTxDir = PDMBLOCKTXDIR_TO_DEVICE;
3672 uTxDir = PDMBLOCKTXDIR_TO_DEVICE;
3683 uTxDir = PDMBLOCKTXDIR_TO_DEVICE;
3699 uTxDir = PDMBLOCKTXDIR_TO_DEVICE;
3705 uTxDir = PDMBLOCKTXDIR_FROM_DEVICE;
3727 uTxDir = PDMBLOCKTXDIR_NONE;
3728 ataStartTransfer(s, cbTransfer, uTxDir, ATAFN_BT_ATAPI_PASSTHROUGH_CMD, ATAFN_SS_ATAPI_PASSTHROUGH, true);
3756 s->uTxDir = PDMBLOCKTXDIR_NONE;
4676 LogRel(("PIIX3 ATA: LUN#%d: %s data in the middle of a PIO transfer - VERY SLOW\n", s->iLUN, s->uTxDir == PDMBLOCKTXDIR_FROM_DEVICE ? "loading" : "storing"));
4701 if (s->uTxDir == PDMBLOCKTXDIR_TO_DEVICE && s->cbElementaryTransfer > s->cbTotalTransfer)
4705 __FUNCTION__, s->uTxDir == PDMBLOCKTXDIR_FROM_DEVICE ? "T2I" : "I2T",
4712 if (s->uTxDir == PDMBLOCKTXDIR_FROM_DEVICE && s->cbElementaryTransfer > s->cbTotalTransfer)
4730 if ( s->uTxDir == PDMBLOCKTXDIR_TO_DEVICE
4778 Assert(s->uTxDir == PDMBLOCKTXDIR_TO_DEVICE);
4810 Assert(s->uTxDir == PDMBLOCKTXDIR_FROM_DEVICE);
4865 PDMBLOCKTXDIR uTxDir;
4873 uTxDir = (PDMBLOCKTXDIR)s->uTxDir;
4885 __FUNCTION__, uTxDir == PDMBLOCKTXDIR_FROM_DEVICE ? "T2I" : "I2T",
4923 if (uTxDir == PDMBLOCKTXDIR_FROM_DEVICE)
4934 && (uTxDir == PDMBLOCKTXDIR_TO_DEVICE || cbTotalTransfer))
4936 if (uTxDir == PDMBLOCKTXDIR_FROM_DEVICE && cbElementaryTransfer > cbTotalTransfer)
4969 if (uTxDir == PDMBLOCKTXDIR_TO_DEVICE && cbElementaryTransfer > cbTotalTransfer)
5149 s->uTxDir = pReq->u.t.uTxDir;
5182 if (s->uTxDir != PDMBLOCKTXDIR_FROM_DEVICE)
5192 if (s->uTxDir != PDMBLOCKTXDIR_TO_DEVICE)
5239 Assert(s->uTxDir == PDMBLOCKTXDIR_NONE); /* Any transfer which has an initial transfer size of 0 must be marked as such. */
5252 if (s->fATAPITransfer || s->uTxDir != PDMBLOCKTXDIR_TO_DEVICE)
5255 if (s->uTxDir == PDMBLOCKTXDIR_TO_DEVICE || s->iSourceSink != ATAFN_SS_NULL)
5276 Assert(s->uTxDir == PDMBLOCKTXDIR_NONE); /* Any transfer which has an initial transfer size of 0 must be marked as such. */
5293 if (s->uTxDir == PDMBLOCKTXDIR_FROM_DEVICE)
5381 if (s->uTxDir == PDMBLOCKTXDIR_TO_DEVICE || s->iSourceSink != ATAFN_SS_NULL)
5406 && s->uTxDir != PDMBLOCKTXDIR_FROM_DEVICE)
6530 SSMR3PutU8(pSSM, pThis->aCts[i].aIfs[j].uTxDir);
6703 SSMR3GetU8(pSSM, &pThis->aCts[i].aIfs[j].uTxDir);