Home
last modified time | relevance | path

Searched refs:Block (Results 1 – 25 of 198) sorted by relevance

12345678

/reactos/boot/freeldr/freeldr/lib/mm/
H A Dheap.c30 #define REDZONE_SIZE(Block) ((ULONG64*)Block->Data) argument
31 #define REDZONE_LOW(Block) ((ULONG64*)Block->Data + 1) argument
32 #define REDZONE_HI(Block) ((ULONG64*)((PUCHAR)Block->Data + 16 + *REDZONE_SIZE(Block))) argument
112 Block->Data[0].Flink = (Block - &Heap->Blocks) + Block->Size + 1; in FrLdrHeapCreate()
120 Block = Block + Block->Size + 1; in FrLdrHeapCreate()
166 Block = Block + 1 + Block->Size) in FrLdrHeapVerify()
195 Block = Block + 1 + Block->Size) in FrLdrHeapRelease()
213 while (Block->Tag == 0) Block = Block + Block->Size + 1; in FrLdrHeapRelease()
497 PrevBlock = Block - Block->PreviousSize - 1; in FrLdrHeapFreeEx()
498 NextBlock = Block + Block->Size + 1; in FrLdrHeapFreeEx()
[all …]
/reactos/drivers/usb/usbstor/
H A Dscsi.c445 PUCHAR Block) in DumpCBW() argument
448Block[0] & 0xFF, Block[1] & 0xFF, Block[2] & 0xFF, Block[3] & 0xFF, Block[4] & 0xFF, Block[5] & 0x… in DumpCBW()
449Block[10] & 0xFF, Block[11] & 0xFF, Block[12] & 0xFF, Block[13] & 0xFF, Block[14] & 0xFF, Block[15… in DumpCBW()
450Block[20] & 0xFF, Block[21] & 0xFF, Block[22] & 0xFF, Block[23] & 0xFF, Block[24] & 0xFF, Block[25… in DumpCBW()
451 Block[30] & 0xFF); in DumpCBW()
/reactos/sdk/lib/3rdparty/stlport/test/eh/
H A Dnc_alloc.cpp118 if (s <= sizeof(Block)) { in Allocate()
131 Block* b = (Block*)p; in Free()
139 struct Block;
140 friend struct Block;
151 struct Block { struct in FastAllocator
153 Block *next;
159 static Block* mBlocks;
160 static Block *mFree;
164 FastAllocator::Block *FastAllocator::mBlocks = argument
165 (FastAllocator::Block*)EH_CSTD::calloc( sizeof(FastAllocator::Block), FastAllocator::kBlockCount );
[all …]
/reactos/drivers/filesystems/ext2/src/ext4/
H A Dextents.c31 OUT PULONG Block, in Ext2MapExtent() argument
49 if (Block) in Ext2MapExtent()
50 *Block = 0; in Ext2MapExtent()
97 if (Block) in Ext2MapExtent()
98 *Block = (ULONG)bh_got.b_blocknr; in Ext2MapExtent()
110 IN OUT PULONG Block, in Ext2DoExtentExpand() argument
141 if (Block) in Ext2DoExtentExpand()
142 *Block = (ULONG)bh_got.b_blocknr; in Ext2DoExtentExpand()
160 ULONG Count = 0, Number = 0, Block = 0; in Ext2ExpandExtent() local
170 &Block, &Number); in Ext2ExpandExtent()
[all …]
/reactos/drivers/wdm/audio/legacy/stream/
H A Dfilter.c71 RequestBlock.Block.Command = SRB_CLOSE_DEVICE_INSTANCE; in FilterDispatch_fnClose()
72 RequestBlock.Block.HwDeviceExtension = DeviceExtension->DeviceExtension; in FilterDispatch_fnClose()
73 RequestBlock.Block.Irp = Irp; in FilterDispatch_fnClose()
80 if (RequestBlock.Block.Status == STATUS_PENDING) in FilterDispatch_fnClose()
191 RequestBlock.Block.Command = SRB_OPEN_DEVICE_INSTANCE; in InitializeFilterWithKs()
192 RequestBlock.Block.HwDeviceExtension = DeviceExtension->DeviceExtension; in InitializeFilterWithKs()
193 RequestBlock.Block.Irp = Irp; in InitializeFilterWithKs()
194 RequestBlock.Block.HwInstanceExtension = HwInstanceExtension; in InitializeFilterWithKs()
201 if (RequestBlock.Block.Status == STATUS_PENDING) in InitializeFilterWithKs()
207 if (!NT_SUCCESS(RequestBlock.Block.Status)) in InitializeFilterWithKs()
[all …]
H A Dpnp.c172 RequestBlock->Block.SizeOfThisPacket = sizeof(HW_STREAM_REQUEST_BLOCK); in StreamClassStartDevice()
173 RequestBlock->Block.Command = SRB_INITIALIZE_DEVICE; in StreamClassStartDevice()
174 RequestBlock->Block.CommandData.ConfigInfo = Config; in StreamClassStartDevice()
382 if (RequestBlock->Block.Status == STATUS_PENDING) in StreamClassStartDevice()
387 Status = RequestBlock->Block.Status; in StreamClassStartDevice()
422 RequestBlock->Block.Command = SRB_GET_STREAM_INFO; in StreamClassStartDevice()
423 RequestBlock->Block.CommandData.StreamBuffer = StreamDescriptor; in StreamClassStartDevice()
428 if (RequestBlock->Block.Status == STATUS_PENDING) in StreamClassStartDevice()
433 Status = RequestBlock->Block.Status; in StreamClassStartDevice()
H A Ddriver.c181 RequestBlock.Block.SizeOfThisPacket = sizeof(HW_STREAM_REQUEST_BLOCK); in StreamClassReenumerateStreams()
182 RequestBlock.Block.Command = SRB_GET_STREAM_INFO; in StreamClassReenumerateStreams()
183 RequestBlock.Block.CommandData.StreamBuffer = StreamDescriptor; in StreamClassReenumerateStreams()
192 if (RequestBlock.Block.Status == STATUS_PENDING) in StreamClassReenumerateStreams()
198 if (!NT_SUCCESS(RequestBlock.Block.Status)) in StreamClassReenumerateStreams()
/reactos/drivers/network/tdi/cte/
H A Devents.c38 CTEBlock(PCTEBLOCK_EVENT Block) in CTEBlock() argument
43 Status = KeWaitForSingleObject(&Block->Event, UserRequest, KernelMode, FALSE, NULL); in CTEBlock()
46 if (!NT_SUCCESS(Status)) Block->Status = Status; in CTEBlock()
48 return Block->Status; in CTEBlock()
148 CTESignal(PCTEBLOCK_EVENT Block, NTSTATUS Status) in CTESignal() argument
151 Block->Status = Status; in CTESignal()
154 return KeSetEvent(&Block->Event, IO_NO_INCREMENT, FALSE); in CTESignal()
/reactos/drivers/usb/usbstor_new/
H A Dscsi.c580 PUCHAR Block) in DumpCBW() argument
583Block[0] & 0xFF, Block[1] & 0xFF, Block[2] & 0xFF, Block[3] & 0xFF, Block[4] & 0xFF, Block[5] & 0x… in DumpCBW()
584Block[10] & 0xFF, Block[11] & 0xFF, Block[12] & 0xFF, Block[13] & 0xFF, Block[14] & 0xFF, Block[15… in DumpCBW()
585Block[20] & 0xFF, Block[21] & 0xFF, Block[22] & 0xFF, Block[23] & 0xFF, Block[24] & 0xFF, Block[25… in DumpCBW()
586 Block[30] & 0xFF); in DumpCBW()
/reactos/dll/win32/kernel32/client/
H A Dtoolhelp.c493 PRTLP_HEAP_ENTRY Block, LastBlock; in Heap32First() local
532 Block = (PRTLP_HEAP_ENTRY)Heap->Entries; in Heap32First()
535 while (Block != LastBlock && (Block->Flags & PROCESS_HEAP_UNCOMMITTED_RANGE)) in Heap32First()
539 Block++; in Heap32First()
544 lphe->dwBlockSize = Block->Size; in Heap32First()
546 if (Block->Flags & 0x2F1) /* FIXME */ in Heap32First()
582 PRTLP_HEAP_ENTRY Block, LastBlock; in Heap32Next() local
620 while (Block < LastBlock && (Block->Flags & PROCESS_HEAP_UNCOMMITTED_RANGE)) in Heap32Next()
625 Block++; in Heap32Next()
628 if (Block < LastBlock) in Heap32Next()
[all …]
/reactos/drivers/filesystems/vfatfs/
H A Dfat.c184 PUSHORT Block; in FAT16FindAndMarkAvailableCluster() local
214 if (*Block == 0) in FAT16FindAndMarkAvailableCluster()
218 *Block = 0xffff; in FAT16FindAndMarkAvailableCluster()
226 Block++; in FAT16FindAndMarkAvailableCluster()
323 PULONG Block; in FAT32FindAndMarkAvailableCluster() local
364 Block++; in FAT32FindAndMarkAvailableCluster()
438 PUSHORT Block; in FAT16CountAvailableClusters() local
469 if (*Block == 0) in FAT16CountAvailableClusters()
471 Block++; in FAT16CountAvailableClusters()
493 PULONG Block; in FAT32CountAvailableClusters() local
[all …]
/reactos/drivers/filesystems/ext2/src/ext3/
H A Dindirect.c33 IN PULONG Block, in Ext2ExpandLast() argument
64 Block, in Ext2ExpandLast()
110 *Hint = *Block + *Number; in Ext2ExpandLast()
125 if (*Block) { in Ext2ExpandLast()
128 *Block = 0; in Ext2ExpandLast()
147 OUT PULONG Block, argument
189 *Block = BlockArray[0];
320 Block,
337 *Block = 0;
361 ULONG Block = 0; local
[all …]
H A Dgeneric.c1013 OUT PULONG Block, in Ext2NewBlock() argument
1033 *Block = 0; in Ext2NewBlock()
1176 if (*Block >= TOTAL_BLOCKS || *Block + *Number > TOTAL_BLOCKS) { in Ext2NewBlock()
1182 if (ext4_block_bitmap(sb, gd) == *Block || in Ext2NewBlock()
1183 ext4_inode_bitmap(sb, gd) == *Block || in Ext2NewBlock()
1199 *Block, *Block + *Number)); in Ext2NewBlock()
1220 IN ULONG Block, in Ext2FreeBlock() argument
1245 Block, Block + Number)); in Ext2FreeBlock()
1255 if ( Block < EXT2_FIRST_DATA_BLOCK || in Ext2FreeBlock()
1256 Block >= TOTAL_BLOCKS || in Ext2FreeBlock()
[all …]
/reactos/sdk/lib/cmlib/
H A Dhivewrt.c92 PVOID Block; in HvpWriteLog() local
221 Block = (PVOID)RegistryHive->Storage[Stable].BlockList[BlockIndex].BlockAddress; in HvpWriteLog()
225 &FileOffset, Block, HBLOCK_SIZE); in HvpWriteLog()
228 … DPRINT1("Failed to write dirty block to log (block 0x%p, block index 0x%x)\n", Block, BlockIndex); in HvpWriteLog()
320 PVOID Block; in HvpWriteHive() local
387 Block = (PVOID)RegistryHive->Storage[Stable].BlockList[BlockIndex].BlockAddress; in HvpWriteHive()
392 &FileOffset, Block, HBLOCK_SIZE); in HvpWriteHive()
396 Block, BlockIndex); in HvpWriteHive()
H A Dhivebin.c24 PHCELL Block; in HvpAddBin() local
69 Block = (PHCELL)(Bin + 1); in HvpAddBin()
70 Block->Size = (LONG)(BinSize - sizeof(HBIN)); in HvpAddBin()
H A Dhivecell.c27 PVOID Block; in HvpGetCellHeader() local
40 Block = (PVOID)RegistryHive->Storage[CellType].BlockList[CellBlock].BlockAddress; in HvpGetCellHeader()
41 ASSERT(Block != NULL); in HvpGetCellHeader()
42 return (PHCELL)((ULONG_PTR)Block + CellOffset); in HvpGetCellHeader()
56 ULONG Type, Block; in HvIsCellAllocated() local
64 Block = HvGetCellBlock(CellIndex); in HvIsCellAllocated()
65 if (Block >= RegistryHive->Storage[Type].Length) in HvIsCellAllocated()
69 if (RegistryHive->Storage[Type].BlockList[Block].BlockAddress) in HvIsCellAllocated()
/reactos/sdk/lib/cryptlib/
H A Dsha1.c28 #define blk0(i) (Block[i] = (rol(Block[i],24)&0xFF00FF00)|(rol(Block[i],8)&0x00FF00FF))
29 #define blk1(i) (Block[i&15] = rol(Block[(i+13)&15]^Block[(i+8)&15]^Block[(i+2)&15]^Block[i&15],1))
45 ULONG *Block; in SHA1Transform() local
47 Block = (ULONG*)Buffer; in SHA1Transform()
/reactos/sdk/lib/atl/
H A Datlcoll.h41 CAtlPlex* Block; in Create() local
51 Block = static_cast< CAtlPlex* >(Buffer); in Create()
52 Block->m_Next = Entry; in Create()
53 Entry = Block; in Create()
55 return Block; in Create()
65 CAtlPlex* Block; in Destroy() local
68 Block = this; in Destroy()
69 while (Block != NULL) in Destroy()
71 Next = Block->m_Next; in Destroy()
73 Block = Next; in Destroy()
[all …]
/reactos/drivers/sac/driver/
H A Dmemory.c234 MyFreePool(IN PVOID *Block) in MyFreePool() argument
239 PSAC_MEMORY_ENTRY LocalDescriptor = (PVOID)((ULONG_PTR)(*Block) - sizeof(SAC_MEMORY_ENTRY)); in MyFreePool()
346 SAC_DBG(SAC_DBG_MM, "exiting: 0x%p.\n", *Block); in MyFreePool()
347 ExFreePoolWithTag(*Block, 'HACK'); in MyFreePool()
348 *Block = NULL; in MyFreePool()
/reactos/sdk/lib/rtl/
H A Dheappage.c199 _In_ PVOID Block,
246 RtlpDphGetBlockSizeFromCorruptedBlock(PVOID Block) in RtlpDphGetBlockSizeFromCorruptedBlock() argument
249 BlockInfo = (PDPH_BLOCK_INFORMATION)Block - 1; in RtlpDphGetBlockSizeFromCorruptedBlock()
1329 _In_ PVOID Block, in RtlpDphReportCorruptedBlock() argument
1335 DPRINT1("Corrupted heap block %p\n", Block); in RtlpDphReportCorruptedBlock()
1339 PDPH_BLOCK_INFORMATION BlockInfo = (PDPH_BLOCK_INFORMATION)Block - 1; in RtlpDphReportCorruptedBlock()
1360 Block, "Heap block", Size, "Block size", 0, ""); in RtlpDphReportCorruptedBlock()
1418 PVOID Block, in RtlpDphIsPageHeapBlock() argument
1430 BlockInfo = (PDPH_BLOCK_INFORMATION)Block - 1; in RtlpDphIsPageHeapBlock()
1463 Start = (PUCHAR)Block + BlockInfo->RequestedSize; in RtlpDphIsPageHeapBlock()
[all …]
/reactos/drivers/filesystems/ext2/src/
H A Dmemory.c944 IN ULONG Block, in Ext2AddMcbMetaExts() argument
988 IN ULONG Block, in Ext2RemoveMcbMetaExts() argument
1031 IN ULONG Block, in Ext2AddBlockExtent() argument
1065 IN PULONG Block, in Ext2LookupBlockExtent() argument
1088 *Block = 0; in Ext2LookupBlockExtent()
1131 ULONG Block; in Ext2InitializeZone() local
1174 Block = 0; in Ext2InitializeZone()
1177 if (Block) { in Ext2InitializeZone()
1250 ULONG Block = 0; in Ext2BuildExtents() local
1266 Block = 0; in Ext2BuildExtents()
[all …]
/reactos/drivers/network/ndis/ndis/
H A Dmemory.c36 PVOID Block; in NdisAllocateMemoryWithTag() local
40 Block = ExAllocatePoolWithTag(NonPagedPool, Length, Tag); in NdisAllocateMemoryWithTag()
41 *VirtualAddress = Block; in NdisAllocateMemoryWithTag()
43 if (!Block) { in NdisAllocateMemoryWithTag()
/reactos/ntoskrnl/tests/tests/
H A DVirtualMemory.c22 MockExFreePool(PVOID Block) in MockExFreePool() argument
25 _AssertEqualValue(TestMdl, Block); in MockExFreePool()
/reactos/win32ss/user/winsrv/consrv/
H A Dhandle.c237 PCONSOLE_IO_HANDLE Block; in ConSrvInsertObject() local
257 Block = ConsoleAllocHeap(HEAP_ZERO_MEMORY, in ConSrvInsertObject()
260 if (Block == NULL) in ConSrvInsertObject()
270 RtlCopyMemory(Block, in ConSrvInsertObject()
275 ProcessData->HandleTable = Block; in ConSrvInsertObject()
/reactos/boot/environ/lib/io/
H A Ddevice.c99 _In_ ULONGLONG Block, in BlockIoFirmwareWrite() argument
110 _In_ ULONGLONG Block, in BlockIoFirmwareRead() argument
137 Block, in BlockIoFirmwareRead()
171 _In_ ULONGLONG Block, in BlockIopFirmwareOperation() argument
186 Status = BlockIoFirmwareWrite(BlockDevice, Buffer, Block, BlockCount); in BlockIopFirmwareOperation()
197 Status = BlockIoFirmwareRead(BlockDevice, Buffer, Block, BlockCount); in BlockIopFirmwareOperation()
294 Offset = BlockDevice->Block + BlockDevice->StartOffset; in BlockIopOperation()
295 if ((BlockDevice->LastBlock + 1) < (BlockDevice->Block + BlockCount)) in BlockIopOperation()
426 BlockDevice->Block += Offset; in BlockIopReadPhysicalDevice()
574 Offset = DeviceInformation->BlockDeviceInfo.Block * BlockDevice->BlockSize + in BlockIoSetInformation()
[all …]

12345678