Lines Matching refs:dupterm_objs
41 mp_obj_t term = MP_STATE_VM(dupterm_objs[dupterm_idx]); in mp_uos_deactivate()
42 MP_STATE_VM(dupterm_objs[dupterm_idx]) = MP_OBJ_NULL; in mp_uos_deactivate()
60 mp_obj_t s = MP_STATE_VM(dupterm_objs[idx]); in mp_uos_dupterm_poll()
97 if (MP_STATE_VM(dupterm_objs[idx]) == MP_OBJ_NULL) { in mp_uos_dupterm_rx_chr()
102 if (mp_uos_dupterm_is_builtin_stream(MP_STATE_VM(dupterm_objs[idx]))) { in mp_uos_dupterm_rx_chr()
105 const mp_stream_p_t *stream_p = mp_get_stream(MP_STATE_VM(dupterm_objs[idx])); in mp_uos_dupterm_rx_chr()
106 mp_uint_t out_sz = stream_p->read(MP_STATE_VM(dupterm_objs[idx]), buf, 1, &errcode); in mp_uos_dupterm_rx_chr()
119 const mp_stream_p_t *stream_p = mp_get_stream(MP_STATE_VM(dupterm_objs[idx])); in mp_uos_dupterm_rx_chr()
120 mp_uint_t out_sz = stream_p->read(MP_STATE_VM(dupterm_objs[idx]), buf, 1, &errcode); in mp_uos_dupterm_rx_chr()
152 if (MP_STATE_VM(dupterm_objs[idx]) == MP_OBJ_NULL) { in mp_uos_dupterm_tx_strn()
157 if (mp_uos_dupterm_is_builtin_stream(MP_STATE_VM(dupterm_objs[idx]))) { in mp_uos_dupterm_tx_strn()
159 const mp_stream_p_t *stream_p = mp_get_stream(MP_STATE_VM(dupterm_objs[idx])); in mp_uos_dupterm_tx_strn()
160 stream_p->write(MP_STATE_VM(dupterm_objs[idx]), str, len, &errcode); in mp_uos_dupterm_tx_strn()
167 mp_stream_write(MP_STATE_VM(dupterm_objs[idx]), str, len, MP_STREAM_RW_WRITE); in mp_uos_dupterm_tx_strn()
185 mp_obj_t previous_obj = MP_STATE_VM(dupterm_objs[idx]); in mp_uos_dupterm()
190 MP_STATE_VM(dupterm_objs[idx]) = MP_OBJ_NULL; in mp_uos_dupterm()
193 MP_STATE_VM(dupterm_objs[idx]) = args[0]; in mp_uos_dupterm()