Home
last modified time | relevance | path

Searched refs:interface (Results 1 – 25 of 304) sorted by relevance

12345678910>>...13

/drivers/peripheral/wlan/hdi_service/
Dwlan_interface_service.c28 struct IWlanInterface interface; member
40 service->interface.Start = WlanInterfaceStart; in WlanInterfaceImplGetInstance()
41 service->interface.Stop = WlanInterfaceStop; in WlanInterfaceImplGetInstance()
42 service->interface.CreateFeature = WlanInterfaceCreateFeature; in WlanInterfaceImplGetInstance()
43 service->interface.DestroyFeature = WlanInterfaceDestroyFeature; in WlanInterfaceImplGetInstance()
44 service->interface.GetAssociatedStas = WlanInterfaceGetAssociatedStas; in WlanInterfaceImplGetInstance()
45 service->interface.GetChipId = WlanInterfaceGetChipId; in WlanInterfaceImplGetInstance()
46 service->interface.GetDeviceMacAddress = WlanInterfaceGetDeviceMacAddress; in WlanInterfaceImplGetInstance()
47 service->interface.GetFeatureByIfName = WlanInterfaceGetFeatureByIfName; in WlanInterfaceImplGetInstance()
48 service->interface.GetFeatureType = WlanInterfaceGetFeatureType; in WlanInterfaceImplGetInstance()
[all …]
/drivers/peripheral/wlan/test/fuzztest/
Dwlan_common_fuzzer.h34 void FuzzGetChipId(struct IWlanInterface *interface, const uint8_t *rawData);
35 void FuzzGetDeviceMacAddress(struct IWlanInterface *interface, const uint8_t *rawData);
36 void FuzzGetFeatureType(struct IWlanInterface *interface, const uint8_t *rawData);
37 void FuzzGetFreqsWithBand(struct IWlanInterface *interface, const uint8_t *rawData);
38 void FuzzGetNetworkIfaceName(struct IWlanInterface *interface, const uint8_t *rawData);
39 void FuzzSetMacAddress(struct IWlanInterface *interface, const uint8_t *rawData);
40 void FuzzSetTxPower(struct IWlanInterface *interface, const uint8_t *rawData);
41 void FuzzGetPowerMode(struct IWlanInterface *interface, const uint8_t *rawData);
42 void FuzzSetPowerMode(struct IWlanInterface *interface, const uint8_t *rawData);
43 void FuzzGetIfNamesByChipId(struct IWlanInterface *interface, const uint8_t *rawData);
[all …]
Dwlan_common_fuzzer.cpp75 void FuzzGetChipId(struct IWlanInterface *interface, const uint8_t *rawData) in FuzzGetChipId() argument
82 interface->GetChipId(interface, &feature, &chipId); in FuzzGetChipId()
86 void FuzzGetDeviceMacAddress(struct IWlanInterface *interface, const uint8_t *rawData) in FuzzGetDeviceMacAddress() argument
94 interface->GetDeviceMacAddress(interface, &feature, mac, &macLen, in FuzzGetDeviceMacAddress()
99 void FuzzGetFeatureType(struct IWlanInterface *interface, const uint8_t *rawData) in FuzzGetFeatureType() argument
106 interface->GetFeatureType(interface, &feature, &featureType); in FuzzGetFeatureType()
110 void FuzzGetFreqsWithBand(struct IWlanInterface *interface, const uint8_t *rawData) in FuzzGetFreqsWithBand() argument
121 interface->GetFreqsWithBand(interface, &feature, &wifiInfo, freq, &freqLen); in FuzzGetFreqsWithBand()
125 void FuzzGetNetworkIfaceName(struct IWlanInterface *interface, const uint8_t *rawData) in FuzzGetNetworkIfaceName() argument
132 interface->GetNetworkIfaceName(interface, &feature, ifNames, IFNAMSIZ); in FuzzGetNetworkIfaceName()
[all …]
/drivers/hdf_core/adapter/uhdf2/hdi/src/
Dobject_collector.cpp49 const OHOS::sptr<HdiBase> &interface, const std::u16string &interfaceName) in NewObjectLocked() argument
51 if (interface == nullptr) { in NewObjectLocked()
56 return constructor->second(interface); in NewObjectLocked()
63 const OHOS::sptr<HdiBase> &interface, const std::u16string &interfaceName) in NewObject() argument
66 return NewObjectLocked(interface, interfaceName); in NewObject()
70 const OHOS::sptr<HdiBase> &interface, const std::u16string &interfaceName) in GetOrNewObject() argument
72 if (interface == nullptr) { in GetOrNewObject()
77 auto it = interfaceObjectCollector_.find(interface.GetRefPtr()); in GetOrNewObject()
89 sptr<IRemoteObject> object = NewObjectLocked(interface, interfaceName); in GetOrNewObject()
90 interfaceObjectCollector_[interface.GetRefPtr()] = object.GetRefPtr(); in GetOrNewObject()
[all …]
/drivers/peripheral/huks/hdi_service/
Dhuks_hdi_service.c28 struct IHuks interface; member
238 service->interface.ModuleInit = HuksModuleInit; in HuksImplGetInstance()
239 service->interface.ModuleDestroy = HuksModuleDestroy; in HuksImplGetInstance()
240 service->interface.GenerateKey = HuksGenerateKey; in HuksImplGetInstance()
241 service->interface.ImportKey = HuksImportKey; in HuksImplGetInstance()
242 service->interface.ImportWrappedKey = HuksImportWrappedKey; in HuksImplGetInstance()
243 service->interface.ExportPublicKey = HuksExportPublicKey; in HuksImplGetInstance()
244 service->interface.Init = HuksInit; in HuksImplGetInstance()
245 service->interface.Update = HuksUpdate; in HuksImplGetInstance()
246 service->interface.Finish = HuksFinish; in HuksImplGetInstance()
[all …]
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/resources/templates/lite/hdi_template/interface/
Dbundle_json.template3 "description": "${interface_name} drivers interface",
26 "//drivers/interface/${interface_name}/v1_0:${interface_name}_idl_target"
31 "name": "//drivers/interface/${interface_name}/v1_0:lib${interface_name}_proxy_1.0",
34 "header_base": "//drivers/interface/${interface_name}"
37 "name": "//drivers/interface/${interface_name}/v1_0:${interface_name}_idl_headers",
40 "header_base": "//drivers/interface/${interface_name}"
/drivers/peripheral/usb/ddk/device/src/
Dusbfn_sdk_if.c180 … struct UsbFnInterface *interface, uint32_t eventMask, UsbFnEventCallback callback, void *context) in UsbFnStartRecvInterfaceEvent() argument
182 if (interface == NULL || eventMask == 0 || callback == NULL) { in UsbFnStartRecvInterfaceEvent()
186 return UsbFnMgrStartRecvEvent(interface, eventMask, callback, context); in UsbFnStartRecvInterfaceEvent()
189 int32_t UsbFnStopRecvInterfaceEvent(struct UsbFnInterface *interface) in UsbFnStopRecvInterfaceEvent() argument
191 if (interface == NULL) { in UsbFnStopRecvInterfaceEvent()
195 return UsbFnStopRecvEvent(interface); in UsbFnStopRecvInterfaceEvent()
198 UsbFnInterfaceHandle UsbFnOpenInterface(struct UsbFnInterface *interface) in UsbFnOpenInterface() argument
200 if (interface == NULL) { in UsbFnOpenInterface()
204 return (UsbFnInterfaceHandle)UsbFnIoMgrInterfaceOpen(interface); in UsbFnOpenInterface()
216 int32_t UsbFnGetInterfacePipeInfo(struct UsbFnInterface *interface, uint8_t pipeId, struct UsbFnPip… in UsbFnGetInterfacePipeInfo() argument
[all …]
Dusbfn_io_mgr.c63 … int32_t ret = UsbFnIoMgrInterfaceGetPipeInfo(&(handle->intfMgr->interface), pipe - 1, &info); in GetReqType()
120 req->obj = handle->intfMgr->interface.object; in UsbFnIoMgrRequestAlloc()
249 handle->numFd = interfaceMgr->interface.info.numPipes; in HandleInit()
278 struct UsbHandleMgr *UsbFnIoMgrInterfaceOpen(struct UsbFnInterface *interface) in UsbFnIoMgrInterfaceOpen() argument
281 if (interface == NULL) { in UsbFnIoMgrInterfaceOpen()
284 struct UsbFnInterfaceMgr *interfaceMgr = (struct UsbFnInterfaceMgr *)interface; in UsbFnIoMgrInterfaceOpen()
342 int32_t UsbFnIoMgrInterfaceGetPipeInfo(struct UsbFnInterface *interface, uint8_t pipeId, struct Usb… in UsbFnIoMgrInterfaceGetPipeInfo() argument
346 if (info == NULL || interface == NULL || pipeId >= interface->info.numPipes) { in UsbFnIoMgrInterfaceGetPipeInfo()
351 struct UsbFnInterfaceMgr *interfaceMgr = (struct UsbFnInterfaceMgr *)interface; in UsbFnIoMgrInterfaceGetPipeInfo()
/drivers/peripheral/usb/interfaces/ddk/device/
Dusbfn_interface.h278 … struct UsbFnInterface *interface, uint32_t eventMask, UsbFnEventCallback callback, void *context);
288 int32_t UsbFnStopRecvInterfaceEvent(struct UsbFnInterface *interface);
300 UsbFnInterfaceHandle UsbFnOpenInterface(struct UsbFnInterface *interface);
324 int32_t UsbFnGetInterfacePipeInfo(struct UsbFnInterface *interface, uint8_t pipeId, struct UsbFnPip…
338 int32_t UsbFnRegistInterfaceProp(const struct UsbFnInterface *interface, const struct UsbFnRegistIn…
357 int32_t UsbFnGetInterfaceProp(const struct UsbFnInterface *interface, const char *name, char *value…
376 int32_t UsbFnSetInterfaceProp(const struct UsbFnInterface *interface, const char *name, const char …
/drivers/hdf_core/interfaces/inner_api/hdi/
Dobject_collector.h59 using Constructor = std::function<sptr<IRemoteObject>(const sptr<HdiBase> &interface)>;
67 …sptr<IRemoteObject> NewObject(const sptr<HdiBase> &interface, const std::u16string &interfaceName);
69 …sptr<IRemoteObject> GetOrNewObject(const sptr<HdiBase> &interface, const std::u16string &interface…
71 bool RemoveObject(const sptr<HdiBase> &interface);
76 …sptr<IRemoteObject> NewObjectLocked(const sptr<HdiBase> &interface, const std::u16string &interfac…
117 auto creator = [](const sptr<HdiBase> &interface) -> sptr<IRemoteObject> { in ObjectDelegator()
118 return new OBJECT(static_cast<INTERFACE *>(interface.GetRefPtr())); in ObjectDelegator()
/drivers/peripheral/wlan/test/fuzztest/ap_fuzzer/
Dap_fuzzer.cpp28 void FuzzGetAssociatedStas(struct IWlanInterface *interface, const uint8_t *rawData) in FuzzGetAssociatedStas() argument
36 interface->GetAssociatedStas(interface, &feature, staInfo, &staInfoLen, &num); in FuzzGetAssociatedStas()
40 void FuzzSetCountryCode(struct IWlanInterface *interface, const uint8_t *rawData) in FuzzSetCountryCode() argument
48 interface->SetCountryCode(interface, &feature, mac, macLen); in FuzzSetCountryCode()
74 static void FuncToOptimal(struct IWlanInterface *interface, uint32_t cmdId, const uint8_t *data) in FuncToOptimal() argument
78 fuzzWlanFunc(interface, data); in FuncToOptimal()
/drivers/peripheral/wlan/test/fuzztest/sta_fuzzer/
Dsta_fuzzer.cpp25 static void FuzzStartScan(struct IWlanInterface *interface, const uint8_t *rawData) in FuzzStartScan() argument
32 interface->StartScan(interface, &feature, &scan); in FuzzStartScan()
36 static void FuzzSetScanningMacAddress(struct IWlanInterface *interface, const uint8_t *rawData) in FuzzSetScanningMacAddress() argument
48 interface->SetScanningMacAddress(interface, &feature, scanMac, macLen); in FuzzSetScanningMacAddress()
74 static void FuncToOptimal(struct IWlanInterface *interface, uint32_t cmdId, const uint8_t *data) in FuncToOptimal() argument
78 fuzzWlanFunc(interface, data); in FuncToOptimal()
/drivers/hdf_core/framework/test/unittest/model/network/wifi/unittest/qos/
Dflow_control_test.c70 … g_flowControlInstance->interface->registerFlowControlOp(g_flowControlInstance, &g_flowControlOp); in WiFiFlowControlTestEnv()
129 if (g_flowControlInstance->interface == NULL) { in WiFiFlowControlTestGetEapolQueueId()
133 id = g_flowControlInstance->interface->getQueueIdByEtherBuff(buff); in WiFiFlowControlTestGetEapolQueueId()
156 if (g_flowControlInstance->interface == NULL) { in WiFiFlowControlTestSendData()
160 id = g_flowControlInstance->interface->getQueueIdByEtherBuff(buff); in WiFiFlowControlTestSendData()
162 …if (g_flowControlInstance->interface->sendBuffToFCM(g_flowControlInstance, buff, id, FLOW_TX) != H… in WiFiFlowControlTestSendData()
166 if (g_flowControlInstance->interface->schedFCM(g_flowControlInstance, FLOW_TX) != HDF_SUCCESS) { in WiFiFlowControlTestSendData()
/drivers/interface/
DREADME.md5 … used to manage the hardware device interface (HDI) definition of each module. The HDIs are define…
12 … Then, the `.idl` file will be compiled and converted into the function interface declaration and …
22 │ ├── ISensorCallback.idl # Sensor callback interface definition.
23 │ ├── ISensorInterface.idl # Sensor interface definition.
41 …/version interface directory by referring to the directory structure. The initial version is defin…
43 - Define the interface `IFoo.idl`.
50 interface IFoo {
58 - If customized data types are used in `interface`, define the data types in `MyTypes.idl`.
77 [callback] interface IFooCallback {
83 …- Add the `BUILD.gn` file to the `drivers/interface/foo/v1.0/` directory. The file content is as f…
[all …]
DREADME_ZH.md23 │   ├── ISensorInterface.idl #sensor interface 接口定义idl文件
44 - 参考上节目录结构创建对应模块/版本接口目录,初始版本定义为`v1_0`,如 `drivers/interface/foo/v1.0/`
53 interface IFoo {
61 - 如果`interface`中用到了自定义数据类型,将自定义类型定义到`MyTypes.idl`
80 [callback] interface IFooCallback {
86 - 在上述`drivers/interface/foo/v1.0/`目录中添加`BUILD.gn`文件,内容参考如下:
158 `//drivers/interface/foo/v1.0:libfoo_proxy_1.0"`
170 foo->Bar(); // do interface call
/drivers/hdf_core/framework/tools/hdi-gen/codegen/
Dcpp_service_impl_code_emitter.cpp104 AutoPtr<ASTInterfaceType> interface = interface_; in EmitServiceImplMethodDecls() local
105 while (interface != nullptr) { in EmitServiceImplMethodDecls()
106 …for (const auto &method : interface->GetMethodsBySystem(Options::GetInstance().GetSystemLevel())) { in EmitServiceImplMethodDecls()
110 interface = interface->GetExtendsInterface(); in EmitServiceImplMethodDecls()
178 AutoPtr<ASTInterfaceType> interface = interface_; in EmitServiceImplMethodImpls() local
179 while (interface != nullptr) { in EmitServiceImplMethodImpls()
180 …for (const auto &method : interface->GetMethodsBySystem(Options::GetInstance().GetSystemLevel())) { in EmitServiceImplMethodImpls()
184 interface = interface->GetExtendsInterface(); in EmitServiceImplMethodImpls()
Dcpp_interface_code_emitter.cpp111 AutoPtr<ASTInterfaceType> interface = interface_->GetExtendsInterface(); in EmitInterfaceDefinition() local
112 if (interface != nullptr) { in EmitInterfaceDefinition()
114 EmitDefinitionByInterface(interface, interfaceName_).c_str()); in EmitInterfaceDefinition()
135 AutoPtr<ASTInterfaceType> interface = interface_->GetExtendsInterface(); in EmitGetDescMethod() local
136 if (interface == nullptr) { in EmitGetDescMethod()
237 AutoPtr<ASTInterfaceType> interface = interface_->GetExtendsInterface(); in EmitInterfaceMethodCommandsWithExtends() local
238 while (interface != nullptr) { in EmitInterfaceMethodCommandsWithExtends()
239 extendMethods += interface->GetMethodNumber(); in EmitInterfaceMethodCommandsWithExtends()
240 interface = interface->GetExtendsInterface(); in EmitInterfaceMethodCommandsWithExtends()
Dcpp_service_stub_code_emitter.cpp138 AutoPtr<ASTInterfaceType> interface = interface_; in EmitStubMethodDecls() local
139 while (interface != nullptr) { in EmitStubMethodDecls()
140 …for (const auto &method : interface->GetMethodsBySystem(Options::GetInstance().GetSystemLevel())) { in EmitStubMethodDecls()
144 interface = interface->GetExtendsInterface(); in EmitStubMethodDecls()
331 AutoPtr<ASTInterfaceType> interface = interface_; in EmitStubOnRequestMethodImpl() local
332 while (interface != nullptr) { in EmitStubOnRequestMethodImpl()
333 …for (const auto &method : interface->GetMethodsBySystem(Options::GetInstance().GetSystemLevel())) { in EmitStubOnRequestMethodImpl()
338 interface = interface->GetExtendsInterface(); in EmitStubOnRequestMethodImpl()
352 AutoPtr<ASTInterfaceType> interface = interface_; in EmitStubMethodImpls() local
354 while (interface != nullptr) { in EmitStubMethodImpls()
[all …]
/drivers/peripheral/wlan/test/hdi_service/
Dwlan_callback_impl.c122 service->interface.ResetDriverResult = WlanCallbackResetDriver; in WlanCallbackServiceGet()
123 service->interface.ScanResult = WlanCallbackScanResult; in WlanCallbackServiceGet()
124 service->interface.WifiNetlinkMessage = WlanCallbackNetlinkMessage; in WlanCallbackServiceGet()
125 service->interface.ScanResults = WlanCallbackScanResults; in WlanCallbackServiceGet()
126 return &service->interface; in WlanCallbackServiceGet()
/drivers/peripheral/usb/ddk/device/include/
Dusbfn_io_mgr.h58 struct UsbFnInterface interface; member
71 struct UsbHandleMgr *UsbFnIoMgrInterfaceOpen(struct UsbFnInterface *interface);
73 int32_t UsbFnIoMgrInterfaceGetPipeInfo(struct UsbFnInterface *interface, uint8_t pipeId, struct Usb…
Dusbfn_dev_mgr.h47 int32_t UsbFnMgrStartRecvEvent(struct UsbFnInterface *interface, uint32_t eventMask,
49 int32_t UsbFnStopRecvEvent(struct UsbFnInterface *interface);
/drivers/hdf_core/framework/tools/hdi-gen/ast/
Dast_namespace.cpp52 void ASTNamespace::AddInterface(const AutoPtr<ASTInterfaceType> &interface) in AddInterface() argument
54 if (interface == nullptr) { in AddInterface()
58 interfaces_.push_back(interface); in AddInterface()
/drivers/peripheral/location/agnss/hdi_service/
Dagnss_interface_impl.cpp134 LocationVendorInterface* interface = LocationVendorInterface::GetInstance(); in SetAgnssCallback() local
136 static_cast<const AGnssModuleInterface*>(interface->GetModuleInterface(moduleType)); in SetAgnssCallback()
155 LocationVendorInterface* interface = LocationVendorInterface::GetInstance(); in SetAgnssServer() local
157 static_cast<const AGnssModuleInterface*>(interface->GetModuleInterface(moduleType)); in SetAgnssServer()
174 LocationVendorInterface* interface = LocationVendorInterface::GetInstance(); in SetAgnssRefInfo() local
176 static_cast<const AGnssModuleInterface*>(interface->GetModuleInterface(moduleType)); in SetAgnssRefInfo()
218 LocationVendorInterface* interface = LocationVendorInterface::GetInstance(); in SetSubscriberSetId() local
220 static_cast<const AGnssModuleInterface*>(interface->GetModuleInterface(moduleType)); in SetSubscriberSetId()
/drivers/interface/bluetooth/hci/v1_0/
DIHciInterface.idl22 …* The Host can use the interface provided by the module to initialize the HCI(Host Controller Inte…
32 * and disable the HCI interface.
45 * and disable the HCI interface.
49 interface IHciInterface {
74 * @brief Disable the HCI interface.
/drivers/peripheral/usb/ddk/host/include/
Dlinux_adapter.h86 unsigned int interface; member
97 unsigned int interface; member
102 unsigned int interface; member
108 unsigned int interface; member

12345678910>>...13