Searched refs:MP_STATE_PORT (Results 1 – 8 of 8) sorted by relevance
644 … MP_STATE_PORT(bluetooth_btstack_root_pointers) = m_new0(mp_bluetooth_btstack_root_pointers_t, 1); in mp_bluetooth_init()645 mp_bluetooth_gatts_db_create(&MP_STATE_PORT(bluetooth_btstack_root_pointers)->gatts_db); in mp_bluetooth_init()706 MP_STATE_PORT(bluetooth_btstack_root_pointers) = NULL; in mp_bluetooth_init()736 if (!MP_STATE_PORT(bluetooth_btstack_root_pointers)) { in mp_bluetooth_deinit()761 MP_STATE_PORT(bluetooth_btstack_root_pointers) = NULL; in mp_bluetooth_deinit()870 if (total_bytes > MP_STATE_PORT(bluetooth_btstack_root_pointers)->adv_data_alloc) { in mp_bluetooth_gap_advertise_start()872 MP_STATE_PORT(bluetooth_btstack_root_pointers)->adv_data = m_new(uint8_t, total_bytes); in mp_bluetooth_gap_advertise_start()873 MP_STATE_PORT(bluetooth_btstack_root_pointers)->adv_data_alloc = total_bytes; in mp_bluetooth_gap_advertise_start()875 uint8_t *data = MP_STATE_PORT(bluetooth_btstack_root_pointers)->adv_data; in mp_bluetooth_gap_advertise_start()899 MP_STATE_PORT(bluetooth_btstack_root_pointers)->adv_data_alloc = 0; in mp_bluetooth_gap_advertise_stop()[all …]
43 #define READLINE_HIST_SIZE (MP_ARRAY_SIZE(MP_STATE_PORT(readline_hist)))48 memset(MP_STATE_PORT(readline_hist), 0, READLINE_HIST_SIZE * sizeof(const char*)); in readline_init0()304 …if (rl.hist_cur + 1 < (int)READLINE_HIST_SIZE && MP_STATE_PORT(readline_hist)[rl.hist_cur + 1] != … in readline_process_char()309 vstr_add_str(rl.line, MP_STATE_PORT(readline_hist)[rl.hist_cur]); in readline_process_char()326 vstr_add_str(rl.line, MP_STATE_PORT(readline_hist)[rl.hist_cur]); in readline_process_char()522 && (MP_STATE_PORT(readline_hist)[0] == NULL in readline_push_history()523 || strcmp(MP_STATE_PORT(readline_hist)[0], line) != 0)) { in readline_push_history()529 MP_STATE_PORT(readline_hist)[i] = MP_STATE_PORT(readline_hist)[i - 1]; in readline_push_history()531 MP_STATE_PORT(readline_hist)[0] = most_recent_hist; in readline_push_history()
612 MP_STATE_PORT(bluetooth_nimble_memory) = NULL; in mp_bluetooth_init()685 MP_STATE_PORT(bluetooth_nimble_root_pointers) = NULL; in mp_bluetooth_deinit()689 MP_STATE_PORT(bluetooth_nimble_memory) = NULL; in mp_bluetooth_deinit()917 MP_STATE_PORT(bluetooth_nimble_root_pointers)->services[i] = NULL; in mp_bluetooth_gatts_register_service_begin()919 MP_STATE_PORT(bluetooth_nimble_root_pointers)->n_services = 0; in mp_bluetooth_gatts_register_service_begin()981 …MP_STATE_PORT(bluetooth_nimble_root_pointers)->services[MP_STATE_PORT(bluetooth_nimble_root_pointe… in mp_bluetooth_gatts_register_service()1450 if (!MP_STATE_PORT(bluetooth_nimble_root_pointers)->l2cap_listening) { in destroy_l2cap_channel()1451 MP_STATE_PORT(bluetooth_nimble_root_pointers)->l2cap_chan = NULL; in destroy_l2cap_channel()1609 if (MP_STATE_PORT(bluetooth_nimble_root_pointers)->l2cap_chan) { in create_l2cap_channel()1622 MP_STATE_PORT(bluetooth_nimble_root_pointers)->l2cap_chan = chan; in create_l2cap_channel()[all …]
74 alloc->next = MP_STATE_PORT(bluetooth_nimble_memory); in m_malloc_bluetooth()78 MP_STATE_PORT(bluetooth_nimble_memory) = alloc; in m_malloc_bluetooth()94 MP_STATE_PORT(bluetooth_nimble_memory) = NULL; in m_free_bluetooth()107 mp_bluetooth_nimble_malloc_t *alloc = MP_STATE_PORT(bluetooth_nimble_memory); in is_valid_nimble_malloc()
525 if (MP_STATE_PORT(track_reloc_code_list) == MP_OBJ_NULL) { in load_raw_code()526 MP_STATE_PORT(track_reloc_code_list) = mp_obj_new_list(0, NULL); in load_raw_code()528 mp_obj_list_append(MP_STATE_PORT(track_reloc_code_list), MP_OBJ_FROM_PTR(fun_data)); in load_raw_code()
292 #define MP_STATE_PORT MP_STATE_VM macro
303 #define MP_STATE_PORT MP_STATE_VM macro
Completed in 21 milliseconds