/ohos5.0/drivers/peripheral/usb/sample/host/src/ |
H A D | usbhost_pnp_test.c | 64 struct UsbPnpNotifyMatchInfoTable infoTable; in TestInitPnpInfo() local 65 infoTable.usbDevAddr = 0; in TestInitPnpInfo() 66 infoTable.devNum = 0; in TestInitPnpInfo() 68 infoTable.busNum = -1; in TestInitPnpInfo() 70 infoTable.busNum = 0; in TestInitPnpInfo() 73 infoTable.deviceInfo.vendorId = 0xFFF0; in TestInitPnpInfo() 74 infoTable.deviceInfo.productId = 0xFFF0; in TestInitPnpInfo() 75 infoTable.deviceInfo.bcdDeviceLow = 0x0000; in TestInitPnpInfo() 77 infoTable.deviceInfo.deviceClass = 0; in TestInitPnpInfo() 78 infoTable.deviceInfo.deviceSubClass = 0; in TestInitPnpInfo() [all …]
|
/ohos5.0/drivers/hdf_core/adapter/khdf/linux/model/usb/host/src/ |
H A D | usb_pnp_notify.c | 217 struct UsbPnpNotifyMatchInfoTable *infoTable) in UsbPnpNotifyAddInterfaceInitInfo() argument 233 infoTable->numInfos = 1; in UsbPnpNotifyAddInterfaceInitInfo() 253 … infoTable->interfaceInfo[j - 1].interfaceClass, infoTable->interfaceInfo[j - 1].interfaceSubClass, in UsbPnpNotifyAddInterfaceInitInfo() 254 …infoTable->interfaceInfo[j - 1].interfaceProtocol, infoTable->interfaceInfo[j - 1].interfaceNumber… in UsbPnpNotifyAddInterfaceInitInfo() 256 infoTable->numInfos = j; in UsbPnpNotifyAddInterfaceInitInfo() 284 data = (const void *)(&infoTable); in UsbPnpNotifyInitInfo() 452 infoTable->busNum = -1; in TestPnpNotifyFillInfoTable() 480 struct UsbPnpNotifyMatchInfoTable infoTable; in TestPnpNotifyHdfSendEvent() local 494 TestPnpNotifyFillInfoTable(&infoTable); in TestPnpNotifyHdfSendEvent() 502 …__func__, g_usbPnpNotifyCmdType, infoTable.usbDevAddr, infoTable.devNum, infoTable.busNum, infoTab… in TestPnpNotifyHdfSendEvent() [all …]
|
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos/model/usb/host/src/ |
H A D | usb_pnp_notify.c | 245 struct UsbPnpNotifyMatchInfoTable *infoTable) in UsbPnpNotifyAddInterfaceInitInfo() argument 261 infoTable->numInfos = 1; in UsbPnpNotifyAddInterfaceInitInfo() 281 … infoTable->interfaceInfo[j - 1].interfaceClass, infoTable->interfaceInfo[j - 1].interfaceSubClass, in UsbPnpNotifyAddInterfaceInitInfo() 282 …infoTable->interfaceInfo[j - 1].interfaceProtocol, infoTable->interfaceInfo[j - 1].interfaceNumber… in UsbPnpNotifyAddInterfaceInitInfo() 284 infoTable->numInfos = j; in UsbPnpNotifyAddInterfaceInitInfo() 312 data = (const void *)(&infoTable); in UsbPnpNotifyInitInfo() 472 infoTable->busNum = -1; in TestPnpNotifyFillInfoTable() 501 struct UsbPnpNotifyMatchInfoTable infoTable; in TestPnpNotifyHdfSendEvent() local 515 TestPnpNotifyFillInfoTable(&infoTable); in TestPnpNotifyHdfSendEvent() 523 …__func__, g_usbPnpNotifyCmdType, infoTable.usbDevAddr, infoTable.devNum, infoTable.busNum, infoTab… in TestPnpNotifyHdfSendEvent() [all …]
|
/ohos5.0/drivers/hdf_core/framework/model/usb/src/ |
H A D | usb_wrapper.cpp | 21 void UsbDDKDriverMatchFailEvent(const struct UsbPnpNotifyMatchInfoTable *infoTable) in UsbDDKDriverMatchFailEvent() argument 25 "DEVICE_NAME", std::to_string(infoTable->busNum) + "-" + std::to_string(infoTable->devNum), in UsbDDKDriverMatchFailEvent() 26 …"DEVICE_PROTOCOL", infoTable->deviceInfo.deviceProtocol, "DEVICE_CLASS", infoTable->deviceInfo.dev… in UsbDDKDriverMatchFailEvent() 27 "VENDOR_ID", infoTable->deviceInfo.vendorId, "PRODUCT_ID", infoTable->deviceInfo.productId, in UsbDDKDriverMatchFailEvent()
|
H A D | usb_ddk_pnp_loader.c | 778 serviceInfo.devNum = infoTable->devNum; in UsbDdkPnpLoaderrAddPnpDevice() 779 serviceInfo.busNum = infoTable->busNum; in UsbDdkPnpLoaderrAddPnpDevice() 951 for (i = 0; i < infoTable->numInfos; i++) { in UsbDdkPnpLoaderDevice() 958 UsbDDKDriverMatchFailEvent(infoTable); in UsbDdkPnpLoaderDevice() 991 struct UsbPnpNotifyMatchInfoTable *infoTable = NULL; in UsbDdkPnpLoaderEventReceived() local 1003 if ((!flag) || (infoTable == NULL)) { in UsbDdkPnpLoaderEventReceived() 1016 if ((!flag) || (infoTable == NULL)) { in UsbDdkPnpLoaderEventReceived() 1021 removeInfo.removeType = infoTable->removeType; in UsbDdkPnpLoaderEventReceived() 1022 removeInfo.usbDevAddr = infoTable->usbDevAddr; in UsbDdkPnpLoaderEventReceived() 1023 removeInfo.devNum = infoTable->devNum; in UsbDdkPnpLoaderEventReceived() [all …]
|
/ohos5.0/drivers/peripheral/usb/hdi_service/src/ |
H A D | usb_impl.cpp | 895 … std::to_string(infoTable->busNum) + "-" + std::to_string(infoTable->devNum), "DEVICE_PROTOCOL", in ReportUsbdSysEvent() 896 …infoTable->deviceInfo.deviceProtocol, "DEVICE_CLASS", infoTable->deviceInfo.deviceClass, "VENDOR_I… in ReportUsbdSysEvent() 897 … infoTable->deviceInfo.vendorId, "PRODUCT_ID", infoTable->deviceInfo.productId, "VERSION", "1.0.0", in ReportUsbdSysEvent() 923 UsbPnpNotifyMatchInfoTable *infoTable = nullptr; in UsbdPnpNotifyAddAndRemoveDevice() local 925 if (!flag || infoTable == nullptr) { in UsbdPnpNotifyAddAndRemoveDevice() 930 if (infoTable->deviceInfo.deviceClass == BASE_CLASS_HUB) { in UsbdPnpNotifyAddAndRemoveDevice() 941 … ret = UsbdDispatcher::UsbdDeviceCreateAndAttach(super, infoTable->busNum, infoTable->devNum); in UsbdPnpNotifyAddAndRemoveDevice() 942 ReportUsbdSysEvent(ret, infoTable); in UsbdPnpNotifyAddAndRemoveDevice() 943 USBDeviceInfo info = {ACT_DEVUP, infoTable->busNum, infoTable->devNum}; in UsbdPnpNotifyAddAndRemoveDevice() 950 UsbdDispatcher::UsbdDeviceDettach(super, infoTable->busNum, infoTable->devNum); in UsbdPnpNotifyAddAndRemoveDevice() [all …]
|
/ohos5.0/drivers/peripheral/usb/ddk_service/src/ |
H A D | usb_ddk_service.cpp | 87 struct UsbPnpNotifyMatchInfoTable *infoTable = NULL; in UsbdPnpEventHandler() local 88 auto flag = HdfSbufReadBuffer(data, (const void **)(&infoTable), &infoSize); in UsbdPnpEventHandler() 89 if ((!flag) || (infoTable == NULL)) { in UsbdPnpEventHandler() 95 if (UsbDdkGetRecordByVal({0, infoTable->busNum, infoTable->devNum}, interfaceHandle)) { in UsbdPnpEventHandler()
|
/ohos5.0/drivers/hdf_core/framework/model/usb/include/ |
H A D | usb_wrapper.h | 17 void UsbDDKDriverMatchFailEvent(const struct UsbPnpNotifyMatchInfoTable *infoTable);
|
/ohos5.0/drivers/peripheral/usb/hdf_usb/include/ |
H A D | usb_wrapper.h | 17 void UsbDDKDriverMatchFailEvent(const struct UsbPnpNotifyMatchInfoTable *infoTable);
|
/ohos5.0/drivers/peripheral/usb/hdi_service/include/ |
H A D | usb_impl.h | 147 static void ReportUsbdSysEvent(int32_t code, UsbPnpNotifyMatchInfoTable *infoTable);
|