Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 268) sorted by relevance

1234567891011

/AliOS-Things-master/components/linkkit/infra/
A Dinfra_mem_stats.c233 if (!pos) { in _create_mem_table()
318 if (!pos) { in _count_malloc_internal()
379 if (!pos) { in _count_free_internal()
441 pos->buf = ptr; in LITE_malloc_internal()
447 record_backtrace(&pos->bt_level, &pos->bt_symbols); in LITE_malloc_internal()
502 pos = NULL; in LITE_free_internal()
512 pos = NULL; in LITE_free_internal()
528 if (pos->buf && pos->buflen > 0) { in LITE_free_internal()
529 memset(pos->buf, 0xEE, pos->buflen); in LITE_free_internal()
531 pos->buf = 0; in LITE_free_internal()
[all …]
A Dinfra_string.c44 static char *pos = NULL; in infra_strtok() local
47 pos = (str == NULL) ? (pos) : (str); in infra_strtok()
49 if (pos == NULL || delim == NULL || strlen(pos) <= strlen(delim)) { in infra_strtok()
53 target = pos; in infra_strtok()
54 while (strlen(pos) >= strlen(delim)) { in infra_strtok()
57 pos++; in infra_strtok()
62 memset(pos, 0, strlen(delim)); in infra_strtok()
69 if (target == pos) { in infra_strtok()
70 pos += strlen(delim); in infra_strtok()
71 target = pos; in infra_strtok()
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/api/platform/
A Ddlist.h232 #define list_for_each(pos, head) \ argument
233 for (pos = (head)->next; pos != (head); \
234 pos = pos->next)
240 #define list_for_each_prev(pos, head) \ argument
241 for (pos = (head)->prev; pos != (head); \
242 pos = pos->prev)
251 for (pos = (head)->next, n = pos->next; pos != (head); \
252 pos = n, n = pos->next)
262 &pos->member != (head); \
263 pos = list_entry(pos->member.next, type, member))
[all …]
/AliOS-Things-master/components/ota/2ndboot/updater/
A Dnbpatch_io.c9 unsigned long base = pos; in ota_patch_read()
15 ret = flash_read_data(src + pos, buffer+pos-base, read_size); in ota_patch_read()
19 pos += read_size; in ota_patch_read()
22 return pos - base; in ota_patch_read()
37 ret = flash_write_data(dst + pos, buffer+pos-base, write_size); in ota_patch_write()
41 pos += write_size; in ota_patch_write()
44 return pos - base; in ota_patch_write()
49 unsigned long pos = 0; in ota_patch_new_data() local
64 ret = flash_write_data(diff_data + pos, buf + pos, bsize); in ota_patch_new_data()
68 pos += bsize; in ota_patch_new_data()
[all …]
/AliOS-Things-master/components/freetype/src/base/
A Dftstream.c41 stream->pos = 0; in FT_Stream_OpenMemory()
85 stream->pos = pos; in FT_Stream_Seek()
105 return stream->pos; in FT_Stream_Pos()
128 if ( pos >= stream->size ) in FT_Stream_ReadAt()
148 stream->pos = pos + read_bytes; in FT_Stream_ReadAt()
472 stream->pos++; in FT_Stream_ReadChar()
519 stream->pos += 2; in FT_Stream_ReadUShort()
566 stream->pos += 2; in FT_Stream_ReadUShortLE()
613 stream->pos += 3; in FT_Stream_ReadUOffset()
660 stream->pos += 4; in FT_Stream_ReadULong()
[all …]
/AliOS-Things-master/components/ble_host/bt_host/host/
A Dat.c25 at->pos++; in next_list()
44 at->pos++; in skip_space()
98 u8_t pos = at->pos; in get_cmd_value() local
106 pos = at->pos; in get_cmd_value()
128 u8_t pos = at->pos; in get_response_string() local
136 pos = at->pos; in get_response_string()
157 at->pos = 0U; in reset_buffer()
443 at->pos++; in at_open_list()
455 at->pos++; in at_close_list()
471 at->pos++; in at_list_get_string()
[all …]
/AliOS-Things-master/components/ucloud_ai/src/model/aliyun-openapi/core/src/
A DUrl.cc81 pos = str.find("://"); in fromString()
82 if (pos != str.npos) { in fromString()
87 pos = str.find('#'); in fromString()
88 if (pos != str.npos) { in fromString()
90 str.erase(pos); in fromString()
93 pos = str.find('?'); in fromString()
96 str.erase(pos); in fromString()
99 pos = str.find('/'); in fromString()
102 str.erase(pos); in fromString()
165 prevpos = pos + 1; in setAuthority()
[all …]
/AliOS-Things-master/components/oss/src/http/
A DUrl.cc105 pos = str.find("://"); in fromString()
106 if (pos != str.npos) { in fromString()
111 pos = str.find('#'); in fromString()
112 if (pos != str.npos) { in fromString()
114 str.erase(pos); in fromString()
117 pos = str.find('?'); in fromString()
118 if (pos != str.npos) { in fromString()
120 str.erase(pos); in fromString()
123 pos = str.find('/'); in fromString()
126 str.erase(pos); in fromString()
[all …]
/AliOS-Things-master/components/py_engine/tests/perf_bench/
A Dbm_hexiom.py161 self.pos = pos
228 done = pos.done
309 done = pos.done
330 hex = pos.hex
331 done = pos.done
364 hex = pos.hex
366 done = pos.done
409 pos = prev
433 def check_valid(pos): argument
434 hex = pos.hex
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/api/wifi/rtw_wpa_supplicant/src/utils/
A Dwpabuf.h103 u8 *pos = NULL; in wpabuf_put_u8() local
107 *pos = data; in wpabuf_put_u8()
112 u8 *pos = NULL; in wpabuf_put_le16() local
116 WPA_PUT_LE16(pos, data); in wpabuf_put_le16()
121 u8 *pos = NULL; in wpabuf_put_le32() local
125 WPA_PUT_LE32(pos, data); in wpabuf_put_le32()
130 u8 *pos = NULL; in wpabuf_put_be16() local
134 WPA_PUT_BE16(pos, data); in wpabuf_put_be16()
139 u8 *pos = NULL; in wpabuf_put_be24() local
143 WPA_PUT_BE24(pos, data); in wpabuf_put_be24()
[all …]
/AliOS-Things-master/components/py_engine/engine/extmod/
A Dmoduheapq.c42 mp_obj_t item = heap->items[pos]; in uheapq_heap_siftdown()
43 while (pos > start_pos) { in uheapq_heap_siftdown()
44 mp_uint_t parent_pos = (pos - 1) >> 1; in uheapq_heap_siftdown()
47 heap->items[pos] = parent; in uheapq_heap_siftdown()
48 pos = parent_pos; in uheapq_heap_siftdown()
53 heap->items[pos] = item; in uheapq_heap_siftdown()
57 mp_uint_t start_pos = pos; in uheapq_heap_siftup()
59 mp_obj_t item = heap->items[pos]; in uheapq_heap_siftup()
60 for (mp_uint_t child_pos = 2 * pos + 1; child_pos < end_pos; child_pos = 2 * pos + 1) { in uheapq_heap_siftup()
67 pos = child_pos; in uheapq_heap_siftup()
[all …]
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/swlib/string/
A Dprintf.c47 buf[--pos] = 0; in longlong_to_string()
73 size_t pos = len; in longlong_to_octalstring() local
75 buf[--pos] = 0; in longlong_to_octalstring()
86 return &buf[pos]; in longlong_to_octalstring()
94 buf[--pos] = 0; in longlong_to_hexstring()
108 size_t pos = 0; in exponent_to_string() local
122 else pos++; in exponent_to_string()
125 uint i = pos; in exponent_to_string()
135 return pos; in exponent_to_string()
246 buf[pos] = 0; in double_to_string()
[all …]
/AliOS-Things-master/components/linkkit/include/linkkit/infra/
A Dinfra_json_parser.h127 #define json_object_for_each_kv(str, slen, pos, key, klen, val, vlen, vtype) \ argument
128 for (pos = json_get_object(JOBJECT, str, str + slen); \
129 pos != NULL && *pos != 0 && \
130 (pos = json_get_next_object(JOBJECT, pos, str + slen, &key, &klen, \
145 #define json_array_for_each_entry(str, slen, pos, entry, len, type) \ argument
146 for (pos = json_get_object(JARRAY, str, str + slen); \
147 pos != NULL && *pos != 0 && \
148 (pos = json_get_next_object(JARRAY, ++pos, str + slen, 0, 0, &entry, \
A Dinfra_list.h118 #define dlist_for_each(pos, head) \ argument
119 for (pos = (head)->next; pos != (head); pos = pos->next)
128 #define dlist_for_each_safe(pos, n, head) \ argument
129 for (pos = (head)->next, n = pos->next; pos != (head); \
130 pos = n, n = pos->next)
177 for (pos = list_entry((head)->prev, type, member); &pos->member != (head); \
178 pos = list_entry(pos->member.prev, type, member))
366 #define list_for_each_entry(pos, head, member, type) \ argument
367 dlist_for_each_entry(head, pos, type, member)
375 #define list_next_entry(pos, member, type) \ argument
[all …]
/AliOS-Things-master/components/freetype/src/lzw/
A Dftlzw.c123 zip->pos = 0; in ft_lzw_file_init()
163 zip->pos = 0; in ft_lzw_file_reset()
208 zip->pos += delta; in ft_lzw_file_skip_output()
231 zip->pos += delta; in ft_lzw_file_skip_output()
250 if ( pos < zip->pos ) in ft_lzw_file_io()
254 if ( ( zip->pos - pos ) <= (FT_ULong)( zip->cursor - zip->buffer ) ) in ft_lzw_file_io()
256 zip->cursor -= zip->pos - pos; in ft_lzw_file_io()
257 zip->pos = pos; in ft_lzw_file_io()
268 if ( pos > zip->pos ) in ft_lzw_file_io()
270 error = ft_lzw_file_skip_output( zip, (FT_ULong)( pos - zip->pos ) ); in ft_lzw_file_io()
[all …]
/AliOS-Things-master/components/linkkit/wifi_provision/ht40/
A Dawss_ht40.c137 int pos = i * 32 + j * 8 + k; in ht40_get_qos_auth_group_info() local
143 max_count_pos = pos; in ht40_get_qos_auth_group_info()
218 uint16_t pos = 0, index = 0, len = 0; in awss_recv_callback_ht_ctrl() local
258 pos = zc_group_pos + index; in awss_recv_callback_ht_ctrl()
275 if (pos < zc_cur_pos) { in awss_recv_callback_ht_ctrl()
284 pkg_score(pos)--; in awss_recv_callback_ht_ctrl()
288 if (pos > zc_cur_pos + 4) { in awss_recv_callback_ht_ctrl()
311 if (score > pkg_score(pos)) { in awss_recv_callback_ht_ctrl()
319 pkg_score(pos)++; in awss_recv_callback_ht_ctrl()
321 pkg_score(pos)--; in awss_recv_callback_ht_ctrl()
[all …]
/AliOS-Things-master/components/littlevgl/src/lv_draw/
A Dlv_draw_label.c78 lv_point_t pos; in lv_draw_label() local
79 pos.x = coords->x1; in lv_draw_label()
80 pos.y = coords->y1; in lv_draw_label()
87 pos.y += y_ofs; in lv_draw_label()
105 pos.y += hint->y; in lv_draw_label()
111 while(pos.y + line_height < mask->y1) { in lv_draw_label()
115 pos.y += line_height; in lv_draw_label()
154 pos.x += x_ofs; in lv_draw_label()
230 pos.x = coords->x1; in lv_draw_label()
247 pos.y += line_height; in lv_draw_label()
[all …]
/AliOS-Things-master/components/uvoice/media/
A Duvoice_fade.c11 int *pos, int scope, int channels) in fade_out_proc_8bit() argument
14 int sample_pos = *pos; in fade_out_proc_8bit()
35 *pos = sample_pos; in fade_out_proc_8bit()
40 int *pos, int scope, int channels) in fade_in_proc_8bit() argument
43 int sample_pos = *pos; in fade_in_proc_8bit()
70 *pos = sample_pos; in fade_in_proc_8bit()
77 int *pos, int scope, int channels) in fade_out_proc_16bit() argument
80 int sample_pos = *pos; in fade_out_proc_16bit()
101 *pos = sample_pos; in fade_out_proc_16bit()
109 int sample_pos = *pos; in fade_in_proc_16bit()
[all …]
A Duvoice_format.c110 while (pos <= end) { in mp3_id3v2_parse()
111 memcpy(&header, data + pos , in mp3_id3v2_parse()
119 pos++; in mp3_id3v2_parse()
125 if (pos > end) in mp3_id3v2_parse()
127 frame_pos = pos - frame_size; in mp3_id3v2_parse()
138 if (pos > end) in mp3_id3v2_parse()
151 if (pos > end) in mp3_id3v2_parse()
164 if (pos > end) in mp3_id3v2_parse()
177 if (pos > end) in mp3_id3v2_parse()
192 if (pos > end) in mp3_id3v2_parse()
[all …]
/AliOS-Things-master/components/py_engine/engine/tools/
A Dcc161 pos = hash % len(map)
62 start_pos = pos
66 if map[pos] is None:
74 if map[pos][0] == key:
76 pos = (pos + 1) % len(map)
81 pos = hash % len(map)
82 start_pos = pos
86 if map[pos] is None:
88 elif map[pos][0] == key:
91 pos = (pos + 1) % len(map)
[all …]
/AliOS-Things-master/components/debug/src/
A Ddebug_print.c98 buf[--pos] = 0; in longlong_to_string()
148 buf[--pos] = 0; in longlong_to_hexstring()
171 size_t pos = 0; in exponent_to_string() local
183 pos += 4; in exponent_to_string()
185 pos += 3; in exponent_to_string()
187 pos += 2; in exponent_to_string()
189 pos++; in exponent_to_string()
203 return pos; in exponent_to_string()
311 buf[pos] = 0; in double_to_string()
406 pos += exponent_to_string(&buf[pos], exponent_signed); in double_to_hexstring()
[all …]
/AliOS-Things-master/components/linksdk/core/utils/
A Dcore_list.h153 #define core_list_next_entry(pos, member, type) \ argument
154 core_list_entry((pos)->member.next, type, member)
163 #define core_list_for_each_entry(pos, head, member, type) \ argument
164 for (pos = core_list_first_entry(head, type, member); \
165 &pos->member != (head); \
166 pos = core_list_next_entry(pos, member, type))
176 #define core_list_for_each_entry_safe(pos, n, head, member, type) \ argument
177 for (pos = core_list_first_entry(head, type, member), \
178 n = core_list_next_entry(pos, member, type); \
179 &pos->member != (head); \
[all …]
/AliOS-Things-master/components/py_engine/engine/py/
A Dmap.c217 size_t pos = hash % map->alloc; in mp_map_lookup() local
218 size_t start_pos = pos; in mp_map_lookup()
261 pos = (pos + 1) % map->alloc; in mp_map_lookup()
263 if (pos == start_pos) { in mp_map_lookup()
325 size_t pos = hash % set->alloc; in mp_set_lookup() local
326 size_t start_pos = pos; in mp_set_lookup()
329 mp_obj_t elem = set->table[pos]; in mp_set_lookup()
363 pos = (pos + 1) % set->alloc; in mp_set_lookup()
365 if (pos == start_pos) { in mp_set_lookup()
387 for (size_t pos = 0; pos < set->alloc; pos++) { in mp_set_remove_first() local
[all …]
/AliOS-Things-master/components/SDL2/src/video/
A DSDL_stretch.c81 int pos, inc; in generate_rowbytes() local
113 pos = 0x10000; in generate_rowbytes()
126 pos -= 0x10000L; in generate_rowbytes()
135 pos += inc; in generate_rowbytes()
180 int pos, inc; in DEFINE_COPY_ROW() local
183 pos = 0x10000; in DEFINE_COPY_ROW()
190 pos -= 0x10000L; in DEFINE_COPY_ROW()
195 pos += inc; in DEFINE_COPY_ROW()
208 int pos, inc; in SDL_SoftStretch() local
276 pos = 0x10000; in SDL_SoftStretch()
[all …]
/AliOS-Things-master/components/ota/hal/
A Dota_hal_fs_plat.c57 char *pos = 0; in ota_jsapp_version_get() local
68 pos = strstr(read_buf, "\"version\":"); in ota_jsapp_version_get()
69 if (pos != NULL) { in ota_jsapp_version_get()
70 pos += 10; in ota_jsapp_version_get()
71 while (pos[0] != '"') { in ota_jsapp_version_get()
72 pos++; in ota_jsapp_version_get()
74 pos++; in ota_jsapp_version_get()
75 while (pos[0] != '"') { in ota_jsapp_version_get()
76 version[i++] = pos[0]; in ota_jsapp_version_get()
77 pos++; in ota_jsapp_version_get()

Completed in 33 milliseconds

1234567891011