Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 25 of 413) sorted by relevance

12345678910>>...17

/drivers/hdf_core/adapter/uhdf2/hdi/src/
Dbuffer_util.c32 BufferHandle *handle = (BufferHandle *)(OsalMemCalloc(handleSize)); in AllocateNativeBufferHandle() local
33 if (handle != NULL) { in AllocateNativeBufferHandle()
34 handle->fd = -1; in AllocateNativeBufferHandle()
35 handle->reserveFds = reserveFds; in AllocateNativeBufferHandle()
36 handle->reserveInts = reserveInts; in AllocateNativeBufferHandle()
38 handle->reserve[i] = -1; in AllocateNativeBufferHandle()
43 return handle; in AllocateNativeBufferHandle()
53 BufferHandle *handle = AllocateNativeBufferHandle(other->reserveFds, other->reserveInts); in CloneNativeBufferHandle() local
54 if (handle == NULL) { in CloneNativeBufferHandle()
60 handle->fd = other->fd; in CloneNativeBufferHandle()
[all …]
/drivers/hdf_core/framework/support/platform/src/rtc/
Drtc_if.c32 void RtcClose(DevHandle handle) in RtcClose() argument
34 (void)handle; in RtcClose()
37 int32_t RtcReadTime(DevHandle handle, struct RtcTime *time) in RtcReadTime() argument
39 if (handle == NULL || time == NULL) { in RtcReadTime()
44 return RtcHostReadTime((struct RtcHost *)handle, time); in RtcReadTime()
47 int32_t RtcWriteTime(DevHandle handle, const struct RtcTime *time) in RtcWriteTime() argument
49 if (handle == NULL || time == NULL) { in RtcWriteTime()
59 return RtcHostWriteTime((struct RtcHost *)handle, time); in RtcWriteTime()
62 int32_t RtcReadAlarm(DevHandle handle, enum RtcAlarmIndex alarmIndex, struct RtcTime *time) in RtcReadAlarm() argument
64 if (handle == NULL || time == NULL) { in RtcReadAlarm()
[all …]
/drivers/hdf_core/framework/support/platform/src/mipi/
Dmipi_csi_if.c19 void MipiCsiClose(DevHandle handle) in MipiCsiClose() argument
21 MipiCsiCntlrPut((struct MipiCsiCntlr *)handle); in MipiCsiClose()
24 int32_t MipiCsiSetComboDevAttr(DevHandle handle, ComboDevAttr *pAttr) in MipiCsiSetComboDevAttr() argument
26 return MipiCsiCntlrSetComboDevAttr((struct MipiCsiCntlr *)handle, pAttr); in MipiCsiSetComboDevAttr()
29 int32_t MipiCsiSetPhyCmvmode(DevHandle handle, uint8_t devno, PhyCmvMode cmvMode) in MipiCsiSetPhyCmvmode() argument
31 return MipiCsiCntlrSetPhyCmvmode((struct MipiCsiCntlr *)handle, devno, cmvMode); in MipiCsiSetPhyCmvmode()
34 int32_t MipiCsiSetExtDataType(DevHandle handle, ExtDataType* dataType) in MipiCsiSetExtDataType() argument
36 return MipiCsiCntlrSetExtDataType((struct MipiCsiCntlr *)handle, dataType); in MipiCsiSetExtDataType()
39 int32_t MipiCsiSetHsMode(DevHandle handle, LaneDivideMode laneDivideMode) in MipiCsiSetHsMode() argument
41 return MipiCsiCntlrSetHsMode((struct MipiCsiCntlr *)handle, laneDivideMode); in MipiCsiSetHsMode()
[all …]
Dmipi_dsi_if.c19 void MipiDsiClose(DevHandle handle) in MipiDsiClose() argument
21 MipiDsiCntlrClose((struct MipiDsiCntlr *)handle); in MipiDsiClose()
24 int32_t MipiDsiSetCfg(DevHandle handle, struct MipiCfg *cfg) in MipiDsiSetCfg() argument
26 return MipiDsiCntlrSetCfg((struct MipiDsiCntlr *)handle, cfg); in MipiDsiSetCfg()
29 int32_t MipiDsiGetCfg(DevHandle handle, struct MipiCfg *cfg) in MipiDsiGetCfg() argument
31 return MipiDsiCntlrGetCfg((struct MipiDsiCntlr *)handle, cfg); in MipiDsiGetCfg()
34 void MipiDsiSetLpMode(DevHandle handle) in MipiDsiSetLpMode() argument
36 MipiDsiCntlrSetLpMode((struct MipiDsiCntlr *)handle); in MipiDsiSetLpMode()
39 void MipiDsiSetHsMode(DevHandle handle) in MipiDsiSetHsMode() argument
41 MipiDsiCntlrSetHsMode((struct MipiDsiCntlr *)handle); in MipiDsiSetHsMode()
[all …]
/drivers/hdf_core/framework/support/platform/src/pin/
Dpin_if.c20 void PinPut(DevHandle handle) in PinPut() argument
22 if (handle == NULL) { in PinPut()
26 return PinCntlrPutPin((struct PinDesc *)handle); in PinPut()
29 int32_t PinSetPull(DevHandle handle, enum PinPullType pullType) in PinSetPull() argument
33 if (handle == NULL) { in PinSetPull()
38 cntlr = PinCntlrGetByPin((struct PinDesc *)handle); in PinSetPull()
39 return PinCntlrSetPinPull(cntlr, (struct PinDesc *)handle, pullType); in PinSetPull()
42 int32_t PinGetPull(DevHandle handle, enum PinPullType *pullType) in PinGetPull() argument
46 if (handle == NULL || pullType == NULL) { in PinGetPull()
51 cntlr = PinCntlrGetByPin((struct PinDesc *)handle); in PinGetPull()
[all …]
/drivers/peripheral/format/interfaces/include/
Dformat_interface.h87 int32_t FormatDemuxerCreate(const FormatSource *source, FormatHandle * const handle);
106 int32_t FormatDemuxerSetParameter(const FormatHandle handle, int32_t trackId,
126 int32_t FormatDemuxerGetParameter(const FormatHandle handle, int32_t trackId, ParameterItem *metaDa…
139 int32_t FormatDemuxerSetCallBack(const FormatHandle handle, const FormatCallback *callBack);
154 int32_t FormatDemuxerSetBufferConfig(const FormatHandle handle, const FormatBufferSetting *setting);
168 int32_t FormatDemuxerGetBufferConfig(const FormatHandle handle, FormatBufferSetting *setting);
181 int32_t FormatDemuxerPrepare(const FormatHandle handle);
195 int32_t FormatDemuxerGetFileInfo(const FormatHandle handle, FileInfo *info);
213 int32_t FormatDemuxerSelectTrack(const FormatHandle handle, int32_t programId, int32_t trackId);
232 int32_t FormatDemuxerUnselectTrack(const FormatHandle handle, int32_t programId, int32_t trackId);
[all …]
/drivers/hdf_core/framework/support/platform/src/watchdog/
Dwatchdog_if.c50 int32_t WatchdogOpen(int16_t wdtId, DevHandle *handle) in WatchdogOpen() argument
55 if (handle == NULL) { in WatchdogOpen()
62 *handle = NULL; in WatchdogOpen()
69 *handle = (DevHandle)service; in WatchdogOpen()
77 void WatchdogClose(DevHandle handle) in WatchdogClose() argument
79 if (handle == NULL) { in WatchdogClose()
83 if (WatchdogReleasePriv((struct WatchdogCntlr *)handle) != HDF_SUCCESS) { in WatchdogClose()
89 int32_t WatchdogGetStatus(DevHandle handle, int32_t *status) in WatchdogGetStatus() argument
91 if (handle == NULL) { in WatchdogGetStatus()
95 return WatchdogCntlrGetStatus((struct WatchdogCntlr *)handle, status); in WatchdogGetStatus()
[all …]
/drivers/hdf_core/framework/support/platform/src/uart/
Duart_if.c44 void *handle = NULL; in UartOpen() local
46 handle = UartGetObjGetByBusNum(port); in UartOpen()
47 if (handle == NULL) { in UartOpen()
51 ret = UartHostRequest((struct UartHost *)handle); in UartOpen()
54 UartPutObjByPointer(handle); in UartOpen()
57 return (DevHandle)handle; in UartOpen()
60 void UartClose(DevHandle handle) in UartClose() argument
63 if (handle == NULL) { in UartClose()
67 ret = UartHostRelease((struct UartHost *)handle); in UartClose()
71 UartPutObjByPointer(handle); in UartClose()
[all …]
/drivers/hdf_core/framework/support/platform/src/can/
Dcan_if.c13 int32_t CanBusOpen(int32_t number, DevHandle *handle) in CanBusOpen() argument
20 *handle = (DevHandle)client; in CanBusOpen()
25 void CanBusClose(DevHandle handle) in CanBusClose() argument
27 CanClientDestroy((struct CanClient *)handle); in CanBusClose()
30 int32_t CanBusSendMsg(DevHandle handle, const struct CanMsg *msg) in CanBusSendMsg() argument
32 return CanClientWriteMsg((struct CanClient *)handle, msg); in CanBusSendMsg()
35 int32_t CanBusReadMsg(DevHandle handle, struct CanMsg *msg, uint32_t tms) in CanBusReadMsg() argument
37 return CanClientReadMsg((struct CanClient *)handle, msg, tms); in CanBusReadMsg()
40 int32_t CanBusAddFilter(DevHandle handle, const struct CanFilter *filter) in CanBusAddFilter() argument
42 return CanClientAddFilter((struct CanClient *)handle, filter); in CanBusAddFilter()
[all …]
/drivers/peripheral/audio/supportlibs/interfaces/include/
Daudio_if_lib_render.h46 int32_t AudioOutputRenderOpen(const struct DevHandle *handle,
48 int32_t AudioOutputRenderHwParams(const struct DevHandle *handle,
50 int32_t AudioOutputRenderClose(const struct DevHandle *handle,
52 int32_t AudioOutputRenderPrepare(const struct DevHandle *handle,
54 int32_t AudioOutputRenderStart(const struct DevHandle *handle,
56 int32_t AudioOutputRenderGetMmapPosition(const struct DevHandle *handle,
58 int32_t AudioInterfaceLibModeRender(const struct DevHandle *handle,
60 int32_t AudioOutputRenderHwParams(const struct DevHandle *handle,
62 int32_t AudioOutputRenderWrite(const struct DevHandle *handle,
64 int32_t AudioOutputRenderStop(const struct DevHandle *handle,
[all …]
Daudio_if_lib_capture.h45 int32_t AudioOutputCaptureOpen(const struct DevHandle *handle,
47 int32_t AudioOutputCapturePrepare(const struct DevHandle *handle,
49 int32_t AudioOutputCaptureStart(const struct DevHandle *handle,
51 int32_t AudioOutputCaptureClose(const struct DevHandle *handle,
53 int32_t AudioOutputCaptureGetMmapPosition(const struct DevHandle *handle,
55 int32_t AudioInterfaceLibModeCapture(const struct DevHandle *handle,
57 int32_t AudioOutputCaptureHwParams(const struct DevHandle *handle,
59 int32_t AudioOutputCaptureRead(const struct DevHandle *handle,
61 int32_t AudioOutputCaptureStop(const struct DevHandle *handle,
63 int32_t AudioOutputCaptureStartPrepare(const struct DevHandle *handle,
[all …]
/drivers/peripheral/audio/test/systemtest/supportlibs/common/capture/src/
Daudio_libcapture_test.cpp35 static int32_t (*InterfaceLibOutputCapture)(struct DevHandle *handle, int cmdId,
37 static int32_t (*InterfaceLibCtlCapture)(struct DevHandle *handle, int cmdId,
39 static void (*CloseServiceCaptureSo)(struct DevHandle *handle);
42 const std::string adapterNameCase, struct DevHandle *&handle) const;
46 int32_t (*AudioLibCaptureTest::InterfaceLibOutputCapture)(struct DevHandle *handle, int cmdId,
48 int32_t (*AudioLibCaptureTest::InterfaceLibCtlCapture)(struct DevHandle *handle, int cmdId,
50 void (*AudioLibCaptureTest::CloseServiceCaptureSo)(struct DevHandle *handle) = nullptr;
62 InterfaceLibOutputCapture = (int32_t (*)(struct DevHandle *handle, int cmdId, in SetUpTestCase()
64 InterfaceLibCtlCapture = (int32_t (*)(struct DevHandle *handle, int cmdId, in SetUpTestCase()
66 CloseServiceCaptureSo = reinterpret_cast<void (*)(struct DevHandle *handle)>(dlsym(ptrHandle, in SetUpTestCase()
[all …]
/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/include/
Dfast_audio_render.h24 int32_t FastRenderStart(AudioHandle handle);
25 int32_t FastRenderStop(AudioHandle handle);
26 int32_t FastRenderPause(AudioHandle handle);
27 int32_t FastRenderResume(AudioHandle handle);
28 int32_t FastRenderFlush(AudioHandle handle);
29 int32_t FastRenderGetFrameSize(AudioHandle handle, uint64_t *size);
30 int32_t FastRenderGetFrameCount(AudioHandle handle, uint64_t *count);
31 int32_t FastRenderSetSampleAttributes(AudioHandle handle, const struct AudioSampleAttributes *attrs…
32 int32_t FastRenderGetSampleAttributes(AudioHandle handle, struct AudioSampleAttributes *attrs);
33 int32_t FastRenderGetCurrentChannelId(AudioHandle handle, uint32_t *channelId);
[all …]
/drivers/peripheral/display/hal/default_standard/src/display_gralloc/
Ddisplay_gralloc.cpp20 static int32_t AllocMem(const AllocInfo *info, BufferHandle **handle) in AllocMem() argument
24 DISPLAY_CHK_RETURN((handle == nullptr), DISPLAY_NULL_PTR, DISPLAY_LOGE("handle is nullptr")); in AllocMem()
25 return AllocatorManager::GetInstance().GetAllocator(info->usage)->AllocMem(*info, handle); in AllocMem()
28 static void FreeMem(BufferHandle *handle) in FreeMem() argument
31 DISPLAY_CHK_RETURN_NOT_VALUE((handle == nullptr), DISPLAY_LOGE("handle is nullptr")); in FreeMem()
32 AllocatorManager::GetInstance().GetAllocator(handle->usage)->FreeMem(handle); in FreeMem()
35 static void *Mmap(BufferHandle *handle) in Mmap() argument
38 DISPLAY_CHK_RETURN((handle == nullptr), nullptr, DISPLAY_LOGE("handle is nullptr")); in Mmap()
39 return AllocatorManager::GetInstance().GetAllocator(handle->usage)->Mmap(*handle); in Mmap()
42 static int32_t Unmap(BufferHandle *handle) in Unmap() argument
[all …]
Dallocator.cpp21 void Allocator::DumpBufferHandle(BufferHandle &handle) const in DumpBufferHandle()
24 handle.size, handle.width, handle.height, handle.stride, handle.fd, handle.format); in DumpBufferHandle()
25 DISPLAY_LOGD("usage = 0x%{public}" PRIx64 "", handle.usage); in DumpBufferHandle()
152 int32_t Allocator::AllocMem(const AllocInfo &info, BufferHandle **handle) in AllocMem() argument
179 *handle = priBuffer; in AllocMem()
183 int32_t Allocator::Allocate(const BufferInfo &bufferInfo, BufferHandle &handle) in Allocate() argument
189 int32_t Allocator::FreeMem(BufferHandle *handle) in FreeMem() argument
192 DISPLAY_CHK_RETURN((handle == nullptr), DISPLAY_NULL_PTR, DISPLAY_LOGE("buffer is null")); in FreeMem()
193 if (handle->fd >= 0) { in FreeMem()
194 DISPLAY_LOGD("release the fd is %{public}d", handle->fd); in FreeMem()
[all …]
/drivers/peripheral/display/composer/test/common/
Ddisplay_test_utils.cpp95 uint32_t GetPixelValue(const BufferHandle &handle, int x, int y) in GetPixelValue() argument
98 int32_t bpp = GetPixelFormatBpp((Composer::V1_0::PixelFormat)handle.format); in GetPixelValue()
100 handle.format)); in GetPixelValue()
101 DISPLAY_TEST_CHK_RETURN((handle.virAddr == nullptr), 0, in GetPixelValue()
103 DISPLAY_TEST_CHK_RETURN((x < 0 || x >= handle.width), 0, in GetPixelValue()
104 … DISPLAY_TEST_LOGE("CheckPixel invalid parameter x:%{public}d width:%{public}d", x, handle.width)); in GetPixelValue()
105 DISPLAY_TEST_CHK_RETURN((y < 0 || y >= handle.height), 0, in GetPixelValue()
106 …DISPLAY_TEST_LOGE("CheckPixel invalid parameter y:%{public}d height:%{public}d", y, handle.height)… in GetPixelValue()
108 int32_t position = y * handle.width + x; in GetPixelValue()
109 if ((position * PIXEL_BYTES) > handle.size) { in GetPixelValue()
[all …]
Dhdi_test_render_utils.cpp30 void SetPixel(const BufferHandle& handle, int x, int y, uint32_t color) in SetPixel() argument
33 DISPLAY_TEST_CHK_RETURN_NOT_VALUE((handle.format <= 0), in SetPixel()
34 DISPLAY_TEST_LOGE("CheckPixel do not support format %{public}d", handle.format)); in SetPixel()
35 DISPLAY_TEST_CHK_RETURN_NOT_VALUE((handle.virAddr == nullptr), in SetPixel()
37 DISPLAY_TEST_CHK_RETURN_NOT_VALUE((x < 0 || x >= handle.width), in SetPixel()
38 … DISPLAY_TEST_LOGE("CheckPixel invalid parameter x:%{public}d width:%{public}d", x, handle.width)); in SetPixel()
39 DISPLAY_TEST_CHK_RETURN_NOT_VALUE((y < 0 || y >= handle.height), in SetPixel()
40 …DISPLAY_TEST_LOGE("CheckPixel invalid parameter y:%{public}d height:%{public}d", y, handle.height)… in SetPixel()
42 int32_t position = y * handle.width + x; in SetPixel()
43 if ((position * PIXEL_BYTES) > handle.size) { in SetPixel()
[all …]
/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/src/
Dfast_audio_render.cpp38 int32_t FastRenderStart(AudioHandle handle) in FastRenderStart() argument
42 AudioHwRender *hwRender = reinterpret_cast<struct AudioHwRender>(handle); in FastRenderStart()
53 int32_t FastRenderStop(AudioHandle handle) in FastRenderStop() argument
56 (void)handle; in FastRenderStop()
63 int32_t FastRenderPause(AudioHandle handle) in FastRenderPause() argument
66 (void)handle; in FastRenderPause()
73 int32_t FastRenderResume(AudioHandle handle) in FastRenderResume() argument
77 AudioHwRender *hwRender = reinterpret_cast<struct AudioHwRender>(handle); in FastRenderResume()
88 int32_t FastRenderFlush(AudioHandle handle) in FastRenderFlush() argument
91 (void)handle; in FastRenderFlush()
[all …]
/drivers/peripheral/audio/test/systemtest/supportlibs/common/render/src/
Daudio_librender_test.cpp34 static int32_t (*InterfaceLibOutputRender)(struct DevHandle *handle, int cmdId,
36 static int32_t (*InterfaceLibCtlRender)(struct DevHandle *handle, int cmdId,
38 static void (*CloseServiceRenderSo)(struct DevHandle *handle);
44 … struct DevHandle *handle, struct AudioHwRender *hwRender, struct AudioHeadInfo wavHeadInfo) const;
47 … const std::string BindName, const std::string adapterNameCase, struct DevHandle *&handle) const;
51 int32_t (*AudioLibRenderTest::InterfaceLibOutputRender)(struct DevHandle *handle, int cmdId,
53 int32_t (*AudioLibRenderTest::InterfaceLibCtlRender)(struct DevHandle *handle, int cmdId,
55 void (*AudioLibRenderTest::CloseServiceRenderSo)(struct DevHandle *handle) = nullptr;
151 … struct DevHandle *handle, struct AudioHwRender *hwRender, struct AudioHeadInfo wavHeadInfo) const in LibStartAndStream() argument
154 if (handle == nullptr || hwRender == nullptr || InterfaceLibOutputRender == nullptr) { in LibStartAndStream()
[all …]
/drivers/peripheral/codec/hdi_service/common/
Dcommon_msgproc.c21 bool PackBufferHandle(struct HdfSBuf *data, BufferHandle *handle) in PackBufferHandle() argument
23 if (handle == NULL) { in PackBufferHandle()
28 …if (!HdfSbufWriteUint32(data, handle->reserveFds) || !HdfSbufWriteUint32(data, handle->reserveInts… in PackBufferHandle()
29 !HdfSbufWriteInt32(data, handle->width) || !HdfSbufWriteInt32(data, handle->stride) || in PackBufferHandle()
30 !HdfSbufWriteInt32(data, handle->height) || !HdfSbufWriteInt32(data, handle->size) || in PackBufferHandle()
31 !HdfSbufWriteInt32(data, handle->format) || !HdfSbufWriteInt64(data, handle->usage) || in PackBufferHandle()
32 !HdfSbufWriteUint64(data, handle->phyAddr)) { in PackBufferHandle()
37 uint8_t validFd = handle->fd >= 0 ? 1 : 0; in PackBufferHandle()
42 if (validFd && !HdfSbufWriteFileDescriptor(data, handle->fd)) { in PackBufferHandle()
47 for (uint32_t i = 0; i < handle->reserveFds; i++) { in PackBufferHandle()
[all …]
/drivers/hdf_core/framework/support/platform/src/i3c/
Di3c_if.c20 void I3cClose(DevHandle handle) in I3cClose() argument
22 I3cCntlrPut((struct I3cCntlr *)handle); in I3cClose()
25 int32_t I3cTransfer(DevHandle handle, struct I3cMsg *msgs, int16_t count, enum TransMode mode) in I3cTransfer() argument
29 if (handle == NULL) { in I3cTransfer()
41 ret = I3cCntlrI2cTransfer((struct I3cCntlr *)handle, msgs, count); in I3cTransfer()
44 ret = I3cCntlrTransfer((struct I3cCntlr *)handle, msgs, count); in I3cTransfer()
47 ret = I3cCntlrSendCccCmd((struct I3cCntlr *)handle, msgs->ccc); in I3cTransfer()
56 int32_t I3cSetConfig(DevHandle handle, struct I3cConfig *config) in I3cSetConfig() argument
58 return I3cCntlrSetConfig((struct I3cCntlr *)handle, config); in I3cSetConfig()
61 int32_t I3cGetConfig(DevHandle handle, struct I3cConfig *config) in I3cGetConfig() argument
[all …]
/drivers/hdf_core/framework/sample/platform/uart/dispatch/
Duart_if.c19 struct DevHandle *handle = NULL; in UartOpen() local
22 handle = (struct DevHandle *)OsalMemCalloc(sizeof(struct DevHandle)); in UartOpen()
23 if (handle == NULL) { in UartOpen()
31 OsalMemFree(handle); in UartOpen()
37 OsalMemFree(handle); in UartOpen()
45 OsalMemFree(handle); in UartOpen()
50 handle->object = service; in UartOpen()
51 return handle; in UartOpen()
54 int32_t UartWrite(struct DevHandle *handle, uint8_t *data, uint32_t size) in UartWrite() argument
59 if (handle == NULL || handle->object == NULL) { in UartWrite()
[all …]
/drivers/hdf_core/framework/model/network/wifi/bus/
Dhdf_sdio_intf.c29 struct DevHandle *handle = NULL; in HdfGetSdioInfo() local
35 handle = (struct DevHandle *)dev->devBase; in HdfGetSdioInfo()
38 ret = SdioGetCommonInfo(handle, &palSdioCommonInfo, SDIO_FUNC_INFO); in HdfGetSdioInfo()
69 struct DevHandle *handle = NULL; in HdfSdioEnableFunc() local
74 handle = (struct DevHandle *)dev->devBase; in HdfSdioEnableFunc()
75 ret = SdioEnableFunc(handle); in HdfSdioEnableFunc()
85 struct DevHandle *handle = NULL; in HdfSdioDisableFunc() local
90 handle = (struct DevHandle *)dev->devBase; in HdfSdioDisableFunc()
91 ret = SdioDisableFunc(handle); in HdfSdioDisableFunc()
102 struct DevHandle *handle = NULL; in HdfSdioCliamIrq() local
[all …]
/drivers/peripheral/display/buffer/vdi_base/src/
Ddisplay_buffer_vdi_impl.cpp47 int32_t DisplayBufferVdiImpl::AllocMem(const AllocInfo& info, BufferHandle*& handle) const in AllocMem()
49 return GbmAllocMem(&info, &handle); in AllocMem()
52 void DisplayBufferVdiImpl::FreeMem(const BufferHandle& handle) const in FreeMem()
54 GbmFreeMem(const_cast<BufferHandle *>(&handle)); in FreeMem()
57 void* DisplayBufferVdiImpl::Mmap(const BufferHandle& handle) const in Mmap()
59 return GbmMmap(const_cast<BufferHandle *>(&handle)); in Mmap()
62 int32_t DisplayBufferVdiImpl::Unmap(const BufferHandle& handle) const in Unmap()
64 return GbmUnmap(const_cast<BufferHandle *>(&handle)); in Unmap()
67 int32_t DisplayBufferVdiImpl::FlushCache(const BufferHandle& handle) const in FlushCache()
69 return GbmFlushCache(const_cast<BufferHandle *>(&handle)); in FlushCache()
[all …]
/drivers/hdf_core/framework/support/platform/test/unittest/common/
Dhdf_emmc_mini_test.cpp41 DevHandle handle = nullptr; in EmmcMiniGetCardStateTest() local
46 handle = EmmcOpen(busNum); in EmmcMiniGetCardStateTest()
47 if (handle == nullptr) { in EmmcMiniGetCardStateTest()
52 ret = EmmcGetCardState(handle, &state, sizeof(state)); in EmmcMiniGetCardStateTest()
55 EmmcClose(handle); in EmmcMiniGetCardStateTest()
58 EmmcClose(handle); in EmmcMiniGetCardStateTest()
65 DevHandle handle = nullptr; in EmmcMiniGetCardCsdTest() local
70 handle = EmmcOpen(busNum); in EmmcMiniGetCardCsdTest()
71 if (handle == nullptr) { in EmmcMiniGetCardCsdTest()
75 ret = EmmcGetCardCsd(handle, &csd, sizeof(csd)); in EmmcMiniGetCardCsdTest()
[all …]

12345678910>>...17