Lines Matching refs:cbAlloc
330 size_t cbAlloc;
4351 size_t cbAlloc = pAhciReq->cbTransfer + cSectors * (1 + 11 + 3 + 1 + 288); /* Per sector data like ECC. */
4353 pbBuf = (uint8_t *)RTMemAlloc(cbAlloc);
4379 *pcbProc = cbAlloc;
5448 if (pAhciReq->cbAlloc > cb)
5452 else if (pAhciReq->cbAlloc < cb)
5454 if (pAhciReq->cbAlloc)
5455 pAhciPort->pDrvBlock->pfnIoBufFree(pAhciPort->pDrvBlock, pAhciReq->pvAlloc, pAhciReq->cbAlloc);
5458 pAhciReq->cbAlloc = RT_ALIGN_Z(cb, _4K);
5459 int rc = pAhciPort->pDrvBlock->pfnIoBufAlloc(pAhciPort->pDrvBlock, pAhciReq->cbAlloc, &pAhciReq->pvAlloc);
5465 pAhciReq->cbAlloc = 0;
5484 if (pAhciReq->cbAlloc)
5486 pAhciPort->pDrvBlock->pfnIoBufFree(pAhciPort->pDrvBlock, pAhciReq->pvAlloc, pAhciReq->cbAlloc);
5487 pAhciReq->cbAlloc = 0;