/drivers/hdf_core/framework/support/platform/src/timer/ |
D | timer_if.c | 32 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/ |
D | stream_tunnel.cpp | 80 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/ |
D | idevice_manager.h | 88 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/ |
D | camera_host.cpp | 57 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()
|
D | camera_device.cpp | 38 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/ |
D | pcie_core.c | 159 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()
|
D | pcie_if.c | 49 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()
|
D | pcie_if_u.c | 194 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/ |
D | timer_core.h | 46 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/ |
D | stream_tunnel.cpp | 95 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/ |
D | bus_extension_usb_mt.cpp | 46 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/ |
D | CanvasInput.js | 23 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/ |
D | driver_extension_controller.cpp | 37 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/ |
D | icontroller.cpp | 44 void IController::SetMetaDataCallBack(const MetaDataCb cb) in SetMetaDataCallBack() argument 46 (void)cb; in SetMetaDataCallBack()
|
/drivers/peripheral/display/hal/default_standard/src/display_device/vsync/ |
D | sorft_vsync.cpp | 97 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/ |
D | imotion_interface_vdi.h | 35 virtual int32_t RegisterMotionCallback(const sptr<IMotionCallbackVdi> cb) = 0; 36 virtual int32_t UnregisterMotionCallback(const sptr<IMotionCallbackVdi> cb) = 0;
|
/drivers/peripheral/sensor/interfaces/include/ |
D | sensor_if.h | 150 int32_t (*Register)(int32_t groupId, RecordDataCallback cb); 166 int32_t (*Unregister)(int32_t groupId, RecordDataCallback cb);
|
/drivers/peripheral/intelligent_voice/passthrough/engine/ |
D | engine_base.h | 30 IntellVoiceStatus GetParameter(const std::string &keyList, getParameterCb cb) override; 34 IntellVoiceStatus ReadFileData(ContentType type, getFileDataCb cb) override;
|
/drivers/hdf_core/framework/include/platform/ |
D | timer_if.h | 69 int32_t HwTimerSet(DevHandle handle, uint32_t useconds, TimerHandleCb cb); 79 int32_t HwTimerSetOnce(DevHandle handle, uint32_t useconds, TimerHandleCb cb);
|
D | pcie_if.h | 111 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/ |
D | netlink_event_adapter.c | 373 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/ |
D | enumerator_manager.cpp | 42 void EnumeratorManager::SetCallBack(UvcDataCb cb) in SetCallBack() argument 44 uvcCb_ = cb; in SetCallBack()
|
/drivers/peripheral/display/hal/default_standard/src/display_device/drm/ |
D | drm_vsync_worker.cpp | 118 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/ |
D | sensor_accel_driver.h | 59 GravitySubscribeAccelCallback cb; member 65 int32_t SubscribeAccelDataCallbackFunc(GravitySubscribeAccelCallback cb);
|
/drivers/peripheral/sensor/hal/include/ |
D | sensor_channel.h | 66 int32_t Register(int32_t groupId, RecordDataCallback cb); 67 int32_t Unregister(int32_t groupId, RecordDataCallback cb);
|