Home
last modified time | relevance | path

Searched refs:infoTable (Results 1 – 10 of 10) sorted by relevance

/ohos5.0/drivers/peripheral/usb/sample/host/src/
H A Dusbhost_pnp_test.c64 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 Dusb_pnp_notify.c217 struct UsbPnpNotifyMatchInfoTable *infoTable) in UsbPnpNotifyAddInterfaceInitInfo() argument
233 infoTable->numInfos = 1; in UsbPnpNotifyAddInterfaceInitInfo()
253infoTable->interfaceInfo[j - 1].interfaceClass, infoTable->interfaceInfo[j - 1].interfaceSubClass, in UsbPnpNotifyAddInterfaceInitInfo()
254infoTable->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 Dusb_pnp_notify.c245 struct UsbPnpNotifyMatchInfoTable *infoTable) in UsbPnpNotifyAddInterfaceInitInfo() argument
261 infoTable->numInfos = 1; in UsbPnpNotifyAddInterfaceInitInfo()
281infoTable->interfaceInfo[j - 1].interfaceClass, infoTable->interfaceInfo[j - 1].interfaceSubClass, in UsbPnpNotifyAddInterfaceInitInfo()
282infoTable->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 Dusb_wrapper.cpp21 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 Dusb_ddk_pnp_loader.c778 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 Dusb_impl.cpp895 … std::to_string(infoTable->busNum) + "-" + std::to_string(infoTable->devNum), "DEVICE_PROTOCOL", in ReportUsbdSysEvent()
896infoTable->deviceInfo.deviceProtocol, "DEVICE_CLASS", infoTable->deviceInfo.deviceClass, "VENDOR_I… in ReportUsbdSysEvent()
897infoTable->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 Dusb_ddk_service.cpp87 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 Dusb_wrapper.h17 void UsbDDKDriverMatchFailEvent(const struct UsbPnpNotifyMatchInfoTable *infoTable);
/ohos5.0/drivers/peripheral/usb/hdf_usb/include/
H A Dusb_wrapper.h17 void UsbDDKDriverMatchFailEvent(const struct UsbPnpNotifyMatchInfoTable *infoTable);
/ohos5.0/drivers/peripheral/usb/hdi_service/include/
H A Dusb_impl.h147 static void ReportUsbdSysEvent(int32_t code, UsbPnpNotifyMatchInfoTable *infoTable);