/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/bluetooth/realtek/sdk/inc/os/ |
A D | os_pool.h | 44 bool os_pool_create_intern(uint8_t *p_handle, RAM_TYPE ram_type, uint16_t buf_size, 47 bool os_pool_extend_intern(uint8_t handle, uint16_t buf_size, uint16_t buf_count, 52 void *os_buffer_get_intern(uint8_t handle, uint16_t buf_size, 105 #define os_pool_create(p_handle, ram_type, buf_size, buf_count) \ argument 106 os_pool_create_intern(p_handle, ram_type, buf_size, buf_count, __func__, __LINE__) 155 #define os_pool_extend(handle, buf_size, buf_count) \ argument 156 os_pool_extend_intern(handle, buf_size, buf_count, __func__, __LINE__) 249 #define os_buffer_get(handle, buf_size) \ argument 250 os_buffer_get_intern(handle, buf_size, __func__, __LINE__)
|
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/contrib/mfs/ |
A D | mfs_file.c | 159 buf_size[ret] = size; in mfs_open() 183 buf_size[ret] = 0; in mfs_open() 201 buf_size[ret] = 0; in mfs_open() 208 buf_size[ret] = size; in mfs_open() 262 if (offset > buf_size[fd]) in mfs_lseek() 397 if (buf_off[fd] != buf_size[fd]) in mfs_write() 398 buf_off[fd] = buf_size[fd]; in mfs_write() 401 buf_size[fd] += size; in mfs_write() 435 ret = buf_size[fd]; in mfs_size() 468 *len = buf_size[fd]; in mfs_map() [all …]
|
/AliOS-Things-master/kernel/rhino/ |
A D | k_mm.c | 481 get_b->buf_size = size | (get_b->buf_size & MM_PRESTAT_MASK); in k_mm_alloc() 495 next_b->buf_size &= (~MM_BUFF_PREV_FREE); in k_mm_alloc() 561 free_b->buf_size |= MM_BUFF_FREE; in k_mm_free() 584 if (next_b->buf_size & MM_BUFF_FREE) { in k_mm_free() 590 if (free_b->buf_size & MM_BUFF_PREV_FREE) { in k_mm_free() 602 next_b->buf_size |= MM_BUFF_PREV_FREE; in k_mm_free() 657 if (next_b->buf_size & MM_BUFF_FREE) { in k_mm_realloc() 667 this_b->buf_size = new_size | (this_b->buf_size & MM_PRESTAT_MASK); in k_mm_realloc() 682 next_b->buf_size |= MM_BUFF_PREV_FREE; in k_mm_realloc() 688 } else if ((next_b->buf_size & MM_BUFF_FREE)) { in k_mm_realloc() [all …]
|
A D | k_mm_debug.c | 55 if (b->buf_size & MM_BUFF_FREE) { in print_block() 77 if (b->buf_size & MM_BUFF_FREE) { in print_block() 117 if (b->buf_size & MM_BUFF_FREE) { in check_block()
|
/AliOS-Things-master/components/a2sa/example/ |
A D | sound_example_lb.c | 31 unsigned int buf_size = 0; in sound_loopback_thread() local 37 buf_size = freq * channels * 2 / 5; in sound_loopback_thread() 38 dataBuf = (unsigned char *)malloc(buf_size); in sound_loopback_thread() 40 LOGE(LOG_TAG, "%s:%d: malloc %d failed. ", __func__, __LINE__, buf_size); in sound_loopback_thread() 74 ret = aos_pcm_readi(cap_pcm, dataBuf, aos_pcm_bytes_to_frames(cap_pcm, buf_size)); in sound_loopback_thread()
|
/AliOS-Things-master/components/py_engine/engine/py/ |
A D | formatfloat.c | 114 int mp_format_float(FPTYPE f, char *buf, size_t buf_size, char fmt, int prec, char sign) { in mp_format_float() argument 118 if (buf_size <= FPMIN_BUF_SIZE) { in mp_format_float() 123 if (buf_size >= 2) { in mp_format_float() 126 if (buf_size >= 1) { in mp_format_float() 129 return buf_size >= 2; in mp_format_float() 142 int buf_remaining = buf_size - 1 - (s - buf); in mp_format_float() 409 assert((size_t)(s + 1 - buf) <= buf_size); in mp_format_float() 433 assert((size_t)(s + 1 - buf) <= buf_size); in mp_format_float()
|
A D | objint.c | 185 size_t buf_size = sizeof(stack_buf); in mp_obj_int_print() local 188 char *str = mp_obj_int_formatted(&buf, &buf_size, &fmt_size, self_in, 10, NULL, '\0', '\0'); in mp_obj_int_print() 192 m_del(char, buf, buf_size); in mp_obj_int_print() 224 char *mp_obj_int_formatted(char **buf, size_t *buf_size, size_t *fmt_size, mp_const_obj_t self_in, in mp_obj_int_formatted() argument 243 …return mp_obj_int_formatted_impl(buf, buf_size, fmt_size, self_in, base, prefix, base_char, comma); in mp_obj_int_formatted() 255 if (needed_size > *buf_size) { in mp_obj_int_formatted() 257 *buf_size = needed_size; in mp_obj_int_formatted()
|
A D | objint.h | 52 char *mp_obj_int_formatted(char **buf, size_t *buf_size, size_t *fmt_size, mp_const_obj_t self_in, 54 char *mp_obj_int_formatted_impl(char **buf, size_t *buf_size, size_t *fmt_size, mp_const_obj_t self…
|
A D | mpprint.c | 260 size_t buf_size = sizeof(stack_buf); in mp_print_mp_int() local 271 str = mp_obj_int_formatted(&buf, &buf_size, &fmt_size, in mp_print_mp_int() 278 str = mp_obj_int_formatted(&buf, &buf_size, &fmt_size, in mp_print_mp_int() 337 m_del(char, buf, buf_size); in mp_print_mp_int()
|
/AliOS-Things-master/components/uservice/src/ |
A D | rpc.c | 123 uint8_t *buf = aos_malloc(size + rpc->buf_size); in rpc_buffer_need_size() 127 memcpy(buf, rpc->buffer, rpc->buf_size); in rpc_buffer_need_size() 132 p = rpc->buffer + rpc->buf_size; in rpc_buffer_need_size() 133 rpc->buf_size += size; in rpc_buffer_need_size() 145 rpc->data->buf_size = 0; in rpc_put_reset()
|
/AliOS-Things-master/components/SDL2/src/image/external/libpng-1.6.37/contrib/examples/ |
A D | simpleover.c | 422 size_t buf_size, tmp; in simpleover_process() local 431 buf_size = sizeof (png_uint_16 [4]); in simpleover_process() 432 buf_size *= sprites[nsprites].width; in simpleover_process() 433 buf_size *= sprites[nsprites].height; in simpleover_process() 436 tmp = buf_size; in simpleover_process() 442 sprites[nsprites].buffer = malloc(buf_size); in simpleover_process() 444 memset(sprites[nsprites].buffer, 0, buf_size); in simpleover_process()
|
/AliOS-Things-master/components/mqtt/MQTTClient-C/ |
A D | MQTTClient.c | 67 c->buf_size = sendbuf_size; in MQTTClientInit() 228 int len = MQTTSerialize_pingreq(c->buf, c->buf_size); in keepalive() 291 len = MQTTSerialize_ack(c->buf, c->buf_size, PUBACK, 0, msg.id); in cycle() 293 len = MQTTSerialize_ack(c->buf, c->buf_size, PUBREC, 0, msg.id); in cycle() 310 else if ((len = MQTTSerialize_ack(c->buf, c->buf_size, in cycle() 435 if ((len = MQTTSerialize_connect(c->buf, c->buf_size, options)) <= 0) in MQTTConnectWithResults() 535 … len = MQTTSerialize_subscribe(c->buf, c->buf_size, 0, getNextPacketId(c), 1, &topic, (int*)&qos); in MQTTSubscribeWithResults() 590 … if ((len = MQTTSerialize_unsubscribe(c->buf, c->buf_size, 0, getNextPacketId(c), 1, &topic)) <= 0) in MQTTUnsubscribe() 637 … len = MQTTSerialize_publish(c->buf, c->buf_size, 0, message->qos, message->retained, message->id, in MQTTPublish() 691 len = MQTTSerialize_disconnect(c->buf, c->buf_size); in MQTTDisconnect()
|
/AliOS-Things-master/components/http/src/ |
A D | http_client.c | 197 int buf_size = HTTPCLIENT_SEND_BUF_SIZE; in httpclient_send_header() local 225 buf = (char *) malloc(buf_size); in httpclient_send_header() 231 memset(buf, 0, buf_size); in httpclient_send_header() 265 memset(buf, 0, buf_size); in httpclient_send_header() 266 snprintf(buf, buf_size, "Accept: */*\r\n"); in httpclient_send_header() 270 memset(buf, 0, buf_size); in httpclient_send_header() 271 snprintf(buf, buf_size, "Content-Type: %s\r\n", client_data->post_content_type); in httpclient_send_header() 274 memset(buf, 0, buf_size); in httpclient_send_header() 280 snprintf(buf, buf_size, "Content-Length: %d\r\n", total_len); in httpclient_send_header() 283 snprintf(buf, buf_size, "Content-Length: %d\r\n", client_data->post_buf_len); in httpclient_send_header() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/src/dec/ |
A D | vp8_dec.c | 258 size_t buf_size; in VP8GetHeaders() local 273 buf_size = io->data_size; in VP8GetHeaders() 274 if (buf_size < 4) { in VP8GetHeaders() 296 buf_size -= 3; in VP8GetHeaders() 302 if (buf_size < 7) { in VP8GetHeaders() 306 if (!VP8CheckSignature(buf, buf_size)) { in VP8GetHeaders() 315 buf_size -= 7; in VP8GetHeaders() 344 if (frm_hdr->partition_length_ > buf_size) { in VP8GetHeaders() 352 buf_size -= frm_hdr->partition_length_; in VP8GetHeaders() 367 status = ParsePartitions(dec, buf, buf_size); in VP8GetHeaders()
|
/AliOS-Things-master/components/littlevgl/src/lv_objx/ |
A D | lv_roller.h | 155 …atic inline void lv_roller_get_selected_str(const lv_obj_t * roller, char * buf, uint16_t buf_size) in lv_roller_get_selected_str() argument 157 lv_ddlist_get_selected_str(roller, buf, buf_size); in lv_roller_get_selected_str()
|
/AliOS-Things-master/components/freetype/src/lzw/ |
A D | ftzopen.c | 40 state->buf_size = (FT_UInt)count; in ft_lzwstate_refill() 44 state->buf_size = ( state->buf_size << 3 ) - ( state->num_bits - 1 ); in ft_lzwstate_refill() 63 offset >= state->buf_size || in ft_lzwstate_get_code() 189 state->buf_size = 0; in ft_lzwstate_reset()
|
/AliOS-Things-master/components/osal_aos/rhino/ |
A D | aos_task.c | 158 aos_status_t aos_task_name_get(aos_task_t *task, char *buf, size_t buf_size) in aos_task_name_get() argument 165 if (buf == NULL || buf_size == 0) { in aos_task_name_get() 173 copy_len = (str_len > (buf_size - 1)) ? buf_size - 1 : str_len; in aos_task_name_get()
|
/AliOS-Things-master/hardware/chip/haas1000/drivers/services/cp_server/ |
A D | cp_server.h | 76 uint32_t buf_size; member 90 uint32_t buf_size; member
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/api/wifi/ |
A D | wifi_util.c | 1035 unsigned int buf_size; in wext_private_command_with_retval() local 1038 buf_size = 128; in wext_private_command_with_retval() 1039 if(strlen(cmd) >= buf_size) in wext_private_command_with_retval() 1046 memset(buf, 0, buf_size); in wext_private_command_with_retval() 1047 strncpy(buf, cmd, buf_size); in wext_private_command_with_retval() 1050 iwr.u.data.length = buf_size; in wext_private_command_with_retval() 1069 unsigned int buf_size; in wext_private_command() local 1082 buf_size = 512; in wext_private_command() 1084 if(strlen(cmd) >= buf_size) in wext_private_command() 1091 memset(buf, 0, buf_size); in wext_private_command() [all …]
|
/AliOS-Things-master/components/ucamera/src/device/wifi/dechunk/ |
A D | dechunk.c | 179 int dechunk_getbuff(void **buff, size_t *buf_size) in dechunk_getbuff() argument 182 *buf_size = g_buff_outlen; in dechunk_getbuff()
|
/AliOS-Things-master/components/ucamera/include/device/wifi/ |
A D | dechunk.h | 21 int dechunk_getbuff(void **buff, size_t *buf_size);
|
/AliOS-Things-master/components/amp/components/at/src/ |
A D | at.c | 73 static void at_scan_for_callback(int fd, char c, char *buf, int buf_size, int *index) in at_scan_for_callback() argument 80 if (!buf || buf_size <= 0 || offset < 0) { in at_scan_for_callback() 137 if (offset > (buf_size - 2)) { in at_scan_for_callback() 458 static void at_scan_check_buffer(char *buf, int buf_size, int *index, int copy_size) in at_scan_check_buffer() argument 463 copy_size >= buf_size) { in at_scan_check_buffer() 467 if (offset > (buf_size - 2)) { in at_scan_check_buffer() 498 memset(buf, 0, para->buf_size); in at_worker() 521 if (offset + 1 >= para->buf_size) { in at_worker() 529 at_scan_for_callback(para->fd, c, buf, para->buf_size, &offset); in at_worker() 536 at_scan_check_buffer(buf, para->buf_size, &offset, memcpy_size); in at_worker() [all …]
|
/AliOS-Things-master/kernel/rhino/include/ |
A D | k_mm.h | 88 #define MM_GET_BUF_SIZE(blk) ((blk)->buf_size & (~MM_ALIGN_MASK)) 164 size_t buf_size; member
|
/AliOS-Things-master/components/amp/engine/quickjs_engine/quickjs/ |
A D | cutils.c | 32 void pstrcpy(char *buf, int buf_size, const char *str) in pstrcpy() argument 37 if (buf_size <= 0) in pstrcpy() 42 if (c == 0 || q >= buf + buf_size - 1) in pstrcpy() 50 char *pstrcat(char *buf, int buf_size, const char *s) in pstrcat() argument 54 if (len < buf_size) in pstrcat() 55 pstrcpy(buf + len, buf_size - len, s); in pstrcat()
|
/AliOS-Things-master/components/csi/csi1/include/drv/ |
A D | codec.h | 73 uint32_t buf_size; ///< Used to cache incoming data member 85 uint32_t buf_size; member
|