/AliOS-Things-master/components/uvoice/common/ |
A D | ringbuffer.c | 43 if (size <= 4) { in uvoice_ringbuff_init() 80 if (size > rb->free_size || size <= 0) { in uvoice_ringbuff_fill() 89 rb->wr_ptr += size; in uvoice_ringbuff_fill() 112 return size; in uvoice_ringbuff_fill() 123 if (size > rb->dirty_size || size <= 0) { in uvoice_ringbuff_read() 133 rb->rd_ptr += size; in uvoice_ringbuff_read() 139 rb->rd_ptr += size; in uvoice_ringbuff_read() 160 return size; in uvoice_ringbuff_read() 170 if (size > rb->dirty_size || size <= 0) { in uvoice_ringbuff_drop() 178 rb->rd_ptr += size; in uvoice_ringbuff_drop() [all …]
|
/AliOS-Things-master/hardware/chip/haas1000/hal/2ndboot/ |
A D | boot_ringbuffer.c | 35 if (size <= 4) { in boot_ringbuff_init() 67 if (size > rb->free_size || size <= 0) { in boot_ringbuff_fill() 75 rb->wr_ptr += size; in boot_ringbuff_fill() 76 rb->dirty_size += size; in boot_ringbuff_fill() 77 rb->free_size -= size; in boot_ringbuff_fill() 87 rb->free_size -= size; in boot_ringbuff_fill() 93 return size; in boot_ringbuff_fill() 102 if (size > rb->dirty_size || size <= 0) { in boot_ringbuff_read() 111 rb->rd_ptr += size; in boot_ringbuff_read() 117 rb->rd_ptr += size; in boot_ringbuff_read() [all …]
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/os/os_dep/ |
A D | tcm_heap.c | 86 size = ROUND_UP2(size, sizeof(MemChunk)); in tcm_heap_allocmem() 89 if (!size) in tcm_heap_allocmem() 99 if (chunk->size >= size) in tcm_heap_allocmem() 101 if (chunk->size == size) in tcm_heap_allocmem() 118 chunk->size -= size; in tcm_heap_allocmem() 156 size = ROUND_UP2(size, sizeof(MemChunk)); in tcm_heap_freemem() 169 prev->size = size; in tcm_heap_freemem() 189 prev->size += size; in tcm_heap_freemem() 200 curr->size = size; in tcm_heap_freemem() 211 prev->size += prev->next->size; in tcm_heap_freemem() [all …]
|
A D | psram_reserve.c | 44 size = Psram_ROUND_UP2(size, configBYTE_PSRAM_ALIGNMENT); in Psram_heap_allocmem() 47 if (!size) in Psram_heap_allocmem() 57 if (chunk->size >= size) in Psram_heap_allocmem() 59 if (chunk->size == size) in Psram_heap_allocmem() 71 chunk->size -= size; in Psram_heap_allocmem() 104 size = Psram_ROUND_UP2(size, configBYTE_PSRAM_ALIGNMENT); in Psram_reserved_heap_freemem() 107 if (!size) in Psram_reserved_heap_freemem() 116 prev->size = size; in Psram_reserved_heap_freemem() 133 prev->size += size; in Psram_reserved_heap_freemem() 144 curr->size = size; in Psram_reserved_heap_freemem() [all …]
|
/AliOS-Things-master/components/py_engine/modules/minicv/base/modules/ml/include/ |
A D | uai_odla_inference.h | 48 CHANNELS_LAST, input, (odla_dims)&(const _odla_dims) {.size = 4, .dims = {5, 5, 1, 2}}, in alios_b0_helper() 51 conv_1_bias_, (odla_dims)&(const _odla_dims) {.size = 1, .dims = {2}}, SIO, in alios_b0_helper() 65 comp, INT8, (odla_dims)&(const _odla_dims) {.size = 4, .dims = {1, 24, 16, 2}}, in alios_b0_helper() 69 conv_2_bias_, (odla_dims)&(const _odla_dims) {.size = 1, .dims = {8}}, SIO, in alios_b0_helper() 70 (odla_dims)&(const _odla_dims) {.size = 4, .dims = {1, 24, 16, 8}}); in alios_b0_helper() 76 comp, INT8, (odla_dims)&(const _odla_dims) {.size = 4, .dims = {1, 24, 16, 8}}, in alios_b0_helper() 83 comp, INT8, (odla_dims)&(const _odla_dims) {.size = 4, .dims = {1, 12, 8, 8}}, in alios_b0_helper() 87 conv_3_bias_, (odla_dims)&(const _odla_dims) {.size = 1, .dims = {16}}, SIO, in alios_b0_helper() 88 (odla_dims)&(const _odla_dims) {.size = 4, .dims = {1, 12, 8, 16}}); in alios_b0_helper() 102 (odla_dims)&(const _odla_dims) {.size = 2, .dims = {1, 48}}); in alios_b0_helper() [all …]
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/quickjs/ |
A D | cutils.c | 106 size_t size; in dbuf_realloc() local 132 if (end > s->size) in dbuf_write() 133 s->size = end; in dbuf_write() 144 s->size += len; in dbuf_put() 155 s->size += len; in dbuf_put_self() 347 for (size /= sizeof(uint16_t); size-- != 0;) { in exchange_int16s() 366 for (size /= sizeof(uint32_t); size-- != 0;) { in exchange_int32s() 385 for (size /= sizeof(uint64_t); size-- != 0;) { in exchange_int64s() 479 for (i = n - size; i > 0; i -= size) { in heapsortx() 613 for (pi = ptr + size, top = ptr + nmemb * size; pi < top; pi += size) { in rqsort() [all …]
|
/AliOS-Things-master/components/freetype/src/truetype/ |
A D | ttobjs.c | 755 if ( size->debug ) in tt_size_run_fpgm() 849 if ( size->debug ) in tt_size_run_prep() 908 size->GS = exec->GS; in tt_size_run_prep() 928 if ( size->debug ) in tt_size_done_bytecode() 936 size->cvt_size = 0; in tt_size_done_bytecode() 953 size->max_func = 0; in tt_size_done_bytecode() 954 size->max_ins = 0; in tt_size_done_bytecode() 986 size->max_func = 0; in tt_size_init_bytecode() 987 size->max_ins = 0; in tt_size_init_bytecode() 1009 FT_NEW_ARRAY( size->storage, size->storage_size ) ) in tt_size_init_bytecode() [all …]
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/micro/ |
A D | memory_helpers.cc | 52 *size = sizeof(int16_t); in TfLiteTypeSizeOf() 55 *size = sizeof(float); in TfLiteTypeSizeOf() 58 *size = sizeof(double); in TfLiteTypeSizeOf() 61 *size = sizeof(int16_t); in TfLiteTypeSizeOf() 64 *size = sizeof(int32_t); in TfLiteTypeSizeOf() 73 *size = sizeof(int8_t); in TfLiteTypeSizeOf() 82 *size = sizeof(bool); in TfLiteTypeSizeOf() 143 input = input1->dims->size > input2->dims->size ? input1 : input2; in AllocateOutputDimensionsFromInput() 146 size_t size = 0; in AllocateOutputDimensionsFromInput() local 153 output->bytes = size; in AllocateOutputDimensionsFromInput() [all …]
|
/AliOS-Things-master/components/linkkit/external/nghttp2/ |
A D | nghttp2_mem.c | 32 extern void *HAL_Malloc(uint32_t size); 40 return LITE_malloc(size, MEM_MAGIC, "nghttp2"); in default_malloc() 42 return HAL_Malloc(size); in default_malloc() 66 void *ptr = HAL_Malloc(nmemb * size); in default_calloc() 68 memset(ptr, 0, nmemb * size); in default_calloc() 79 return LITE_realloc(ptr, size, MEM_MAGIC, "nghttp2"); in default_realloc() 81 return realloc(ptr, size); in default_realloc() 93 void *nghttp2_mem_malloc(nghttp2_mem *mem, size_t size) in nghttp2_mem_malloc() argument 95 return mem->malloc(size, mem->mem_user_data); in nghttp2_mem_malloc() 110 return mem->calloc(nmemb, size, mem->mem_user_data); in nghttp2_mem_calloc() [all …]
|
/AliOS-Things-master/components/py_engine/engine/py/ |
A D | binary.c | 46 size_t size = 0; in mp_binary_get_size() local 54 size = 1; in mp_binary_get_size() 58 size = 2; in mp_binary_get_size() 62 size = 4; in mp_binary_get_size() 66 size = 4; in mp_binary_get_size() 137 if (size == 0) { in mp_binary_get_size() 144 return size; in mp_binary_get_size() 200 src += size - 1; in mp_binary_get_int() 233 *ptr = p + size; in mp_binary_get_val() 302 *ptr = p + size; in mp_binary_set_val() [all …]
|
/AliOS-Things-master/components/littlevgl/src/lv_misc/ |
A D | lv_mem.c | 110 if(size == 0) { in lv_mem_alloc() 116 if(size & 0x7) { in lv_mem_alloc() 117 size = size & (~0x7); in lv_mem_alloc() 118 size += 8; in lv_mem_alloc() 122 if(size & 0x3) { in lv_mem_alloc() 123 size = size & (~0x3); in lv_mem_alloc() 124 size += 4; in lv_mem_alloc() 436 size = size & (~0x7); in ent_trunc() 437 size += 8; in ent_trunc() 442 size = size & (~0x3); in ent_trunc() [all …]
|
/AliOS-Things-master/components/osal_aos/rhino/ |
A D | aos_memory.c | 18 void *aos_zalloc(size_t size) in aos_zalloc() argument 22 if (size == 0) { in aos_zalloc() 30 tmp = krhino_mm_alloc(size); in aos_zalloc() 34 memset(tmp, 0, size); in aos_zalloc() 40 void *aos_malloc(size_t size) in aos_malloc() argument 44 if (size == 0) { in aos_malloc() 52 tmp = krhino_mm_alloc(size); in aos_malloc() 58 void *aos_calloc(size_t nitems, size_t size) in aos_calloc() argument 61 size_t len = (size_t)nitems * size; in aos_calloc() 81 void *aos_realloc(void *mem, size_t size) in aos_realloc() argument [all …]
|
/AliOS-Things-master/components/ble_host/bt_host/port/include/misc/ |
A D | stack.h | 18 static inline size_t stack_unused_space_get(const char *stack, size_t size) in stack_unused_space_get() argument 30 for (i = size - 1; i >= 0; i--) { in stack_unused_space_get() 38 for (i = 0; i < size; i++) { in stack_unused_space_get() 49 static inline size_t stack_unused_space_get(const char *stack, size_t size) in stack_unused_space_get() argument 57 unsigned int size) in stack_analyze() argument 61 unused = stack_unused_space_get(stack, size); in stack_analyze() 64 pcnt = ((size - unused) * 100) / size; in stack_analyze() 67 size, unused, size - unused, size, pcnt); in stack_analyze() 71 unsigned int size) in stack_analyze() argument
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/net/net_os/ |
A D | s_memory.h | 8 unsigned int size; member 23 #define skmalloc(size, flags) (\ argument 35 #define skmalloc1(size, flags,func) (\ argument 43 #define skmalloc(size, flags) (\ argument 46 ret = s_kmalloc(size, flags);\ 58 #define skzalloc(size, flags) (\ 61 ret = s_kzalloc(size, flags);\ 66 #define skzalloc(size, flags) (\ argument 81 #define skcalloc( n, size, flags) skzalloc(n*size, flags) argument 82 #define smem_calloc(n, size) skzalloc(n*size, 1) argument [all …]
|
A D | net_memory.h | 13 unsigned int size; member 18 void *rt_malloc(size_t size); 20 void *rt_calloc(size_t count, size_t size); 29 #define kmalloc(size, flags) (\ argument 37 #define kmalloc(size, flags) (\ argument 52 #define kzalloc(size, flags) (\ argument 60 #define kzalloc(size, flags) (\ argument 63 ret = rt_kzalloc(size, flags);\ 75 #define kcalloc( n, size, flags) kzalloc(n*size, flags) argument 77 #define mem_calloc_skb(n, size) kzalloc(n*size, 1) argument [all …]
|
/AliOS-Things-master/components/ota/2ndboot/updater/ |
A D | nbpatch_io.c | 13 while(size > 0) { in ota_patch_read() 14 read_size = size > SECTOR_SIZE ? SECTOR_SIZE : size; in ota_patch_read() 20 size -= read_size; in ota_patch_read() 31 while(size > 0) { in ota_patch_write() 32 write_size = size > SECTOR_SIZE? SECTOR_SIZE:size; in ota_patch_write() 58 while (size > 0) { in ota_patch_new_data() 59 bsize = size > SECTOR_SIZE ? SECTOR_SIZE : size; in ota_patch_new_data() 69 size -= bsize; in ota_patch_new_data() 86 while (size > 0) { in ota_load_new_data() 87 bsize = size > SECTOR_SIZE ? SECTOR_SIZE : size; in ota_load_new_data() [all …]
|
/AliOS-Things-master/components/lwip/lwip2.0.0/core/ |
A D | mem.c | 82 LWIP_UNUSED_ARG(size); in mem_trim() 118 mem_malloc(mem_size_t size) in mem_malloc() argument 201 element->size = (u16_t)size; in mem_malloc() 206 memset((u8_t*)ret + size, 0xcd, memp_pools[poolnr]->size - size); in mem_malloc() 239 hmem->size <= memp_pools[hmem->poolnr]->size); in mem_free() 241 for (i = hmem->size; i < memp_pools[hmem->poolnr]->size; i++) { in mem_free() 476 mem_size_t size; in mem_trim() local 515 if (newsize > size) { in mem_trim() 519 if (newsize == size) { in mem_trim() 608 if (size == 0) { in mem_malloc() [all …]
|
/AliOS-Things-master/components/uvoice/internal/ |
A D | uvoice_format.h | 9 int mp3_id3v1_parse(media_info_t *info, unsigned char *data, int size); 11 bool wav_format_check(char *buffer, int size); 12 bool mp3_format_check(char *data, int size); 13 bool aac_format_check(char *buffer, int size); 14 bool m4a_format_check(char *buffer, int size); 15 bool ogg_format_check(char *data, int size); 16 bool wma_format_check(char *buffer, int size); 17 bool amr_format_check(char *buffer, int size); 18 bool amrwb_format_check(char *data, int size); 19 bool flac_format_check(char *buffer, int size);
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/ruy/ruy/profiler/ |
A D | test_instrumented_library.cc | 22 void MergeSortRecurse(int level, int size, int* data, int* workspace) { in MergeSortRecurse() argument 24 "MergeSortRecurse (level=%d, size=%d)", level, size); in MergeSortRecurse() 25 if (size <= 1) { in MergeSortRecurse() 28 int half_size = size / 2; in MergeSortRecurse() 30 MergeSortRecurse(level + 1, size - half_size, data + half_size, in MergeSortRecurse() 38 while (dst_index < size) { in MergeSortRecurse() 48 for (int i = 0; i < size; i++) { in MergeSortRecurse() 55 void MergeSort(int size, int* data) { in MergeSort() argument 56 ruy::profiler::ScopeLabel function_label("MergeSort (size=%d)", size); in MergeSort() 57 std::vector<int> workspace(size); in MergeSort() [all …]
|
/AliOS-Things-master/components/SDL2/src/stdlib/ |
A D | SDL_qsort.c | 338 for (first=((char*)base)+size;first!=last;first+=size) { \ 342 for (test=first-size;compare(test,first)>0;test-=size) ; \ 343 test+=size; \ 356 register size_t sz=size; \ 361 register size_t sz=size; \ 371 size_t d=(((last-first)/size)>>3)*size; in pivot_big() 416 char *pivot=malloc(size); in qsort_nonaligned() 426 { char * mid=first+size*((last-first)/size >> 1); in qsort_nonaligned() 447 char *pivot=malloc(size); in qsort_aligned() 457 { char * mid=first+size*((last-first)/size >> 1); in qsort_aligned() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/contrib/mfs/ |
A D | mfs_file.c | 81 int mfs_read (int fd, void *buf, int size); 82 int mfs_write (int fd, void *buf, int size); 159 buf_size[ret] = size; in mfs_open() 208 buf_size[ret] = size; in mfs_open() 345 buf_off[fd] = buf_off[fd] + size; in mfs_read() 346 ret = size; in mfs_read() 389 buf_off[fd] = buf_off[fd] + size; in mfs_write() 391 ret = size; in mfs_write() 401 buf_size[fd] += size; in mfs_write() 404 buf_off[fd] = buf_off[fd] + size; in mfs_write() [all …]
|
/AliOS-Things-master/components/uvoice/media/ |
A D | uvoice_format.c | 33 char size[4]; member 38 char size[4]; member 100 (ID3.size[3] & 0x7f); in mp3_id3v2_parse() 114 header.size[1] << 16 | in mp3_id3v2_parse() 115 header.size[2] << 8 | in mp3_id3v2_parse() 116 header.size[3]; in mp3_id3v2_parse() 259 if (!buffer || size < 8) { in m4a_format_check() 269 if (!buffer || size < 4) { in ogg_format_check() 279 if (!buffer || size < 4) { in wma_format_check() 289 if (!buffer || size < 6) { in amr_format_check() [all …]
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/utils/heap/ |
A D | heap_api.h | 14 void syspool_init_specific_size(uint32_t size); 16 int syspool_get_buff(uint8_t **buff, uint32_t size); 23 int syspool_force_used_size(uint32_t size); 48 void *heap_malloc(heap_handle_t heap, size_t size); 64 void *malloc(size_t size); 66 void *calloc(size_t nmemb, size_t size); 67 void *realloc(void *ptr, size_t size); 69 void med_heap_init(void *begin_addr, size_t size); 72 void *med_malloc(size_t size); 74 void *med_calloc(size_t nmemb, size_t size); [all …]
|
/AliOS-Things-master/components/minilibc/libc/ |
A D | malloc.c | 29 MALLOC_WEAK void *malloc(size_t size) in malloc() argument 34 ret = mm_malloc(USR_HEAP, size, __builtin_return_address(0)); in malloc() 36 ret = csi_kernel_malloc(size, __builtin_return_address(0)); in malloc() 51 MALLOC_WEAK void *realloc(void *ptr, size_t size) in realloc() argument 56 new_ptr = mm_malloc(USR_HEAP, size, __builtin_return_address(0)); in realloc() 58 new_ptr = csi_kernel_malloc(size, __builtin_return_address(0)); in realloc() 66 memcpy(new_ptr, ptr, size); in realloc() 78 MALLOC_WEAK void *calloc(size_t nmemb, size_t size) in calloc() argument 83 ptr = mm_malloc(USR_HEAP, size * nmemb, __builtin_return_address(0)); in calloc() 85 ptr = csi_kernel_malloc(size * nmemb, __builtin_return_address(0)); in calloc() [all …]
|
/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/third_party/ruy/ruy/ |
A D | test_fast.cc | 59 for (int size : sizes) { in TEST() local 60 TestRCC<TestSetType>(size, size, size); in TEST() 61 TestLinearAllOrders<TestSetType>(size, size, size); in TEST() 100 for (int size = 1; size < 1024; size *= 2) { in TEST() local 102 TestLinearAllOrders<TestSetType>(size, depth, 1); in TEST()
|