Home
last modified time | relevance | path

Searched refs:handle (Results 1 - 25 of 370) sorted by relevance

12345678910>>...15

/drivers/hdf_core/adapter/uhdf2/hdi/src/
H A 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()
49 HDF_LOGW("%{public}s handle is NULL", __func__); in CloneNativeBufferHandle()
53 BufferHandle *handle = AllocateNativeBufferHandle(other->reserveFds, other->reserveInts); in CloneNativeBufferHandle() local
54 if (handle in CloneNativeBufferHandle()
99 FreeNativeBufferHandle(BufferHandle *handle) FreeNativeBufferHandle() argument
119 HdfSbufWriteNativeBufferHandle(struct HdfSBuf *data, const BufferHandle *handle) HdfSbufWriteNativeBufferHandle() argument
164 ReadReserveData(struct HdfSBuf *data, BufferHandle *handle) ReadReserveData() argument
196 BufferHandle *handle = AllocateNativeBufferHandle(reserveFds, reserveInts); HdfSbufReadNativeBufferHandle() local
[all...]
/drivers/hdf_core/framework/support/platform/src/mipi/
H A 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, laneDivideMod in MipiCsiSetHsMode()
44 MipiCsiEnableClock(DevHandle handle, uint8_t comboDev) MipiCsiEnableClock() argument
49 MipiCsiDisableClock(DevHandle handle, uint8_t comboDev) MipiCsiDisableClock() argument
54 MipiCsiResetRx(DevHandle handle, uint8_t comboDev) MipiCsiResetRx() argument
59 MipiCsiUnresetRx(DevHandle handle, uint8_t comboDev) MipiCsiUnresetRx() argument
64 MipiCsiEnableSensorClock(DevHandle handle, uint8_t snsClkSource) MipiCsiEnableSensorClock() argument
69 MipiCsiDisableSensorClock(DevHandle handle, uint8_t snsClkSource) MipiCsiDisableSensorClock() argument
74 MipiCsiResetSensor(DevHandle handle, uint8_t snsResetSource) MipiCsiResetSensor() argument
79 MipiCsiUnresetSensor(DevHandle handle, uint8_t snsResetSource) MipiCsiUnresetSensor() argument
84 MipiCsiSetDrvData(DevHandle handle, void *drvData) MipiCsiSetDrvData() argument
[all...]
H A 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()
44 MipiDsiTx(DevHandle handle, struct DsiCmdDesc *cmd) MipiDsiTx() argument
49 MipiDsiRx(DevHandle handle, struct DsiCmdDesc *cmd, int32_t readLen, uint8_t *out) MipiDsiRx() argument
54 MipiDsiAttach(DevHandle handle, uint8_t *name) MipiDsiAttach() argument
59 MipiDsiSetDrvData(DevHandle handle, void *panelData) MipiDsiSetDrvData() argument
[all...]
/drivers/hdf_core/framework/support/platform/src/pin/
H A Dpin_if.c20 void PinPut(DevHandle handle) in PinPut() argument
22 if (handle == NULL) { in PinPut()
23 HDF_LOGE("PinPut: handle is 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()
34 HDF_LOGE("PinSetPull: handle is 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, enu argument
55 PinSetStrength(DevHandle handle, uint32_t strength) PinSetStrength() argument
68 PinGetStrength(DevHandle handle, uint32_t *strength) PinGetStrength() argument
81 PinSetFunc(DevHandle handle, const char *funcName) PinSetFunc() argument
94 PinGetFunc(DevHandle handle, const char **funcName) PinGetFunc() argument
[all...]
/drivers/hdf_core/framework/support/platform/src/rtc/
H A 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()
40 HDF_LOGE("RtcReadTime: handle or time is 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()
50 HDF_LOGE("RtcWriteTime: handle or time is null!"); in RtcWriteTime()
59 return RtcHostWriteTime((struct RtcHost *)handle, tim in RtcWriteTime()
62 RtcReadAlarm(DevHandle handle, enum RtcAlarmIndex alarmIndex, struct RtcTime *time) RtcReadAlarm() argument
72 RtcWriteAlarm(DevHandle handle, enum RtcAlarmIndex alarmIndex, const struct RtcTime *time) RtcWriteAlarm() argument
87 RtcRegisterAlarmCallback(DevHandle handle, enum RtcAlarmIndex alarmIndex, RtcAlarmCallback cb) RtcRegisterAlarmCallback() argument
97 RtcAlarmInterruptEnable(DevHandle handle, enum RtcAlarmIndex alarmIndex, uint8_t enable) RtcAlarmInterruptEnable() argument
107 RtcGetFreq(DevHandle handle, uint32_t *freq) RtcGetFreq() argument
117 RtcSetFreq(DevHandle handle, uint32_t freq) RtcSetFreq() argument
127 RtcReset(DevHandle handle) RtcReset() argument
137 RtcReadReg(DevHandle handle, uint8_t usrDefIndex, uint8_t *value) RtcReadReg() argument
147 RtcWriteReg(DevHandle handle, uint8_t usrDefIndex, uint8_t value) RtcWriteReg() argument
[all...]
/drivers/hdf_core/framework/support/platform/src/uart/
H A Duart_if.c44 void *handle = NULL; in UartOpen() local
46 handle = UartGetObjGetByBusNum(port); in UartOpen()
47 if (handle == NULL) { in UartOpen()
48 HDF_LOGE("UartOpen: get handle error!"); 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()
64 HDF_LOGE("UartClose: handle i in UartClose()
74 UartRead(DevHandle handle, uint8_t *data, uint32_t size) UartRead() argument
79 UartWrite(DevHandle handle, uint8_t *data, uint32_t size) UartWrite() argument
84 UartGetBaud(DevHandle handle, uint32_t *baudRate) UartGetBaud() argument
89 UartSetBaud(DevHandle handle, uint32_t baudRate) UartSetBaud() argument
94 UartGetAttribute(DevHandle handle, struct UartAttribute *attribute) UartGetAttribute() argument
99 UartSetAttribute(DevHandle handle, struct UartAttribute *attribute) UartSetAttribute() argument
104 UartSetTransMode(DevHandle handle, enum UartTransMode mode) UartSetTransMode() argument
[all...]
/drivers/peripheral/format/interfaces/include/
H A Dformat_interface.h78 * @brief Creates a demuxer component and returns its context handle.
80 * This function returns the demuxer context handle without probing the container format or
84 * @param handle Indicates the double pointer to the demuxer context handle.
87 int32_t FormatDemuxerCreate(const FormatSource *source, FormatHandle * const handle);
95 * @param handle Indicates the pointer to the demuxer context handle.
106 int32_t FormatDemuxerSetParameter(const FormatHandle handle, int32_t trackId,
117 * @param handle Indicates the pointer to the demuxer context handle
[all...]
/drivers/hdf_core/framework/support/platform/src/can/
H A 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, filte in CanBusAddFilter()
45 CanBusDelFilter(DevHandle handle, const struct CanFilter *filter) CanBusDelFilter() argument
50 CanBusSetCfg(DevHandle handle, const struct CanConfig *cfg) CanBusSetCfg() argument
55 CanBusGetCfg(DevHandle handle, struct CanConfig *cfg) CanBusGetCfg() argument
60 CanBusGetState(DevHandle handle) CanBusGetState() argument
[all...]
/drivers/hdf_core/framework/support/platform/src/watchdog/
H A Dwatchdog_if.c50 int32_t WatchdogOpen(int16_t wdtId, DevHandle *handle) in WatchdogOpen() argument
55 if (handle == NULL) { in WatchdogOpen()
56 HDF_LOGE("WatchdogOpen: handle is 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()
80 HDF_LOGE("WatchdogClose: handle is null!"); in WatchdogClose()
83 if (WatchdogReleasePriv((struct WatchdogCntlr *)handle) != HDF_SUCCESS) { in WatchdogClose()
89 int32_t WatchdogGetStatus(DevHandle handle, int32_ argument
98 WatchdogStart(DevHandle handle) WatchdogStart() argument
107 WatchdogStop(DevHandle handle) WatchdogStop() argument
116 WatchdogSetTimeout(DevHandle handle, uint32_t seconds) WatchdogSetTimeout() argument
125 WatchdogGetTimeout(DevHandle handle, uint32_t *seconds) WatchdogGetTimeout() argument
134 WatchdogFeed(DevHandle handle) WatchdogFeed() argument
[all...]
/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/include/
H A 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_
[all...]
/drivers/hdf_core/framework/support/platform/src/i3c/
H A 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()
30 HDF_LOGE("I3cTransfer: handle is 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, confi in I3cSetConfig()
61 I3cGetConfig(DevHandle handle, struct I3cConfig *config) I3cGetConfig() argument
66 I3cRequestIbi(DevHandle handle, uint16_t addr, I3cIbiFunc func, uint32_t payload) I3cRequestIbi() argument
71 I3cFreeIbi(DevHandle handle, uint16_t addr) I3cFreeIbi() argument
[all...]
/drivers/peripheral/display/composer/test/common/
H A 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 in SetPixel()
51 ClearColor(const BufferHandle& handle, uint32_t color) ClearColor() argument
[all...]
H A 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 in GetPixelValue()
128 CheckPixel(const BufferHandle &handle, int x, int y, uint32_t color) CheckPixel() argument
169 SetPixel(const BufferHandle &handle, int x, int y, uint32_t color) SetPixel() argument
192 ClearColor(const BufferHandle &handle, uint32_t color) ClearColor() argument
201 ClearColorRect(const BufferHandle &handle, uint32_t color, const IRect &rect) ClearColorRect() argument
212 SplitBuffer(const BufferHandle &handle, std::vector<uint32_t> &colors) SplitBuffer() argument
[all...]
/drivers/peripheral/audio/test/systemtest/supportlibs/common/render/src/
H A 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()
154 if (handle in LibStartAndStream()
150 LibStartAndStream(const std::string path, struct AudioSampleAttributes attrs, struct DevHandle *handle, struct AudioHwRender *hwRender, struct AudioHeadInfo wavHeadInfo) const LibStartAndStream() argument
239 struct DevHandle *handle = nullptr; HWTEST_F() local
252 struct DevHandle *handle = nullptr; HWTEST_F() local
268 struct DevHandle *handle = nullptr; HWTEST_F() local
285 struct DevHandle *handle = nullptr; HWTEST_F() local
302 struct DevHandle *handle = nullptr; HWTEST_F() local
323 struct DevHandle *handle = nullptr; HWTEST_F() local
358 struct DevHandle *handle = nullptr; HWTEST_F() local
390 struct DevHandle *handle = nullptr; HWTEST_F() local
415 struct DevHandle *handle = nullptr; HWTEST_F() local
438 struct DevHandle *handle = nullptr; HWTEST_F() local
462 struct DevHandle *handle = nullptr; HWTEST_F() local
486 struct DevHandle *handle = nullptr; HWTEST_F() local
514 struct DevHandle *handle = nullptr; HWTEST_F() local
619 struct DevHandle *handle = nullptr; HWTEST_F() local
645 struct DevHandle *handle = nullptr; HWTEST_F() local
671 struct DevHandle *handle = nullptr; HWTEST_F() local
691 struct DevHandle *handle = nullptr; HWTEST_F() local
[all...]
/drivers/peripheral/audio/test/systemtest/supportlibs/common/capture/src/
H A 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)>(dlsy in SetUpTestCase()
132 struct DevHandle *handle = nullptr; HWTEST_F() local
145 struct DevHandle *handle = nullptr; HWTEST_F() local
161 struct DevHandle *handle = {}; HWTEST_F() local
178 struct DevHandle *handle = nullptr; HWTEST_F() local
195 struct DevHandle *handle = nullptr; HWTEST_F() local
217 struct DevHandle *handle = nullptr; HWTEST_F() local
254 struct DevHandle *handle = nullptr; HWTEST_F() local
286 struct DevHandle *handle = nullptr; HWTEST_F() local
312 struct DevHandle *handle = nullptr; HWTEST_F() local
330 struct DevHandle *handle = nullptr; HWTEST_F() local
355 struct DevHandle *handle = nullptr; HWTEST_F() local
379 struct DevHandle *handle = nullptr; HWTEST_F() local
410 struct DevHandle *handle = nullptr; HWTEST_F() local
506 struct DevHandle *handle = {}; HWTEST_F() local
539 struct DevHandle *handle = {}; HWTEST_F() local
570 struct DevHandle *handle = nullptr; HWTEST_F() local
590 struct DevHandle *handle = nullptr; HWTEST_F() local
[all...]
/drivers/hdf_core/framework/support/platform/test/unittest/common/
H A Dhdf_emmc_mini_test.cpp41 DevHandle handle = nullptr; in EmmcMiniGetCardStateTest() local
46 handle = EmmcOpen(busNum); in EmmcMiniGetCardStateTest()
47 if (handle == nullptr) { in EmmcMiniGetCardStateTest()
48 printf("EmmcMiniGetCardStateTest: emmc open fail, handle is nullptr!\n"); 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 in EmmcMiniGetCardCsdTest()
88 DevHandle handle = nullptr; EmmcMiniGetCardInfoTest() local
[all...]
/drivers/peripheral/display/buffer/vdi_base/src/
H A 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()
83 RegisterBuffer(const BufferHandle& handle) RegisterBuffer() argument
89 SetMetadata(const BufferHandle& handle, uint32_t key, const std::vector<uint8_t>& value) SetMetadata() argument
95 GetMetadata(const BufferHandle& handle, uint32_t key, std::vector<uint8_t>& value) GetMetadata() argument
101 ListMetadataKeys(const BufferHandle& handle, std::vector<uint32_t>& keys) ListMetadataKeys() argument
107 EraseMetadataKey(const BufferHandle& handle, uint32_t key) EraseMetadataKey() argument
113 GetImageLayout(const BufferHandle& handle, ImageLayout& layout) const GetImageLayout() argument
[all...]
/drivers/peripheral/audio/supportlibs/interfaces/include/
H A 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...]
/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/src/
H A 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()
95 FastRenderGetFrameSize(AudioHandle handle, uint64_t *size) FastRenderGetFrameSize() argument
103 FastRenderGetFrameCount(AudioHandle handle, uint64_t *count) FastRenderGetFrameCount() argument
111 FastRenderSetSampleAttributes(AudioHandle handle, const struct AudioSampleAttributes *attrs) FastRenderSetSampleAttributes() argument
119 FastRenderGetSampleAttributes(AudioHandle handle, struct AudioSampleAttributes *attrs) FastRenderGetSampleAttributes() argument
127 FastRenderGetCurrentChannelId(AudioHandle handle, uint32_t *channelId) FastRenderGetCurrentChannelId() argument
135 FastRenderCheckSceneCapability(AudioHandle handle, const struct AudioSceneDescriptor *scene, bool *supported) FastRenderCheckSceneCapability() argument
144 FastRenderSelectScene(AudioHandle handle, const struct AudioSceneDescriptor *scene) FastRenderSelectScene() argument
152 FastRenderSetMute(AudioHandle handle, bool mute) FastRenderSetMute() argument
160 FastRenderGetMute(AudioHandle handle, bool *mute) FastRenderGetMute() argument
168 FastRenderSetVolume(AudioHandle handle, float volume) FastRenderSetVolume() argument
176 FastRenderGetVolume(AudioHandle handle, float *volume) FastRenderGetVolume() argument
184 FastRenderGetGainThreshold(AudioHandle handle, float *min, float *max) FastRenderGetGainThreshold() argument
193 FastRenderGetGain(AudioHandle handle, float *gain) FastRenderGetGain() argument
201 FastRenderSetGain(AudioHandle handle, float gain) FastRenderSetGain() argument
275 FastRenderSetExtraParams(AudioHandle handle, const char *keyValueList) FastRenderSetExtraParams() argument
283 FastRenderGetExtraParams(AudioHandle handle, char *keyValueList, int32_t listLength) FastRenderGetExtraParams() argument
292 FastRenderReqMmapBuffer(AudioHandle handle, int32_t reqSize, struct AudioMmapBufferDescriptor *desc) FastRenderReqMmapBuffer() argument
330 FastRenderGetMmapPosition(AudioHandle handle, uint64_t *frames, struct AudioTimeStamp *time) FastRenderGetMmapPosition() argument
347 FastRenderTurnStandbyMode(AudioHandle handle) FastRenderTurnStandbyMode() argument
354 FastRenderAudioDevDump(AudioHandle handle, int32_t range, int32_t fd) FastRenderAudioDevDump() argument
[all...]
/drivers/peripheral/display/hal/default_standard/src/display_gralloc/
H A 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
42 Unmap(BufferHandle *handle) Unmap() argument
49 FlushCache(BufferHandle *handle) FlushCache() argument
56 InvalidateCache(BufferHandle *handle) InvalidateCache() argument
[all...]
/drivers/peripheral/audio/interfaces/2.0/include/
H A Daudio_attribute.h53 * @param handle Indicates the audio handle.
57 int32_t (*GetFrameSize)(AudioHandle handle, uint64_t *size);
62 * @param handle Indicates the audio handle.
66 int32_t (*GetFrameCount)(AudioHandle handle, uint64_t *count);
71 * @param handle Indicates the audio handle.
77 int32_t (*SetSampleAttributes)(AudioHandle handle, const struct AudioSampleAttributes *attrs);
82 * @param handle Indicate
[all...]
/drivers/peripheral/audio/interfaces/include/
H A Daudio_attribute.h52 * @param handle Indicates the audio handle.
56 int32_t (*GetFrameSize)(AudioHandle handle, uint64_t *size);
61 * @param handle Indicates the audio handle.
65 int32_t (*GetFrameCount)(AudioHandle handle, uint64_t *count);
70 * @param handle Indicates the audio handle.
76 int32_t (*SetSampleAttributes)(AudioHandle handle, const struct AudioSampleAttributes *attrs);
81 * @param handle Indicate
[all...]
/drivers/hdf_core/framework/include/platform/
H A Dsdio_if.h118 * Before using the SDIO interface, you can obtain the device handle of the SDIO controller
124 * @return Returns the device handle {@link DevHandle} of the SDIO controller if the operation is successful;
137 * @param handle Indicates the pointer to the device handle of the SDIO controller.
141 void SdioClose(DevHandle handle);
149 * @param handle Indicates the pointer to the device handle of the SDIO controller obtained by {@link SdioOpen}.
158 int32_t SdioReadBytes(DevHandle handle, uint8_t *data, uint32_t addr, uint32_t size);
166 * @param handle Indicates the pointer to the device handle o
[all...]
/drivers/hdf_core/framework/sample/platform/uart/dispatch/
H A 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()
24 HDF_LOGE("Failed to OsalMemCalloc handle"); 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_ argument
85 UartClose(struct DevHandle *handle) UartClose() argument
[all...]
/drivers/hdf_core/framework/model/storage/src/mmc/
H A Dsdio_if.c18 static int32_t SdioDeviceGetFromHandle(DevHandle handle, struct SdioDevice **sdio) in SdioDeviceGetFromHandle() argument
22 if (handle == NULL) { in SdioDeviceGetFromHandle()
23 HDF_LOGE("SdioDeviceGetFromHandle: handle is null!"); in SdioDeviceGetFromHandle()
32 mmc = MmcCntlrGetDevice((struct MmcCntlr *)handle); in SdioDeviceGetFromHandle()
51 DevHandle handle = NULL; in SdioOpen() local
58 handle = MmcOpen(mmcBusNum); in SdioOpen()
59 if (handle == NULL) { in SdioOpen()
63 cntlr = (struct MmcCntlr *)handle; in SdioOpen()
68 MmcClose(handle); in SdioOpen()
73 ret = SdioDeviceGetFromHandle(handle, in SdioOpen()
90 SdioClose(DevHandle handle) SdioClose() argument
95 SdioReadBytes(DevHandle handle, uint8_t *data, uint32_t addr, uint32_t size) SdioReadBytes() argument
110 SdioWriteBytes(DevHandle handle, uint8_t *data, uint32_t addr, uint32_t size) SdioWriteBytes() argument
125 SdioReadBytesFromFixedAddr(DevHandle handle, uint8_t *data, uint32_t addr, uint32_t size, uint32_t scatterLen) SdioReadBytesFromFixedAddr() argument
141 SdioWriteBytesToFixedAddr(DevHandle handle, uint8_t *data, uint32_t addr, uint32_t size, uint32_t scatterLen) SdioWriteBytesToFixedAddr() argument
157 SdioReadBytesFromFunc0(DevHandle handle, uint8_t *data, uint32_t addr, uint32_t size) SdioReadBytesFromFunc0() argument
172 SdioWriteBytesToFunc0(DevHandle handle, uint8_t *data, uint32_t addr, uint32_t size) SdioWriteBytesToFunc0() argument
187 SdioSetBlockSize(DevHandle handle, uint32_t blockSize) SdioSetBlockSize() argument
202 SdioGetCommonInfo(DevHandle handle, SdioCommonInfo *info, SdioCommonInfoType infoType) SdioGetCommonInfo() argument
217 SdioSetCommonInfo(DevHandle handle, SdioCommonInfo *info, SdioCommonInfoType infoType) SdioSetCommonInfo() argument
232 SdioFlushData(DevHandle handle) SdioFlushData() argument
247 SdioClaimHost(DevHandle handle) SdioClaimHost() argument
264 SdioReleaseHost(DevHandle handle) SdioReleaseHost() argument
281 SdioEnableFunc(DevHandle handle) SdioEnableFunc() argument
296 SdioDisableFunc(DevHandle handle) SdioDisableFunc() argument
311 SdioClaimIrq(DevHandle handle, SdioIrqHandler *irqHandler) SdioClaimIrq() argument
326 SdioReleaseIrq(DevHandle handle) SdioReleaseIrq() argument
[all...]

Completed in 12 milliseconds

12345678910>>...15