Home
last modified time | relevance | path

Searched refs:BYTES_TO_PAGES (Results 1 – 24 of 24) sorted by relevance

/reactos/ntoskrnl/mm/ARM3/
H A Dncache.c41 PageCount = (PFN_COUNT)BYTES_TO_PAGES(NumberOfBytes); in MmAllocateNonCachedMemory()
188 PageCount = (PFN_COUNT)BYTES_TO_PAGES(NumberOfBytes); in MmFreeNonCachedMemory()
H A Dprocsup.c53 Vad->u.VadFlags.CommitCharge = BYTES_TO_PAGES(Size); in MiCreatePebOrTeb()
220 StackPages = BYTES_TO_PAGES(GuiStack ? in MmDeleteKernelStack()
296 StackPtes = BYTES_TO_PAGES(MmLargeStackSize); in MmCreateKernelStack()
297 StackPages = BYTES_TO_PAGES(KERNEL_LARGE_STACK_COMMIT); in MmCreateKernelStack()
318 StackPtes = BYTES_TO_PAGES(KERNEL_STACK_SIZE); in MmCreateKernelStack()
337 if (GuiStack) PointerPte += BYTES_TO_PAGES(MmLargeStackSize - in MmCreateKernelStack()
H A Dpool.c328 PoolPages = (PFN_COUNT)BYTES_TO_PAGES(MmSizeOfNonPagedPoolInBytes); in MiInitializeNonPagedPool()
389 BYTES_TO_PAGES(MmMaximumNonPagedPoolInBytes - MmSizeOfNonPagedPoolInBytes); in MiInitializeNonPagedPool()
442 SizeInPages = (PFN_COUNT)BYTES_TO_PAGES(SizeInBytes); in MiAllocatePoolPages()
1588 SizeInPages = BYTES_TO_PAGES(NumberOfBytes); in _IRQL_requires_max_()
H A Dcontmem.c396 SizeInPages = BYTES_TO_PAGES(NumberOfBytes); in MiAllocateContiguousMemory()
H A Dsection.c1140 BYTES_TO_PAGES(*ViewSize), in MiMapViewInSystemSpace()
1262 QuotaCharge = BYTES_TO_PAGES(CommitSize); in MiMapViewOfDataSection()
1269 ViewSizeInPages = BYTES_TO_PAGES(*ViewSize); in MiMapViewOfDataSection()
1314 LastPte = PointerPte + BYTES_TO_PAGES(CommitSize); in MiMapViewOfDataSection()
H A Dvadnode.c597 PageCount = BYTES_TO_PAGES(Length); in MiFindEmptyAddressRangeInTree()
H A Dexpool.c2044 (LONG)BYTES_TO_PAGES(NumberOfBytes)); in ExAllocatePoolWithTag()
2054 (ULONG)BYTES_TO_PAGES(NumberOfBytes), in ExAllocatePoolWithTag()
H A Dmminit.c1808 NumberOfPages = BYTES_TO_PAGES(Size); in MiBuildPagedPool()
H A Dvirtual.c70 …ULONG_PTR CommittedPages = Vad->u.VadFlags.MemCommit ? BYTES_TO_PAGES(EndingAddress - StartingAddr… in MiCalculatePageCommitment()
177 ASSERT(CommittedPages <= BYTES_TO_PAGES(EndingAddress - StartingAddress)); in MiCalculatePageCommitment()
/reactos/drivers/multimedia/audio/sndblst.old/
H A Ddma.c117 if (MappedRegs < BYTES_TO_PAGES(Device->BufferSize)) in CreateDMA()
181 BYTES_TO_PAGES(Device->BufferSize), in CreateDMA()
/reactos/hal/halx86/generic/
H A Dkdpci.c171 HalpMapPhysicalMemory64(PhysicalAddress, BYTES_TO_PAGES(Length)); in HalpConfigureDebuggingDevice()
435 BYTES_TO_PAGES(DeviceAddress->Length)); in HalpReleasePciDeviceForDebugging()
563 PageCount = BYTES_TO_PAGES(PciDevice->Memory.Length); in HalpSetupPciDeviceForDebugging()
H A Ddma.c283 MapRegisterCount = BYTES_TO_PAGES(SizeOfMapBuffers); in HalpGrowMapBuffers()
731 MapRegisters = BYTES_TO_PAGES(MaximumLength) + 1; in HalGetAdapter()
783 AdapterObject->MapRegistersPerChannel = BYTES_TO_PAGES(MaximumLength) + 1; in HalGetAdapter()
2146 RealMapRegisterBase->Counter += BYTES_TO_PAGES(ByteOffset + TransferLength); in IoMapTransfer()
/reactos/hal/halx86/acpi/
H A Dhalacpi.c102 PageCount = BYTES_TO_PAGES(Size); in HalpAcpiCopyBiosTable()
343 PageCount = BYTES_TO_PAGES(Header->Length); in HalpAcpiGetTableFromBios()
422 PageCount = BYTES_TO_PAGES(TableAddress->Length); in HalpAcpiGetTable()
610 PageCount = (PFN_COUNT)BYTES_TO_PAGES(NodeLength); in HalpAcpiFindRsdtPhase0()
/reactos/hal/halx86/pc98/
H A Dcmos.c176 MappedNvram = (ULONG_PTR)HalpMapPhysicalMemory64(PhysicalAddress, BYTES_TO_PAGES(NVRAM_SIZE)); in HalpInitializeCmos()
/reactos/ntoskrnl/cc/
H A Dcopy.c338 Pages = BYTES_TO_PAGES(Length); in CcCanIWrite()
847 for (i = 0; i < BYTES_TO_PAGES(Mdl->ByteCount); i++) in CcZeroData()
/reactos/boot/environ/lib/firmware/efi/
H A Dfirmware.c1907 Pages = BYTES_TO_PAGES(EfiMemoryMapSize); in MmFwGetMemoryMap()
1975 Pages = BYTES_TO_PAGES(EfiMemoryMapSize); in MmFwGetMemoryMap()
2060 StartPage = BYTES_TO_PAGES(EfiDescriptor.PhysicalStart); in MmFwGetMemoryMap()
/reactos/drivers/storage/floppy/floppy/
H A Dreadwrite.c692 if(BYTES_TO_PAGES(CurrentTransferBytes) > DriveInfo->ControllerInfo->MapRegisters) in ReadWritePassive()
/reactos/modules/rostests/kmtests/ntos_mm/
H A DZwAllocateVirtualMemory.c275 …SIZE_T ActualSize = BYTES_TO_PAGES((ULONG_PTR)EndingAddress - (ULONG_PTR)ActualStartingAddress) * … in CustomBaseAllocation()
/reactos/sdk/include/xdk/
H A Dmmfuncs.h59 #define BYTES_TO_PAGES(Size) \ macro
/reactos/ntoskrnl/mm/
H A Dsection.c1334 RtlZeroMemory(Pages, BYTES_TO_PAGES(ReadLength) * sizeof(PFN_NUMBER)); in MmMakeSegmentResident()
1335 for (UINT i = 0; i < BYTES_TO_PAGES(ReadLength); i++) in MmMakeSegmentResident()
1395 for (UINT i = 0; i < BYTES_TO_PAGES(ReadLength); i++) in MmMakeSegmentResident()
1420 for (UINT i = 0; i < BYTES_TO_PAGES(ReadLength); i++) in MmMakeSegmentResident()
/reactos/drivers/storage/class/cdrom/
H A Dscratch.c323 …(CSHORT)(sizeof(MDL) + BYTES_TO_PAGES(DeviceExtension->DeviceAdditionalData.MaxPageAlignedTransfer… in _IRQL_requires_max_()
/reactos/drivers/storage/class/classpnp/
H A Dxferpkt.c432 …NT_ASSERT(newPkt->PartialMdl->Size >= (CSHORT)(sizeof(MDL) + BYTES_TO_PAGES(fdoData->HwMaxXferLen)… in __drv_allocatesMem()
/reactos/drivers/storage/port/scsiport/
H A Dscsiport.c1334 BYTES_TO_PAGES(PortCapabilities->MaximumTransferLength); in ScsiPortInitialize()
/reactos/ntoskrnl/io/iomgr/
H A Diofunc.c1163 CcDataPages += BYTES_TO_PAGES(MmGetMdlByteCount(Mdl)); in IoSynchronousPageWrite()