/reactos/drivers/bus/acpi/acpica/resources/ |
H A D | rscalc.c | 313 TotalSize = (ACPI_RS_LENGTH) (TotalSize + in AcpiRsGetAmlLength() 324 TotalSize = (ACPI_RS_LENGTH) (TotalSize + in AcpiRsGetAmlLength() 335 TotalSize = (ACPI_RS_LENGTH) (TotalSize + in AcpiRsGetAmlLength() 347 TotalSize = (ACPI_RS_LENGTH) (TotalSize + in AcpiRsGetAmlLength() 359 TotalSize = (ACPI_RS_LENGTH) (TotalSize + in AcpiRsGetAmlLength() 368 TotalSize = (ACPI_RS_LENGTH) (TotalSize + in AcpiRsGetAmlLength() 381 TotalSize = (ACPI_RS_LENGTH) (TotalSize + in AcpiRsGetAmlLength() 389 TotalSize = (ACPI_RS_LENGTH) (TotalSize + in AcpiRsGetAmlLength() 398 TotalSize = (ACPI_RS_LENGTH) (TotalSize + in AcpiRsGetAmlLength() 407 TotalSize = (ACPI_RS_LENGTH) (TotalSize + in AcpiRsGetAmlLength() [all …]
|
/reactos/sdk/lib/inflib/ |
H A D | infput.c | 21 ULONG TotalSize; member 44 (UINT)OutBuf->TotalSize, (UINT)OutBuf->FreeSize, (UINT)Length); in Output() 46 NewSize = OutBuf->TotalSize + in Output() 63 (UINT)(OutBuf->TotalSize - OutBuf->FreeSize)); in Output() 64 MEMCPY(NewBuf, OutBuf->Buffer, OutBuf->TotalSize - OutBuf->FreeSize); in Output() 73 OutBuf->FreeSize += NewSize - OutBuf->TotalSize; in Output() 74 OutBuf->TotalSize = NewSize; in Output() 76 (UINT)OutBuf->TotalSize, (UINT)OutBuf->FreeSize); in Output() 104 OutBuf.TotalSize = 0; in InfpBuildFileBuffer() 179 *BufferSize = OutBuf.TotalSize - OutBuf.FreeSize; in InfpBuildFileBuffer()
|
/reactos/dll/directx/ksuser/ |
H A D | ksuser.c | 24 SIZE_T TotalSize; in KsiCreateObjectType() local 34 TotalSize = (Length * sizeof(WCHAR)) + BufferSize; in KsiCreateObjectType() 37 TotalSize += sizeof(WCHAR); in KsiCreateObjectType() 40 pStr = HeapAlloc(GetProcessHeap(), 0, TotalSize); in KsiCreateObjectType() 58 ObjectName.Length = ObjectName.MaximumLength = TotalSize; in KsiCreateObjectType()
|
/reactos/subsystems/mvdm/ntvdm/dos/dos32krnl/ |
H A D | process.c | 185 SIZE_T TotalSize = 0; in DosCopyEnvironmentBlock() local 194 TotalSize = (ULONG_PTR)Ptr - (ULONG_PTR)Environment; in DosCopyEnvironmentBlock() 199 TotalSize = 1; in DosCopyEnvironmentBlock() 202 TotalSize++; in DosCopyEnvironmentBlock() 205 TotalSize += 2; in DosCopyEnvironmentBlock() 208 TotalSize += strlen(ProgramName) + 1; in DosCopyEnvironmentBlock() 480 DWORD TotalSize; in DosLoadExecutableInternal() local 486 TotalSize = BaseSize + (sizeof(DOS_PSP) >> 4); in DosLoadExecutableInternal() 500 TotalSize = MaxAllocSize; in DosLoadExecutableInternal() 506 TotalSize = min(TotalSize + Header->e_maxalloc, MaxAllocSize); in DosLoadExecutableInternal() [all …]
|
/reactos/drivers/network/tcpip/ip/transport/rawip/ |
H A D | rawip.c | 46 &IPPacket->TotalSize ); in AddGenericHeaderIPv4() 53 TI_DbgPrint(MAX_TRACE, ("Packet total length %d\n", IPPacket->TotalSize)); in AddGenericHeaderIPv4() 62 IPHeader->TotalLength = WH2N((USHORT)IPPacket->TotalSize); in AddGenericHeaderIPv4() 114 Packet->TotalSize = sizeof(IPv4_HEADER) + DataLen; in BuildRawIpPacket() 119 Packet->TotalSize ); in BuildRawIpPacket() 291 DataSize = IPPacket->TotalSize; in RawIpReceive() 296 TI_DbgPrint(MIN_TRACE, ("Discarded IPv6 datagram (%i bytes).\n", IPPacket->TotalSize)); in RawIpReceive()
|
/reactos/ntoskrnl/io/pnpmgr/ |
H A D | plugplay.c | 59 ULONG TotalSize; in IopQueueDeviceChangeEvent() local 64 TotalSize = in IopQueueDeviceChangeEvent() 77 EventEntry->Event.TotalSize = TotalSize; in IopQueueDeviceChangeEvent() 103 ULONG TotalSize; in IopQueueDeviceInstallEvent() local 108 TotalSize = in IopQueueDeviceInstallEvent() 121 EventEntry->Event.TotalSize = TotalSize; in IopQueueDeviceInstallEvent() 142 ULONG TotalSize; in IopQueueTargetDeviceEvent() local 150 TotalSize = in IopQueueTargetDeviceEvent() 165 EventEntry->Event.TotalSize = TotalSize; in IopQueueTargetDeviceEvent() 1409 if (BufferSize < Entry->Event.TotalSize) in NtGetPlugPlayEvent() [all …]
|
/reactos/drivers/storage/mountmgr/ |
H A D | point.c | 249 ULONG TotalSize, TotalSymLinks, UniqueIdOffset, DeviceNameOffset; in QueryPointsFromMemory() local 266 TotalSize = 0; in QueryPointsFromMemory() 299 … TotalSize += DeviceInformation->DeviceName.Length + DeviceInformation->UniqueId->UniqueIdLength; in QueryPointsFromMemory() 308 TotalSize += SymlinkInformation->Name.Length; in QueryPointsFromMemory() 341 …s->Size = sizeof(MOUNTMGR_MOUNT_POINTS) + TotalSymLinks * sizeof(MOUNTMGR_MOUNT_POINT) + TotalSize; in QueryPointsFromMemory() 358 TotalSize = sizeof(MOUNTMGR_MOUNT_POINTS) + TotalSymLinks * sizeof(MOUNTMGR_MOUNT_POINT); in QueryPointsFromMemory() 390 UniqueIdOffset = TotalSize; in QueryPointsFromMemory() 392 DeviceNameOffset = TotalSize + UniqueIdLength; in QueryPointsFromMemory() 407 … TotalSize += DeviceInformation->UniqueId->UniqueIdLength + DeviceInformation->DeviceName.Length; in QueryPointsFromMemory() 434 MountPoints->MountPoints[TotalSymLinks].SymbolicLinkNameOffset = TotalSize; in QueryPointsFromMemory() [all …]
|
/reactos/drivers/network/tcpip/ip/network/ |
H A D | icmp.c | 64 UINT32 DataSize = IPPacket->TotalSize - IPPacket->HeaderSize; in ICMPReceive() 67 …IPPacket->TotalSize, IPPacket->HeaderSize, ICMPHeader->Type, ICMPHeader->Code, ICMPHeader->Checksu… in ICMPReceive() 117 DataSize = IPPacket->TotalSize - IPPacket->HeaderSize; in ICMPReply()
|
H A D | receive.c | 211 IPPacket->TotalSize = IPDR->HeaderSize + IPDR->DataSize; in ReassembleDatagram() 218 IPPacket->Header = ExAllocatePoolWithTag(NonPagedPool, IPPacket->TotalSize, PACKET_BUFFER_TAG); in ReassembleDatagram() 432 Fragment->Size = IPPacket->TotalSize - IPPacket->HeaderSize; in ProcessFragment() 622 IPPacket->TotalSize = WN2H(((PIPv4_HEADER)IPPacket->Header)->TotalLength); in IPv4Receive()
|
/reactos/ntoskrnl/se/ |
H A D | tokenlif.c | 128 ULONG DynamicPartSize, TotalSize; in SepCreateToken() local 203 TotalSize, in SepCreateToken() 214 RtlZeroMemory(AccessToken, TotalSize); in SepCreateToken() 485 ULONG DynamicPartSize, TotalSize; in SepDuplicateToken() local 507 TotalSize, in SepDuplicateToken() 509 TotalSize, in SepDuplicateToken() 518 RtlZeroMemory(AccessToken, TotalSize); in SepDuplicateToken() 880 ULONG VariableLength, TotalSize; variable 948 TotalSize, 950 TotalSize, [all …]
|
/reactos/sdk/lib/rtl/ |
H A D | memstream.c | 290 ULONGLONG TotalSize; in RtlCopyMemoryStreamTo() local 306 TotalSize = Length.QuadPart; in RtlCopyMemoryStreamTo() 307 while (TotalSize) in RtlCopyMemoryStreamTo() 309 Left = (ULONG)min(TotalSize, sizeof(Buffer)); in RtlCopyMemoryStreamTo() 327 TotalSize -= Left; in RtlCopyMemoryStreamTo()
|
H A D | heap.c | 1424 SIZE_T TotalSize, in RtlCreateHeap() argument 1541 if (TotalSize) in RtlCreateHeap() 1542 TotalSize = ROUND_UP(TotalSize, PAGE_SIZE); in RtlCreateHeap() 1544 TotalSize = 64 * PAGE_SIZE; in RtlCreateHeap() 1551 if (TotalSize) in RtlCreateHeap() 1552 TotalSize = ROUND_UP(TotalSize, PAGE_SIZE); in RtlCreateHeap() 1583 TotalSize = Parameters->InitialReserve; in RtlCreateHeap() 1622 TotalSize = CommitSize; in RtlCreateHeap() 1637 TotalSize += MemoryInfo.RegionSize; in RtlCreateHeap() 1661 &TotalSize, in RtlCreateHeap() [all …]
|
/reactos/boot/freeldr/freeldr/ntldr/arch/i386/ |
H A D | winldr.c | 113 ULONG NumPageTables, TotalSize; in MempAllocatePageTables() local 126 TotalSize = (1 + 1 + NumPageTables * 2) * MM_PAGE_SIZE; in MempAllocatePageTables() 129 Buffer = MmAllocateMemoryWithType(TotalSize, LoaderMemoryData); in MempAllocatePageTables() 132 PhysicalPageTablesBuffer = (PUCHAR)Buffer + TotalSize - NumPageTables*MM_PAGE_SIZE; in MempAllocatePageTables() 138 if (Buffer + (TotalSize - NumPageTables*MM_PAGE_SIZE) != in MempAllocatePageTables() 151 RtlZeroMemory(Buffer, TotalSize); in MempAllocatePageTables()
|
/reactos/drivers/network/tcpip/ip/transport/tcp/ |
H A D | if.c | 52 GetDataPtr(Packet.NdisPacket, 0, (PCHAR*)&Packet.Header, &Packet.TotalSize); in TCPSendDataCallback() 55 ASSERT(Packet.TotalSize == p->tot_len); in TCPSendDataCallback() 70 Packet.TotalSize = TotalLength; in TCPSendDataCallback()
|
/reactos/boot/environ/lib/misc/ |
H A D | bcd.c | 699 ULONG SubElementCount, TotalSize, RequiredSize, CurrentSize, i; in BiEnumerateSubObjectElements() local 707 TotalSize = 0; in BiEnumerateSubObjectElements() 730 Status = RtlULongAdd(TotalSize, RequiredSize, &TotalSize); in BiEnumerateSubObjectElements() 740 if (*ElementSize >= TotalSize) in BiEnumerateSubObjectElements() 746 CurrentSize = *ElementSize - TotalSize; in BiEnumerateSubObjectElements() 751 (PBCD_PACKED_ELEMENT)((ULONG_PTR)Elements + TotalSize); in BiEnumerateSubObjectElements() 793 if (*ElementSize < TotalSize) in BiEnumerateSubObjectElements() 799 *ElementSize = TotalSize; in BiEnumerateSubObjectElements()
|
/reactos/drivers/usb/usbccgp/ |
H A D | pdo.c | 506 ULONG TotalSize, Index; in USBCCGP_BuildConfigurationDescriptor() local 533 TotalSize = sizeof(USB_CONFIGURATION_DESCRIPTOR); in USBCCGP_BuildConfigurationDescriptor() 546 TotalSize += InterfaceDescriptor->bLength; in USBCCGP_BuildConfigurationDescriptor() 582 TotalSize += InterfaceDescriptor->bLength; in USBCCGP_BuildConfigurationDescriptor() 595 Buffer = AllocateItem(NonPagedPool, TotalSize); in USBCCGP_BuildConfigurationDescriptor() 601 DPRINT1("[USBCCGP] Failed to allocate %lu Bytes\n", TotalSize); in USBCCGP_BuildConfigurationDescriptor() 675 ConfigurationDescriptor->wTotalLength = (USHORT)TotalSize; in USBCCGP_BuildConfigurationDescriptor() 687 Size = min(TotalSize, Urb->UrbControlDescriptorRequest.TransferBufferLength); in USBCCGP_BuildConfigurationDescriptor()
|
/reactos/drivers/network/tcpip/ip/transport/udp/ |
H A D | udp.c | 105 Packet->TotalSize = sizeof(IPv4_HEADER) + sizeof(UDP_HEADER) + DataLen; in BuildUDPPacket() 110 Packet->TotalSize ); in BuildUDPPacket() 270 TI_DbgPrint(MIN_TRACE, ("Discarded IPv6 UDP datagram (%i bytes).\n", IPPacket->TotalSize)); in UDPReceive() 293 if ((i < sizeof(UDP_HEADER)) || (i > IPPacket->TotalSize - IPPacket->Position)) { in UDPReceive()
|
/reactos/dll/directx/ksproxy/ |
H A D | allocator.cpp | 260 LONG TotalSize = Size * m_cBuffers; in Commit() local 262 assert(TotalSize); in Commit() 267 m_Buffer = VirtualAlloc(NULL, TotalSize, MEM_COMMIT, PAGE_READWRITE); in Commit() 274 ZeroMemory(m_Buffer, TotalSize); in Commit()
|
/reactos/drivers/ksfilter/ks/ |
H A D | property.c | 151 ULONG Index, InputBufferLength, OutputBufferLength, TotalSize; in KspPropertyHandler() local 184 TotalSize = InputBufferLength + OutputBufferLength; in KspPropertyHandler() 203 Status = Allocator(Irp, TotalSize, (Property->Flags & KSPROPERTY_TYPE_GET)); in KspPropertyHandler() 212 Irp->AssociatedIrp.SystemBuffer = AllocateItem(NonPagedPool, TotalSize); in KspPropertyHandler()
|
/reactos/dll/win32/iphlpapi/ |
H A D | address.c | 329 ULONG TotalSize = 0, RemainingSize; in GetAdaptersAddresses() local 477 TotalSize += CurrentAASize; in GetAdaptersAddresses() 712 TotalSize += Size; in GetAdaptersAddresses() 742 TotalSize += Size; in GetAdaptersAddresses() 754 *pOutBufLen = TotalSize; in GetAdaptersAddresses()
|
/reactos/sdk/lib/dnslib/ |
H A D | sablob.c | 142 ULONG AddressCount = 0, AddressSize = 0, TotalSize, NamePointerSize; in SaBlob_CreateHostent() local 167 TotalSize = AddressSize * AddressCount; in SaBlob_CreateHostent() 194 HostentSize += TotalSize + in SaBlob_CreateHostent()
|
/reactos/drivers/sac/driver/ |
H A D | concmd.c | 78 OUT PULONG TotalSize) in GetTListInfo() argument 88 *TotalSize = 0; in GetTListInfo() 306 *TotalSize = InputSize - BufferLength; in GetTListInfo()
|
/reactos/dll/win32/kernel32/client/ |
H A D | sysinfo.c | 90 ULONG TotalSize = BufferSize + sizeof(SYSTEM_FIRMWARE_TABLE_INFORMATION); in BaseQuerySystemFirmware() local 93 SysFirmwareInfo = RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY, TotalSize); in BaseQuerySystemFirmware() 106 …tQuerySystemInformation(SystemFirmwareTableInformation, SysFirmwareInfo, TotalSize, &ReturnedSize); in BaseQuerySystemFirmware()
|
/reactos/boot/freeldr/freeldr/ntldr/ |
H A D | wlregistry.c | 418 ULONG TotalSize; in WinLdrLoadNLSData() local 489 TotalSize = MM_SIZE_TO_PAGES(AnsiFileSize) + in WinLdrLoadNLSData() 494 TotalNLSSize = TotalSize; in WinLdrLoadNLSData() 496 NlsDataBase = MmAllocateMemoryWithType(TotalSize*MM_PAGE_SIZE, LoaderNlsData); in WinLdrLoadNLSData()
|
/reactos/modules/rostests/apitests/kernel32/ |
H A D | SystemFirmware.c | 32 ULONG TotalSize = BufferSize + sizeof(SYSTEM_FIRMWARE_TABLE_INFORMATION); in CallNt() local 35 SysFirmwareInfo = RtlAllocateHeap(RtlGetProcessHeap(), HEAP_ZERO_MEMORY, TotalSize); in CallNt() 48 …tQuerySystemInformation(SystemFirmwareTableInformation, SysFirmwareInfo, TotalSize, &ReturnedSize); in CallNt()
|