Searched refs:PrdtNumber (Results 1 – 4 of 4) sorted by relevance
330 UINTN PrdtNumber; in UfsInitUtpPrdt() local345 …PrdtNumber = (UINTN)DivU64x32 ((UINT64)BufferSize + UFS_MAX_DATA_LEN_PER_PRD - 1, UFS_MAX_DATA_L… in UfsInitUtpPrdt()347 for (PrdtIndex = 0; PrdtIndex < PrdtNumber; PrdtIndex++) { in UfsInitUtpPrdt()438 UINTN PrdtNumber; in UfsCreateScsiCommandDesc() local461 …PrdtNumber = (UINTN)DivU64x32 ((UINT64)Length + UFS_MAX_DATA_LEN_PER_PRD - 1, UFS_MAX_DATA_LEN_PER… in UfsCreateScsiCommandDesc()463 … (sizeof (UTP_COMMAND_UPIU)) + ROUNDUP8 (sizeof (UTP_RESPONSE_UPIU)) + PrdtNumber * sizeof (UTP_TR… in UfsCreateScsiCommandDesc()488 Trd->PrdtL = (UINT16)PrdtNumber; in UfsCreateScsiCommandDesc()
429 UINT64 PrdtNumber; in AhciBuildCommand() local438 PrdtNumber = DivU64x32 (DataLength + EFI_AHCI_MAX_DATA_PER_PRDT - 1, EFI_AHCI_MAX_DATA_PER_PRDT); in AhciBuildCommand()445 ASSERT (PrdtNumber <= 1); in AhciBuildCommand()477 CommandList->AhciCmdPrdtl = (UINT32)PrdtNumber; in AhciBuildCommand()
401 UINTN PrdtNumber; in UfsInitUtpPrdt() local416 …PrdtNumber = (UINTN)DivU64x32 ((UINT64)BufferSize + UFS_MAX_DATA_LEN_PER_PRD - 1, UFS_MAX_DATA_L… in UfsInitUtpPrdt()418 for (PrdtIndex = 0; PrdtIndex < PrdtNumber; PrdtIndex++) { in UfsInitUtpPrdt()512 UINTN PrdtNumber; in UfsCreateScsiCommandDesc() local533 …PrdtNumber = (UINTN)DivU64x32 ((UINT64)DataLen + UFS_MAX_DATA_LEN_PER_PRD - 1, UFS_MAX_DATA_LEN_PE… in UfsCreateScsiCommandDesc()535 … (sizeof (UTP_COMMAND_UPIU)) + ROUNDUP8 (sizeof (UTP_RESPONSE_UPIU)) + PrdtNumber * sizeof (UTP_TR… in UfsCreateScsiCommandDesc()559 Trd->PrdtL = (UINT16)PrdtNumber; in UfsCreateScsiCommandDesc()
539 UINT32 PrdtNumber; in AhciBuildCommand() local549 …PrdtNumber = (UINT32)DivU64x32 (((UINT64)DataLength + EFI_AHCI_MAX_DATA_PER_PRDT - 1), EFI_AHCI_MA… in AhciBuildCommand()556 ASSERT (PrdtNumber <= 65535); in AhciBuildCommand()588 CommandList->AhciCmdPrdtl = PrdtNumber; in AhciBuildCommand()590 for (PrdtIndex = 0; PrdtIndex < PrdtNumber; PrdtIndex++) { in AhciBuildCommand()607 if (PrdtNumber > 0) { in AhciBuildCommand()608 AhciRegisters->AhciCommandTable->PrdtTable[PrdtNumber - 1].AhciPrdtIoc = 1; in AhciBuildCommand()