Searched refs:ifDesc (Results 1 – 4 of 4) sorted by relevance
/drivers/hdf_core/adapter/uhdf2/hdi/src/ |
D | stub_collector.cpp | 26 void StubConstructorRegister(const char *ifDesc, struct StubConstructor *constructor) in StubConstructorRegister() argument 28 if (ifDesc == nullptr || constructor == nullptr) { in StubConstructorRegister() 33 if (g_constructorMap.find(ifDesc) != g_constructorMap.end()) { in StubConstructorRegister() 34 HDF_LOGE("repeat registration stub constructor for if %{public}s", ifDesc); in StubConstructorRegister() 37 g_constructorMap.emplace(std::make_pair(ifDesc, constructor)); in StubConstructorRegister() 41 void StubConstructorUnregister(const char *ifDesc, const struct StubConstructor *constructor) in StubConstructorUnregister() argument 43 if (ifDesc == nullptr || constructor == nullptr) { in StubConstructorUnregister() 48 g_constructorMap.erase(ifDesc); in StubConstructorUnregister() 52 struct HdfRemoteService **StubCollectorGetOrNewObject(const char *ifDesc, void *servPtr) in StubCollectorGetOrNewObject() argument 54 if (ifDesc == nullptr || servPtr == nullptr) { in StubCollectorGetOrNewObject() [all …]
|
/drivers/hdf_core/interfaces/inner_api/hdi/ |
D | stub_collector.h | 63 void StubConstructorRegister(const char *ifDesc, struct StubConstructor *constructor); 71 void StubConstructorUnregister(const char *ifDesc, const struct StubConstructor *constructor); 80 struct HdfRemoteService **StubCollectorGetOrNewObject(const char *ifDesc, void *servPtr); 88 void StubCollectorRemoveObject(const char *ifDesc, void *servPtr);
|
/drivers/external_device_manager/frameworks/ddk/usb/ |
D | usb_config_desc_parser.cpp | 321 const UsbInterfaceDescriptor *ifDesc = nullptr; in ParseInterface() local 364 ifDesc = reinterpret_cast<const UsbInterfaceDescriptor *>(buffer); in ParseInterface() 365 …bool tempFlag = (size < USB_DDK_DT_INTERFACE_SIZE) || (ifDesc->bDescriptorType != USB_DDK_DT_INTER… in ParseInterface() 366 (ifDesc->bInterfaceNumber != interfaceNumber); in ParseInterface() 452 auto ifDesc = reinterpret_cast<const UsbInterfaceDescriptor *>(buffer); in ParseConfigurationDes() local 459 if (interfaceNums[i] == ifDesc->bInterfaceNumber) { in ParseConfigurationDes() 464 … EDM_LOGE(MODULE_USB_DDK, "%{public}u: bInterfaceNumber not found.", ifDesc->bInterfaceNumber); in ParseConfigurationDes() 469 … EDM_LOGE(MODULE_USB_DDK, "%{public}u: Parse interface failed.", ifDesc->bInterfaceNumber); in ParseConfigurationDes()
|
/drivers/peripheral/usb/ddk/host/src/ |
D | usb_raw_api_library.c | 475 const struct UsbInterfaceDescriptor *ifDesc = NULL; in ParseInterface() local 519 ifDesc = (const struct UsbInterfaceDescriptor *)buffer; in ParseInterface() 520 …bool tempFlag = (size < USB_DDK_DT_INTERFACE_SIZE) || (ifDesc->bDescriptorType != USB_DDK_DT_INTER… in ParseInterface() 521 (ifDesc->bInterfaceNumber != interfaceNumber); in ParseInterface() 557 struct UsbInterfaceDescriptor *ifDesc = (struct UsbInterfaceDescriptor *)buffer; in ParseConfigurationDes() local 563 if (nIntf[i] == ifDesc->bInterfaceNumber) { in ParseConfigurationDes()
|