Home
last modified time | relevance | path

Searched refs:impl (Results 1 – 25 of 44) sorted by relevance

12

/drivers/hdf_core/adapter/khdf/linux/model/network/wifi/platform/src/
Dhdf_wlan_queue.c40 HdfWlanQueueImpl *impl = NULL; in CreateQueue() local
45 impl = OsalMemCalloc(sizeof(HdfWlanQueueImpl) + (sizeof(void *) * maxQueueSize)); in CreateQueue()
46 if (impl == NULL) { in CreateQueue()
50 impl->maxElements = maxQueueSize; in CreateQueue()
51 ret = OsalMutexInit(&impl->lock); in CreateQueue()
53 OsalMemFree(impl); in CreateQueue()
56 return (HdfWlanQueue*)impl; in CreateQueue()
62 HdfWlanQueueImpl *impl = NULL; in DestroyQueue() local
66 impl = (HdfWlanQueueImpl *)queue; in DestroyQueue()
67 ret = OsalMutexDestroy(&impl->lock); in DestroyQueue()
[all …]
/drivers/hdf_core/framework/utils/src/
Dhdf_sbuf.c17 if ((sbuf) == NULL || (sbuf)->impl == NULL) { \
21 if ((sbuf)->impl->api == NULL) { \
29 if ((sbuf) == NULL || (sbuf)->impl == NULL) { \
33 if ((sbuf)->impl->api == NULL) { \
40 struct HdfSBufImpl *impl; member
78 return (uint8_t *)sbuf->impl->getData(sbuf->impl); in HdfSbufGetData()
84 sbuf->impl->flush(sbuf->impl); in HdfSbufFlush()
90 return (sbuf != NULL && sbuf->impl != NULL) ? sbuf->impl->getCapacity(sbuf->impl) : 0; in HdfSbufGetCapacity()
96 return sbuf->impl->getDataSize(sbuf->impl); in HdfSbufGetDataSize()
102 sbuf->impl->setDataSize(sbuf->impl, size); in HdfSbufSetDataSize()
[all …]
Dhdf_sbuf_impl_raw.c37 #define SBUF_RAW_CAST(impl) (struct HdfSBufRaw *)(impl) argument
47 static void SbufRawImplRecycle(struct HdfSBufImpl *impl) in SbufRawImplRecycle() argument
49 struct HdfSBufRaw *sbuf = SBUF_RAW_CAST(impl); in SbufRawImplRecycle()
68 static bool SbufRawImplWriteRollback(struct HdfSBufImpl *impl, uint32_t size) in SbufRawImplWriteRollback() argument
70 struct HdfSBufRaw *sbuf = SBUF_RAW_CAST(impl); in SbufRawImplWriteRollback()
85 static bool SbufRawImplReadRollback(struct HdfSBufImpl *impl, uint32_t size) in SbufRawImplReadRollback() argument
87 struct HdfSBufRaw *sbuf = SBUF_RAW_CAST(impl); in SbufRawImplReadRollback()
102 static const uint8_t *SbufRawImplGetData(const struct HdfSBufImpl *impl) in SbufRawImplGetData() argument
104 struct HdfSBufRaw *sbuf = SBUF_RAW_CAST(impl); in SbufRawImplGetData()
112 static void SbufRawImplSetDataSize(struct HdfSBufImpl *impl, size_t size) in SbufRawImplSetDataSize() argument
[all …]
/drivers/hdf_core/adapter/khdf/linux/network/src/
Dnet_device_adapter.c43 if (priv == NULL || priv->dev == NULL || priv->impl == NULL) { in NetDevXmitCheck()
61 netDev = priv->impl->netDevice; in NetDevXmit()
84 if (priv == NULL || priv->dev == NULL || priv->impl == NULL || priv->impl->netDevice == NULL) { in NetDevGetStats()
88 netDev = priv->impl->netDevice; in NetDevGetStats()
168 static struct net_device *GetDevFromDevImpl(const struct NetDeviceImpl *impl) in GetDevFromDevImpl() argument
172 if (impl == NULL || impl->osPrivate == NULL) { in GetDevFromDevImpl()
175 priv = (struct FullNetDevicePriv *)impl->osPrivate; in GetDevFromDevImpl()
179 static int32_t NetDevInit(struct NetDeviceImpl *impl) in NetDevInit() argument
184 if (impl == NULL || impl->netDevice == NULL) { in NetDevInit()
189 dev = CreateNetDevice(impl->netDevice); in NetDevInit()
[all …]
/drivers/peripheral/pin_auth/test/uinttest/pin_auth/service/src/
Dexecutor_impl_test.cpp56 ExecutorImpl *impl = new (std::nothrow) ExecutorImpl(nullptr); variable
58 int32_t result = impl->GetExecutorInfo(info);
63 result = impl->GetTemplateInfo(templateId, templateInfo);
69 result = impl->OnRegisterFinish(templateIdList, frameworkPublicKey, extraInfo);
73 result = impl->Enroll(scheduleId, extraInfo, nullptr);
76 result = impl->Authenticate(scheduleId, templateId, extraInfo, nullptr);
81 result = impl->OnSetData(scheduleId, authSubType, pinData);
84 result = impl->Delete(templateId);
87 result = impl->Cancel(scheduleId);
91 result = impl->SendCommand(commandId, extraInfo, nullptr);
[all …]
/drivers/hdf_core/framework/model/network/common/netdevice/
Dnet_device_impl.h48 void (*netif_napi_add)(struct NetDeviceImpl *impl, struct napi_struct *napi,
50 struct netdev_queue *(*get_tx_queue)(struct NetDeviceImpl *impl, unsigned int queue);
51 __be16 (*type_trans)(struct NetDeviceImpl *impl, struct sk_buff *skb);
52 struct sk_buff* (*alloc_buf)(struct NetDeviceImpl *impl, uint32_t length);
53 void (*start_queue)(struct NetDeviceImpl *impl);
54 void (*disable_tx)(struct NetDeviceImpl *impl);
55 void (*set_dev)(struct NetDeviceImpl *impl, struct device *dev);
56 void (*wake_queue)(struct NetDeviceImpl *impl);
57 struct phy_device *(*of_phyconnect)(struct NetDeviceImpl *impl,
/drivers/hdf_core/adapter/uhdf2/hdi/test/stub_collector/
Dstub_collector_test.cpp122 void *impl = LoadHdiImpl(nullptr, nullptr); variable
123 ASSERT_EQ(impl, nullptr);
125 impl = LoadHdiImpl("test", nullptr);
126 ASSERT_EQ(impl, nullptr);
128 impl = LoadHdiImpl("", "test_service");
129 ASSERT_EQ(impl, nullptr);
131 impl = LoadHdiImpl("test", "");
132 ASSERT_EQ(impl, nullptr);
134 impl = LoadHdiImpl("test", "test_service");
135 ASSERT_EQ(impl, nullptr);
[all …]
/drivers/peripheral/location/agnss/hdi_service/
Dagnss_interface_impl.h53 …t AgnssCallBackDeathRecipient(const wptr<AGnssInterfaceImpl>& impl) : agnssInterfaceImpl_(impl) {}; in AgnssCallBackDeathRecipient() argument
58 sptr<AGnssInterfaceImpl> impl = agnssInterfaceImpl_.promote(); in OnRemoteDied() local
59 if (impl != nullptr) { in OnRemoteDied()
60 impl->ResetAgnss(); in OnRemoteDied()
/drivers/peripheral/location/gnss/hdi_service/
Dgnss_interface_impl.h66 …icit GnssCallBackDeathRecipient(const wptr<GnssInterfaceImpl>& impl) : gnssInterfaceImpl_(impl) {}; in GnssCallBackDeathRecipient() argument
71 sptr<GnssInterfaceImpl> impl = gnssInterfaceImpl_.promote(); in OnRemoteDied() local
72 if (impl != nullptr) { in OnRemoteDied()
73 impl->ResetGnss(); in OnRemoteDied()
/drivers/peripheral/audio/hdi_service/primary_impl/src/
Daudio_render.c456 struct AudioHwRender *impl = (struct AudioHwRender *)handle; in AudioRenderSetMute() local
457 if (impl == NULL) { in AudioRenderSetMute()
461 if (impl->devCtlHandle == NULL) { in AudioRenderSetMute()
472 bool muteStatus = impl->renderParam.renderMode.ctlParam.mute; in AudioRenderSetMute()
473 impl->renderParam.renderMode.ctlParam.mute = mute; in AudioRenderSetMute()
475 …int32_t ret = (*pInterfaceLibModeRender)(impl->devCtlHandle, &impl->renderParam, AUDIODRV_CTL_IOCT… in AudioRenderSetMute()
478 impl->renderParam.renderMode.ctlParam.mute = muteStatus; in AudioRenderSetMute()
487 struct AudioHwRender *impl = (struct AudioHwRender *)handle; in AudioRenderGetMute() local
488 if (impl == NULL || mute == NULL) { in AudioRenderGetMute()
493 if (impl->devCtlHandle == NULL) { in AudioRenderGetMute()
[all …]
Daudio_capture.c401 struct AudioHwCapture *impl = (struct AudioHwCapture *)handle; in AudioCaptureSetMute() local
402 if (impl == NULL) { in AudioCaptureSetMute()
406 if (impl->devCtlHandle == NULL) { in AudioCaptureSetMute()
417 bool muteStatus = impl->captureParam.captureMode.ctlParam.mute; in AudioCaptureSetMute()
418 impl->captureParam.captureMode.ctlParam.mute = mute; in AudioCaptureSetMute()
421 …(*pInterfaceLibModeCapture)(impl->devCtlHandle, &impl->captureParam, AUDIODRV_CTL_IOCTL_MUTE_WRITE… in AudioCaptureSetMute()
424 impl->captureParam.captureMode.ctlParam.mute = muteStatus; in AudioCaptureSetMute()
434 struct AudioHwCapture *impl = (struct AudioHwCapture *)handle; in AudioCaptureGetMute() local
435 if (impl == NULL || mute == NULL) { in AudioCaptureGetMute()
439 if (impl->devCtlHandle == NULL) { in AudioCaptureGetMute()
[all …]
/drivers/peripheral/sensor/hdi_impl/
Dcallback_death_recipient.h33 sptr<SensorImpl> impl = sensorImpl.promote(); in OnRemoteDied() local
34 if (impl == nullptr) { in OnRemoteDied()
37 impl->OnRemoteDied(object); in OnRemoteDied()
/drivers/peripheral/audio/test/systemtest/supportlibs/hardwaredependence/render/src/
Daudio_librender_hardwaredependence_test.cpp310 struct AudioHwRender *impl = nullptr; variable
311 ret = BindServiceAndHwRender(impl, BIND_CONTROL.c_str(), ADAPTER_NAME, handle);
316 free(impl);
317 impl = nullptr;
320 ret = LibHwOutputRender(impl, handleRender);
322 if (impl != nullptr) {
323 impl->renderParam.frameRenderMode.mode = AUDIO_CHANNEL_BOTH_RIGHT;
324 … ret = InterfaceLibCtlRender(handle, AUDIODRV_CTL_IOCTL_CHANNEL_MODE_WRITE, &impl->renderParam);
326 … ret = InterfaceLibCtlRender(handle, AUDIODRV_CTL_IOCTL_CHANNEL_MODE_READ, &impl->renderParam);
328 channelModeExc = impl->renderParam.frameRenderMode.mode;
[all …]
/drivers/peripheral/battery/interfaces/hdi_service/test/fuzztest/batteryhdistub_fuzzer/
Dbatteryhdistub_fuzz.cpp57 sptr<BatteryInterfaceImpl> impl = new BatteryInterfaceImpl(); in BatteryStubFuzzTest() local
58 impl->Init(); in BatteryStubFuzzTest()
59 g_fuzzService = make_shared<BatteryInterfaceStub>(impl); in BatteryStubFuzzTest()
/drivers/peripheral/usb/test/fuzztest/usbdevice_fuzzer/
Dusbdevice_fuzzer.cpp65 sptr<UsbInterfaceStub> impl = new UsbInterfaceStub(g_usbInterface); in DoSomethingInterestingWithMyAPI() local
66 if (impl == nullptr) { in DoSomethingInterestingWithMyAPI()
70 impl->OnRemoteRequest(code, data, reply, option); in DoSomethingInterestingWithMyAPI()
/drivers/peripheral/display/hdi_service/gralloc/client/
Dallocator_proxy.h28 …explicit AllocatorProxy(const sptr<IRemoteObject>& impl) : IRemoteProxy<IDisplayAllocator>(impl) {} in AllocatorProxy() argument
/drivers/peripheral/motion/hdi_service/
Dmotion_if_service.cpp183 MotionIfService *impl = new (std::nothrow) MotionIfService(); in MotionInterfaceImplGetInstance() local
184 if (impl == nullptr) { in MotionInterfaceImplGetInstance()
188 int32_t ret = impl->Init(); in MotionInterfaceImplGetInstance()
191 delete impl; in MotionInterfaceImplGetInstance()
195 return impl; in MotionInterfaceImplGetInstance()
/drivers/peripheral/display/hdi_service/device/include/server/
Ddisplay_device_callback_proxy.h25 explicit DisplayDeviceCallbackProxy(const OHOS::sptr<OHOS::IRemoteObject> &impl) in DisplayDeviceCallbackProxy() argument
26 : OHOS::IRemoteProxy<DisplayRegisterCallbackBase>(impl) {} in DisplayDeviceCallbackProxy()
/drivers/peripheral/fingerprint_auth/test/fuzztest/fingerprint_auth/fingerprintexecutorstub_fuzzer/
Dfingerprint_auth_executor_stub_fuzzer.cpp42 ExecutorImpl *impl = new (std::nothrow) ExecutorImpl(); in FingerprintAuthExecutorStubFuzzTest() local
43 if (impl == nullptr) { in FingerprintAuthExecutorStubFuzzTest()
48 new OHOS::HDI::FingerprintAuth::V1_1::ExecutorStub(impl); in FingerprintAuthExecutorStubFuzzTest()
/drivers/peripheral/pin_auth/test/fuzztest/pin_auth/pinauthexecutorstub_fuzzer/
Dpin_auth_executor_stub_fuzzer.cpp47 ExecutorImpl *impl = new (std::nothrow) ExecutorImpl(pinHdi); in PinAuthExecutorStubFuzzTest() local
48 if (impl == nullptr) { in PinAuthExecutorStubFuzzTest()
53 new OHOS::HDI::PinAuth::V1_1::ExecutorStub(impl); in PinAuthExecutorStubFuzzTest()
/drivers/peripheral/usb/test/fuzztest/usbhost_fuzzer/
Dusbhost_fuzzer.cpp97 sptr<UsbInterfaceStub> impl = new UsbInterfaceStub(usbInterface); in DoSomethingInterestingWithMyAPI() local
98 if (impl == nullptr) { in DoSomethingInterestingWithMyAPI()
102 impl->OnRemoteRequest(code, data, reply, option); in DoSomethingInterestingWithMyAPI()
/drivers/peripheral/usb/hdi_service/src/
Dusb_interface_driver.cpp97 sptr<UsbImpl> impl = static_cast<UsbImpl *>(serviceImpl.GetRefPtr()); in HdfUsbInterfaceDriverBind() local
98 impl->device_ = deviceObject; in HdfUsbInterfaceDriverBind()
99 int32_t ret = UsbImpl::UsbdEventHandle(impl); in HdfUsbInterfaceDriverBind()
/drivers/peripheral/light/hdi_service/
Dlight_if_service.cpp195 LightIfService *impl = new (std::nothrow) LightIfService(); in LightInterfaceImplGetInstance() local
196 if (impl == nullptr) { in LightInterfaceImplGetInstance()
201 int32_t ret = impl->Init(); in LightInterfaceImplGetInstance()
204 delete impl; in LightInterfaceImplGetInstance()
208 return impl; in LightInterfaceImplGetInstance()
/drivers/peripheral/sensor/hdi_service/
Dsensor_if_service.cpp270 SensorIfService *impl = new (std::nothrow) SensorIfService(); in SensorInterfaceImplGetInstance() local
271 if (impl == nullptr) { in SensorInterfaceImplGetInstance()
275 int32_t ret = impl->Init(); in SensorInterfaceImplGetInstance()
278 delete impl; in SensorInterfaceImplGetInstance()
282 return impl; in SensorInterfaceImplGetInstance()
/drivers/hdf_core/interfaces/inner_api/hdi/
Dhdi_support.h65 void UnloadHdiImpl(const char *desc, const char *serviceName, void *impl);

12