/AliOS-Things-master/components/py_engine/engine/extmod/ |
A D | vfs_lfsx.c | 90 config->read_buffer = m_new(uint8_t, config->read_size); in MP_VFS_LFSx() 91 config->prog_buffer = m_new(uint8_t, config->prog_size); in MP_VFS_LFSx() 92 config->lookahead_buffer = m_new(uint8_t, config->lookahead / 8); in MP_VFS_LFSx() 97 config->read_buffer = m_new(uint8_t, config->cache_size); in MP_VFS_LFSx() 98 config->prog_buffer = m_new(uint8_t, config->cache_size); in MP_VFS_LFSx() 99 config->lookahead_buffer = m_new(uint8_t, config->lookahead_size); in MP_VFS_LFSx()
|
A D | moduzlib.c | 102 uzlib_uncompress_init(&o->decomp, m_new(byte, dict_sz), dict_sz); in decompio_make_new() 159 byte *dest_buf = m_new(byte, dest_buf_size); in mod_uzlib_decompress()
|
A D | modbluetooth.c | 270 … mp_obj_memoryview_init(&o->irq_data_data, 'B', 0, 0, m_new(uint8_t, o->irq_data_data_alloc)); in bluetooth_ble_make_new() 354 uint8_t *ringbuf = m_new(uint8_t, ringbuf_alloc); in bluetooth_ble_config() 355 uint8_t *irq_data = m_new(uint8_t, irq_data_alloc); in bluetooth_ble_config() 489 mp_obj_bluetooth_uuid_t **characteristic_uuids = m_new(mp_obj_bluetooth_uuid_t *, len); in bluetooth_gatts_register_service() 490 uint16_t *characteristic_flags = m_new(uint16_t, len); in bluetooth_gatts_register_service() 496 uint8_t *num_descriptors = m_new(uint8_t, len); in bluetooth_gatts_register_service() 501 *handles = m_new(uint16_t, *num_handles); in bluetooth_gatts_register_service() 1313 uint8_t *buf = m_new(uint8_t, total_len); in mp_bluetooth_gattc_on_data_available() 1585 mp_bluetooth_gatts_db_entry_t *entry = m_new(mp_bluetooth_gatts_db_entry_t, 1); in mp_bluetooth_gatts_db_create_entry() 1586 entry->data = m_new(uint8_t, len); in mp_bluetooth_gatts_db_create_entry()
|
A D | modbluetooth.h | 498 *db = m_new(mp_map_t, 1); in mp_bluetooth_gatts_db_create()
|
/AliOS-Things-master/components/py_engine/engine/py/ |
A D | ringbuf.h | 50 (r)->buf = m_new(uint8_t, sz); \
|
A D | objmap.c | 54 mp_obj_t *nextses = m_new(mp_obj_t, self->n_iters); in map_iternext()
|
A D | asmbase.c | 38 as->label_offsets = m_new(size_t, max_num_labels); in mp_asm_base_init()
|
A D | pystack.h | 85 return m_new(uint8_t, n_bytes); in mp_nonlocal_alloc()
|
A D | objclosure.c | 53 mp_obj_t *args2 = m_new(mp_obj_t, n_total); in closure_call()
|
A D | misc.h | 64 #define m_new(type, num) ((type *)(m_malloc(sizeof(type) * (num)))) macro 67 #define m_new_obj(type) (m_new(type, 1))
|
A D | persistentcode.c | 277 char *str = m_new(char, len); in load_qstr() 374 fun_data = m_new(uint8_t, fun_data_len); in load_raw_code() 456 const_table = m_new(mp_uint_t, n_alloc); in load_raw_code() 473 uint8_t *rodata = m_new(uint8_t, size); in load_raw_code()
|
A D | scope.c | 65 scope->id_info = m_new(id_info_t, scope->id_info_alloc); in scope_new()
|
A D | objfloat.c | 190 mp_obj_float_t *o = m_new(mp_obj_float_t, 1); in mp_obj_new_float()
|
A D | vstr.c | 47 vstr->buf = m_new(char, vstr->alloc); in vstr_init()
|
A D | objstringio.c | 72 o->vstr->buf = m_new(char, o->vstr->len); in stringio_copy_on_write()
|
A D | objtuple.c | 89 mp_obj_t *items = m_new(mp_obj_t, alloc); in mp_obj_tuple_make_new()
|
A D | parse.c | 283 chunk = (mp_parse_chunk_t *)m_new(byte, sizeof(mp_parse_chunk_t) + alloc); in parser_alloc() 841 parser.rule_stack = m_new(rule_stack_t, parser.rule_stack_alloc); in mp_parse() 845 parser.result_stack = m_new(mp_parse_node_t, parser.result_stack_alloc); in mp_parse()
|
A D | emitinlinextensa.c | 59 emit->label_lookup = m_new(qstr, max_num_labels); in emit_inline_xtensa_new()
|
A D | objint.c | 256 *buf = m_new(char, needed_size); in mp_obj_int_formatted()
|
A D | objint_mpz.c | 100 *buf = m_new(char, needed_size); in mp_obj_int_formatted_impl()
|
A D | mpconfig.h | 1625 #define MP_PLAT_ALLOC_EXEC(min_size, ptr, size) do { *ptr = m_new(byte, min_size); *size = min_size…
|
A D | mpz.c | 699 z->dig = m_new(mpz_dig_t, z->alloc); in mpz_clone() 1651 char *s = m_new(char, mp_int_format_size(mpz_max_num_bits(i), base, NULL, '\0')); 1679 mpz_dig_t *dig = m_new(mpz_dig_t, ilen); in mpz_as_str_inpl()
|
A D | objexcept.c | 93 buf = m_new(byte, size); in mp_alloc_emergency_exception_buf()
|
/AliOS-Things-master/components/py_engine/engine/extmod/nimble/ |
A D | modbluetooth_nimble.c | 163 ble_uuid16_t *result = storage ? &storage->u16 : m_new(ble_uuid16_t, 1); in create_nimble_uuid() 168 ble_uuid32_t *result = storage ? &storage->u32 : m_new(ble_uuid32_t, 1); in create_nimble_uuid() 173 ble_uuid128_t *result = storage ? &storage->u128 : m_new(ble_uuid128_t, 1); in create_nimble_uuid() 940 …struct ble_gatt_chr_def *characteristics = m_new(struct ble_gatt_chr_def, num_characteristics + 1); in mp_bluetooth_gatts_register_service() 954 … struct ble_gatt_dsc_def *descriptors = m_new(struct ble_gatt_dsc_def, num_descriptors[i] + 1); in mp_bluetooth_gatts_register_service() 974 struct ble_gatt_svc_def *service = m_new(struct ble_gatt_svc_def, 2); in mp_bluetooth_gatts_register_service()
|
/AliOS-Things-master/components/py_engine/adapter/haas/ |
A D | mpthreadport.c | 156 void *stack_addr = m_new(uint8_t, *stack_size); in mp_thread_create_ex()
|