Lines Matching refs:StreamData
135 PKSSTREAM_DATA StreamData; in AddMapping() local
143 StreamData = (PKSSTREAM_DATA)AllocateItem(NonPagedPool, sizeof(KSSTREAM_DATA), TAG_PORTCLASS); in AddMapping()
144 if (!StreamData) in AddMapping()
169 FreeItem(StreamData, TAG_PORTCLASS); in AddMapping()
192 StreamData->StreamHeaderCount++; in AddMapping()
219 ASSERT(StreamData->StreamHeaderCount); in AddMapping()
222 …StreamData->Data = (PVOID*)AllocateItem(NonPagedPool, sizeof(PVOID) * StreamData->StreamHeaderCoun… in AddMapping()
223 if (!StreamData->Data) in AddMapping()
226 FreeItem(StreamData, TAG_PORTCLASS); in AddMapping()
235 …StreamData->Tags = (PKSSTREAM_TAG)AllocateItem(NonPagedPool, sizeof(KSSTREAM_TAG) * StreamPageCoun… in AddMapping()
236 if (!StreamData->Data) in AddMapping()
239 FreeItem(StreamData->Data, TAG_PORTCLASS); in AddMapping()
240 FreeItem(StreamData, TAG_PORTCLASS); in AddMapping()
251 for(Index = 0; Index < StreamData->StreamHeaderCount; Index++) in AddMapping()
254 StreamData->Data[Index] = MmGetSystemAddressForMdlSafe(Mdl, NormalPagePriority); in AddMapping()
257 if (!StreamData->Data[Index]) in AddMapping()
260 FreeItem(StreamData->Data, TAG_PORTCLASS); in AddMapping()
265 FreeItem(StreamData->Tags, TAG_PORTCLASS); in AddMapping()
268 FreeItem(StreamData, TAG_PORTCLASS); in AddMapping()
280 Irp->Tail.Overlay.DriverContext[STREAM_DATA_OFFSET] = (PVOID)StreamData; in AddMapping()
302 PKSSTREAM_DATA StreamData; in GetMapping() local
345 StreamData = (PKSSTREAM_DATA)Irp->Tail.Overlay.DriverContext[STREAM_DATA_OFFSET]; in GetMapping()
348 PC_ASSERT(StreamData); in GetMapping()
366 *Buffer = &((PUCHAR)StreamData->Data[m_StreamHeaderIndex])[Offset]; in GetMapping()
376 PKSSTREAM_DATA StreamData; in UpdateMapping() local
386 StreamData = (PKSSTREAM_DATA)m_Irp->Tail.Overlay.DriverContext[STREAM_DATA_OFFSET]; in UpdateMapping()
389 ASSERT(StreamData); in UpdateMapping()
414 if (m_StreamHeaderIndex + 1 < StreamData->StreamHeaderCount) in UpdateMapping()
452 for(Index = 0; Index < StreamData->StreamHeaderCount; Index++) in UpdateMapping()
454 MmUnmapLockedPages(StreamData->Data[Index], Mdl); in UpdateMapping()
459 FreeItem(StreamData->Data, TAG_PORTCLASS); in UpdateMapping()
464 FreeItem(StreamData->Tags, TAG_PORTCLASS); in UpdateMapping()
468 FreeItem(StreamData, TAG_PORTCLASS); in UpdateMapping()
501 PKSSTREAM_DATA StreamData; in NumData() local
520 StreamData = (PKSSTREAM_DATA)Irp->Tail.Overlay.DriverContext[STREAM_DATA_OFFSET]; in NumData()
523 for (; StreamHeaderIndex < StreamData->StreamHeaderCount; StreamHeaderIndex++) in NumData()
591 PKSSTREAM_DATA StreamData; in GetMappingWithTag() local
633 StreamData = (PKSSTREAM_DATA)m_Irp->Tail.Overlay.DriverContext[STREAM_DATA_OFFSET]; in GetMappingWithTag()
636 PC_ASSERT(m_StreamHeaderIndex < StreamData->StreamHeaderCount); in GetMappingWithTag()
639 StreamData->Tags[m_TagIndex].Tag = Tag; in GetMappingWithTag()
640 StreamData->Tags[m_TagIndex].Used = TRUE; in GetMappingWithTag()
653 Data = (LPBYTE)StreamData->Data[m_StreamHeaderIndex] + m_CurrentOffset; in GetMappingWithTag()
670 if (m_StreamHeaderIndex == StreamData->StreamHeaderCount) in GetMappingWithTag()
676 StreamData->nTags = m_TagIndex; in GetMappingWithTag()
712 PKSSTREAM_DATA StreamData; in ReleaseMappingWithTag() local
744 StreamData = (PKSSTREAM_DATA)Irp->Tail.Overlay.DriverContext[STREAM_DATA_OFFSET]; in ReleaseMappingWithTag()
747 for (Index = 0; Index < StreamData->nTags; Index++) in ReleaseMappingWithTag()
749 if (StreamData->Tags[Index].Used != FALSE) in ReleaseMappingWithTag()
751 StreamData->Tags[Index].Used = FALSE; in ReleaseMappingWithTag()
754 if (StreamData->Tags[Index].Tag != Tag) in ReleaseMappingWithTag()
771 if (Index + 1 == StreamData->nTags) in ReleaseMappingWithTag()
796 FreeItem(StreamData->Data, TAG_PORTCLASS); in ReleaseMappingWithTag()
799 FreeItem(StreamData->Tags, TAG_PORTCLASS); in ReleaseMappingWithTag()
802 FreeItem(StreamData, TAG_PORTCLASS); in ReleaseMappingWithTag()