Home
last modified time | relevance | path

Searched refs:start (Results 1 – 25 of 114) sorted by relevance

12345

/drivers/hdf_core/framework/utils/include/
Dhcs_blob_if.h44 static inline uint8_t HcsByteCodeToUint8(const char *start) in HcsByteCodeToUint8() argument
46 return *(uint8_t *)(start); in HcsByteCodeToUint8()
49 static inline uint16_t HcsByteCodeToUint16(const char *start) in HcsByteCodeToUint16() argument
51 return *(uint16_t *)(start); in HcsByteCodeToUint16()
54 static inline uint32_t HcsByteCodeToUint32(const char *start) in HcsByteCodeToUint32() argument
56 return *(uint32_t *)(start); in HcsByteCodeToUint32()
59 static inline uint64_t HcsByteCodeToUint64(const char *start) in HcsByteCodeToUint64() argument
61 return *(uint64_t *)(start); in HcsByteCodeToUint64()
64 static inline uint32_t HcsGetPrefix(const char *start) in HcsGetPrefix() argument
66 return HcsIsByteAlign() ? HcsByteCodeToUint32(start) : HcsByteCodeToUint8(start); in HcsGetPrefix()
[all …]
/drivers/hdf_core/framework/utils/src/hcs_parser/
Dhcs_blob_if.c21 int32_t HcsGetDataTypeOffset(const char *start) in HcsGetDataTypeOffset() argument
24 switch (HcsGetPrefix(start)) { in HcsGetDataTypeOffset()
39 len = HCS_STRING_LENGTH(start + HCS_PREFIX_LENGTH) + HCS_PREFIX_LENGTH; in HcsGetDataTypeOffset()
48 static int32_t HcsGetArrayLength(const char *start) in HcsGetArrayLength() argument
53 if (!HcsSwapToUint16(&count, start + HCS_PREFIX_LENGTH, CONFIG_WORD)) { in HcsGetArrayLength()
58 int32_t lenData = HcsGetDataTypeOffset(start + arrayLen); in HcsGetArrayLength()
67 int32_t HcsGetAttrLength(const char *start) in HcsGetAttrLength() argument
69 int32_t length = HCS_PREFIX_LENGTH + HCS_STRING_LENGTH(start + HCS_PREFIX_LENGTH); in HcsGetAttrLength()
71 switch (HcsGetPrefix(start + length)) { in HcsGetAttrLength()
78 dataLen = HcsGetDataTypeOffset(start + length); in HcsGetAttrLength()
[all …]
Dhcs_generate_tree.c30 static struct DeviceResourceNode *CreateTreeNode(const char *start, int32_t offset, in CreateTreeNode() argument
36 newNode->name = start + offset + HCS_PREFIX_LENGTH; in CreateTreeNode()
66 static bool AddAttrInNode(const char *start, struct DeviceResourceNode *parentNode, char **treeMem) in AddAttrInNode() argument
76 newAttr->name = start + HCS_PREFIX_LENGTH; in AddAttrInNode()
77 newAttr->value = start + HCS_PREFIX_LENGTH + HCS_STRING_LENGTH(newAttr->name); in AddAttrInNode()
/drivers/peripheral/audio/test/systemtest/hdi_service/hdiperformace/src/
Daudio_idlhdicapture_performace_test.cpp81 gettimeofday(&audiopara.start, NULL);
86 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec);
109 gettimeofday(&audiopara.start, NULL);
116 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec);
142 gettimeofday(&audiopara.start, NULL);
147 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec);
171 gettimeofday(&audiopara.start, NULL);
176 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec);
197 gettimeofday(&audiopara.start, NULL);
202 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec);
[all …]
Daudio_idlhdirender_performace_test.cpp88 gettimeofday(&audiopara.start, NULL);
94 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec);
122 gettimeofday(&audiopara.start, NULL);
129 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec);
154 gettimeofday(&audiopara.start, NULL);
159 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec);
186 gettimeofday(&audiopara.start, NULL);
191 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec);
215 gettimeofday(&audiopara.start, NULL);
220 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec);
[all …]
Daudio_idlhdiadapter_performace_test.cpp84 gettimeofday(&audiopara.start, NULL);
89 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec);
114 gettimeofday(&audiopara.start, NULL);
125 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec);
148 gettimeofday(&audiopara.start, NULL);
153 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec);
182 gettimeofday(&audiopara.start, NULL);
188 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec);
211 gettimeofday(&audiopara.start, NULL);
217 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec);
[all …]
Daudio_idlhdimanager_performace_test.cpp73 gettimeofday(&audiopara.start, NULL);
78 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec);
105 gettimeofday(&audiopara.start, NULL);
111 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec);
142 gettimeofday(&audiopara.start, NULL);
147 (audiopara.start.tv_sec * MICROSECOND + audiopara.start.tv_usec);
/drivers/hdf_core/adapter/khdf/liteos_m/osal/src/
Dosal_time.c55 int32_t OsalDiffTime(const OsalTimespec *start, const OsalTimespec *end, OsalTimespec *diff) in OsalDiffTime() argument
60 if (start == NULL || end == NULL || diff == NULL) { in OsalDiffTime()
65 if (start->sec > end->sec) { in OsalDiffTime()
70 if (end->usec < start->usec) { in OsalDiffTime()
74 diff->usec = usec + end->usec - start->usec; in OsalDiffTime()
75 diff->sec = end->sec - start->sec - sec; in OsalDiffTime()
/drivers/hdf_core/adapter/khdf/uniproton/osal/src/
Dosal_time.c56 int32_t OsalDiffTime(const OsalTimespec *start, const OsalTimespec *end, OsalTimespec *diff) in OsalDiffTime() argument
61 if (start == NULL || end == NULL || diff == NULL) { in OsalDiffTime()
66 if (start->sec > end->sec) { in OsalDiffTime()
71 if (end->usec < start->usec) { in OsalDiffTime()
75 diff->usec = usec + end->usec - start->usec; in OsalDiffTime()
76 diff->sec = end->sec - start->sec - sec; in OsalDiffTime()
/drivers/hdf_core/adapter/khdf/liteos/osal/src/
Dosal_time.c56 int32_t OsalDiffTime(const OsalTimespec *start, const OsalTimespec *end, OsalTimespec *diff) in OsalDiffTime() argument
61 if (start == NULL || end == NULL || diff == NULL) { in OsalDiffTime()
66 if (start->sec > end->sec) { in OsalDiffTime()
71 if (end->usec < start->usec) { in OsalDiffTime()
75 diff->usec = usec + end->usec - start->usec; in OsalDiffTime()
76 diff->sec = end->sec - start->sec - sec; in OsalDiffTime()
/drivers/hdf_core/adapter/khdf/linux/osal/src/
Dosal_time.c52 int32_t OsalDiffTime(const OsalTimespec *start, const OsalTimespec *end, OsalTimespec *diff) in OsalDiffTime() argument
56 if (start == NULL || end == NULL || diff == NULL) { in OsalDiffTime()
61 if (start->sec > end->sec) { in OsalDiffTime()
66 if (end->usec < start->usec) { in OsalDiffTime()
70 diff->usec = usec + end->usec - start->usec; in OsalDiffTime()
71 diff->sec = end->sec - start->sec - sec; in OsalDiffTime()
/drivers/hdf_core/framework/support/platform/src/gpio/
Dgpio_manager.c33 freeCount = cntlrCur->start; in GpioCntlrCheckStart()
35 freeStart = cntlrLast->start + cntlrLast->count; in GpioCntlrCheckStart()
36 freeCount = cntlrCur->start - freeStart; in GpioCntlrCheckStart()
39 if (cntlr->start < freeStart) { in GpioCntlrCheckStart()
41 cntlr->start, freeStart, freeCount); in GpioCntlrCheckStart()
45 if ((cntlr->start + cntlr->count) <= (freeStart + freeCount)) { in GpioCntlrCheckStart()
53 if (cntlr->start >= (cntlrLast->start + cntlrLast->count)) { in GpioCntlrCheckStart()
57 cntlr->start, cntlr->count, cntlrLast->start, cntlrLast->count); in GpioCntlrCheckStart()
68 HDF_LOGE("GpioManagerAdd: start:%hu(%hu) invalid:%d!", cntlr->start, cntlr->count, ret); in GpioManagerAdd()
73 PLAT_LOGI("GpioManagerAdd: start:%hu count:%hu added success!", cntlr->start, cntlr->count); in GpioManagerAdd()
[all …]
/drivers/hdf_core/adapter/khdf/linux/platform/gpio/
Dgpio_adapter.c42 gpio_set_value_cansleep(cntlr->start + local, val); in LinuxGpioWrite()
53 *val = (gpio_get_value_cansleep(cntlr->start + local) == 0) ? GPIO_VAL_LOW : GPIO_VAL_HIGH; in LinuxGpioRead()
71 ret = gpio_direction_input(cntlr->start + local); in LinuxGpioSetDir()
77 val = gpio_get_value_cansleep(cntlr->start + local); in LinuxGpioSetDir()
81 ret = gpio_direction_output(cntlr->start + local, val); in LinuxGpioSetDir()
101 dirGet = gpiod_get_direction(gpio_to_desc(cntlr->start + local)); in LinuxGpioGetDir()
139 gpio = cntlr->start + local; in LinuxGpioSetIrq()
174 gpio = cntlr->start + local; in LinuxGpioUnsetIrq()
194 gpio = cntlr->start + local; in LinuxGpioEnableIrq()
213 gpio = cntlr->start + local; in LinuxGpioDisableIrq()
[all …]
/drivers/peripheral/camera/test/mpi/src/
Dperformance_hdi_test.cpp27 float PerformanceHdiTest::calTime(struct timeval start, struct timeval end) in calTime() argument
30 time_use = (end.tv_sec - start.tv_sec) * TIME_TRANSFORMATION_US + (end.tv_usec - start.tv_usec); in calTime()
55 struct timeval start; variable
62 gettimeofday(&start, NULL);
65 time_use = calTime(start, end);
85 struct timeval start; variable
95 gettimeofday(&start, NULL);
98 time_use = calTime(start, end);
122 struct timeval start; variable
129 gettimeofday(&start, NULL);
[all …]
/drivers/hdf_core/framework/support/posix/src/
Dosal_time.c36 int32_t OsalDiffTime(const OsalTimespec *start, const OsalTimespec *end, OsalTimespec *diff) in OsalDiffTime() argument
40 if (start == NULL || end == NULL || diff == NULL) { in OsalDiffTime()
45 if (start->sec > end->sec) { in OsalDiffTime()
50 if (end->usec < start->usec) { in OsalDiffTime()
54 diff->usec = usec + end->usec - start->usec; in OsalDiffTime()
55 diff->sec = end->sec - start->sec - sec; in OsalDiffTime()
/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/
Dhdf_manager_config_file.py49 start = match_obj.start()
50 if start == -1:
53 start += len(match_obj.group(0)) - 1
54 end = start
55 for i in range(start, len(self.contents)):
66 if end != start:
67 while end > start + 1:
71 return hdf_utils.SectionRange(start, end)
Dhdf_module_kconfig_file.py67 def _parse_config(self, match_obj, start, parent_item): argument
75 end = start + 1
87 block_lines = end - start
89 block_lines = end - start + 1
94 def _parse_choice(self, _match_obj, start, _parent_item): argument
95 end = start + 1
109 return end - start + 1
/drivers/hdf_core/framework/model/storage/include/mtd/
Dmtd_user.h31 uint32_t start; member
36 uint64_t start; member
41 uint32_t start; member
/drivers/hdf_core/adapter/khdf/linux/model/camera/src/
Dcamera_buffer_manager_adapter.c11 struct frame_vector *CreateFrameVec(unsigned long start, unsigned long length) in CreateFrameVec() argument
20 first = start >> PAGE_SHIFT; in CreateFrameVec()
21 if (start == 0 || length == 0) { in CreateFrameVec()
24 last = (start + length - 1) >> PAGE_SHIFT; in CreateFrameVec()
31 ret = get_vaddr_frames(start & PAGE_MASK, num, flags, vec); in CreateFrameVec()
/drivers/peripheral/codec/test/demo/jpeg/src/
Dcodec_jpeg_helper.cpp86 int8_t *start = buffer; in DessambleJpeg() local
88 while (start < end) { in DessambleJpeg()
89 JpegMarker marker = (JpegMarker)FindMarker(start); in DessambleJpeg()
90 start += 2; // 2: marker len in DessambleJpeg()
96 start += DessambleSof(start, decInfo); in DessambleJpeg()
99 start += DessambleDht(start, decInfo); in DessambleJpeg()
102 start += DessambleSos(start, decInfo); in DessambleJpeg()
104 auto len = DessambleCompressData(start, compressBuffer, comBufLen); in DessambleJpeg()
109 start += len; in DessambleJpeg()
114 start += DessambleDqt(start, decInfo); in DessambleJpeg()
[all …]
/drivers/hdf_core/framework/support/platform/src/hdmi/
Dhdmi_hdr.c35 static void HdmiHdrZeroDrmInfoFrameTimerSet(struct HdmiCntlr *cntlr, bool start) in HdmiHdrZeroDrmInfoFrameTimerSet() argument
40 hdrInfo->zeroDrmIfTimer.start = false; in HdmiHdrZeroDrmInfoFrameTimerSet()
44 if (start == false) { in HdmiHdrZeroDrmInfoFrameTimerSet()
56 hdrInfo->zeroDrmIfTimer.start = true; in HdmiHdrZeroDrmInfoFrameTimerSet()
60 static void HdmiHdrModeChangeTimerSet(struct HdmiCntlr *cntlr, bool start) in HdmiHdrModeChangeTimerSet() argument
64 hdrInfo->stateChangeTimer.start = false; in HdmiHdrModeChangeTimerSet()
68 if (start == false) { in HdmiHdrModeChangeTimerSet()
72 hdrInfo->stateChangeTimer.start = true; in HdmiHdrModeChangeTimerSet()
145 hdrInfo->stateChangeTimer.start = true; in HdmiChangeToHdr()
/drivers/hdf_core/adapter/khdf/liteos/model/storage/src/mtd/
Dmtd_legacy_lite.c154 int hinand_read(void *memaddr, unsigned long start, unsigned long size) in hinand_read() argument
162 ret = MtdDeviceRead(g_nandMtd, (off_t)start, (size_t)size, (uint8_t *)memaddr); in hinand_read()
169 int hinand_write(void *memaddr, unsigned long start, unsigned long size) in hinand_write() argument
177 ret = MtdDeviceWrite(g_nandMtd, (off_t)start, (size_t)size, (const uint8_t *)memaddr); in hinand_write()
184 int hinand_erase(unsigned long start, unsigned long size) in hinand_erase() argument
193 ret = MtdDeviceErase(g_nandMtd, (off_t)start, (size_t)size, &failAddr); in hinand_erase()
200 int hinand_yaffs_read(void *memaddr, unsigned long start, unsigned long size) in hinand_yaffs_read() argument
208 ret = MtdDeviceReadWithOob(g_nandMtd, (off_t)start, (size_t)size, (uint8_t *)memaddr); in hinand_yaffs_read()
215 int hinand_yaffs_write(void *memaddr, unsigned long start, unsigned long size) in hinand_yaffs_write() argument
223 ret = MtdDeviceWriteWithOob(g_nandMtd, (off_t)start, (size_t)size, (uint8_t *)memaddr); in hinand_yaffs_write()
/drivers/interface/audio/effect/v1_0/
DEffectTypes.idl49 EFFECT_BUFFER_VOID_TYPE = 0, /**< raw audio data point to the start of the buffer */
50 …EFFECT_BUFFER_FLOAT_SIGNED_32 = 1 << 0, /**< 32bit float type audio data point to the start of the…
51 …EFFECT_BUFFER_SINGED_32 = 1 << 1, /**< 32bit signed type audio data point to the start of th…
52 …EFFECT_BUFFER_SIGNED_16 = 1 << 2, /**< 16bit signed type audio data point to the start of th…
53 …EFFECT_BUFFER_UNSIGNED_8 = 1 << 3, /**< 8bit unsigned type audio data point to the start of t…
62 …byte[] rawData; /**< audio data point to the start of the buffer, the type is defined b…
/drivers/hdf_core/framework/support/platform/src/fwk/
Dplatform_queue.c61 if (!queue->start) { in PlatformQueueWorker()
94 queue->start = false; in PlatformQueueCreate()
126 queue->start = true; in PlatformQueueStart()
138 if (queue->start) { in PlatformQueueDestroy()
139 queue->start = false; in PlatformQueueDestroy()
/drivers/hdf_core/framework/tools/hdi-gen/util/
Dstring_helper.cpp125 std::string StringHelper::SubStr(const std::string &value, size_t start, size_t end) in SubStr() argument
127 if (value.empty() || start == std::string::npos || start >= end) { in SubStr()
130 return (end == std::string::npos) ? value.substr(start) : value.substr(start, end - start); in SubStr()

12345