Home
last modified time | relevance | path

Searched refs:m_new (Results 1 – 25 of 38) sorted by relevance

12

/AliOS-Things-master/components/py_engine/engine/extmod/
A Dvfs_lfsx.c90 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 Dmoduzlib.c102 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 Dmodbluetooth.c270 … 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 Dmodbluetooth.h498 *db = m_new(mp_map_t, 1); in mp_bluetooth_gatts_db_create()
/AliOS-Things-master/components/py_engine/engine/py/
A Dringbuf.h50 (r)->buf = m_new(uint8_t, sz); \
A Dobjmap.c54 mp_obj_t *nextses = m_new(mp_obj_t, self->n_iters); in map_iternext()
A Dasmbase.c38 as->label_offsets = m_new(size_t, max_num_labels); in mp_asm_base_init()
A Dpystack.h85 return m_new(uint8_t, n_bytes); in mp_nonlocal_alloc()
A Dobjclosure.c53 mp_obj_t *args2 = m_new(mp_obj_t, n_total); in closure_call()
A Dmisc.h64 #define m_new(type, num) ((type *)(m_malloc(sizeof(type) * (num)))) macro
67 #define m_new_obj(type) (m_new(type, 1))
A Dpersistentcode.c277 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 Dscope.c65 scope->id_info = m_new(id_info_t, scope->id_info_alloc); in scope_new()
A Dobjfloat.c190 mp_obj_float_t *o = m_new(mp_obj_float_t, 1); in mp_obj_new_float()
A Dvstr.c47 vstr->buf = m_new(char, vstr->alloc); in vstr_init()
A Dobjstringio.c72 o->vstr->buf = m_new(char, o->vstr->len); in stringio_copy_on_write()
A Dobjtuple.c89 mp_obj_t *items = m_new(mp_obj_t, alloc); in mp_obj_tuple_make_new()
A Dparse.c283 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 Demitinlinextensa.c59 emit->label_lookup = m_new(qstr, max_num_labels); in emit_inline_xtensa_new()
A Dobjint.c256 *buf = m_new(char, needed_size); in mp_obj_int_formatted()
A Dobjint_mpz.c100 *buf = m_new(char, needed_size); in mp_obj_int_formatted_impl()
A Dmpconfig.h1625 #define MP_PLAT_ALLOC_EXEC(min_size, ptr, size) do { *ptr = m_new(byte, min_size); *size = min_size…
A Dmpz.c699 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 Dobjexcept.c93 buf = m_new(byte, size); in mp_alloc_emergency_exception_buf()
/AliOS-Things-master/components/py_engine/engine/extmod/nimble/
A Dmodbluetooth_nimble.c163 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 Dmpthreadport.c156 void *stack_addr = m_new(uint8_t, *stack_size); in mp_thread_create_ex()

Completed in 43 milliseconds

12