Home
last modified time | relevance | path

Searched refs:iface (Results 1 - 25 of 74) sorted by relevance

123

/drivers/peripheral/wlan/chip/hdi_service/
H A Dwifi_chip.cpp39 for (const auto& iface : ifaces) { in InvalidateAndClearApIface()
40 iface->Invalidate(); in InvalidateAndClearApIface()
47 for (const auto& iface : ifaces) { in InvalidateAndClearStaIface()
48 iface->Invalidate(); in InvalidateAndClearStaIface()
55 for (const auto& iface : ifaces) { in InvalidateAndClearP2pIface()
56 iface->Invalidate(); in InvalidateAndClearP2pIface()
63 for (const auto& iface : ifaces) { in InvalidateAndClearExtIface()
64 iface->Invalidate(); in InvalidateAndClearExtIface()
276 HDF_LOGE("not find iface combinations for current mode!"); in GetCurrentCombinations()
319 for (const auto& iface in GetApNames()
488 sptr<WifiApIface> iface = NewApIface() local
506 CreateApService(sptr<OHOS::HDI::Wlan::Chip::V1_0::IChipIface>& iface) CreateApService() argument
529 GetApService(const std::string& ifname, sptr<IChipIface>& iface) GetApService() argument
540 const auto iface = FindApUsingName(apIfaces_, ifname); RemoveApService() local
549 CreateP2pService(sptr<IChipIface>& iface) CreateP2pService() argument
575 GetP2pService(const std::string& ifname, sptr<IChipIface>& iface) GetP2pService() argument
586 const auto iface = FindP2pUsingName(p2pIfaces_, ifname); RemoveP2pService() local
594 CreateStaService(sptr<IChipIface>& iface) CreateStaService() argument
630 GetStaService(const std::string& ifname, sptr<IChipIface>& iface) GetStaService() argument
641 const auto iface = FindStaUsingName(staIfaces_, ifname); RemoveStaService() local
657 CreateExtService(const std::string& ifName, sptr<IChipIface>& iface) CreateExtService() argument
671 GetExtService(const std::string& ifName, sptr<IChipIface>& iface) GetExtService() argument
682 const auto iface = FindExtUsingName(extIfaces_, ifName); RemoveExtService() local
[all...]
H A Dwifi_chip.h55 int32_t CreateApService(sptr<IChipIface>& iface) override;
57 int32_t GetApService(const std::string& ifname, sptr<IChipIface>& iface) override;
59 int32_t CreateP2pService(sptr<IChipIface>& iface) override;
61 int32_t GetP2pService(const std::string& ifname, sptr<IChipIface>& iface) override;
63 int32_t CreateStaService(sptr<IChipIface>& iface) override;
65 int32_t GetStaService(const std::string& ifname, sptr<IChipIface>& iface) override;
67 int32_t CreateExtService(const std::string& ifName, sptr<IChipIface>& iface) override;
68 int32_t GetExtService(const std::string& ifName, sptr<IChipIface>& iface) override;
/drivers/peripheral/codec/hal/idl_service/src/
H A Dcodec_component_config.cpp156 struct DeviceResourceIface *iface = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in GetGroupCapabilities() local
157 if ((iface == nullptr) || (iface->GetUint32 == nullptr) || in GetGroupCapabilities()
158 (iface->GetBool == nullptr) || (iface->GetString == nullptr)) { in GetGroupCapabilities()
159 CODEC_LOGE(" failed, iface or its GetUint32 or GetBool or GetString is nullptr!"); in GetGroupCapabilities()
163 codecGroupNode = iface->GetChildNode(&node_, nodeName.c_str()); in GetGroupCapabilities()
176 if (GetOneCapability(*iface, *childNode, cap, isVideoGroup) != HDF_SUCCESS) { in GetGroupCapabilities()
185 int32_t CodecComponentConfig::GetOneCapability(const struct DeviceResourceIface &iface, in GetOneCapability() argument
189 if (iface in GetOneCapability()
241 GetMiscOfCapability(const struct DeviceResourceIface &iface, const struct DeviceResourceNode &childNode, CodecCompCapability &cap) GetMiscOfCapability() argument
279 GetUintTableConfig(const struct DeviceResourceIface &iface, const struct DeviceResourceNode &node, ConfigUintArrayNodeAttr &attr) GetUintTableConfig() argument
300 GetMaskedConfig(const struct DeviceResourceIface &iface, const struct DeviceResourceNode &node, const std::string &attrName, uint32_t &mask) GetMaskedConfig() argument
323 GetVideoPortCapability(const struct DeviceResourceIface &iface, const struct DeviceResourceNode &childNode, CodecCompCapability &cap) GetVideoPortCapability() argument
378 GetAudioPortCapability(const struct DeviceResourceIface &iface, const struct DeviceResourceNode &childNode, CodecCompCapability &cap) GetAudioPortCapability() argument
[all...]
/drivers/peripheral/codec/hal/src/
H A Dcodec_config_parser.c40 struct DeviceResourceIface *iface = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in GetGroupCapabilitiesNumber() local
41 if (iface == NULL) { in GetGroupCapabilitiesNumber()
42 CODEC_LOGE("failed, iface NULL!"); in GetGroupCapabilitiesNumber()
46 codecGroupNode = iface->GetChildNode(node, nodeName); in GetGroupCapabilitiesNumber()
59 static int32_t GetUintTableConfig(const struct DeviceResourceIface *iface, in GetUintTableConfig() argument
62 if (iface == NULL || node == NULL || attr == NULL) { in GetUintTableConfig()
71 int32_t count = iface->GetElemNum(node, attr->attrName); in GetUintTableConfig()
79 iface->GetUint32Array(node, attr->attrName, (uint32_t *)attr->array, count, 0); in GetUintTableConfig()
86 static int32_t GetMaskedConfig(const struct DeviceResourceIface *iface, in GetMaskedConfig() argument
89 if (iface in GetMaskedConfig()
119 GetVideoPortCapability(const struct DeviceResourceIface *iface, const struct DeviceResourceNode *childNode, CodecCompCapability *cap) GetVideoPortCapability() argument
170 GetAudioPortCapability(const struct DeviceResourceIface *iface, const struct DeviceResourceNode *childNode, CodecCompCapability *cap) GetAudioPortCapability() argument
196 GetMiscOfCapability(const struct DeviceResourceIface *iface, const struct DeviceResourceNode *childNode, CodecCompCapability *cap) GetMiscOfCapability() argument
229 GetOneCapability(const struct DeviceResourceIface *iface, const struct DeviceResourceNode *childNode, CodecCompCapability *cap, bool isVideoGroup) GetOneCapability() argument
301 struct DeviceResourceIface *iface = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); GetGroupCapabilities() local
[all...]
/drivers/peripheral/codec/image/config/
H A Dcodec_image_config.cpp92 struct DeviceResourceIface *iface = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in GetGroupCapabilities() local
93 CHECK_AND_RETURN_RET_LOG(iface != nullptr, HDF_ERR_INVALID_PARAM, "iface is nullptr"); in GetGroupCapabilities()
95 codecGroupNode = iface->GetChildNode(&node_, nodeName.c_str()); in GetGroupCapabilities()
102 if (GetOneCapability(*iface, *childNode, cap) != HDF_SUCCESS) { in GetGroupCapabilities()
111 int32_t CodecImageConfig::GetOneCapability(const struct DeviceResourceIface &iface, in GetOneCapability() argument
115 auto ret = iface.GetString(&childNode, CODEC_CONFIG_KEY_NAME, &name, ""); in GetOneCapability()
120 if (iface.GetUint32(&childNode, CODEC_CONFIG_KEY_ROLE, reinterpret_cast<uint32_t *>(&cap.role), in GetOneCapability()
127 if (iface.GetUint32(&childNode, CODEC_CONFIG_KEY_TYPE, reinterpret_cast<uint32_t *>(&cap.type), in GetOneCapability()
135 cap.isSoftwareCodec = iface in GetOneCapability()
164 GetUintTableConfig(const struct DeviceResourceIface &iface, const struct DeviceResourceNode &node, ConfigUintArrayNodeAttr &attr) GetUintTableConfig() argument
[all...]
H A Dcodec_image_config.h48 int32_t GetOneCapability(const struct DeviceResourceIface &iface, const struct DeviceResourceNode &childNode,
50 int32_t GetUintTableConfig(const struct DeviceResourceIface &iface, const struct DeviceResourceNode &node,
/drivers/peripheral/codec/hal/idl_service/include/
H A Dcodec_component_config.h49 int32_t GetOneCapability(const struct DeviceResourceIface &iface, const struct DeviceResourceNode &childNode,
51 int32_t GetMiscOfCapability(const struct DeviceResourceIface &iface, const struct DeviceResourceNode &childNode,
53 int32_t GetUintTableConfig(const struct DeviceResourceIface &iface, const struct DeviceResourceNode &node,
55 int32_t GetMaskedConfig(const struct DeviceResourceIface &iface, const struct DeviceResourceNode &node,
57 int32_t GetAudioPortCapability(const struct DeviceResourceIface &iface, const struct DeviceResourceNode &childNode,
59 int32_t GetVideoPortCapability(const struct DeviceResourceIface &iface, const struct DeviceResourceNode &childNode,
/drivers/peripheral/usb/gadget/function/usbfn/
H A Ddev_usbfn.c67 struct DeviceResourceIface *iface = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in UsbFnRegistUsbfnDevice() local
69 if (iface == NULL || iface->GetUint32 == NULL || device == NULL) { in UsbFnRegistUsbfnDevice()
70 HDF_LOGE("%{public}s: iface is invalid", __func__); in UsbFnRegistUsbfnDevice()
161 struct DeviceResourceIface *iface = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in UsbFnDriverInit() local
162 if (iface == NULL || iface->GetUint32 == NULL || device == NULL) { in UsbFnDriverInit()
163 HDF_LOGE("%{public}s: iface is invalid", __func__); in UsbFnDriverInit()
167 if (iface->GetString(device->property, "udc_name", &devMgr->udcName, UDC_NAME) != HDF_SUCCESS) { in UsbFnDriverInit()
172 if (iface in UsbFnDriverInit()
[all...]
/drivers/hdf_core/adapter/platform/uart/
H A Duart_gr5xx.c511 struct DeviceResourceIface *iface = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in UartGetPinConfigFromHcs() local
513 if (iface == NULL || iface->GetUint32 == NULL) { in UartGetPinConfigFromHcs()
518 if (iface->GetUint32(node, "pin_tx_type", &resourceData, 0) != HDF_SUCCESS) { in UartGetPinConfigFromHcs()
524 if (iface->GetUint32(node, "pin_tx_pin", &resourceData, 0) != HDF_SUCCESS) { in UartGetPinConfigFromHcs()
530 if (iface->GetUint32(node, "pin_tx_mux", &resourceData, 0) != HDF_SUCCESS) { in UartGetPinConfigFromHcs()
536 if (iface->GetUint32(node, "pin_tx_pull", &resourceData, 0) != HDF_SUCCESS) { in UartGetPinConfigFromHcs()
542 if (iface->GetUint32(node, "pin_rx_type", &resourceData, 0) != HDF_SUCCESS) { in UartGetPinConfigFromHcs()
548 if (iface->GetUint32(node, "pin_rx_pin", &resourceData, 0) != HDF_SUCCESS) { in UartGetPinConfigFromHcs()
554 if (iface in UartGetPinConfigFromHcs()
572 struct DeviceResourceIface *iface = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); UartGetDefaultConfigFromHcs() local
[all...]
/drivers/hdf_core/adapter/khdf/linux/platform/pwm/
H A Dpwm_adapter.c100 struct DeviceResourceIface *iface = NULL; in HdfPwmInit() local
107 iface = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in HdfPwmInit()
108 if (iface == NULL || iface->GetUint32 == NULL) { in HdfPwmInit()
109 HDF_LOGE("HdfPwmInit: iface or GetUint32 is null!"); in HdfPwmInit()
112 if (iface->GetUint32(obj->property, "num", &num, 0) != HDF_SUCCESS) { in HdfPwmInit()
/drivers/hdf_core/framework/test/unittest/platform/virtual/
H A Dpwm_virtual.c76 struct DeviceResourceIface *iface = NULL; in VirtualPwmProbe() local
78 iface = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in VirtualPwmProbe()
79 if (iface == NULL || iface->GetUint32 == NULL) { in VirtualPwmProbe()
84 if (iface->GetUint32(obj->property, "num", &(virtual->dev.num), 0) != HDF_SUCCESS) { in VirtualPwmProbe()
H A Dspi_virtual.c327 struct DeviceResourceIface *iface = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in SpiGetCfgFromHcs() local
329 if (iface == NULL || iface->GetUint32 == NULL || iface->GetUint16 == NULL || iface->GetUint8 == NULL) { in SpiGetCfgFromHcs()
333 if (iface->GetUint32(node, "busNum", &virtual->busNum, DEFAULT_BUS_NUM) != HDF_SUCCESS) { in SpiGetCfgFromHcs()
337 if (iface->GetUint32(node, "numCs", &virtual->numCs, 0) != HDF_SUCCESS) { in SpiGetCfgFromHcs()
341 if (iface->GetUint32(node, "speed", &virtual->speed, 0) != HDF_SUCCESS) { in SpiGetCfgFromHcs()
345 if (iface->GetUint32(node, "fifoSize", &virtual->fifoSize, 0) != HDF_SUCCESS) { in SpiGetCfgFromHcs()
349 if (iface in SpiGetCfgFromHcs()
[all...]
/drivers/hdf_core/framework/model/audio/core/include/
H A Daudio_control.h24 int32_t iface; member
30 int32_t iface; member
82 int32_t iface; member
/drivers/hdf_core/framework/model/audio/dispatch/src/
H A Daudio_control_dispatch.c43 if (kctrl->iface != ctrlElemId->iface) { in AudioGetKctrlInstance()
87 ADM_LOG_DEBUG("cardServiceName: %s, iface: %d, itemName: %s.", in ControlHostElemInfoSub()
88 id.cardServiceName, id.iface, id.itemName); in ControlHostElemInfoSub()
91 ADM_LOG_ERR("itemname: %s iface: %d kctrl or Info not support!", id.itemName, id.iface); in ControlHostElemInfoSub()
127 if (!HdfSbufReadInt32(reqData, &id.iface)) { in ControlHostElemInfo()
295 if (!HdfSbufReadInt32(reqData, &id.iface)) { in ControlHostElemRead()
311 ADM_LOG_DEBUG("itemName: %s cardServiceName: %s iface: %d ", id.itemName, id.cardServiceName, id.iface); in ControlHostElemRead()
[all...]
/drivers/hdf_core/framework/test/unittest/model/network/wifi/unittest/module/
H A Dhdf_module_test.c110 if (module->iface.addFeature == NULL) { in WiFiModuleTestAddFeature()
114 return module->iface.addFeature(module, HDF_WIFI_FEATURE_P2P, &g_p2pFeature); in WiFiModuleTestAddFeature()
124 if (module->iface.delFeature == NULL) { in WiFiModuleTestDelFeature()
128 return module->iface.delFeature(module, HDF_WIFI_FEATURE_P2P); in WiFiModuleTestDelFeature()
/drivers/peripheral/usb/ddk/host/src/
H A Dusb_pnp_manager.c103 struct DeviceResourceIface *iface = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in UsbPnpMgrGetGadgetPath() local
104 if (iface == NULL) { in UsbPnpMgrGetGadgetPath()
116 if (iface->GetString(device->property, attrName, &path, pathDef) != HDF_SUCCESS) { in UsbPnpMgrGetGadgetPath()
126 if (iface->GetString(device->property, attrName, &path, pathDef) != HDF_SUCCESS) { in UsbPnpMgrGetGadgetPath()
H A Dusb_protocol.c73 const struct UsbRawInterfaceDescriptor *iface, const struct UsbRawInterface *altsettings) in UsbInterfaceInit()
77 if ((interfaceObj == NULL) || (iface == NULL)) { in UsbInterfaceInit()
82 ptr->pipeNum = iface->interfaceDescriptor.bNumEndpoints; in UsbInterfaceInit()
83 ptr->interfaceClass = iface->interfaceDescriptor.bInterfaceClass; in UsbInterfaceInit()
84 ptr->interfaceSubClass = iface->interfaceDescriptor.bInterfaceSubClass; in UsbInterfaceInit()
85 ptr->interfaceProtocol = iface->interfaceDescriptor.bInterfaceProtocol; in UsbInterfaceInit()
86 ptr->interfaceIndex = iface->interfaceDescriptor.bInterfaceNumber; in UsbInterfaceInit()
90 interfaceObj->altSettingId = iface->interfaceDescriptor.bAlternateSetting; in UsbInterfaceInit()
72 UsbInterfaceInit(struct UsbSdkInterface *interfaceObj, const struct UsbRawInterfaceDescriptor *iface, const struct UsbRawInterface *altsettings) UsbInterfaceInit() argument
/drivers/hdf_core/framework/tools/idl-gen/
H A Didl_generator.py123 for iface in header["interface"]:
126 self._install_interface(iface)
128 self._write_file(header["path"], iface["name"] + ".idl")
147 for iface in include_file["interface"]:
148 self._idl.append("import %s.%s;\n" % (self._get_package(include_file['path']), iface["name"]))
180 def _install_interface(self, iface):
181 if re.search("[Cc]all[Bb]ack", iface["name"]):
183 self._idl.append("interface %s {\n" % iface["name"])
184 for member in iface["members"]:
185 self._install_function(iface["nam
[all...]
/drivers/hdf_core/framework/model/network/wifi/core/module/
H A Dwifi_module.c85 module->iface.deInit = DeInitFeatures; in InitWifiModule()
86 module->iface.addFeature = AddFeature; in InitWifiModule()
87 module->iface.delFeature = DelFeature; in InitWifiModule()
/drivers/hdf_core/framework/model/audio/usb/src/
H A Daudio_usb_dma_ops.c231 ep->iface = alts->desc.bInterfaceNumber; in AudioUsbEndpointInit()
275 if (ep->endpointNum == epNum && ep->iface == alts->desc.bInterfaceNumber && in AudioUsbAddEndpoint()
277 AUDIO_DEVICE_LOG_INFO("Render using endpoint %d in iface %d,%d\n", epNum, ep->iface, ep->altsetting); in AudioUsbAddEndpoint()
323 audioUsbFormat->iface, audioUsbFormat->altsetting, epDesc->bmAttributes, epDesc->bLength, in AudioUsbGetEndpoint()
338 audioUsbFormat->iface, audioUsbFormat->altsetting, isRender, *epNum, epDesc->bSynchAddress); in AudioUsbGetEndpoint()
442 struct usb_interface *iface = NULL; in AudioSetFormat() local
456 iface = usb_ifnum_to_if(dev, audioUsbFormat->iface); in AudioSetFormat()
457 if (iface in AudioSetFormat()
827 struct usb_interface *iface = NULL; AudioUsbSetupEp() local
[all...]
/drivers/hdf_core/adapter/platform/can/
H A Dcan_virtual.c46 struct DeviceResourceIface *iface = DeviceResourceGetIfaceInstance(HDF_CONFIG_SOURCE); in VirtualReadConfigFromHcs() local
59 if (iface == NULL || iface->GetUint32 == NULL) { in VirtualReadConfigFromHcs()
64 if (iface->GetUint32(node, "bus_num", &value, 0) != HDF_SUCCESS) { in VirtualReadConfigFromHcs()
70 if (iface->GetUint8(node, "work_mode", &virtualCan->workMode, 0) != HDF_SUCCESS) { in VirtualReadConfigFromHcs()
75 if (iface->GetUint32(node, "bit_rate", &virtualCan->bitRate, 0) != HDF_SUCCESS) { in VirtualReadConfigFromHcs()
/drivers/peripheral/usb/gadget/function/ecm/
H A Dcdcecm.c680 static int32_t EcmParseEachPipe(struct UsbEcmDevice *ecm, struct UsbEcmInterface *iface) in EcmParseEachPipe() argument
682 struct UsbFnInterface *fnIface = iface->fn; in EcmParseEachPipe()
697 ecm->ctrlIface = *iface; in EcmParseEachPipe()
703 ecm->dataIface = *iface; in EcmParseEachPipe()
726 struct UsbEcmInterface iface; in EcmParseEcmIface() local
732 iface.fn = fnIface; in EcmParseEcmIface()
733 iface.handle = handle; in EcmParseEcmIface()
735 ret = EcmParseEachPipe(ecm, &iface); in EcmParseEcmIface()
769 static int32_t EcmCreateFuncDevice(struct UsbEcmDevice *ecm, struct DeviceResourceIface *iface) in EcmCreateFuncDevice() argument
774 if (iface in EcmCreateFuncDevice()
925 struct DeviceResourceIface *iface = NULL; EcmInit() local
[all...]
/drivers/hdf_core/framework/model/audio/usb/include/
H A Daudio_usb_parse_interface.h16 int32_t AudioUsbInitSampleRate(struct AudioUsbDriver *audioUsbDriver, int32_t iface, struct usb_host_interface *alts,
/drivers/hdf_core/adapter/uhdf2/ipc/include/
H A Diproxy_broker.h62 inline sptr<IRemoteObject> hdi_objcast(const sptr<INTERFACE> &iface) in hdi_objcast() argument
64 IProxyBroker<INTERFACE> *brokerObject = static_cast<IProxyBroker<INTERFACE> *>(iface.GetRefPtr()); in hdi_objcast()
/drivers/hdf_core/interfaces/inner_api/ipc/
H A Diproxy_broker.h62 inline sptr<IRemoteObject> hdi_objcast(const sptr<INTERFACE> &iface) in hdi_objcast() argument
64 IProxyBroker<INTERFACE> *brokerObject = static_cast<IProxyBroker<INTERFACE> *>(iface.GetRefPtr()); in hdi_objcast()

Completed in 23 milliseconds

123