Home
last modified time | relevance | path

Searched refs:o_in (Results 1 – 25 of 34) sorted by relevance

12

/AliOS-Things-master/components/py_engine/engine/py/
A Dobj.c43 if (mp_obj_is_obj(o_in)) { in mp_obj_get_type()
58 if (mp_obj_is_small_int(o_in)) { in mp_obj_get_type()
60 } else if (mp_obj_is_obj(o_in)) { in mp_obj_get_type()
76 if (mp_obj_is_small_int(o_in)) { in mp_obj_get_type()
78 } else if (mp_obj_is_qstr(o_in)) { in mp_obj_get_type()
106 if (o_in == MP_OBJ_NULL) { in mp_obj_print_helper()
481 mp_obj_t mp_obj_id(mp_obj_t o_in) { in mp_obj_id() argument
482 mp_int_t id = (mp_int_t)o_in; in mp_obj_id()
483 if (!mp_obj_is_obj(o_in)) { in mp_obj_id()
519 mp_obj_is_str(o_in) || in mp_obj_len_maybe()
[all …]
A Dmodbuiltins.c92 return mp_unary_op(MP_UNARY_OP_ABS, o_in); in mp_builtin_abs()
129 if (mp_obj_is_callable(o_in)) { in mp_builtin_callable()
139 mp_uint_t c = mp_obj_get_int(o_in); in mp_builtin_chr()
165 mp_int_t ord = mp_obj_get_int(o_in); in mp_builtin_chr()
260 return mp_getiter(o_in, NULL); in mp_builtin_iter()
361 if (mp_obj_is_str(o_in)) { in mp_builtin_ord()
475 mp_obj_t o_in = args[0]; in mp_builtin_round() local
476 if (mp_obj_is_int(o_in)) { in mp_builtin_round()
478 return o_in; in mp_builtin_round()
486 return o_in; in mp_builtin_round()
[all …]
A Dobjrange.c42 STATIC mp_obj_t range_it_iternext(mp_obj_t o_in) { in range_it_iternext() argument
43 mp_obj_range_it_t *o = MP_OBJ_TO_PTR(o_in); in range_it_iternext()
190 STATIC mp_obj_t range_getiter(mp_obj_t o_in, mp_obj_iter_buf_t *iter_buf) { in range_getiter() argument
191 mp_obj_range_t *o = MP_OBJ_TO_PTR(o_in); in range_getiter()
197 STATIC void range_attr(mp_obj_t o_in, qstr attr, mp_obj_t *dest) { in range_attr() argument
202 mp_obj_range_t *o = MP_OBJ_TO_PTR(o_in); in range_attr()
A Dobjfloat.c97 STATIC void float_print(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t kind) { in float_print() argument
99 mp_float_t o_val = mp_obj_float_get(o_in); in float_print()
144 STATIC mp_obj_t float_unary_op(mp_unary_op_t op, mp_obj_t o_in) { in float_unary_op() argument
145 mp_float_t val = mp_obj_float_get(o_in); in float_unary_op()
152 return o_in; in float_unary_op()
159 return o_in; in float_unary_op()
A Dobjint_longlong.c95 mp_obj_t mp_obj_int_unary_op(mp_unary_op_t op, mp_obj_t o_in) { in mp_obj_int_unary_op() argument
96 mp_obj_int_t *o = o_in; in mp_obj_int_unary_op()
107 return o_in; in mp_obj_int_unary_op()
113 mp_obj_int_t *self = MP_OBJ_TO_PTR(o_in); in mp_obj_int_unary_op()
115 return o_in; in mp_obj_int_unary_op()
A Dobjstringio.c54 STATIC mp_uint_t stringio_read(mp_obj_t o_in, void *buf, mp_uint_t size, int *errcode) { in stringio_read() argument
56 mp_obj_stringio_t *o = MP_OBJ_TO_PTR(o_in); in stringio_read()
78 STATIC mp_uint_t stringio_write(mp_obj_t o_in, const void *buf, mp_uint_t size, int *errcode) { in stringio_write() argument
80 mp_obj_stringio_t *o = MP_OBJ_TO_PTR(o_in); in stringio_write()
112 STATIC mp_uint_t stringio_ioctl(mp_obj_t o_in, mp_uint_t request, uintptr_t arg, int *errcode) { in stringio_ioctl() argument
114 mp_obj_stringio_t *o = MP_OBJ_TO_PTR(o_in); in stringio_ioctl()
A Dobjcomplex.c45 STATIC void complex_print(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t kind) { in complex_print() argument
47 mp_obj_complex_t *o = MP_OBJ_TO_PTR(o_in); in complex_print()
117 STATIC mp_obj_t complex_unary_op(mp_unary_op_t op, mp_obj_t o_in) { in complex_unary_op() argument
118 mp_obj_complex_t *o = MP_OBJ_TO_PTR(o_in); in complex_unary_op()
125 return o_in; in complex_unary_op()
A Dobjcell.c45 STATIC void cell_print(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t kind) { in cell_print() argument
47 mp_obj_cell_t *o = MP_OBJ_TO_PTR(o_in); in cell_print()
A Dobjtuple.h43 void mp_obj_tuple_print(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t kind);
47 mp_obj_t mp_obj_tuple_getiter(mp_obj_t o_in, mp_obj_iter_buf_t *iter_buf);
A Dobjbool.c74 STATIC mp_obj_t bool_unary_op(mp_unary_op_t op, mp_obj_t o_in) { in bool_unary_op() argument
78 bool value = BOOL_VALUE(o_in); in bool_unary_op()
A Druntime.c1177 assert(o_in); in mp_getiter()
1178 const mp_obj_type_t *type = mp_obj_get_type(o_in); in mp_getiter()
1183 return o_in; in mp_getiter()
1193 mp_obj_t iter = type->getiter(o_in, iter_buf); in mp_getiter()
1201 mp_load_method_maybe(o_in, MP_QSTR___getitem__, dest); in mp_getiter()
1223 mp_obj_t mp_iternext_allow_raise(mp_obj_t o_in) { in mp_iternext_allow_raise() argument
1224 const mp_obj_type_t *type = mp_obj_get_type(o_in); in mp_iternext_allow_raise()
1227 return type->iternext(o_in); in mp_iternext_allow_raise()
1248 mp_obj_t mp_iternext(mp_obj_t o_in) { in mp_iternext() argument
1250 const mp_obj_type_t *type = mp_obj_get_type(o_in); in mp_iternext()
[all …]
A Dobjattrtuple.c51 STATIC void mp_obj_attrtuple_print(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t kind) { in mp_obj_attrtuple_print() argument
53 mp_obj_tuple_t *o = MP_OBJ_TO_PTR(o_in); in mp_obj_attrtuple_print()
A Dobjtuple.c40 void mp_obj_tuple_print(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t kind) { in mp_obj_tuple_print() argument
41 mp_obj_tuple_t *o = MP_OBJ_TO_PTR(o_in); in mp_obj_tuple_print()
291 mp_obj_t mp_obj_tuple_getiter(mp_obj_t o_in, mp_obj_iter_buf_t *iter_buf) { in mp_obj_tuple_getiter() argument
296 o->tuple = MP_OBJ_TO_PTR(o_in); in mp_obj_tuple_getiter()
A Dobjclosure.c63 STATIC void closure_print(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t kind) { in closure_print() argument
65 mp_obj_closure_t *o = MP_OBJ_TO_PTR(o_in); in closure_print()
A Dobjboundmeth.c39 STATIC void bound_meth_print(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t kind) { in bound_meth_print() argument
41 mp_obj_bound_meth_t *o = MP_OBJ_TO_PTR(o_in); in bound_meth_print()
A Dobjint_mpz.c143 mp_obj_t mp_obj_int_unary_op(mp_unary_op_t op, mp_obj_t o_in) { in mp_obj_int_unary_op() argument
144 mp_obj_int_t *o = MP_OBJ_TO_PTR(o_in); in mp_obj_int_unary_op()
151 return o_in; in mp_obj_int_unary_op()
161 mp_obj_int_t *self = MP_OBJ_TO_PTR(o_in); in mp_obj_int_unary_op()
163 return o_in; in mp_obj_int_unary_op()
A Dobjarray.c66 STATIC mp_int_t array_get_buffer(mp_obj_t o_in, mp_buffer_info_t *bufinfo, mp_uint_t flags);
72 STATIC void array_print(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t kind) { in array_print() argument
74 mp_obj_array_t *o = MP_OBJ_TO_PTR(o_in); in array_print()
253 STATIC mp_obj_t array_unary_op(mp_unary_op_t op, mp_obj_t o_in) { in array_unary_op() argument
254 mp_obj_array_t *o = MP_OBJ_TO_PTR(o_in); in array_unary_op()
547 STATIC mp_int_t array_get_buffer(mp_obj_t o_in, mp_buffer_info_t *bufinfo, mp_uint_t flags) { in array_get_buffer() argument
548 mp_obj_array_t *o = MP_OBJ_TO_PTR(o_in); in array_get_buffer()
A Dobjslice.c37 STATIC void slice_print(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t kind) { in slice_print() argument
39 mp_obj_slice_t *o = MP_OBJ_TO_PTR(o_in); in slice_print()
A Dobjexcept.h40 void mp_obj_exception_print(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t kind);
A Dobjnamedtuple.c63 STATIC void namedtuple_print(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t kind) { in namedtuple_print() argument
65 mp_obj_namedtuple_t *o = MP_OBJ_TO_PTR(o_in); in namedtuple_print()
A Dobj.h768 const mp_obj_type_t *mp_obj_get_type(mp_const_obj_t o_in);
769 const char *mp_obj_get_type_str(mp_const_obj_t o_in);
773 void mp_obj_print_helper(const mp_print_t *print, mp_obj_t o_in, mp_print_kind_t kind);
778 bool mp_obj_is_callable(mp_obj_t o_in);
799 mp_obj_t mp_obj_id(mp_obj_t o_in);
800 mp_obj_t mp_obj_len(mp_obj_t o_in);
801 mp_obj_t mp_obj_len_maybe(mp_obj_t o_in); // may return MP_OBJ_NULL
803 mp_obj_t mp_generic_unary_op(mp_unary_op_t op, mp_obj_t o_in);
/AliOS-Things-master/components/py_engine/engine/extmod/
A Dvfs_posix_file.c136 STATIC mp_uint_t vfs_posix_file_read(mp_obj_t o_in, void *buf, mp_uint_t size, int *errcode) { in vfs_posix_file_read() argument
137 mp_obj_vfs_posix_file_t *o = MP_OBJ_TO_PTR(o_in); in vfs_posix_file_read()
147 STATIC mp_uint_t vfs_posix_file_write(mp_obj_t o_in, const void *buf, mp_uint_t size, int *errcode)… in vfs_posix_file_write() argument
148 mp_obj_vfs_posix_file_t *o = MP_OBJ_TO_PTR(o_in); in vfs_posix_file_write()
164 STATIC mp_uint_t vfs_posix_file_ioctl(mp_obj_t o_in, mp_uint_t request, uintptr_t arg, int *errcode… in vfs_posix_file_ioctl() argument
165 mp_obj_vfs_posix_file_t *o = MP_OBJ_TO_PTR(o_in); in vfs_posix_file_ioctl()
A Dmodussl_mbedtls.c270 STATIC mp_obj_t mod_ssl_getpeercert(mp_obj_t o_in, mp_obj_t binary_form) { in mod_ssl_getpeercert() argument
271 mp_obj_ssl_socket_t *o = MP_OBJ_TO_PTR(o_in); in mod_ssl_getpeercert()
289 STATIC mp_uint_t socket_read(mp_obj_t o_in, void *buf, mp_uint_t size, int *errcode) { in socket_read() argument
290 mp_obj_ssl_socket_t *o = MP_OBJ_TO_PTR(o_in); in socket_read()
312 STATIC mp_uint_t socket_write(mp_obj_t o_in, const void *buf, mp_uint_t size, int *errcode) { in socket_write() argument
313 mp_obj_ssl_socket_t *o = MP_OBJ_TO_PTR(o_in); in socket_write()
341 STATIC mp_uint_t socket_ioctl(mp_obj_t o_in, mp_uint_t request, uintptr_t arg, int *errcode) { in socket_ioctl() argument
342 mp_obj_ssl_socket_t *self = MP_OBJ_TO_PTR(o_in); in socket_ioctl()
A Dmodussl_axtls.c193 STATIC mp_uint_t ussl_socket_read(mp_obj_t o_in, void *buf, mp_uint_t size, int *errcode) { in ussl_socket_read() argument
194 mp_obj_ssl_socket_t *o = MP_OBJ_TO_PTR(o_in); in ussl_socket_read()
242 STATIC mp_uint_t ussl_socket_write(mp_obj_t o_in, const void *buf, mp_uint_t size, int *errcode) { in ussl_socket_write() argument
243 mp_obj_ssl_socket_t *o = MP_OBJ_TO_PTR(o_in); in ussl_socket_write()
274 STATIC mp_uint_t ussl_socket_ioctl(mp_obj_t o_in, mp_uint_t request, uintptr_t arg, int *errcode) { in ussl_socket_ioctl() argument
275 mp_obj_ssl_socket_t *self = MP_OBJ_TO_PTR(o_in); in ussl_socket_ioctl()
A Dmoduzlib.c106 STATIC mp_uint_t decompio_read(mp_obj_t o_in, void *buf, mp_uint_t size, int *errcode) { in decompio_read() argument
107 mp_obj_decompio_t *o = MP_OBJ_TO_PTR(o_in); in decompio_read()

Completed in 36 milliseconds

12