/drivers/peripheral/usb/sample/host/src/ |
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() 76 infoTable.deviceInfo.bcdDeviceHigh = 0x0000; in TestInitPnpInfo() 77 infoTable.deviceInfo.deviceClass = 0; in TestInitPnpInfo() [all …]
|
/drivers/hdf_core/framework/model/usb/src/ |
D | usb_wrapper.cpp | 17 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()
|
D | usb_ddk_pnp_loader.c | 768 …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/ |
D | usb_pnp_notify.c | 217 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() 246 … infoTable->interfaceInfo[j].interfaceClass = deviceInfo->info.interfaceInfo[i].interfaceClass; in UsbPnpNotifyAddInterfaceInitInfo() 247 …infoTable->interfaceInfo[j].interfaceSubClass = deviceInfo->info.interfaceInfo[i].interfaceSubClas… in UsbPnpNotifyAddInterfaceInitInfo() 248 …infoTable->interfaceInfo[j].interfaceProtocol = deviceInfo->info.interfaceInfo[i].interfaceProtoco… in UsbPnpNotifyAddInterfaceInitInfo() 249 … infoTable->interfaceInfo[j].interfaceNumber = deviceInfo->info.interfaceInfo[i].interfaceNumber; in UsbPnpNotifyAddInterfaceInitInfo() [all …]
|
/drivers/hdf_core/adapter/khdf/liteos/model/usb/host/src/ |
D | usb_pnp_notify.c | 245 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() 274 … infoTable->interfaceInfo[j].interfaceClass = deviceInfo->info.interfaceInfo[i].interfaceClass; in UsbPnpNotifyAddInterfaceInitInfo() 275 …infoTable->interfaceInfo[j].interfaceSubClass = deviceInfo->info.interfaceInfo[i].interfaceSubClas… in UsbPnpNotifyAddInterfaceInitInfo() 276 …infoTable->interfaceInfo[j].interfaceProtocol = deviceInfo->info.interfaceInfo[i].interfaceProtoco… in UsbPnpNotifyAddInterfaceInitInfo() 277 … infoTable->interfaceInfo[j].interfaceNumber = deviceInfo->info.interfaceInfo[i].interfaceNumber; in UsbPnpNotifyAddInterfaceInitInfo() [all …]
|
/drivers/hdf_core/framework/model/usb/include/ |
D | usb_wrapper.h | 17 void UsbDDKDriverMatchFailEvent(const struct UsbPnpNotifyMatchInfoTable *infoTable);
|
/drivers/peripheral/usb/ddk_service/src/ |
D | usb_ddk_service.cpp | 82 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/ |
D | usb_impl.cpp | 819 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() 830 …infoTable->deviceInfo.deviceProtocol, "DEVICE_CLASS", infoTable->deviceInfo.deviceClass, "VENDOR_I… in ReportUsbdSysEvent() 831 … infoTable->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/ |
D | usb_impl.h | 133 static void ReportUsbdSysEvent(int32_t code, UsbPnpNotifyMatchInfoTable *infoTable);
|