Home
last modified time | relevance | path

Searched refs:ifDesc (Results 1 - 4 of 4) sorted by relevance

/drivers/hdf_core/adapter/uhdf2/hdi/src/
H A Dstub_collector.cpp26 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 in StubCollectorGetOrNewObject()
89 StubCollectorRemoveObject(const char *ifDesc, void *servPtr) StubCollectorRemoveObject() argument
[all...]
/drivers/hdf_core/interfaces/inner_api/hdi/
H A Dstub_collector.h60 * @param ifDesc Indicates the pointer to the interface descriptor of the stub object.
63 void StubConstructorRegister(const char *ifDesc, struct StubConstructor *constructor);
68 * @param ifDesc Indicates the pointer to the interface descriptor of the stub object.
71 void StubConstructorUnregister(const char *ifDesc, const struct StubConstructor *constructor);
76 * @param ifDesc Indicates the pointer to the interface descriptor of the stub object.
80 struct HdfRemoteService **StubCollectorGetOrNewObject(const char *ifDesc, void *servPtr);
85 * @param ifDesc Indicates the pointer to the interface descriptor of the stub object.
88 void StubCollectorRemoveObject(const char *ifDesc, void *servPtr);
/drivers/external_device_manager/frameworks/ddk/usb/
H A Dusb_config_desc_parser.cpp321 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_INTERFACE) || in ParseInterface()
366 (ifDesc->bInterfaceNumber != interfaceNumber); in ParseInterface()
457 auto ifDesc = reinterpret_cast<const UsbInterfaceDescriptor *>(buffer); in ParseConfigurationDes() local
464 if (interfaceNums[i] == ifDesc->bInterfaceNumber) { in ParseConfigurationDes()
469 EDM_LOGE(MODULE_USB_DDK, "%{public}u: bInterfaceNumber not found.", ifDesc->bInterfaceNumber); in ParseConfigurationDes()
474 EDM_LOGE(MODULE_USB_DDK, "%{public}u: Parse interface failed.", ifDesc->bInterfaceNumber); in ParseConfigurationDes()
/drivers/peripheral/usb/ddk/host/src/
H A Dusb_raw_api_library.c480 const struct UsbInterfaceDescriptor *ifDesc = NULL; in ParseInterface() local
524 ifDesc = (const struct UsbInterfaceDescriptor *)buffer; in ParseInterface()
525 bool tempFlag = (size < USB_DDK_DT_INTERFACE_SIZE) || (ifDesc->bDescriptorType != USB_DDK_DT_INTERFACE) || in ParseInterface()
526 (ifDesc->bInterfaceNumber != interfaceNumber); in ParseInterface()
562 struct UsbInterfaceDescriptor *ifDesc = (struct UsbInterfaceDescriptor *)buffer; in ParseConfigurationDes() local
569 if (nIntf[i] == ifDesc->bInterfaceNumber) { in ParseConfigurationDes()

Completed in 4 milliseconds