Home
last modified time | relevance | path

Searched refs:cb (Results 1 – 25 of 122) sorted by relevance

12345

/drivers/hdf_core/framework/support/platform/src/timer/
Dtimer_if.c32 int32_t HwTimerSet(DevHandle handle, uint32_t useconds, TimerHandleCb cb) in HwTimerSet() argument
36 if (cntrl == NULL || cb == NULL) { in HwTimerSet()
41 if (TimerCntrlSet(cntrl, useconds, cb) != HDF_SUCCESS) { in HwTimerSet()
49 int32_t HwTimerSetOnce(DevHandle handle, uint32_t useconds, TimerHandleCb cb) in HwTimerSetOnce() argument
53 if (cntrl == NULL || cb == NULL) { in HwTimerSetOnce()
58 if (TimerCntrlSetOnce(cntrl, useconds, cb) != HDF_SUCCESS) { in HwTimerSetOnce()
/drivers/peripheral/camera/vdi_base/v4l2/src/stream_operator/stream_tunnel/lite/
Dstream_tunnel.cpp80 std::shared_ptr<IBuffer> cb = nullptr; in GetBuffer() local
85 cb = it->first; in GetBuffer()
89 if (cb == nullptr) { in GetBuffer()
90 cb = std::make_shared<ImageBuffer>(CAMERA_BUFFER_SOURCE_TYPE_EXTERNAL); in GetBuffer()
91 RetCode rc = BufferAdapter::SurfaceBufferToCameraBuffer(sb, bufferQueue_, cb); in GetBuffer()
92 if (rc != RC_OK || cb == nullptr) { in GetBuffer()
97 cb->SetIndex(++index); in GetBuffer()
100 buffers[cb] = sb; in GetBuffer()
103 cb->SetBufferStatus(CAMERA_BUFFER_STATUS_OK); in GetBuffer()
106 return cb; in GetBuffer()
/drivers/peripheral/camera/vdi_base/common/device_manager/include/
Didevice_manager.h88 virtual void SetNodeCallBack(const NodeBufferCb cb, CameraId cameraId = CAMERA_MAX)
90 (void)cb;
94 virtual void SetMetaDataCallBack(const MetaDataCb cb, CameraId cameraId = CAMERA_MAX)
96 (void)cb;
100 virtual void SetDevStatusCallBack(const DeviceStatusCb cb) in SetDevStatusCallBack() argument
102 (void)cb; in SetDevStatusCallBack()
107 virtual void SetHotplugDevCallBack(HotplugDevCb cb) in SetHotplugDevCallBack() argument
109 (void)cb; in SetHotplugDevCallBack()
/drivers/peripheral/camera/hal_c/hdi_cif/src/
Dcamera_host.cpp57 CameraHostCallbackCIF cb; in SetCallback() local
60 cb.OnCameraStatus = HostCBOnCameraStatus; in SetCallback()
61 cb.OnFlashlightStatus = HostCBOnFlashlightStatus; in SetCallback()
63 host_->SetCallback(cb); in SetCallback()
95 CameraDeviceCallbackCIF cb; in OpenCamera() local
98 cb.OnError = DeviceCBOnError; in OpenCamera()
99 cb.OnResult = DeviceCBOnResult; in OpenCamera()
103 int ret = host_->OpenCamera(id, cb, device); in OpenCamera()
Dcamera_device.cpp38 StreamOperatorCallbackCIF cb; in GetStreamOperator() local
41 cb.OnCaptureStarted = StreamCBOnCaptureStarted; in GetStreamOperator()
42 cb.OnCaptureEnded = StreamCBOnCaptureEnded; in GetStreamOperator()
43 cb.OnCaptureError = StreamCBOnCaptureError; in GetStreamOperator()
44 cb.OnFrameShutter = StreamCBOnFrameShutter; in GetStreamOperator()
47 int ret = device_->GetStreamOperator(cb, op); in GetStreamOperator()
/drivers/hdf_core/framework/support/platform/src/pcie/
Dpcie_core.c159 int32_t PcieCntlrDmaMap(struct PcieCntlr *cntlr, PcieCallbackFunc cb, uintptr_t addr, uint32_t len,… in PcieCntlrDmaMap() argument
167 if (addr == 0 || cb == NULL || len == 0) { in PcieCntlrDmaMap()
178 cntlr->dmaCb = cb; in PcieCntlrDmaMap()
196 int32_t PcieCntlrRegisterIrq(struct PcieCntlr *cntlr, PcieCallbackFunc cb) in PcieCntlrRegisterIrq() argument
198 if (cntlr == NULL || cntlr->ops == NULL || cb == NULL) { in PcieCntlrRegisterIrq()
204 if (cntlr->cb != NULL) { in PcieCntlrRegisterIrq()
209 cntlr->cb = cb; in PcieCntlrRegisterIrq()
228 cntlr->cb = NULL; in PcieCntlrUnregisterIrq()
238 if (cntlr->cb != NULL) { in PcieCntlrCallback()
239 return cntlr->cb((DevHandle)cntlr); in PcieCntlrCallback()
Dpcie_if.c49 int32_t PcieDmaMap(DevHandle handle, PcieCallbackFunc cb, uintptr_t addr, uint32_t len, uint8_t dir) in PcieDmaMap() argument
51 return PcieCntlrDmaMap((struct PcieCntlr *)handle, cb, addr, len, dir); in PcieDmaMap()
59 int32_t PcieRegisterIrq(DevHandle handle, PcieCallbackFunc cb) in PcieRegisterIrq() argument
61 return PcieCntlrRegisterIrq((struct PcieCntlr *)handle, cb); in PcieRegisterIrq()
Dpcie_if_u.c194 struct HdfIoService *service, PcieCallbackFunc cb, uint32_t num, const struct DmaData *dma) in PcieRegListener() argument
204 param->func = cb; in PcieRegListener()
222 DevHandle handle, PcieCallbackFunc cb, struct HdfSBuf *data, uintptr_t addr, uint32_t len) in DmaToDevice() argument
242 return PcieRegListener((struct HdfIoService *)handle, cb, DMA_CB_NUM, &dma); in DmaToDevice()
246 DevHandle handle, PcieCallbackFunc cb, struct HdfSBuf *data, uintptr_t addr, uint32_t len) in DeviceToDma() argument
262 return PcieRegListener((struct HdfIoService *)handle, cb, DMA_CB_NUM, &dma); in DeviceToDma()
265 int32_t PcieDmaMap(DevHandle handle, PcieCallbackFunc cb, uintptr_t addr, uint32_t len, uint8_t dir) in PcieDmaMap() argument
287 ret = DeviceToDma(handle, cb, data, addr, len); in PcieDmaMap()
289 ret = DmaToDevice(handle, cb, data, addr, len); in PcieDmaMap()
344 int32_t PcieRegisterIrq(DevHandle handle, PcieCallbackFunc cb) in PcieRegisterIrq() argument
[all …]
/drivers/hdf_core/framework/support/platform/include/timer/
Dtimer_core.h46 TimerHandleCb cb; member
65 int32_t (*Set)(struct TimerCntrl *cntrl, uint32_t useconds, TimerHandleCb cb);
66 int32_t (*SetOnce)(struct TimerCntrl *cntrl, uint32_t useconds, TimerHandleCb cb);
107 int32_t TimerCntrlSet(struct TimerCntrl *cntrl, uint32_t useconds, TimerHandleCb cb);
116 int32_t TimerCntrlSetOnce(struct TimerCntrl *cntrl, uint32_t useconds, TimerHandleCb cb);
/drivers/peripheral/camera/vdi_base/v4l2/src/stream_operator/stream_tunnel/standard/
Dstream_tunnel.cpp95 std::shared_ptr<IBuffer> cb = GetCameraBufferAndUpdateInfo(sb); in GetBuffer() local
97 return cb; in GetBuffer()
219 std::shared_ptr<IBuffer> cb = nullptr; in GetCameraBufferAndUpdateInfo() local
224 cb = it->first; in GetCameraBufferAndUpdateInfo()
228 if (cb == nullptr) { in GetCameraBufferAndUpdateInfo()
229 cb = std::make_shared<ImageBuffer>(CAMERA_BUFFER_SOURCE_TYPE_EXTERNAL); in GetCameraBufferAndUpdateInfo()
230 RetCode rc = BufferAdapter::SurfaceBufferToCameraBuffer(sb, cb); in GetCameraBufferAndUpdateInfo()
231 if (rc != RC_OK || cb == nullptr) { in GetCameraBufferAndUpdateInfo()
236 cb->SetIndex(++index); in GetCameraBufferAndUpdateInfo()
239 buffers[cb] = sb; in GetCameraBufferAndUpdateInfo()
[all …]
/drivers/external_device_manager/test/moduletest/bus_extension_usb_mt/
Dbus_extension_usb_mt.cpp46 auto cb = make_shared<TestDevChangeCallback>(); in Entry() local
48 usbExt->SetDevChangeCallback(cb); in Entry()
55 cb->PrintAllDevice(); in Entry()
/drivers/hdf_core/framework/tools/hcs-view/hcsWebView/src/hcs/
DCanvasInput.js23 static Reset(x, y, w, h, value, cb, cb2) { argument
33 if (cb) {
34 cb(e.target.value);
/drivers/external_device_manager/services/native/driver_extension_manager/src/driver_controller/
Ddriver_extension_controller.cpp37 auto cb = callback_.lock(); in OnAbilityConnectDone() local
38 if (cb != nullptr) { in OnAbilityConnectDone()
39 cb->OnConnectDone(remoteObject, resultCode); in OnAbilityConnectDone()
49 auto cb = callback_.lock(); in OnAbilityDisconnectDone() local
50 if (cb != nullptr) { in OnAbilityDisconnectDone()
51 cb->OnDisconnectDone(resultCode); in OnAbilityDisconnectDone()
/drivers/peripheral/camera/vdi_base/common/device_manager/src/
Dicontroller.cpp44 void IController::SetMetaDataCallBack(const MetaDataCb cb) in SetMetaDataCallBack() argument
46 (void)cb; in SetMetaDataCallBack()
/drivers/peripheral/display/hal/default_standard/src/display_device/vsync/
Dsorft_vsync.cpp97 void SorftVsync::ReqesterVBlankCb(const std::shared_ptr<VsyncCallBack> &cb) in ReqesterVBlankCb() argument
100 DISPLAY_CHK_RETURN_NOT_VALUE((cb == nullptr), DISPLAY_LOGE("the VBlankCallback is nullptr ")); in ReqesterVBlankCb()
101 callback_ = cb; in ReqesterVBlankCb()
/drivers/peripheral/motion/interfaces/v1_0/
Dimotion_interface_vdi.h35 virtual int32_t RegisterMotionCallback(const sptr<IMotionCallbackVdi> cb) = 0;
36 virtual int32_t UnregisterMotionCallback(const sptr<IMotionCallbackVdi> cb) = 0;
/drivers/peripheral/sensor/interfaces/include/
Dsensor_if.h150 int32_t (*Register)(int32_t groupId, RecordDataCallback cb);
166 int32_t (*Unregister)(int32_t groupId, RecordDataCallback cb);
/drivers/peripheral/intelligent_voice/passthrough/engine/
Dengine_base.h30 IntellVoiceStatus GetParameter(const std::string &keyList, getParameterCb cb) override;
34 IntellVoiceStatus ReadFileData(ContentType type, getFileDataCb cb) override;
/drivers/hdf_core/framework/include/platform/
Dtimer_if.h69 int32_t HwTimerSet(DevHandle handle, uint32_t useconds, TimerHandleCb cb);
79 int32_t HwTimerSetOnce(DevHandle handle, uint32_t useconds, TimerHandleCb cb);
Dpcie_if.h111 int32_t PcieDmaMap(DevHandle handle, PcieCallbackFunc cb, uintptr_t addr, uint32_t len, uint8_t dir…
135 int32_t PcieRegisterIrq(DevHandle handle, PcieCallbackFunc cb);
/drivers/peripheral/wlan/client/src/netlink/
Dnetlink_event_adapter.c373 struct nl_cb *cb; in CreateCb() local
375 cb = nl_cb_alloc(NL_CB_DEFAULT); in CreateCb()
376 if (cb == NULL) { in CreateCb()
381 nl_cb_set(cb, NL_CB_SEQ_CHECK, NL_CB_CUSTOM, NoSeqCheck, NULL); in CreateCb()
382 nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, ProcessEvent, NULL); in CreateCb()
384 return cb; in CreateCb()
390 struct nl_cb *cb = CreateCb(); in HandleEvent() local
391 if (cb == NULL) { in HandleEvent()
396 ret = nl_recvmsgs(sock, cb); in HandleEvent()
398 nl_cb_put(cb); in HandleEvent()
[all …]
/drivers/peripheral/camera/vdi_base/common/adapter/platform/v4l2/src/device_manager/
Denumerator_manager.cpp42 void EnumeratorManager::SetCallBack(UvcDataCb cb) in SetCallBack() argument
44 uvcCb_ = cb; in SetCallBack()
/drivers/peripheral/display/hal/default_standard/src/display_device/drm/
Ddrm_vsync_worker.cpp118 void DrmVsyncWorker::ReqesterVBlankCb(const std::shared_ptr<VsyncCallBack> &cb) in ReqesterVBlankCb() argument
121 DISPLAY_CHK_RETURN_NOT_VALUE((cb == nullptr), DISPLAY_LOGE("the VBlankCallback is nullptr ")); in ReqesterVBlankCb()
122 mCallBack = cb; in ReqesterVBlankCb()
/drivers/hdf_core/framework/model/sensor/driver/accel/
Dsensor_accel_driver.h59 GravitySubscribeAccelCallback cb; member
65 int32_t SubscribeAccelDataCallbackFunc(GravitySubscribeAccelCallback cb);
/drivers/peripheral/sensor/hal/include/
Dsensor_channel.h66 int32_t Register(int32_t groupId, RecordDataCallback cb);
67 int32_t Unregister(int32_t groupId, RecordDataCallback cb);

12345