/AliOS-Things-master/components/py_engine/engine/py/ |
A D | map.c | 74 map->table = m_new0(mp_map_elem_t, map->alloc); in mp_map_init() 88 map->table = (mp_map_elem_t *)table; in mp_map_init_fixed_table() 94 m_del(mp_map_elem_t, map->table, map->alloc); in mp_map_deinit() 101 m_del(mp_map_elem_t, map->table, map->alloc); in mp_map_clear() 114 mp_map_elem_t *old_table = map->table; in mp_map_rehash() 115 mp_map_elem_t *new_table = m_new0(mp_map_elem_t, new_alloc); in mp_map_rehash() 126 m_del(mp_map_elem_t, old_table, old_alloc); in mp_map_rehash() 185 map->table = m_renew(mp_map_elem_t, map->table, map->used, map->alloc); in mp_map_lookup() 188 mp_map_elem_t *elem = map->table + map->used++; in mp_map_lookup() 219 mp_map_elem_t *avail_slot = NULL; in mp_map_lookup() [all …]
|
A D | objmodule.c | 43 …mp_map_elem_t *elem = mp_map_lookup(&self->globals->map, MP_OBJ_NEW_QSTR(MP_QSTR___name__), MP_MAP… in module_print() 65 … mp_map_elem_t *elem = mp_map_lookup(&self->globals->map, MP_OBJ_NEW_QSTR(attr), MP_MAP_LOOKUP); in module_attr() 113 …mp_map_elem_t *el = mp_map_lookup(mp_loaded_modules_map, MP_OBJ_NEW_QSTR(module_name), MP_MAP_LOOK… in mp_obj_new_module() 249 …mp_map_elem_t *el = mp_map_lookup(mp_loaded_modules_map, MP_OBJ_NEW_QSTR(module_name), MP_MAP_LOOK… in mp_module_get() 273 const mp_map_elem_t *entry = (const mp_map_elem_t *)&mp_builtin_module_table[i]; in mp_module_search_umodule()
|
A D | objdict.c | 53 STATIC mp_map_elem_t *dict_iter_next(mp_obj_dict_t *dict, size_t *cur) { in dict_iter_next() 87 mp_map_elem_t *next = NULL; in dict_print() 150 mp_map_elem_t *elem = mp_map_lookup(&o->map, rhs_in, MP_MAP_LOOKUP); in dict_binary_op() 176 mp_map_elem_t *next = NULL; in dict_binary_op() 198 mp_map_elem_t *elem = mp_map_lookup(&self->map, index, MP_MAP_LOOKUP); in mp_obj_dict_get() 214 mp_map_elem_t *elem = mp_map_lookup(&self->map, index, MP_MAP_LOOKUP); in dict_subscr() 257 memcpy(other->map.table, self->map.table, self->map.alloc * sizeof(mp_map_elem_t)); in mp_obj_dict_copy() 300 mp_map_elem_t *elem = mp_map_lookup(&self->map, args[1], lookup_kind); in dict_get_helper() 352 mp_map_elem_t *next = dict_iter_next(self, &cur); in dict_popitem() 378 mp_map_elem_t *elem = NULL; in dict_update() [all …]
|
A D | moduerrno.c | 79 .table = (mp_map_elem_t *)(mp_rom_map_elem_t *)errorcode_table, 105 mp_map_elem_t *elem = mp_map_lookup((mp_map_t *)&errorcode_dict.map, errno_val, MP_MAP_LOOKUP); in mp_errno_to_str()
|
A D | objtype.c | 158 … mp_map_elem_t *elem = mp_map_lookup(locals_map, MP_OBJ_NEW_QSTR(lookup->attr), MP_MAP_LOOKUP); in mp_obj_class_lookup() 582 mp_map_elem_t *elem = mp_map_lookup(&self->members, MP_OBJ_NEW_QSTR(attr), MP_MAP_LOOKUP); in mp_obj_instance_load_attr() 787 …mp_map_elem_t *elem = mp_map_lookup(&self->members, MP_OBJ_NEW_QSTR(attr), MP_MAP_LOOKUP_REMOVE_IF… in mp_obj_instance_store_attr() 1067 …mp_map_elem_t *elem = mp_map_lookup(locals_map, MP_OBJ_NEW_QSTR(attr), MP_MAP_LOOKUP_REMOVE_IF_FOU… in type_attr() 1086 …mp_map_elem_t *elem = mp_map_lookup(locals_map, MP_OBJ_NEW_QSTR(attr), MP_MAP_LOOKUP_ADD_IF_NOT_FO… in type_attr() 1183 const mp_map_elem_t *elem = &o->locals_dict->map.table[i]; in mp_obj_new_type() 1200 … mp_map_elem_t *elem = mp_map_lookup(locals_map, MP_OBJ_NEW_QSTR(MP_QSTR___new__), MP_MAP_LOOKUP); in mp_obj_new_type()
|
A D | argcheck.c | 90 mp_map_elem_t *kw = mp_map_lookup(kws, MP_OBJ_NEW_QSTR(allowed[i].qst), MP_MAP_LOOKUP); in mp_arg_parse_all()
|
A D | vm.c | 184 static inline mp_map_elem_t *mp_map_cached_lookup(mp_map_t *map, qstr qst, uint8_t *idx_cache) { in mp_map_cached_lookup() 187 mp_map_elem_t *elem = NULL; in mp_map_cached_lookup() 375 … mp_map_elem_t *elem = mp_map_cached_lookup(&mp_locals_get()->map, qst, (uint8_t*)ip); in mp_execute_bytecode() 399 … mp_map_elem_t *elem = mp_map_cached_lookup(&mp_globals_get()->map, qst, (uint8_t*)ip); in mp_execute_bytecode() 426 mp_map_elem_t *elem = NULL; in mp_execute_bytecode() 516 mp_map_elem_t *elem = NULL; in mp_execute_bytecode()
|
A D | obj.h | 364 .table = (mp_map_elem_t *)(mp_rom_map_elem_t *)table_name, \ 376 .table = (mp_map_elem_t *)(mp_rom_map_elem_t *)table_name, \ 401 } mp_map_elem_t; typedef 414 mp_map_elem_t *table; 435 mp_map_elem_t *mp_map_lookup(mp_map_t *map, mp_obj_t index, mp_map_lookup_kind_t lookup_kind);
|
A D | runtime.c | 165 … mp_map_elem_t *elem = mp_map_lookup(&mp_locals_get()->map, MP_OBJ_NEW_QSTR(qst), MP_MAP_LOOKUP); in mp_load_name() 176 … mp_map_elem_t *elem = mp_map_lookup(&mp_globals_get()->map, MP_OBJ_NEW_QSTR(qst), MP_MAP_LOOKUP); in mp_load_global() 204 …mp_map_elem_t *elem = mp_map_lookup(&MP_STATE_VM(mp_module_builtins_override_dict)->map, MP_OBJ_NE… in mp_load_build_class() 1109 mp_map_elem_t *elem = mp_map_lookup(locals_map, MP_OBJ_NEW_QSTR(attr), MP_MAP_LOOKUP); in mp_load_method_maybe() 1396 …mp_map_elem_t *import = mp_map_lookup(&bo_dict->map, MP_OBJ_NEW_QSTR(MP_QSTR___import__), MP_MAP_L… in mp_import_name()
|
A D | bc.c | 253 mp_map_elem_t *elem = NULL; in mp_setup_code_state()
|
A D | parse.c | 485 mp_map_elem_t *elem; in push_result_token() 728 …mp_map_elem_t *elem = mp_map_lookup(&parser->consts, MP_OBJ_NEW_QSTR(id), MP_MAP_LOOKUP_ADD_IF_NOT… in fold_constants() 766 …mp_map_elem_t *elem = mp_map_lookup((mp_map_t *)&mp_constants_map, MP_OBJ_NEW_QSTR(q_base), MP_MAP… in fold_constants()
|
A D | builtinimport.c | 290 …mp_map_elem_t *elem = mp_map_lookup(globals_map, MP_OBJ_NEW_QSTR(MP_QSTR___path__), MP_MAP_LOOKUP); in mp_builtin___import__()
|
A D | modbuiltins.c | 267 mp_map_elem_t *key_elem = mp_map_lookup(kwargs, MP_OBJ_NEW_QSTR(MP_QSTR_key), MP_MAP_LOOKUP); in mp_builtin_min_max() 268 mp_map_elem_t *default_elem; in mp_builtin_min_max()
|
A D | objstr.c | 1082 mp_map_elem_t *key_elem = mp_map_lookup(kwargs, field_q, MP_MAP_LOOKUP); in mp_obj_str_format_helper()
|
/AliOS-Things-master/components/py_engine/engine/extmod/ |
A D | moduselect.c | 52 … mp_map_elem_t *elem = mp_map_lookup(poll_map, mp_obj_id(obj[i]), MP_MAP_LOOKUP_ADD_IF_NOT_FOUND); in poll_map_add() 215 mp_map_elem_t *elem = mp_map_lookup(&self->poll_map, mp_obj_id(obj_in), MP_MAP_LOOKUP); in poll_modify()
|
A D | network_cyw43.c | 367 mp_map_elem_t *e = &kwargs->table[i]; in network_cyw43_config()
|
A D | modbluetooth.c | 336 mp_map_elem_t *e = &kwargs->table[i]; in bluetooth_ble_config() 1584 …mp_map_elem_t *elem = mp_map_lookup(db, MP_OBJ_NEW_SMALL_INT(handle), MP_MAP_LOOKUP_ADD_IF_NOT_FOU… in mp_bluetooth_gatts_db_create_entry() 1594 mp_map_elem_t *elem = mp_map_lookup(db, MP_OBJ_NEW_SMALL_INT(handle), MP_MAP_LOOKUP); in mp_bluetooth_gatts_db_lookup()
|
/AliOS-Things-master/components/py_engine/modules/aliyunIoT/ |
A D | module_aiot_gateway.c | 646 mp_map_elem_t *elem; in aiot_topo_common()
|