|
ReactOS 0.4.17-dev-1281-g065abb3
|

Go to the source code of this file.
Classes | |
| struct | ConfigWalk |
| struct | BosWalk |
Enumerations | |
| enum class | Verdict : UCHAR { Ok , Failed , Fatal } |
| enum class | Gate : UCHAR { Always , Legacy , NewRule , Versioned , Cap20 , CapSs , CapSsp , Reserved , LogOnly , Warning } |
Definition at line 124 of file desccheck.cpp.
| #define HUB_MSOS20_MAX_DEPTH 8 |
Definition at line 40 of file desccheck.cpp.
| #define HUB_MSOS20_NEWEST_VERSION NTDDI_WIN11_GE |
Definition at line 37 of file desccheck.cpp.
| #define HUB_MSOS20_TYPE_CCGP 7 |
Definition at line 2643 of file desccheck.cpp.
| #define HUB_MSOS20_TYPE_COMPATIBLE_ID 3 |
Definition at line 2639 of file desccheck.cpp.
| #define HUB_MSOS20_TYPE_CONFIG_SUBSET 1 |
Definition at line 2637 of file desccheck.cpp.
| #define HUB_MSOS20_TYPE_FUNCTION_SUBSET 2 |
Definition at line 2638 of file desccheck.cpp.
| #define HUB_MSOS20_TYPE_MODEL_ID 6 |
Definition at line 2642 of file desccheck.cpp.
| #define HUB_MSOS20_TYPE_REGISTRY 4 |
Definition at line 2640 of file desccheck.cpp.
| #define HUB_MSOS20_TYPE_RESUME_TIME 5 |
Definition at line 2641 of file desccheck.cpp.
| #define HUB_MSOS20_TYPE_SET_HEADER 0 |
Definition at line 2636 of file desccheck.cpp.
| #define NDEBUG |
Definition at line 10 of file desccheck.cpp.
| Enumerator | |
|---|---|
| Always | |
| Legacy | |
| NewRule | |
| Versioned | |
| Cap20 | |
| CapSs | |
| CapSsp | |
| Reserved | |
| LogOnly | |
| Warning | |
Definition at line 22 of file desccheck.cpp.
| Enumerator | |
|---|---|
| Ok | |
| Failed | |
| Fatal | |
Definition at line 14 of file desccheck.cpp.
| _In_reads_bytes_ | ( | Length | ) |
| _Inout_updates_bytes_ | ( | Length | ) |
| _IRQL_requires_ | ( | PASSIVE_LEVEL | ) | const |
|
static |
Uses the standard size for a short descriptor when that many bytes remain. FALSE means stop.
Definition at line 506 of file desccheck.cpp.
Referenced by CheckCapability(), CheckCompanion(), CheckContainerIdCap(), CheckEndpoint(), CheckIad(), CheckInterface(), CheckPlatformCap(), CheckPowerDeliveryCap(), CheckSspCompanion(), CheckSuperSpeedCap(), CheckSuperSpeedPlusCap(), and CheckUsb20Cap().
Definition at line 529 of file desccheck.cpp.
Referenced by CheckEndpoint(), and CheckInterface().
Definition at line 539 of file desccheck.cpp.
Referenced by CheckEndpoint(), CheckInterface(), MmMakeSegmentResident(), and TlsFree().
|
static |
Bytes from Descriptor to the end of the buffer the caller handed in.
Definition at line 579 of file desccheck.cpp.
Referenced by CheckBillboardCap(), CheckCapability(), CheckCompanion(), CheckContainerIdCap(), CheckEndpoint(), CheckHeader(), CheckIad(), CheckInterface(), CheckPlatformCap(), CheckPowerDeliveryCap(), CheckSspCompanion(), CheckSuperSpeedCap(), CheckSuperSpeedPlusCap(), CheckUsb20Cap(), HalpPhase0GetPciDataByOffset(), HalpPhase0SetPciDataByOffset(), and RamdiskReadWriteReal().
|
static |
Definition at line 2028 of file desccheck.cpp.
Referenced by CheckCapability().
|
static |
Definition at line 1466 of file desccheck.cpp.
Referenced by HubDescCheckBosHeader().
| CheckBosFixedPart | ( | Context | , |
| Descriptor | , | ||
| Length | , | ||
| & | End, | ||
| & | Advance, | ||
| & | Result | ||
| ) |
|
static |
Generic capability header, then the type specific check and the duplicate rules.
Definition at line 2091 of file desccheck.cpp.
Referenced by while().
|
static |
Definition at line 1007 of file desccheck.cpp.
Referenced by HubDescCheckConfiguration().
|
static |
Definition at line 636 of file desccheck.cpp.
Referenced by HubDescCheckConfiguration().
|
static |
Definition at line 1805 of file desccheck.cpp.
Referenced by CheckCapability().
|
static |
Definition at line 945 of file desccheck.cpp.
Referenced by HubDescCheckConfiguration().
|
static |
Definition at line 813 of file desccheck.cpp.
Referenced by CheckEndpoint().
|
static |
Definition at line 591 of file desccheck.cpp.
Referenced by HubDescCheckConfiguration(), and while().
|
static |
Definition at line 1193 of file desccheck.cpp.
Referenced by HubDescCheckConfiguration().
|
static |
Definition at line 735 of file desccheck.cpp.
Referenced by HubDescCheckConfiguration().
|
static |
Definition at line 3038 of file desccheck.cpp.
Referenced by CheckMsOs20Feature().
|
static |
Definition at line 2871 of file desccheck.cpp.
Referenced by CheckMsOs20Feature().
|
static |
Definition at line 3063 of file desccheck.cpp.
Referenced by CheckMsOs20Subset(), and WalkMsOs20Set().
|
static |
Checks both 8 byte IDs. Bad characters log the length code (QUIRK).
Definition at line 2839 of file desccheck.cpp.
Referenced by CheckMsOs20CompatibleId().
|
static |
Definition at line 3005 of file desccheck.cpp.
Referenced by CheckMsOs20Feature().
|
static |
Definition at line 1854 of file desccheck.cpp.
Referenced by CheckPlatformCap().
|
static |
Definition at line 2906 of file desccheck.cpp.
Referenced by CheckMsOs20Feature().
|
static |
Definition at line 2963 of file desccheck.cpp.
Referenced by CheckMsOs20Feature().
|
static |
Definition at line 2705 of file desccheck.cpp.
Referenced by CheckMsOs20Feature().
|
static |
Definition at line 2747 of file desccheck.cpp.
Referenced by CheckMsOs20Feature().
|
static |
Definition at line 1945 of file desccheck.cpp.
Referenced by CheckCapability().
|
static |
Definition at line 1907 of file desccheck.cpp.
Referenced by CheckPlatformCap().
|
static |
Definition at line 1988 of file desccheck.cpp.
Referenced by CheckCapability().
|
static |
Companions the previous endpoint needed. Also resets the companion state.
Definition at line 682 of file desccheck.cpp.
Referenced by CheckEndpoint(), and CheckPreviousInterface().
|
static |
Wraps up the previous interface: its last endpoint and its endpoint count.
Definition at line 712 of file desccheck.cpp.
Referenced by CheckInterface(), and HubDescCheckConfiguration().
|
static |
Definition at line 1141 of file desccheck.cpp.
Referenced by HubDescCheckConfiguration().
|
static |
Definition at line 2354 of file desccheck.cpp.
Referenced by HubDescCheckSerialNumber(), and HubDescCheckString().
|
static |
Sublink speed attribute pairs: RX then TX, matching, with unique IDs.
Definition at line 1673 of file desccheck.cpp.
Referenced by CheckSuperSpeedPlusCap().
|
static |
Definition at line 1612 of file desccheck.cpp.
Referenced by CheckCapability().
|
static |
Definition at line 1760 of file desccheck.cpp.
Referenced by CheckCapability().
|
static |
Definition at line 1527 of file desccheck.cpp.
Referenced by CheckCapability().
Definition at line 418 of file desccheck.cpp.
Referenced by CheckBillboardCap(), CheckHeader(), HubDescCheckConfiguration(), and Note().
| BOOLEAN NTAPI HubDescCheck20Hub | ( | _In_ const HubDescContext * | Context, |
| _In_reads_bytes_opt_(Length) PUSB_HUB_DESCRIPTOR | Descriptor, | ||
| _In_ ULONG | Length | ||
| ) |
USB 2.0 hub descriptor. Hub ParseHubDescriptor for Full and High speed hubs.
Definition at line 3198 of file desccheck.cpp.
Referenced by HubCheckUsb2HubDescriptor().
| BOOLEAN NTAPI HubDescCheck30Hub | ( | _In_ const HubDescContext * | Context, |
| _In_reads_bytes_opt_(Length) PUSB_30_HUB_DESCRIPTOR | Descriptor, | ||
| _In_ ULONG | Length | ||
| ) |
USB 3.0 hub descriptor. Hub ParseHubDescriptor for SuperSpeed hubs.
Definition at line 3272 of file desccheck.cpp.
Referenced by HubCheckUsb3HubDescriptor().
| BOOLEAN NTAPI HubDescCheckBosHeader | ( | _In_ const HubDescContext * | Context, |
| _In_reads_bytes_opt_(Length) PUSB_BOS_DESCRIPTOR | Descriptor, | ||
| _In_ ULONG | Length | ||
| ) |
The 5 byte BOS header on its own. BosHeaderValid.
Definition at line 2197 of file desccheck.cpp.
Referenced by DeviceMachine::BosHeaderValid().
| BOOLEAN NTAPI HubDescCheckConfiguration | ( | _In_ const HubDescContext * | Context, |
| _In_reads_bytes_opt_(Length) PUSB_CONFIGURATION_DESCRIPTOR | Descriptor, | ||
| _In_ ULONG | Length, | ||
| _Out_opt_ PBOOLEAN | SupportsStreams | ||
| ) |
Whole configuration descriptor set. SupportsStreams reflects the last companion.
Definition at line 1237 of file desccheck.cpp.
Referenced by DeviceMachine::ConfigDescriptorValid(), HubCheckConfigDescriptor(), and HubValidateHubConfiguration().
| BOOLEAN NTAPI HubDescCheckDevice | ( | _In_ const HubDescContext * | Context, |
| _In_reads_bytes_opt_(Length) PUSB_DEVICE_DESCRIPTOR | Descriptor, | ||
| _In_ ULONG | Length, | ||
| _Inout_opt_ PBOOLEAN | IsBillboard | ||
| ) |
Device descriptor. Length is the bytes returned; IsBillboard is only ever set TRUE.
Definition at line 1367 of file desccheck.cpp.
Referenced by DeviceMachine::DeviceDescriptorValid(), and DeviceMachine::FirstDescriptorValid().
| BOOLEAN NTAPI HubDescCheckMsOsContainerId | ( | _In_ const HubDescContext * | Context, |
| _In_reads_bytes_(Length) const HubMsOsContainerId * | Descriptor, | ||
| _In_ ULONG | Length | ||
| ) |
MS OS 1.0 container ID. ContainerIdKnown.
Definition at line 2541 of file desccheck.cpp.
Referenced by DeviceMachine::ContainerIdKnown().
| BOOLEAN NTAPI HubDescCheckMsOsContainerIdHeader | ( | _In_ const HubDescContext * | Context, |
| _In_reads_bytes_(Length) const HubMsOsHeader * | Descriptor, | ||
| _In_ ULONG | Length | ||
| ) |
MS OS 1.0 container ID header. ContainerIdHeaderValid.
Definition at line 2505 of file desccheck.cpp.
Referenced by DeviceMachine::ContainerIdHeaderValid().
| BOOLEAN NTAPI HubDescCheckMsOsExtConfig | ( | _In_ const HubDescContext * | Context, |
| _In_reads_bytes_(sizeof(HubMsOsExtConfig)) const HubMsOsExtConfig * | Descriptor, | ||
| _In_ ULONG | Length | ||
| ) |
MS OS 1.0 extended configuration. The buffer must hold the 40 bytes the validated header promised, whatever Length says.
Definition at line 2606 of file desccheck.cpp.
Referenced by DeviceMachine::ExtendedConfigValid().
| BOOLEAN NTAPI HubDescCheckMsOsExtConfigHeader | ( | _In_ const HubDescContext * | Context, |
| _In_reads_bytes_(Length) const HubMsOsExtConfigHeader * | Descriptor, | ||
| _In_ ULONG | Length | ||
| ) |
MS OS 1.0 extended configuration header. ExtendedConfigHeaderValid.
Definition at line 2563 of file desccheck.cpp.
Referenced by DeviceMachine::ExtendedConfigHeaderValid().
| BOOLEAN NTAPI HubDescCheckMsOsString | ( | _In_ const HubDescContext * | Context, |
| _In_ const HubMsOsString * | Descriptor | ||
| ) |
MS OS string descriptor (index 0xEE): signature only. MsOsDescriptorValid.
Definition at line 2490 of file desccheck.cpp.
Referenced by DeviceMachine::MsOsDescriptorValid().
| BOOLEAN NTAPI HubDescCheckSerialNumber | ( | _In_ const HubDescContext * | Context, |
| _In_reads_bytes_ *Length PUSB_STRING_DESCRIPTOR | Descriptor, | ||
| _Inout_ PULONG | Length | ||
| ) |
Serial number string. Length is the bytes returned on entry and the string bytes plus room for a NUL on success.
Definition at line 2418 of file desccheck.cpp.
Referenced by DeviceMachine::SerialNumberValid().
| BOOLEAN NTAPI HubDescCheckString | ( | _In_ const HubDescContext * | Context, |
| _In_reads_bytes_(Length) PUSB_STRING_DESCRIPTOR | Descriptor, | ||
| _In_ ULONG | Length, | ||
| _Out_opt_ PULONG | AdjustedLength | ||
| ) |
String descriptor. AdjustedLength is the usable byte count.
Definition at line 2400 of file desccheck.cpp.
Referenced by DeviceMachine::AltModeStringValid(), DeviceMachine::BillboardStringValid(), and HubCacheString().
| PCSTR NTAPI HubDescCodeName | ( | _In_ HubDescCode | Code | ) |
Name of a finding for debug prints.
Definition at line 128 of file desccheck.cpp.
Referenced by HubDescLog(), and HubLogHubFinding().
| PUSB_COMMON_DESCRIPTOR NTAPI HubDescFind | ( | _In_reads_bytes_(TotalLength) PVOID | Buffer, |
| _In_ ULONG | TotalLength, | ||
| _In_ PVOID | Position, | ||
| _In_ UCHAR | Type | ||
| ) |
First descriptor of Type at or after Position, or NULL. Stops on a zero bLength.
Definition at line 3333 of file desccheck.cpp.
Referenced by HubDescFindInterface().
| PUSB_INTERFACE_DESCRIPTOR NTAPI HubDescFindInterface | ( | _In_ PUSB_CONFIGURATION_DESCRIPTOR | Config, |
| _In_ PVOID | Position, | ||
| _In_ LONG | Number, | ||
| _In_ LONG | Alternate, | ||
| _In_ LONG | Class, | ||
| _In_ LONG | SubClass, | ||
| _In_ LONG | Protocol, | ||
| _Out_opt_ PBOOLEAN | HasAlternates | ||
| ) |
First matching interface at or after Position; -1 matches anything. HasAlternates is TRUE when that interface number has other settings.
Definition at line 3371 of file desccheck.cpp.
Referenced by HubPickCompatIdInterface(), DeviceMachine::PrepareConfigLists(), and DeviceMachine::PrepareInterfaceLists().
| VOID NTAPI HubDescInitDeviceContext | ( | _Out_ HubDescContext * | Context, |
| _In_ USHORT | BcdUsb, | ||
| _In_ USB_DEVICE_SPEED | Speed, | ||
| _In_ BOOLEAN | Win8Behavior, | ||
| _In_ ULONG | SspIsochBurstCount, | ||
| _In_opt_ PULONG | Bitmap | ||
| ) |
Device context: reads the global strictness flags. Set Log and LogContext afterwards.
Definition at line 91 of file desccheck.cpp.
Referenced by HubCheckConfigDescriptor(), HubDeviceDescContext(), and DeviceMachine::SerialNumberValid().
| VOID NTAPI HubDescInitHubContext | ( | _Out_ HubDescContext * | Context, |
| _In_ USHORT | BcdUsb, | ||
| _In_ USB_DEVICE_SPEED | Speed | ||
| ) |
Hub context: version and speed only, global flags are never applied.
Definition at line 112 of file desccheck.cpp.
Referenced by HubBuildDescContext().
| VOID NTAPI HubDescLog | ( | _In_ const HubDescContext * | Context, |
| _In_ HubDescCode | Code, | ||
| _In_ BOOLEAN | Warning | ||
| ) |
Records one finding: sets the bitmap bit and calls the log hook.
Definition at line 383 of file desccheck.cpp.
Referenced by CheckBillboardCap(), CheckHeader(), CheckMsOs20Ccgp(), CheckMsOs20CompatibleId(), CheckMsOs20Id(), CheckMsOs20ModelId(), CheckMsOs20Platform(), CheckMsOs20Registry(), CheckMsOs20ResumeTime(), CheckMsOs20SetHeader(), CheckMsOs20Subset(), DeviceMachine::ConfigDescriptorValid(), HubDescCheck20Hub(), HubDescCheck30Hub(), HubDescCheckConfiguration(), HubDescCheckDevice(), HubDescCheckMsOsContainerId(), HubDescCheckMsOsContainerIdHeader(), HubDescCheckMsOsExtConfig(), HubDescCheckMsOsExtConfigHeader(), HubDescCheckSerialNumber(), HubLogConfigTotalLengthMismatch(), if(), Note(), NoteFatal(), WalkMsOs20Set(), and while().
Steps to the next MS OS 2.0 descriptor, or NULL at End. FALSE when a length runs past End.
Definition at line 2647 of file desccheck.cpp.
Referenced by CheckMsOs20Subset(), DeviceMachine::InstallMsOs20Values(), and WalkMsOs20Set().
| else if | ( | Context-> | Speed = = UsbSuperSpeed | ) |
Definition at line 2331 of file desccheck.cpp.
| if | ( | DeviceFlags ! | = NULL | ) |
Definition at line 2337 of file desccheck.cpp.
| if | ( | Found ! | = Descriptor->bNumDeviceCaps | ) |
Definition at line 2320 of file desccheck.cpp.
Definition at line 2326 of file desccheck.cpp.
Definition at line 2331 of file childpdo.cpp.
| if | ( | Length | , |
| Descriptor-> | wTotalLength | ||
| ) |
| if | ( | Length< Descriptor-> | wTotalLength | ) |
Definition at line 2259 of file desccheck.cpp.
| if | ( | ) |
Definition at line 2245 of file desccheck.cpp.
Referenced by CheckBosFixedPart(), CheckMsOs20Subset(), and HubDescFindInterface().
| if | ( | Result ! | = Verdict::Ok | ) |
| if | ( | Result | = =Verdict::Fatal | ) |
|
pure virtual |
|
pure virtual |
|
static |
Definition at line 549 of file desccheck.cpp.
Referenced by CheckContainerIdCap(), CheckMsOs20ModelId(), CheckPlatformCap(), and HubDescCheckMsOsContainerId().
|
static |
Definition at line 2471 of file desccheck.cpp.
Referenced by HubDescCheckMsOsExtConfig().
Compatible and subcompatible IDs: upper case letters, digits, '_', then NUL padding.
Definition at line 2462 of file desccheck.cpp.
Referenced by CheckMsOs20Id(), and IsMsOs10IdValid().
One of the packet sizes full speed allows for control and bulk.
Definition at line 569 of file desccheck.cpp.
Referenced by CheckEndpointType(), and HubDescCheckDevice().
Feature types a subset may hold. Configuration subsets only warn about others.
Definition at line 2734 of file desccheck.cpp.
Referenced by CheckMsOs20Subset().
Version check standing in for RtlIsNtDdiVersionAvailable.
Definition at line 1845 of file desccheck.cpp.
Referenced by CheckMsOs20Platform().
|
static |
Logs a finding and fails the descriptor when the gate is enforced.
Definition at line 463 of file desccheck.cpp.
Referenced by AssumeSize(), CheckBillboardCap(), CheckBosFixedPart(), CheckCapability(), CheckCompanion(), CheckConfigFixedPart(), CheckContainerIdCap(), CheckEndpoint(), CheckEndpointType(), CheckHeader(), CheckIad(), CheckInterface(), CheckPlatformCap(), CheckPowerDeliveryCap(), CheckPreviousEndpoint(), CheckPreviousInterface(), CheckSspCompanion(), CheckStringCore(), CheckSublinkSpeeds(), CheckSuperSpeedCap(), CheckSuperSpeedPlusCap(), CheckUsb20Cap(), HubDescCheck20Hub(), HubDescCheck30Hub(), HubDescCheckDevice(), HubDescCheckMsOsExtConfig(), and main().
|
static |
Logs a finding the walk cannot continue past.
Definition at line 481 of file desccheck.cpp.
Referenced by CheckBillboardCap(), CheckBosFixedPart(), CheckConfigFixedPart(), CheckHeader(), CheckMsOs20Platform(), CheckPlatformCap(), CheckPlatformFeatures(), and CheckStringCore().
In compatibility mode each check starts its caller's slot over, forgiving earlier findings.
Definition at line 494 of file desccheck.cpp.
Referenced by CheckBillboardCap(), CheckBosFixedPart(), CheckCapability(), CheckCompanion(), CheckContainerIdCap(), CheckEndpoint(), CheckHeader(), CheckIad(), CheckInterface(), CheckPlatformCap(), CheckPowerDeliveryCap(), CheckPreviousEndpoint(), CheckPreviousInterface(), CheckSspCompanion(), CheckSuperSpeedCap(), CheckSuperSpeedPlusCap(), and CheckUsb20Cap().
|
static |
Definition at line 3102 of file desccheck.cpp.
| while | ( | ) |
Definition at line 2282 of file desccheck.cpp.
Referenced by __attribute__(), _DibFunction(), _Function_class_(), _Requires_lock_held_(), add_dirent_to_buf(), arith_decode(), BmpFrameDecode_ReadRLE4(), BmpFrameDecode_ReadRLE8(), CabinetExtractFile(), cmyk_ycck_convert(), cmyk_yk_convert(), codeview_add_type_enum_field_list(), codeview_add_type_struct_field_list(), compose_chars(), convert_hex_csv_to_hex(), d2d_command_list_Stream(), d3dx_effect_ApplyParameterBlock(), deflate(), delete_stat_item(), devpresent_SearchAllBuses(), DrawTextFromClipboard(), duplicate_extents(), Ext2SetLinkInfo(), Ext2SetRenameInfo(), ext3_delete_entry(), ExtCopyBlockPointersByExtents(), ExtReadGroupDescriptors(), fill_pnpentity(), find_revoke_record(), fixup_buffer_cr(), FltRegisterFilter(), free_parameter_block(), FT_Bitmap_Blend(), FxUsbCreateConfigRequest(), get_retrieval_pointers(), GetDmiString(), gl_DrawArrays(), GuiConsoleInputThread(), HalpAcpiGetTableFromBios(), Heap32First(), Imm32SerializeBitmap(), InfFindNextMatchLine(), InfGetMultiSzField(), InfpGetMultiSzField(), IntSetClassMenuName(), layout_add_line(), load_chunk_root(), load_mesh_data(), MiInsertInSystemSpace(), MmAlterRegion(), NtfsReadAttribute(), ObQueryNameString(), open_fcb(), ParseSMBiosTables(), partial_stripe_read(), PciFindParentPciFdoExtension(), pdb_process_symbol_imports(), pre_process_data(), prepare_png_alpha(), process_data_simple_main(), query_filesystems(), read_data(), rgb1_gray_convert(), rgb_gray_convert(), rgb_ycc_convert(), RtlNumberOfSetBits(), SmMachine< Machine, Event >::Run(), ScanForUnpartitionedMbrDiskSpace(), scrub_raid6_stripe(), search_dirblock(), send_inode_extref(), send_inode_ref(), SetDiskSignature(), SetupDiDestroyDriverInfoList(), SetupDiEnumDeviceInterfaces(), sinc_hex_vari_process(), sinc_mono_vari_process(), sinc_multichan_vari_process(), sinc_quad_vari_process(), sinc_stereo_vari_process(), slipif_poll(), SmpApiLoop(), stabs_pts_read_range_value(), test_dds_decoder_frame_data(), TIFFReadDirectoryFindFieldInfo(), UnhandledExceptionFilter(), unzReadCurrentFile(), update_chunk_cache_tree(), USBPORT_ParseConfigurationDescriptor(), vfatReleaseFCB(), VgaInterpretCmdStream(), write_metadata_items(), xsltCheckExtPrefix(), xsltCheckExtURI(), xsltGetKey(), xsltInitAllDocKeys(), xsltInitCtxtKey(), xsltInitCtxtKeys(), xsltInitDocKeyTable(), xsltRegisterExtPrefix(), XXH64_digest_endian(), ycc_rgb_convert(), and ycck_cmyk_convert().
| ULONG Advance |
Definition at line 2231 of file desccheck.cpp.
Referenced by AssumeSize(), CheckBillboardCap(), CheckBosFixedPart(), CheckCapability(), CheckCompanion(), CheckContainerIdCap(), CheckEndpoint(), CheckHeader(), CheckIad(), CheckInterface(), CheckPlatformCap(), CheckPowerDeliveryCap(), CheckSspCompanion(), CheckSuperSpeedCap(), CheckSuperSpeedPlusCap(), CheckUsb20Cap(), HubDescCheckBosHeader(), HubDescCheckConfiguration(), and while().
| _In_opt_ ULONG Base = (PUCHAR)Descriptor |
Definition at line 2270 of file desccheck.cpp.
Referenced by _Function_class_(), AcpiExConvertToAscii(), AcpiExConvertToString(), AcpiExDigitsNeeded(), AcpiUtExplicitStrtoul64(), AcpiUtFormatNumber(), AcpiUtInsertDigit(), AcpiUtPutNumber(), AcpiUtStrtoul64(), AcpiUtStrtoulMultiply64(), XhciEndpoint::BuildEndpointConfigure(), BuildPath(), BytesLeft(), CheckHeader(), CheckSize(), CRYPT_AsnDecodeExcludedSubtree(), CRYPT_AsnDecodePermittedSubtree(), CRYPT_AsnDecodeSubtree(), CustomBaseAllocation(), DbgLoadImageSymbols(), DbgUnLoadImageSymbols(), DetectParallelPorts(), DetectSerialPointerPeripheral(), DetectSerialPorts(), Dns_PtrArrayToOffsetArray(), DumpBase(), DumpExFat(), DumpFat(), DumpNtfs(), ExpAllocateLowLevelTable(), Ext2AddMcbExtent(), Ext2ExpandBlock(), Ext2ExpandIndirect(), Ext2ExpandLast(), Ext2GetBlock(), Ext2MapIndirect(), Ext2RemoveMcbExtent(), Ext2TruncateBlock(), Ext2TruncateIndirect(), FAST486_OPCODE_HANDLER(), FindEntry(), FindIoDescriptor(), FixList(), FixupDll(), FltEnumerateVolumes(), GetNlsSectionName(), HaliScanForMPConfigTable(), IOApicRead(), IOAPICRead(), IOApicWrite(), IOAPICWrite(), IsValidNumericString(), KdpDeleteBreakpointRange(), KeAddSystemServiceTable(), KeRemoveSystemServiceTable(), KeSetBaseGdtSelector(), KiInitGdtEntry(), KiSetGdtDescriptorBase(), KiSetGdtEntry(), KiSetGdtEntryEx(), KiSwapContextResume(), LdrpCheckForLoadedDllHandle(), LlbEnvGetMemoryInformation(), LlbEnvGetRamDiskInformation(), LlbHwBuildMemoryMap(), LlbHwLoadOsLoaderFromRam(), XhciControlRing::LocateTrb(), LpcGetIoBase(), LpcGetIoBaseMPU(), LsapFreeHeap(), main(), match_mod(), MiCheckSecuredVad(), MiFillSystemPageDirectory(), MiFindEmptyAddressRangeDownBasedTree(), MiFindEmptyAddressRangeDownTree(), MiFindEmptyAddressRangeInTree(), MiInsertInSystemSpace(), MiLoadImageSection(), MiMapViewInSystemSpace(), MiRemoveFromSystemSpace(), MmBuildMdlForNonPagedPool(), MmCommitSessionMappedView(), MmCreateMdl(), MmFreePagesFromMdl(), MmMapLockedPagesSpecifyCache(), MmProbeAndLockPages(), MmSizeOfMdl(), MmUnlockPages(), MmUnmapLockedPages(), MmUnmapReservedMapping(), MockMmCreateMdl(), modify_dword_dlgproc(), MPChecksum(), NdisReadConfiguration(), NICTestRAM(), NvGetBytesPerPixel(), NvGetCrtc(), XhciControlRing::OnTrbEvent(), PciBridgeIoBase(), PciBridgePrefetchMemoryBase(), PciSize(), PdoGetRangeLength(), PdoQueryResourceRequirements(), PdoQueryResources(), PnpDecodeFixedMemory(), PPBridge_SaveCurrentSettings(), PrintOffsetString(), PspIsDescriptorValid(), Rs232PortInUse(), RtlImageNtHeader(), RtlImageNtHeaderEx(), RtlInt64ToUnicodeString(), RtlIntegerToUnicode(), RtlIntegerToUnicodeString(), RtlLargeIntegerToChar(), RtlpDphAllocateVm(), RtlpDphFreeVm(), RtlpDphGrowVirtual(), RtlpDphProtectVm(), RtlpDphSetProtectionBeforeUse(), RtlpImageNtHeaderEx(), RtlpPageHeapCreate(), RtlpSecMemFreeVirtualMemory(), RtlpStringToUlong(), RtlpStringToUlongBase(), SimpleAllocation(), SimpleErrorChecks(), XhciUsbDevice::StartReconfigure(), StressTesting(), strtoul(), SumBase(), SumExFat(), SumFat(), SumNtfs(), SystemProcessTestWorker(), test_pack_IMAGE_EXPORT_DIRECTORY(), VfatCommonRead(), VfatWrite(), VidInitialize(), vsnprintf(), WriteProcessMemory(), XhciBulkSegmentHas(), XhciCtlWrap(), XhciIsochSegmentHas(), XhciPackFrameSnapshot(), and ZeroBitsTest().
Definition at line 2271 of file desccheck.cpp.
Definition at line 2269 of file desccheck.cpp.
Referenced by _Function_class_(), AcpiEvAddressSpaceDispatch(), AssumeSize(), CheckBillboardCap(), CheckBosFixedPart(), CheckCapability(), CheckCompanion(), CheckConfigFixedPart(), CheckContainerIdCap(), CheckEndpoint(), CheckEndpointType(), CheckHeader(), CheckIad(), CheckInterface(), CheckMsOs20Ccgp(), CheckMsOs20CompatibleId(), CheckMsOs20Feature(), CheckMsOs20Id(), CheckMsOs20ModelId(), CheckMsOs20Platform(), CheckMsOs20Registry(), CheckMsOs20ResumeTime(), CheckMsOs20SetHeader(), CheckMsOs20Subset(), CheckPlatformCap(), CheckPlatformFeatures(), CheckPowerDeliveryCap(), CheckPreviousEndpoint(), CheckSspCompanion(), CheckStringCore(), CheckSublinkSpeeds(), CheckSuperSpeedCap(), CheckSuperSpeedPlusCap(), CheckUsb20Cap(), CreatePinCallback(), CreateTipText(), FindForVar(), GateApplies(), HidClass_ReadCompleteIrp(), HidUsb_ResetWorkerRoutine(), IKsDevice_PnpPostStart(), IKsDevice_PnpStartDevice(), IKsFilter_FilterCentricWorker(), IoCompletion(), KmtInitTestContext(), KsCreateDefaultAllocatorEx(), KsDisableEvent(), KsFreeEventList(), KspDisableEvent(), KspEnableEvent(), KspFreeEventList(), KspInstallBusEnumInterface(), KspRemoveBusInterface(), KspSynchronizedEventRoutine(), KsRemoveBusEnumInterface(), Note(), NoteFatal(), PiAttachFilterDriversCallback(), SetVolumeCallback(), StartCheck(), Test_AllocLargeScaled(), Test_AllocLargeUnscaled(), Test_AllocSmall(), Test_ChainedInfo(), Test_ContextPointers(), Test_Epilog(), Test_PartialProlog(), Test_PushMachframe(), Test_PushNonvol(), Test_SaveNonvol(), Test_SaveNonvolFar(), Test_SaveXmm128(), Test_SaveXmm128Far(), Test_SetFpReg(), Test_SpareCode(), Test_TypicalProlog(), UDFDOSNameOsNative(), USBSTOR_CBWCompletionRoutine(), USBSTOR_CompletionRoutine(), USBSTOR_CSWCompletionRoutine(), USBSTOR_DataCompletionRoutine(), USBSTOR_ResetPipeWorkItemRoutine(), USBSTOR_SyncCompletionRoutine(), and WalkMsOs20Set().
Definition at line 2228 of file desccheck.cpp.
Referenced by CheckMsOs20Subset(), HubDescCheckConfiguration(), HubIoStripLinkPrefix(), CConsole::ReadLine(), ui_create_cursor(), ui_destroy_cursor(), ui_set_cursor(), UsbdexBuildSelectConfigUrb(), WalkMsOs20Set(), while(), and DeviceMachine::WriteCustomProperties().
| _In_ ULONG _Out_opt_ HubBosInfo _Out_opt_ PUSHORT _Out_opt_ PUSHORT _Inout_opt_ PBOOLEAN _Inout_opt_ HubLpmInfo _Inout_opt_ PULONG DeviceFlags |
Definition at line 2222 of file desccheck.cpp.
Referenced by if(), and QueryDeviceInformation().
| PUCHAR End |
Definition at line 2229 of file desccheck.cpp.
Referenced by _IRQL_requires_max_(), AckPageDlgProc(), AcpiHwValidateIoRequest(), AcpiPsGetNextNamestring(), AcpiUtBoundStringOutput(), AcpiUtChecksum(), AcpiUtFormatNumber(), FxResourceCollection::AddAt(), ArbiterLibAddOrdering(), ArbiterLibIsConflictWithMmConfigRange(), ArbiterLibReserveRange(), ArbpAddOrderingCallback(), ArbpAddRangeCallback(), ArbpAddReservedCallback(), ArbpExcludeOrderingRange(), ArbpMmConfigCallback(), ArbpSeedRangeList(), ArbpWritePriority(), AtaDeviceIsXboxDrive(), AtaPdoFillIdentificationStrings(), AtaPdoQueryId(), AtaTrimIdString(), Bus_AddDevice(), CcZeroData(), CheckBosFixedPart(), CheckHeader(), CheckMsOs20Feature(), CheckMsOs20Subset(), cmd_call(), CmpDoSort(), FxDmaEnabler::ConfigureBusMasterAdapters(), FxDmaEnabler::ConfigureSystemAdapter(), ConPagerWorker(), CopyLines(), CreateSelectionRgn(), FxCmResList::CreateWdmList(), FxIoResReqList::CreateWdmList(), DECLARE_INTERFACE_(), FxIoQueue::Dispose(), FxDmaTransactionBase::DmaCompleted(), DuplicateEnvironment(), Ext2BuildExtents(), Ext2ExpandExtent(), Ext2ExpandFile(), Ext2ExpandIndirect(), Ext2InitializeZone(), Ext2LookupFile(), Ext2TruncateExtent(), Ext2TruncateIndirect(), Ext2ZeroData(), FindOrAddString(), XhciIsochRing::FlagMissedPackets(), ForDir(), ForF(), ForLoop(), FreeLdrEnumerateBootEntries(), FxUsbValidateDescriptorType(), GenericListKeyPress(), GetSelectionBeginEnd(), GetTimeZoneListIndex(), gray_render_line(), gray_render_scanline(), GuiCopyFromTextModeBuffer(), HubBosSpanFits(), HubChildInitPipes(), HubChildReadUsb20Lpm(), HubDescCheckBosHeader(), HubDescFind(), HubDescNextMsOs20(), HubDropCapsPastEnd(), HubFindSelectedInterface(), HubHasMultiTtInterface(), HubIoStripLinkPrefix(), HubPickCompanions(), HubTypeFits(), FxDmaEnabler::Initialize(), InitRomRange(), DeviceMachine::InstallMsOs20Values(), IntDrawArc(), InternetCheckConnectionW(), IntFillArc(), IsaPdoQueryId(), KsepMultiSzToShims(), LdrpNameToOrdinal(), MiFreePoolPages(), MupGetProviderInformation(), mwsNSPLookupServiceNext(), NormalizeArcDeviceName(), NSP_GetServiceByNameHeapAllocW(), NSP_LookupServiceNextW(), NtfsWriteVolumeBitmap(), ParseTags(), PciAddCurrentPlacementRequirement(), PciEcamParseWindow(), PciIdeXPdoQueryId(), PciPdoReadWriteConfig(), PdoHandleQueryCompatibleId(), PdoHandleQueryHardwareId(), PiPropGetInterfaceReference(), ProcessRelocations(), RegpCreateOrOpenKey(), FxDmaPacketTransaction::ReserveAdapter(), RpnpParseExpression(), RtlAddRange(), RtlDeleteRange(), RtlDosSearchPath_Ustr(), RtlIpv4AddressToStringA(), RtlIpv4AddressToStringExA(), RtlIpv4AddressToStringExW(), RtlIpv4AddressToStringW(), RtlIpv6AddressToStringW(), RtlIsDosDeviceName_Ustr(), RtlIsRangeAvailable(), RtlpConflictsOnAdd(), RtlpDphIsPageHeapBlock(), RtlpWindowIsAvailable(), DeviceMachine::SelectConfigValid(), CRichEdit::SetRangeFormatting(), SetupCreateDirectory(), FxDmaPacketTransaction::StageTransfer(), StringHashTableInit(), SubstituteForVars(), SubstituteVar(), SubstituteVars(), Test_SyscallPerformance(), Test_tcstoul(), TestAddConflict(), TestIsAvailable(), TestSharedFlag(), TestSharedNullCallback(), TestStartEqualsEnd(), TreeListMouseClick(), UcxClientSelectConfigXrbBuild(), UmaMgrInitialize(), UndoRedirection(), USBCCGP_CountAssociationDescriptors(), USBCCGP_GetAssociationDescriptorAtIndex(), USBCCGP_InitInterfaceListOfFunctionDescriptor(), UsbdexBuildSelectConfigUrb(), vsnprintf(), WalkMsOs20Set(), while(), and XhciIsochPacketLength().
| return FALSE |
Definition at line 3191 of file desccheck.cpp.
Referenced by AssumeSize(), CheckCompanion(), CheckEndpoint(), CheckInterface(), CheckMsOs20Ccgp(), CheckMsOs20CompatibleId(), CheckMsOs20Id(), CheckMsOs20ModelId(), CheckMsOs20Registry(), CheckMsOs20ResumeTime(), CheckMsOs20SetHeader(), CheckMsOs20Subset(), CheckPreviousEndpoint(), CheckSspCompanion(), CheckSublinkSpeeds(), CheckSuperSpeedCap(), GateApplies(), HubDescCheck20Hub(), HubDescCheck30Hub(), HubDescCheckConfiguration(), HubDescCheckDevice(), HubDescCheckMsOsContainerId(), HubDescCheckMsOsContainerIdHeader(), HubDescCheckMsOsExtConfig(), HubDescCheckMsOsExtConfigHeader(), HubDescCheckMsOsString(), HubDescCheckSerialNumber(), HubDescFindInterface(), HubDescNextMsOs20(), if(), IsAllZero(), IsMsOs10IdValid(), NoteFatal(), WalkMsOs20Set(), and while().
Definition at line 3190 of file desccheck.cpp.
| ULONG Found = 0 |
Definition at line 2232 of file desccheck.cpp.
Referenced by while().
Definition at line 42 of file desccheck.cpp.
Referenced by CheckPlatformCap().
Definition at line 45 of file desccheck.cpp.
Referenced by CheckPlatformCap().
Definition at line 2217 of file desccheck.cpp.
Definition at line 2216 of file desccheck.cpp.
Referenced by CheckStringCore(), HubDescCheckConfiguration(), and IsAllZero().
Definition at line 2230 of file desccheck.cpp.
Referenced by Cardbus_SaveCurrentSettings(), Device_ChangeResourceSettings(), Device_SaveLimits(), ExpFindEntryForThread(), ExpFindFreeEntry(), ExReleaseResourceForThreadLite(), ExtractName(), FAST486_OPCODE_HANDLER(), Fast486ReadMemory(), Fast486WriteMemory(), GdiSetBatchLimit(), HubBoundedLength(), KdpDeleteBreakpointRange(), KeAddSystemServiceTable(), KeInitializeSemaphore(), KiSetGdtDescriptorLimit(), KiSetGdtEntry(), KiSetGdtEntryEx(), KiTimerExpiration(), PciAddCurrentPlacementRequirement(), PciAddResizableBarRequirements(), PciBridgeIoLimit(), PciBridgePrefetchMemoryLimit(), PciBuildRequirementsList(), PciFillResizedBarRequirement(), PciIsRequirementDescriptor(), PciPdoReadWriteConfig(), PerfDataGetCommitChargeLimitK(), PPBridge_SaveCurrentSettings(), PPBridge_SaveLimits(), XhciInterrupters::Prepare(), XhciInterrupters::SecondaryCountFor(), SerialInterruptService(), XhciBulkRing::SizeStage(), XhciIsochRing::SizeStage(), UcxEvtQueryStackInterface(), while(), XhciControlRing::WriteTd(), and XhciBulkSegmentHas().
| Walk Lpm = Lpm |
Definition at line 2221 of file desccheck.cpp.
Referenced by DeviceMachine::BosValid(), CheckUsb20Cap(), HubChildComputeLpm20(), and HubChildReadUsb20Lpm().
| Walk Ltm = LtmCapable |
Definition at line 2275 of file desccheck.cpp.
Referenced by DeviceMachine::BosValid().
| _In_ ULONG _Out_opt_ HubBosInfo _Out_opt_ PUSHORT _Out_opt_ PUSHORT _Inout_opt_ PBOOLEAN LtmCapable |
Definition at line 2220 of file desccheck.cpp.
| Result = Verdict::Ok |
Definition at line 2226 of file desccheck.cpp.
Referenced by AssumeSize(), CheckBillboardCap(), CheckBosFixedPart(), CheckCapability(), CheckCompanion(), CheckConfigFixedPart(), CheckContainerIdCap(), CheckEndpoint(), CheckEndpointType(), CheckHeader(), CheckIad(), CheckInterface(), CheckMsOs20Platform(), CheckPlatformCap(), CheckPlatformFeatures(), CheckPowerDeliveryCap(), CheckPreviousEndpoint(), CheckPreviousInterface(), CheckSspCompanion(), CheckStringCore(), CheckSublinkSpeeds(), CheckSuperSpeedCap(), CheckSuperSpeedPlusCap(), CheckUsb20Cap(), HubDescCheck20Hub(), HubDescCheck30Hub(), HubDescCheckBosHeader(), HubDescCheckConfiguration(), HubDescCheckDevice(), HubDescCheckMsOsExtConfig(), HubDescCheckString(), Note(), NoteFatal(), StartCheck(), and while().
| _In_ ULONG _In_ const HubMsOs20SetInfo* SetInfo |
Definition at line 3183 of file desccheck.cpp.
Referenced by DECLARE_INTERFACE_(), HubCacheMsOs20SetInfoFromBos(), FxUsbInterface::SelectSetting(), and WalkMsOs20Set().
| TRUE |
Definition at line 2267 of file desccheck.cpp.
Referenced by AssumeSize(), CheckCompanion(), CheckContainerIdCap(), CheckEndpoint(), CheckMsOs20Ccgp(), CheckMsOs20CompatibleId(), CheckMsOs20Feature(), CheckMsOs20Id(), CheckMsOs20ModelId(), CheckMsOs20Platform(), CheckMsOs20Registry(), CheckMsOs20ResumeTime(), CheckMsOs20SetHeader(), CheckMsOs20Subset(), CheckPowerDeliveryCap(), CheckPreviousEndpoint(), CheckPreviousInterface(), CheckSspCompanion(), CheckSublinkSpeeds(), CheckUsb20Cap(), GateApplies(), HubDescCheckConfiguration(), HubDescCheckDevice(), HubDescCheckMsOsContainerId(), HubDescCheckMsOsContainerIdHeader(), HubDescCheckMsOsExtConfigHeader(), HubDescCheckMsOsString(), HubDescCheckSerialNumber(), HubDescFindInterface(), HubDescInitHubContext(), HubDescNextMsOs20(), IsAllZero(), IsMsOs10IdValid(), MsOs20AllowedIn(), WalkMsOs20Set(), and while().
| Walk U1 = U1ExitLatency |
Definition at line 2273 of file desccheck.cpp.
Definition at line 2218 of file desccheck.cpp.
| Walk U2 = U2ExitLatency |
Definition at line 2274 of file desccheck.cpp.
Definition at line 2219 of file desccheck.cpp.
Definition at line 2227 of file desccheck.cpp.
Referenced by $if(), _IRQL_requires_max_(), AcpiGetObjectInfo(), CRegTreeOptions::AddItemsFromRegistry(), DeviceMachine::AltModeStringValid(), DeviceMachine::BosValid(), HubMachine::CacheConfigDescriptor(), CheckMsOs20CompatibleId(), CheckMsOs20ResumeTime(), CheckMsOs20SetHeader(), CheckMsOs20Subset(), ExUuidCreate(), FAST486_OPCODE_HANDLER(), Fast486CallGate(), Fast486TaskSwitch(), FATGetNextDirEntry(), HubDescCheckConfiguration(), HubDescCheckMsOsContainerIdHeader(), HubDescCheckMsOsExtConfigHeader(), HubDescCheckSerialNumber(), if(), IntCreateRegistryPath(), MempAllocatePTE(), MempGetOrCreatePageDir(), MempIsPageMapped(), MempMapSinglePage(), MempSetupPaging(), MempUnmapPage(), PiPropCheckPayload(), RtlpDebugPageHeapValidate(), START_TEST(), UcxValidatePipeHandle(), ValidateFlags(), WalkMsOs20Set(), while(), WinLdrMapSpecialPages(), and WinLdrpMapApic().
| BosWalk Walk |
Definition at line 2225 of file desccheck.cpp.
Referenced by CheckBillboardCap(), CheckCapability(), CheckCompanion(), CheckConfigFixedPart(), CheckContainerIdCap(), CheckEndpoint(), CheckEndpointType(), CheckIad(), CheckInterface(), CheckMsOs20Platform(), CheckPlatformCap(), CheckPlatformFeatures(), CheckPowerDeliveryCap(), CheckPreviousEndpoint(), CheckPreviousInterface(), CheckSspCompanion(), CheckSuperSpeedCap(), CheckSuperSpeedPlusCap(), CheckUsb20Cap(), HubChildInitPipes(), HubDescCheckConfiguration(), HubPickCompanions(), HubTypeFits(), and while().