Home
last modified time | relevance | path

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

/drivers/peripheral/usb/sample/host/src/
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()
76 infoTable.deviceInfo.bcdDeviceHigh = 0x0000; in TestInitPnpInfo()
77 infoTable.deviceInfo.deviceClass = 0; in TestInitPnpInfo()
[all …]
/drivers/hdf_core/framework/model/usb/src/
Dusb_wrapper.cpp17 void UsbDDKDriverMatchFailEvent(const struct UsbPnpNotifyMatchInfoTable *infoTable) in UsbDDKDriverMatchFailEvent() argument
20 "DEVICE_NAME", std::to_string(infoTable->busNum) + "-" + std::to_string(infoTable->devNum), in UsbDDKDriverMatchFailEvent()
21 …"DEVICE_PROTOCOL", infoTable->deviceInfo.deviceProtocol, "DEVICE_CLASS", infoTable->deviceInfo.dev… in UsbDDKDriverMatchFailEvent()
22 "VENDOR_ID", infoTable->deviceInfo.vendorId, "PRODUCT_ID", infoTable->deviceInfo.productId, in UsbDDKDriverMatchFailEvent()
Dusb_ddk_pnp_loader.c768 …const struct UsbPnpNotifyMatchInfoTable *infoTable, const struct UsbPnpMatchIdTable *idTable, uint… in UsbDdkPnpLoaderrAddPnpDevice() argument
770 struct UsbPnpDeviceListTable *deviceListTable = UsbDdkPnpLoaderAddInterface(infoTable, idTable); in UsbDdkPnpLoaderrAddPnpDevice()
778 serviceInfo.devNum = infoTable->devNum; in UsbDdkPnpLoaderrAddPnpDevice()
779 serviceInfo.busNum = infoTable->busNum; in UsbDdkPnpLoaderrAddPnpDevice()
808 ret = UsbDdkPnpLoaderDeviceListAdd(infoTable, idTable); in UsbDdkPnpLoaderrAddPnpDevice()
821 const struct UsbPnpNotifyMatchInfoTable *infoTable, struct UsbPnpMatchIdTable **matchIdTable) in UsbDdkPnpLoaderAddDevice() argument
828 if (!UsbDdkPnpLoaderMatchDevice(infoTable, idTable)) { in UsbDdkPnpLoaderAddDevice()
832 if (!UsbDdkPnpLoaderMatchOneIdIntf(infoTable, index, idTable)) { in UsbDdkPnpLoaderAddDevice()
840 ret = UsbDdkPnpLoaderrAddPnpDevice(usbPnpManagerDevice, infoTable, idTable, cmdId); in UsbDdkPnpLoaderAddDevice()
940 …struct HdfDeviceObject *usbPnpManagerDevice, const struct UsbPnpNotifyMatchInfoTable *infoTable, u… in UsbDdkPnpLoaderDevice() argument
[all …]
/drivers/hdf_core/adapter/khdf/linux/model/usb/host/src/
Dusb_pnp_notify.c217 struct UsbPnpNotifyMatchInfoTable *infoTable) in UsbPnpNotifyAddInterfaceInitInfo() argument
233 infoTable->numInfos = 1; in UsbPnpNotifyAddInterfaceInitInfo()
234 infoTable->interfaceInfo[0].interfaceClass = infoData.infoData->interfaceClass; in UsbPnpNotifyAddInterfaceInitInfo()
235 infoTable->interfaceInfo[0].interfaceSubClass = infoData.infoData->interfaceSubClass; in UsbPnpNotifyAddInterfaceInitInfo()
236 infoTable->interfaceInfo[0].interfaceProtocol = infoData.infoData->interfaceProtocol; in UsbPnpNotifyAddInterfaceInitInfo()
237 infoTable->interfaceInfo[0].interfaceNumber = infoData.infoData->interfaceNumber; in UsbPnpNotifyAddInterfaceInitInfo()
246infoTable->interfaceInfo[j].interfaceClass = deviceInfo->info.interfaceInfo[i].interfaceClass; in UsbPnpNotifyAddInterfaceInitInfo()
247infoTable->interfaceInfo[j].interfaceSubClass = deviceInfo->info.interfaceInfo[i].interfaceSubClas… in UsbPnpNotifyAddInterfaceInitInfo()
248infoTable->interfaceInfo[j].interfaceProtocol = deviceInfo->info.interfaceInfo[i].interfaceProtoco… in UsbPnpNotifyAddInterfaceInitInfo()
249infoTable->interfaceInfo[j].interfaceNumber = deviceInfo->info.interfaceInfo[i].interfaceNumber; in UsbPnpNotifyAddInterfaceInitInfo()
[all …]
/drivers/hdf_core/adapter/khdf/liteos/model/usb/host/src/
Dusb_pnp_notify.c245 struct UsbPnpNotifyMatchInfoTable *infoTable) in UsbPnpNotifyAddInterfaceInitInfo() argument
261 infoTable->numInfos = 1; in UsbPnpNotifyAddInterfaceInitInfo()
262 infoTable->interfaceInfo[0].interfaceClass = infoData.infoData->interfaceClass; in UsbPnpNotifyAddInterfaceInitInfo()
263 infoTable->interfaceInfo[0].interfaceSubClass = infoData.infoData->interfaceSubClass; in UsbPnpNotifyAddInterfaceInitInfo()
264 infoTable->interfaceInfo[0].interfaceProtocol = infoData.infoData->interfaceProtocol; in UsbPnpNotifyAddInterfaceInitInfo()
265 infoTable->interfaceInfo[0].interfaceNumber = infoData.infoData->interfaceNumber; in UsbPnpNotifyAddInterfaceInitInfo()
274infoTable->interfaceInfo[j].interfaceClass = deviceInfo->info.interfaceInfo[i].interfaceClass; in UsbPnpNotifyAddInterfaceInitInfo()
275infoTable->interfaceInfo[j].interfaceSubClass = deviceInfo->info.interfaceInfo[i].interfaceSubClas… in UsbPnpNotifyAddInterfaceInitInfo()
276infoTable->interfaceInfo[j].interfaceProtocol = deviceInfo->info.interfaceInfo[i].interfaceProtoco… in UsbPnpNotifyAddInterfaceInitInfo()
277infoTable->interfaceInfo[j].interfaceNumber = deviceInfo->info.interfaceInfo[i].interfaceNumber; in UsbPnpNotifyAddInterfaceInitInfo()
[all …]
/drivers/hdf_core/framework/model/usb/include/
Dusb_wrapper.h17 void UsbDDKDriverMatchFailEvent(const struct UsbPnpNotifyMatchInfoTable *infoTable);
/drivers/peripheral/usb/ddk_service/src/
Dusb_ddk_service.cpp82 struct UsbPnpNotifyMatchInfoTable *infoTable = NULL; in UsbdPnpEventHandler() local
83 auto flag = HdfSbufReadBuffer(data, (const void **)(&infoTable), &infoSize); in UsbdPnpEventHandler()
84 if ((!flag) || (infoTable == NULL)) { in UsbdPnpEventHandler()
90 ReleaseUsbInterface(UsbDdkGetRecordByVal({0, infoTable->busNum, infoTable->devNum})); in UsbdPnpEventHandler()
/drivers/peripheral/usb/hdi_service/src/
Dusb_impl.cpp819 void UsbImpl::ReportUsbdSysEvent(int32_t code, UsbPnpNotifyMatchInfoTable *infoTable) in ReportUsbdSysEvent() argument
829 … std::to_string(infoTable->busNum) + "-" + std::to_string(infoTable->devNum), "DEVICE_PROTOCOL", in ReportUsbdSysEvent()
830infoTable->deviceInfo.deviceProtocol, "DEVICE_CLASS", infoTable->deviceInfo.deviceClass, "VENDOR_I… in ReportUsbdSysEvent()
831infoTable->deviceInfo.vendorId, "PRODUCT_ID", infoTable->deviceInfo.productId, "VERSION", "1.0.0", in ReportUsbdSysEvent()
857 UsbPnpNotifyMatchInfoTable *infoTable = nullptr; in UsbdPnpNotifyAddAndRemoveDevice() local
858 bool flag = HdfSbufReadBuffer(data, (const void **)(&infoTable), &infoSize); in UsbdPnpNotifyAddAndRemoveDevice()
859 if (!flag || infoTable == nullptr) { in UsbdPnpNotifyAddAndRemoveDevice()
864 if (infoTable->deviceInfo.deviceClass == BASE_CLASS_HUB) { in UsbdPnpNotifyAddAndRemoveDevice()
867 HDF_LOGI("%{public}s:UsbdRemoveBusDev busNum:%{public}d", __func__, infoTable->busNum); in UsbdPnpNotifyAddAndRemoveDevice()
868 UsbdDispatcher::UsbdRemoveBusDev(super, infoTable->busNum, subscriber); in UsbdPnpNotifyAddAndRemoveDevice()
[all …]
/drivers/peripheral/usb/hdi_service/include/
Dusb_impl.h133 static void ReportUsbdSysEvent(int32_t code, UsbPnpNotifyMatchInfoTable *infoTable);