/reactos/ntoskrnl/mm/ARM3/ |
H A D | ncache.c | 41 PageCount = (PFN_COUNT)BYTES_TO_PAGES(NumberOfBytes); in MmAllocateNonCachedMemory() 188 PageCount = (PFN_COUNT)BYTES_TO_PAGES(NumberOfBytes); in MmFreeNonCachedMemory()
|
H A D | procsup.c | 53 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 D | pool.c | 328 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 D | contmem.c | 396 SizeInPages = BYTES_TO_PAGES(NumberOfBytes); in MiAllocateContiguousMemory()
|
H A D | section.c | 1140 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 D | vadnode.c | 597 PageCount = BYTES_TO_PAGES(Length); in MiFindEmptyAddressRangeInTree()
|
H A D | expool.c | 2044 (LONG)BYTES_TO_PAGES(NumberOfBytes)); in ExAllocatePoolWithTag() 2054 (ULONG)BYTES_TO_PAGES(NumberOfBytes), in ExAllocatePoolWithTag()
|
H A D | mminit.c | 1808 NumberOfPages = BYTES_TO_PAGES(Size); in MiBuildPagedPool()
|
H A D | virtual.c | 70 …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 D | dma.c | 117 if (MappedRegs < BYTES_TO_PAGES(Device->BufferSize)) in CreateDMA() 181 BYTES_TO_PAGES(Device->BufferSize), in CreateDMA()
|
/reactos/hal/halx86/generic/ |
H A D | kdpci.c | 171 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 D | dma.c | 283 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 D | halacpi.c | 102 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 D | cmos.c | 176 MappedNvram = (ULONG_PTR)HalpMapPhysicalMemory64(PhysicalAddress, BYTES_TO_PAGES(NVRAM_SIZE)); in HalpInitializeCmos()
|
/reactos/ntoskrnl/cc/ |
H A D | copy.c | 338 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 D | firmware.c | 1907 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 D | readwrite.c | 692 if(BYTES_TO_PAGES(CurrentTransferBytes) > DriveInfo->ControllerInfo->MapRegisters) in ReadWritePassive()
|
/reactos/modules/rostests/kmtests/ntos_mm/ |
H A D | ZwAllocateVirtualMemory.c | 275 …SIZE_T ActualSize = BYTES_TO_PAGES((ULONG_PTR)EndingAddress - (ULONG_PTR)ActualStartingAddress) * … in CustomBaseAllocation()
|
/reactos/sdk/include/xdk/ |
H A D | mmfuncs.h | 59 #define BYTES_TO_PAGES(Size) \ macro
|
/reactos/ntoskrnl/mm/ |
H A D | section.c | 1334 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 D | scratch.c | 323 …(CSHORT)(sizeof(MDL) + BYTES_TO_PAGES(DeviceExtension->DeviceAdditionalData.MaxPageAlignedTransfer… in _IRQL_requires_max_()
|
/reactos/drivers/storage/class/classpnp/ |
H A D | xferpkt.c | 432 …NT_ASSERT(newPkt->PartialMdl->Size >= (CSHORT)(sizeof(MDL) + BYTES_TO_PAGES(fdoData->HwMaxXferLen)… in __drv_allocatesMem()
|
/reactos/drivers/storage/port/scsiport/ |
H A D | scsiport.c | 1334 BYTES_TO_PAGES(PortCapabilities->MaximumTransferLength); in ScsiPortInitialize()
|
/reactos/ntoskrnl/io/iomgr/ |
H A D | iofunc.c | 1163 CcDataPages += BYTES_TO_PAGES(MmGetMdlByteCount(Mdl)); in IoSynchronousPageWrite()
|