Home
last modified time | relevance | path

Searched refs:data_buf (Results 1 – 17 of 17) sorted by relevance

/AliOS-Things-master/components/a2sa/src/driver/platform/rtos/
A Dcap_task.c49 if(data_buf) { in capture_task_drop()
51 free(data_buf->data); in capture_task_drop()
52 free(data_buf); in capture_task_drop()
153 if(data_buf && (data_buf->dev == dev)) { in capture_read_data()
154 if((data_buf->size - data_buf->wOffset) >= left_bytes) { in capture_read_data()
155 memcpy(buf + read_bytes, data_buf->data + data_buf->wOffset, left_bytes); in capture_read_data()
161 … memcpy(buf + read_bytes, data_buf->data + data_buf->wOffset, data_buf->size - data_buf->wOffset); in capture_read_data()
162 read_bytes += data_buf->size - data_buf->wOffset; in capture_read_data()
163 data_buf->wOffset = data_buf->size; in capture_read_data()
164 left_bytes -= data_buf->size - data_buf->wOffset; in capture_read_data()
[all …]
A Dpb_task.c45 pb_data_buf_t *data_buf = NULL; in pb_thread_loop() local
69 if(data_buf && data_buf->data && data_buf->dev) { in pb_thread_loop()
73 left_bytes = data_buf->size - data_buf->wOffset; in pb_thread_loop()
75 … pcm_dev->ops->write(pcm_dev->hdl, data_buf->data + data_buf->wOffset, period_bytes); in pb_thread_loop()
79 … pcm_dev->ops->write(pcm_dev->hdl, data_buf->data + data_buf->wOffset, left_bytes); in pb_thread_loop()
86 free(data_buf->data); in pb_thread_loop()
87 free(data_buf); in pb_thread_loop()
98 if(data_buf) { in pb_thread_loop()
99 dlist_del(&data_buf->list); in pb_thread_loop()
100 free(data_buf->data); in pb_thread_loop()
[all …]
/AliOS-Things-master/components/ota/tools/xz/src/
A Dxz_export.c12 unsigned char* data_buf = NULL; in xz_check_file_crc() local
17 data_buf = ota_malloc(SECTOR_SIZE); in xz_check_file_crc()
18 if(data_buf == NULL) { in xz_check_file_crc()
36 if(data_buf != NULL) { in xz_check_file_crc()
37 ota_free(data_buf); in xz_check_file_crc()
38 data_buf = NULL; in xz_check_file_crc()
49 unsigned char data_buf[16] = {0}; in xz_identify_xz_header() local
218 if(data_buf == NULL) { in xz_verify_uncompress_file()
306 if(data_buf != NULL) { in xz_verify_uncompress_file()
307 ota_free(data_buf); in xz_verify_uncompress_file()
[all …]
/AliOS-Things-master/components/ota/2ndboot/updater/
A Dxzupdater.c10 unsigned char data_buf[SECTOR_SIZE] = {0}; in ota_image_check() local
18 memset(data_buf, 0, SECTOR_SIZE); in ota_image_check()
19 ret = flash_read_data(addr, data_buf, read_size); in ota_image_check()
23 crc16_update(&contex, data_buf, read_size); in ota_image_check()
36 unsigned char data_buf[SECTOR_SIZE] = {0}; in ota_image_copy() local
45 memset(data_buf, 0, SECTOR_SIZE); in ota_image_copy()
60 unsigned char data_buf[16] = {0}; in ota_is_xz_header() local
62 int ret = flash_read_data(addr, data_buf, 16); in ota_is_xz_header()
66 if (!memcmp(data_buf, xz_header, 6)) { in ota_is_xz_header()
202 unsigned char data_buf[SECTOR_SIZE] = {0}; in ota_verify_xz() local
[all …]
/AliOS-Things-master/components/drivers/core/base/include/aos/hal/
A Dnand_flash.h163 const void *data_buf, uint32_t data_buf_len,
182 void *data_buf, uint32_t data_buf_len,
/AliOS-Things-master/components/linkkit/dev_model/deprecated/
A Dlinkkit_export.h347 int being_deprecated linkkit_invoke_cota_service(void *data_buf,
392 int being_deprecated linkkit_invoke_fota_service(void *data_buf,
A Dimpl_solo.c1300 int being_deprecated linkkit_invoke_cota_service(void *data_buf, in linkkit_invoke_cota_service() argument
1307 if (data_buf == NULL || data_buf_length <= 0) { in linkkit_invoke_cota_service()
1317 res = iotx_dm_cota_perform_sync(data_buf, data_buf_length); in linkkit_invoke_cota_service()
1363 int being_deprecated linkkit_invoke_fota_service(void *data_buf, in linkkit_invoke_fota_service() argument
1370 if (data_buf == NULL || data_buf_length <= 0) { in linkkit_invoke_fota_service()
1380 res = iotx_dm_fota_perform_sync(data_buf, data_buf_length); in linkkit_invoke_fota_service()
A Dlinkkit_gateway_export.h430 int linkkit_gateway_invoke_fota_service(void *data_buf, int data_buf_length);
A Dimpl_gateway.c2535 int linkkit_gateway_invoke_fota_service(void *data_buf, int data_buf_length) in linkkit_gateway_invoke_fota_service() argument
2546 res = iotx_dm_fota_perform_sync(data_buf, data_buf_length); in linkkit_gateway_invoke_fota_service()
/AliOS-Things-master/components/amp/engine/quickjs_engine/quickjs/
A Dunicode_gen.c2451 data_buf[idx++] = c; in put16()
2452 data_buf[idx++] = c >> 8; in put16()
2518 data_buf[idx++] = c; in add_decomp_data()
2519 data_buf[idx++] = c >> 8; in add_decomp_data()
2550 data_buf[idx++] = c; in add_decomp_data()
2568 data_buf[idx++] = c; in add_decomp_data()
2572 data_buf[idx++] = c; in add_decomp_data()
2582 data_buf[idx++] = c; in add_decomp_data()
2610 uint8_t *data_buf; in build_decompose_table() local
2621 data_buf = malloc(100000); in build_decompose_table()
[all …]
A Dquickjs-libc.c1239 DynBuf data_buf_s, *data_buf = &data_buf_s; in js_std_urlGet() local
1292 js_std_dbuf_init(ctx, data_buf); in js_std_urlGet()
1328 dbuf_put(data_buf, (uint8_t *)buf, len); in js_std_urlGet()
1330 if (dbuf_error(data_buf)) in js_std_urlGet()
1334 data_buf->buf, data_buf->size); in js_std_urlGet()
1336 response = JS_NewStringLen(ctx, (char *)data_buf->buf, data_buf->size); in js_std_urlGet()
1345 dbuf_free(data_buf); in js_std_urlGet()
1346 data_buf = NULL; in js_std_urlGet()
1373 if (data_buf) in js_std_urlGet()
1374 dbuf_free(data_buf); in js_std_urlGet()
/AliOS-Things-master/hardware/chip/haas1000/drivers/services/audio_dump/include/
A Daudio_dump.h21 void data_dump_run(const char *str, void *data_buf, uint32_t data_len);
/AliOS-Things-master/components/sensor/hal/
A Dsensor_hal.c71 config->data_buf = g_sensor_obj[index]->data_buf; in sensor_get_sensor_mode_config()
224 g_sensor_obj[index]->data_buf = 0; in sensor_create_obj()
/AliOS-Things-master/components/sensor/include/sensor/
A Dsensor.h351 void *data_buf; member
403 void *data_buf; member
/AliOS-Things-master/hardware/chip/haas1000/drivers/platform/hal/
A Dhal_usbhost.h123 uint8_t *data_buf; member
/AliOS-Things-master/components/amp/engine/quickjs_engine/addons/libc/
A Dquickjs_libc.c1397 DynBuf data_buf_s, *data_buf = &data_buf_s; in js_std_urlGet() local
1453 js_std_dbuf_init(ctx, data_buf); in js_std_urlGet()
1493 dbuf_put(data_buf, (uint8_t *)buf, len); in js_std_urlGet()
1495 if (dbuf_error(data_buf)) { in js_std_urlGet()
1500 data_buf->buf, data_buf->size); in js_std_urlGet()
1502 response = JS_NewStringLen(ctx, (char *)data_buf->buf, data_buf->size); in js_std_urlGet()
1512 dbuf_free(data_buf); in js_std_urlGet()
1513 data_buf = NULL; in js_std_urlGet()
1542 if (data_buf) { in js_std_urlGet()
1543 dbuf_free(data_buf); in js_std_urlGet()
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/flatbuffers/include/flatbuffers/
A Dflexbuffers.h257 Blob(const uint8_t *data_buf, uint8_t byte_width) in Blob() argument
258 : Sized(data_buf, byte_width) {} in Blob()

Completed in 46 milliseconds