Home
last modified time | relevance | path

Searched refs:buffer (Results 1 – 25 of 819) sorted by relevance

12345678910>>...33

/device/soc/esp/esp32/components/bt/host/bluedroid/external/sbc/decoder/srce/
Dsynthesis-8-generated.c44 PRIVATE void SynthWindow80_generated(OI_INT16 *pcm, SBC_BUFFER_T const *RESTRICT buffer, OI_UINT st… in SynthWindow80_generated() argument
48 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(8235, buffer[ 12])) >> 3; in SynthWindow80_generated()
49 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(-23167, buffer[ 20])) >> 3; in SynthWindow80_generated()
50 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(26479, buffer[ 28])) >> 2; in SynthWindow80_generated()
51 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(-17397, buffer[ 36])) << 1; in SynthWindow80_generated()
52 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(9399, buffer[ 44])) << 3; in SynthWindow80_generated()
53 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(17397, buffer[ 52])) << 1; in SynthWindow80_generated()
54 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(26479, buffer[ 60])) >> 2; in SynthWindow80_generated()
55 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(23167, buffer[ 68])) >> 3; in SynthWindow80_generated()
56 /* 1 - stage 0 */ pcm_b += (MUL_16S_16S(8235, buffer[ 76])) >> 3; in SynthWindow80_generated()
[all …]
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/tl/
Dmali_kbase_tracepoints.c554 char *buffer; in mali_kbase_kbase_tlstream_tl_new_ctx() local
558 buffer = kbase_tlstream_msgbuf_acquire(stream, msg_size, &acq_flags); in mali_kbase_kbase_tlstream_tl_new_ctx()
560 pos = kbasep_serialize_bytes(buffer, pos, &msg_id, sizeof(msg_id)); in mali_kbase_kbase_tlstream_tl_new_ctx()
561 pos = kbasep_serialize_timestamp(buffer, pos); in mali_kbase_kbase_tlstream_tl_new_ctx()
562 pos = kbasep_serialize_bytes(buffer, in mali_kbase_kbase_tlstream_tl_new_ctx()
564 pos = kbasep_serialize_bytes(buffer, in mali_kbase_kbase_tlstream_tl_new_ctx()
566 pos = kbasep_serialize_bytes(buffer, in mali_kbase_kbase_tlstream_tl_new_ctx()
584 char *buffer; in mali_kbase_kbase_tlstream_tl_new_gpu() local
588 buffer = kbase_tlstream_msgbuf_acquire(stream, msg_size, &acq_flags); in mali_kbase_kbase_tlstream_tl_new_gpu()
590 pos = kbasep_serialize_bytes(buffer, pos, &msg_id, sizeof(msg_id)); in mali_kbase_kbase_tlstream_tl_new_gpu()
[all …]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/tl/
Dmali_kbase_tracepoints.c676 char *buffer; in __kbase_tlstream_tl_new_ctx() local
680 buffer = kbase_tlstream_msgbuf_acquire(stream, msg_size, &acq_flags); in __kbase_tlstream_tl_new_ctx()
682 pos = kbasep_serialize_bytes(buffer, pos, &msg_id, sizeof(msg_id)); in __kbase_tlstream_tl_new_ctx()
683 pos = kbasep_serialize_timestamp(buffer, pos); in __kbase_tlstream_tl_new_ctx()
684 pos = kbasep_serialize_bytes(buffer, in __kbase_tlstream_tl_new_ctx()
686 pos = kbasep_serialize_bytes(buffer, in __kbase_tlstream_tl_new_ctx()
688 pos = kbasep_serialize_bytes(buffer, in __kbase_tlstream_tl_new_ctx()
706 char *buffer; in __kbase_tlstream_tl_new_gpu() local
710 buffer = kbase_tlstream_msgbuf_acquire(stream, msg_size, &acq_flags); in __kbase_tlstream_tl_new_gpu()
712 pos = kbasep_serialize_bytes(buffer, pos, &msg_id, sizeof(msg_id)); in __kbase_tlstream_tl_new_gpu()
[all …]
/device/soc/rockchip/common/vendor/drivers/video/rockchip/mpp/
Dmpp_iommu.c33 struct mpp_dma_buffer *buffer = NULL, *n; in mpp_dma_find_buffer_fd() local
41 list_for_each_entry_safe(buffer, n, &dma->used_list, link) in mpp_dma_find_buffer_fd()
47 if (buffer->dmabuf == dmabuf) { in mpp_dma_find_buffer_fd()
48 out = buffer; in mpp_dma_find_buffer_fd()
61 struct mpp_dma_buffer *buffer = container_of(ref, struct mpp_dma_buffer, ref); in mpp_dma_release_buffer() local
63 buffer->dma->buffer_count--; in mpp_dma_release_buffer()
64 list_move_tail(&buffer->link, &buffer->dma->unused_list); in mpp_dma_release_buffer()
66 dma_buf_unmap_attachment(buffer->attach, buffer->sgt, buffer->dir); in mpp_dma_release_buffer()
67 dma_buf_detach(buffer->dmabuf, buffer->attach); in mpp_dma_release_buffer()
68 dma_buf_put(buffer->dmabuf); in mpp_dma_release_buffer()
[all …]
/device/soc/rockchip/rk3588/kernel/drivers/video/rockchip/mpp/
Dmpp_iommu.c34 struct mpp_dma_buffer *buffer = NULL, *n; in mpp_dma_find_buffer_fd() local
41 list_for_each_entry_safe(buffer, n, in mpp_dma_find_buffer_fd()
47 if (buffer->dmabuf == dmabuf) { in mpp_dma_find_buffer_fd()
48 out = buffer; in mpp_dma_find_buffer_fd()
61 struct mpp_dma_buffer *buffer = in mpp_dma_release_buffer() local
64 buffer->dma->buffer_count--; in mpp_dma_release_buffer()
65 list_move_tail(&buffer->link, &buffer->dma->unused_list); in mpp_dma_release_buffer()
67 dma_buf_unmap_attachment(buffer->attach, buffer->sgt, buffer->dir); in mpp_dma_release_buffer()
68 dma_buf_detach(buffer->dmabuf, buffer->attach); in mpp_dma_release_buffer()
69 dma_buf_put(buffer->dmabuf); in mpp_dma_release_buffer()
[all …]
/device/board/isoftstone/yangfan/kernel/src/driv/video/rockchip/mpp/
Dmpp_iommu.c34 struct mpp_dma_buffer *buffer = NULL, *n; in mpp_dma_find_buffer_fd() local
41 list_for_each_entry_safe(buffer, n, in mpp_dma_find_buffer_fd()
47 if (buffer->dmabuf == dmabuf) { in mpp_dma_find_buffer_fd()
48 out = buffer; in mpp_dma_find_buffer_fd()
61 struct mpp_dma_buffer *buffer = in mpp_dma_release_buffer() local
64 buffer->dma->buffer_count--; in mpp_dma_release_buffer()
65 list_move_tail(&buffer->link, &buffer->dma->unused_list); in mpp_dma_release_buffer()
67 dma_buf_unmap_attachment(buffer->attach, buffer->sgt, buffer->dir); in mpp_dma_release_buffer()
68 dma_buf_detach(buffer->dmabuf, buffer->attach); in mpp_dma_release_buffer()
69 dma_buf_put(buffer->dmabuf); in mpp_dma_release_buffer()
[all …]
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/
Dmali_kbase_tlstream.c201 } buffer[PACKET_COUNT]; member
260 static ssize_t kbasep_tlstream_read(struct file *filp, char __user *buffer, size_t size, loff_t *f_…
373 static size_t kbasep_tlstream_write_bytes(char *buffer, size_t pos, const void *bytes, size_t len) in kbasep_tlstream_write_bytes() argument
375 KBASE_DEBUG_ASSERT(buffer); in kbasep_tlstream_write_bytes()
378 memcpy(&buffer[pos], bytes, len); in kbasep_tlstream_write_bytes()
392 static size_t kbasep_tlstream_write_string(char *buffer, size_t pos, const char *string, size_t max… in kbasep_tlstream_write_string() argument
396 KBASE_DEBUG_ASSERT(buffer); in kbasep_tlstream_write_string()
403 string_len = strlcpy(&buffer[pos + sizeof(string_len)], string, max_write_size); in kbasep_tlstream_write_string()
410 memcpy(&buffer[pos], &string_len, sizeof(string_len)); in kbasep_tlstream_write_string()
422 static size_t kbasep_tlstream_write_timestamp(void *buffer, size_t pos) in kbasep_tlstream_write_timestamp() argument
[all …]
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/
Dmali_kbase_tlstream.c202 } buffer[PACKET_COUNT]; member
265 char __user *buffer,
608 char *buffer, in kbasep_tlstream_write_bytes() argument
613 KBASE_DEBUG_ASSERT(buffer); in kbasep_tlstream_write_bytes()
616 memcpy(&buffer[pos], bytes, len); in kbasep_tlstream_write_bytes()
631 char *buffer, in kbasep_tlstream_write_string() argument
638 KBASE_DEBUG_ASSERT(buffer); in kbasep_tlstream_write_string()
646 &buffer[pos + sizeof(string_len)], in kbasep_tlstream_write_string()
655 memcpy(&buffer[pos], &string_len, sizeof(string_len)); in kbasep_tlstream_write_string()
667 static size_t kbasep_tlstream_write_timestamp(void *buffer, size_t pos) in kbasep_tlstream_write_timestamp() argument
[all …]
/device/qemu/hardware/display/
Ddisplay_gralloc.c105 static int32_t InitBufferHandle(PriBufferHandle* buffer, const AllocInfo* info) in InitBufferHandle() argument
112 HDF_LOGE("can not get format information : %d", buffer->hdl.format); in InitBufferHandle()
119 buffer->hdl.width = info->width; in InitBufferHandle()
120 buffer->hdl.stride = stride; in InitBufferHandle()
121 buffer->hdl.height = info->height; in InitBufferHandle()
122 buffer->hdl.size = size; in InitBufferHandle()
123 buffer->hdl.usage = info->usage; in InitBufferHandle()
124 buffer->hdl.fd = -1; in InitBufferHandle()
125 buffer->shmid = INVALID_SHMID; in InitBufferHandle()
126 buffer->hdl.format = info->format; in InitBufferHandle()
[all …]
/device/soc/rockchip/common/sdk_linux/drivers/dma-buf/heaps/
Dcma_heap.c51 struct cma_heap_buffer *buffer = dmabuf->priv; in cma_heap_attach() local
60 …ret = sg_alloc_table_from_pages(&a->table, buffer->pages, buffer->pagecount, 0, buffer->pagecount … in cma_heap_attach()
73 mutex_lock(&buffer->lock); in cma_heap_attach()
74 list_add(&a->list, &buffer->attachments); in cma_heap_attach()
75 mutex_unlock(&buffer->lock); in cma_heap_attach()
82 struct cma_heap_buffer *buffer = dmabuf->priv; in cma_heap_detach() local
85 mutex_lock(&buffer->lock); in cma_heap_detach()
87 mutex_unlock(&buffer->lock); in cma_heap_detach()
118 struct cma_heap_buffer *buffer = dmabuf->priv; in cma_heap_dma_buf_begin_cpu_access() local
121 if (buffer->vmap_cnt) { in cma_heap_dma_buf_begin_cpu_access()
[all …]
Dsystem_heap.c94 struct system_heap_buffer *buffer = dmabuf->priv; in system_heap_attach() local
103 table = dup_sg_table(&buffer->sg_table); in system_heap_attach()
113 a->uncached = buffer->uncached; in system_heap_attach()
116 mutex_lock(&buffer->lock); in system_heap_attach()
117 list_add(&a->list, &buffer->attachments); in system_heap_attach()
118 mutex_unlock(&buffer->lock); in system_heap_attach()
125 struct system_heap_buffer *buffer = dmabuf->priv; in system_heap_detach() local
128 mutex_lock(&buffer->lock); in system_heap_detach()
130 mutex_unlock(&buffer->lock); in system_heap_detach()
173 struct system_heap_buffer *buffer = dmabuf->priv; in system_heap_dma_buf_begin_cpu_access() local
[all …]
/device/soc/rockchip/rk3588/hardware/codec/jpeg/src/
Dcodec_jpeg_helper.cpp26 int32_t CodecJpegHelper::JpegAssemble(const struct CodecJpegDecInfo &decInfo, int8_t *buffer, int32… in JpegAssemble() argument
31 curPos = PutInt16(buffer, curPos, 0xffd8); in JpegAssemble()
38 curPos = JpegDqtAssemble(decInfo, buffer, curPos); in JpegAssemble()
45 curPos = JpegDhtAssemble(decInfo, buffer, curPos); in JpegAssemble()
51 curPos = JpegDriAssemble(decInfo, buffer, curPos); in JpegAssemble()
58 curPos = JpegSofAssemble(decInfo, buffer, curPos); in JpegAssemble()
64 curPos = JpegSosAssemble(decInfo, buffer, curPos); in JpegAssemble()
70 curPos = JpegDataAssemble(buffer, curPos, fd); in JpegAssemble()
76 curPos = PutInt16(buffer, curPos, 0xffd9); in JpegAssemble()
84 bool CodecJpegHelper::DessambleJpeg(int8_t *buffer, size_t bufferLen, struct CodecJpegDecInfo &decI… in DessambleJpeg() argument
[all …]
/device/soc/rockchip/rk3568/hardware/codec/jpeg/src/
Dcodec_jpeg_helper.cpp26 int32_t CodecJpegHelper::JpegAssemble(const struct CodecJpegDecInfo &decInfo, int8_t *buffer, int32… in JpegAssemble() argument
31 curPos = PutInt16(buffer, curPos, 0xffd8); in JpegAssemble()
38 curPos = JpegDqtAssemble(decInfo, buffer, curPos); in JpegAssemble()
45 curPos = JpegDhtAssemble(decInfo, buffer, curPos); in JpegAssemble()
51 curPos = JpegDriAssemble(decInfo, buffer, curPos); in JpegAssemble()
58 curPos = JpegSofAssemble(decInfo, buffer, curPos); in JpegAssemble()
64 curPos = JpegSosAssemble(decInfo, buffer, curPos); in JpegAssemble()
70 curPos = JpegDataAssemble(buffer, curPos, fd); in JpegAssemble()
76 curPos = PutInt16(buffer, curPos, 0xffd9); in JpegAssemble()
84 bool CodecJpegHelper::DessambleJpeg(int8_t *buffer, size_t bufferLen, struct CodecJpegDecInfo &decI… in DessambleJpeg() argument
[all …]
/device/soc/rockchip/common/hardware/mpp/include/
Dmpp_buffer.h216 #define mpp_buffer_import(buffer, info) mpp_buffer_import_with_tag(NULL, info, buffer, MODULE_TAG, … argument
218 #define mpp_buffer_get(group, buffer, size) mpp_buffer_get_with_tag(group, buffer, size, MODULE_TAG… argument
220 #define mpp_buffer_put(buffer) mpp_buffer_put_with_caller(buffer, __FUNCTION__) argument
222 #define mpp_buffer_inc_ref(buffer) mpp_buffer_inc_ref_with_caller(buffer, __FUNCTION__) argument
224 #define mpp_buffer_info_get(buffer, info) mpp_buffer_info_get_with_caller(buffer, info, __FUNCTION_… argument
226 #define mpp_buffer_read(buffer, offset, data, size) … argument
227 mpp_buffer_read_with_caller(buffer, offset, data, size, __FUNCTION__)
229 #define mpp_buffer_write(buffer, offset, data, size) … argument
230 mpp_buffer_write_with_caller(buffer, offset, data, size, __FUNCTION__)
232 #define mpp_buffer_get_ptr(buffer) mpp_buffer_get_ptr_with_caller(buffer, __FUNCTION__) argument
[all …]
/device/soc/rockchip/rk3568/hardware/mpp/include/
Dmpp_buffer.h217 #define mpp_buffer_import(buffer, info) \ argument
218 mpp_buffer_import_with_tag(NULL, info, buffer, MODULE_TAG, __FUNCTION__)
220 #define mpp_buffer_get(group, buffer, size) \ argument
221 mpp_buffer_get_with_tag(group, buffer, size, MODULE_TAG, __FUNCTION__)
223 #define mpp_buffer_put(buffer) \ argument
224 mpp_buffer_put_with_caller(buffer, __FUNCTION__)
226 #define mpp_buffer_inc_ref(buffer) \ argument
227 mpp_buffer_inc_ref_with_caller(buffer, __FUNCTION__)
229 #define mpp_buffer_info_get(buffer, info) \ argument
230 mpp_buffer_info_get_with_caller(buffer, info, __FUNCTION__)
[all …]
/device/soc/rockchip/rk3399/hardware/mpp/include/
Dmpp_buffer.h217 #define mpp_buffer_import(buffer, info) \ argument
218 mpp_buffer_import_with_tag(NULL, info, buffer, MODULE_TAG, __FUNCTION__)
220 #define mpp_buffer_get(group, buffer, size) \ argument
221 mpp_buffer_get_with_tag(group, buffer, size, MODULE_TAG, __FUNCTION__)
223 #define mpp_buffer_put(buffer) \ argument
224 mpp_buffer_put_with_caller(buffer, __FUNCTION__)
226 #define mpp_buffer_inc_ref(buffer) \ argument
227 mpp_buffer_inc_ref_with_caller(buffer, __FUNCTION__)
229 #define mpp_buffer_info_get(buffer, info) \ argument
230 mpp_buffer_info_get_with_caller(buffer, info, __FUNCTION__)
[all …]
/device/soc/rockchip/rk3588/hardware/mpp/include/
Dmpp_buffer.h219 #define mpp_buffer_import(buffer, info) \ argument
220 mpp_buffer_import_with_tag(NULL, info, buffer, MODULE_TAG, __FUNCTION__)
222 #define mpp_buffer_get(group, buffer, size) \ argument
223 mpp_buffer_get_with_tag(group, buffer, size, MODULE_TAG, __FUNCTION__)
225 #define mpp_buffer_put(buffer) \ argument
226 mpp_buffer_put_with_caller(buffer, __FUNCTION__)
228 #define mpp_buffer_inc_ref(buffer) \ argument
229 mpp_buffer_inc_ref_with_caller(buffer, __FUNCTION__)
231 #define mpp_buffer_info_get(buffer, info) \ argument
232 mpp_buffer_info_get_with_caller(buffer, info, __FUNCTION__)
[all …]
/device/soc/allwinner/t507/hardware/display/src/display_gralloc/
Ddisplay_gralloc_gbm.c266 …ic void InitBufferHandle(struct gbm_bo *bo, int fd, const AllocInfo *info, PriBufferHandle *buffer) in InitBufferHandle() argument
268 BufferHandle *bufferHandle = &(buffer->hdl); in InitBufferHandle()
282 buffer->plan_num = 2; // plan_num is 2 in InitBufferHandle()
283 buffer->yuv_info = AW_YUV_NO_INFO; in InitBufferHandle()
284 buffer->plane_info[0].alloc_height = hdi_gbm_bo_get_height(bo); in InitBufferHandle()
285 buffer->plane_info[0].alloc_width = hdi_gbm_bo_get_width(bo); in InitBufferHandle()
286 buffer->plane_info[0].byte_stride = hdi_gbm_bo_get_width(bo); in InitBufferHandle()
287 buffer->plane_info[0].offset = 0; in InitBufferHandle()
288buffer->plane_info[1].alloc_height = buffer->plane_info[0].alloc_height/2; // alloc_height/2 in InitBufferHandle()
289buffer->plane_info[1].alloc_width = buffer->plane_info[0].alloc_width/2; // alloc_height/2 in InitBufferHandle()
[all …]
/device/board/isoftstone/yangfan/kernel/src/driv/gpu/rockchip/
Drockchip_drm_self_test.c40 rockchip_drm_draw_white(struct rockchip_drm_direct_show_buffer *buffer) in rockchip_drm_draw_white() argument
42 if (buffer && buffer->vir_addr[0]) in rockchip_drm_draw_white()
43 memset(buffer->vir_addr[0], 0xff, buffer->pitch[0] * buffer->height); in rockchip_drm_draw_white()
47 rockchip_drm_draw_gray128(struct rockchip_drm_direct_show_buffer *buffer) in rockchip_drm_draw_gray128() argument
49 if (buffer && buffer->vir_addr[0]) in rockchip_drm_draw_gray128()
50 memset(buffer->vir_addr[0], 0x80, buffer->pitch[0] * buffer->height); in rockchip_drm_draw_gray128()
54 rockchip_drm_copy_bmp_file(struct rockchip_drm_direct_show_buffer *buffer) in rockchip_drm_copy_bmp_file() argument
59 if (!buffer || !buffer->vir_addr[0]) { in rockchip_drm_copy_bmp_file()
65 dst = (void *)buffer->vir_addr[0]; in rockchip_drm_copy_bmp_file()
66 for (i = 0; i < buffer->height; i++) { in rockchip_drm_copy_bmp_file()
[all …]
Drockchip_drm_direct_show.c46 struct rockchip_drm_direct_show_buffer *buffer) in rockchip_drm_direct_show_alloc_fb() argument
52 const struct drm_format_info *format_info = drm_format_info(buffer->pixel_format); in rockchip_drm_direct_show_alloc_fb()
55 mode_cmd.width = buffer->width; in rockchip_drm_direct_show_alloc_fb()
56 mode_cmd.height = buffer->height; in rockchip_drm_direct_show_alloc_fb()
57 mode_cmd.pitches[0] = buffer->pitch[0]; in rockchip_drm_direct_show_alloc_fb()
58 mode_cmd.pixel_format = buffer->pixel_format; in rockchip_drm_direct_show_alloc_fb()
59 obj = &buffer->rk_gem_obj->base; in rockchip_drm_direct_show_alloc_fb()
63 mode_cmd.offsets[1] = buffer->width * buffer->height; in rockchip_drm_direct_show_alloc_fb()
72 buffer->fb = fb; in rockchip_drm_direct_show_alloc_fb()
78 struct rockchip_drm_direct_show_buffer *buffer) in rockchip_drm_direct_show_alloc_buffer() argument
[all …]
/device/board/bearpi/bearpi_hm_micro/hal/display/
Ddisplay_layer.c139 static int32_t InitBufferHandle(PriBufferHandle* buffer, const AllocInfo* info) in InitBufferHandle() argument
146 HDF_LOGE("can not get format information : %d", buffer->hdl.format); in InitBufferHandle()
153 buffer->hdl.width = info->width; in InitBufferHandle()
154 buffer->hdl.stride = stride; in InitBufferHandle()
155 buffer->hdl.height = info->height; in InitBufferHandle()
156 buffer->hdl.size = size; in InitBufferHandle()
157 buffer->hdl.usage = info->usage; in InitBufferHandle()
158 buffer->hdl.fd = -1; in InitBufferHandle()
159 buffer->shmid = INVALID_SHMID; in InitBufferHandle()
160 buffer->hdl.format = info->format; in InitBufferHandle()
[all …]
/device/soc/hisilicon/hi3861v100/sdk_liteos/boot/loaderboot/common/
Dtransfer.c242 serial_put_buf((const char *)ctx->buffer, SOH_MSG_TOTAL_LEN); in upload_send_file_info()
246 …hi_u32 check_sum_val = (uintptr_t)(ctx->buffer) ^ (hi_u32)sizeof(ctx->buffer) ^ 0 ^ (hi_u32)sizeof… in upload_send_file_info()
247 (hi_void) memset_s(ctx->buffer, sizeof(ctx->buffer), 0, sizeof(ctx->buffer), check_sum_val); in upload_send_file_info()
248 ctx->buffer[0] = MODEM_SOH; in upload_send_file_info()
249 ctx->buffer[1] = ctx->seq; in upload_send_file_info()
250 ctx->buffer[2] = (hi_u8)~ctx->buffer[1]; /* buffer[2] is buffer[1] invert val */ in upload_send_file_info()
252 … check_sum = (uintptr_t)(ctx->buffer + MSG_START_LEN) ^ SOH_MSG_LEN ^ (uintptr_t)(ctx->file_name) ^ in upload_send_file_info()
254 …if (memcpy_s(ctx->buffer + MSG_START_LEN, SOH_MSG_LEN, ctx->file_name, name_length, check_sum) != … in upload_send_file_info()
258 data = ctx->buffer + MSG_START_LEN + name_length; in upload_send_file_info()
273 check_sum = 0 ^ (uintptr_t)(ctx->buffer + MSG_START_LEN) ^ SOH_MSG_LEN; in upload_send_file_info()
[all …]
/device/soc/beken/bk7235/liteos_m/bk_sdk_armino/components/bk_common/include/
Dbk_fifo.h35 unsigned char *buffer; member
48 __BK_INLINE struct kfifo *kfifo_init(unsigned char *buffer, unsigned int size) in kfifo_init() argument
59 fifo->buffer = buffer; in kfifo_init()
78 unsigned char *buffer; in kfifo_alloc() local
81 buffer = os_malloc(size); in kfifo_alloc()
82 if (!buffer) in kfifo_alloc()
84 os_memset(buffer, 0, size); in kfifo_alloc()
86 ret = kfifo_init(buffer, size); in kfifo_alloc()
89 os_free(buffer); in kfifo_alloc()
100 os_free(fifo->buffer); in kfifo_free()
[all …]
/device/board/kaihong/khdvk_3566b/camera/pipeline_core/src/node/
Drk_codec_node.cpp180 std::shared_ptr<IBuffer> &buffer) in SerchIFps() argument
187 if (buffer == nullptr || buf == nullptr) { in SerchIFps()
203 buffer->SetEsKeyFrame(1); in SerchIFps()
220 buffer->SetEsKeyFrame(0); in SerchIFps()
227 void RKCodecNode::Yuv420ToRGBA8888(std::shared_ptr<IBuffer> &buffer) in Yuv420ToRGBA8888() argument
229 if (buffer == nullptr) { in Yuv420ToRGBA8888()
234 int dma_fd = buffer->GetFileDescriptor(); in Yuv420ToRGBA8888()
235 void *temp = malloc(buffer->GetSize()); in Yuv420ToRGBA8888()
242 previewWidth_ = buffer->GetWidth(); in Yuv420ToRGBA8888()
243 previewHeight_ = buffer->GetHeight(); in Yuv420ToRGBA8888()
[all …]
/device/board/talkweb/niobe407/applications/204_hdf_i2c/
Dhdf_i2c_test.c46 static int I2cWriteData(DevHandle handle, unsigned int devAddr, unsigned char *buffer, unsigned int… in I2cWriteData() argument
51 msg.buf = buffer; in I2cWriteData()
62 static int I2cReadData(DevHandle handle, unsigned int devAddr, unsigned char *buffer, unsigned int … in I2cReadData() argument
64 I2cWriteData(handle, devAddr, buffer, 1); in I2cReadData()
68 msg.buf = buffer; in I2cReadData()
81 unsigned char buffer[2] = {0}; in WriteRJGTCmdReg() local
83 buffer[0] = RJGT_CMD_REGISTER_ADDR; in WriteRJGTCmdReg()
84 buffer[1] = regVal; in WriteRJGTCmdReg()
85 I2cWriteData(g_i2cHandle, RJGT102_ADDR, buffer, sizeof(buffer)); in WriteRJGTCmdReg()
90 unsigned char buffer[len + 1]; in WriteRJGTMemBuf() local
[all …]

12345678910>>...33