/AliOS-Things-master/components/py_engine/engine/extmod/ |
A D | uos_dupterm.c | 65 int errcode = 0; in mp_uos_dupterm_poll() local 70 ret = stream_p->ioctl(s, MP_STREAM_POLL, poll_flags, &errcode); in mp_uos_dupterm_poll() 76 ret = stream_p->ioctl(s, MP_STREAM_POLL, poll_flags, &errcode); in mp_uos_dupterm_poll() 104 int errcode = 0; in mp_uos_dupterm_rx_chr() local 106 mp_uint_t out_sz = stream_p->read(MP_STATE_VM(dupterm_objs[idx]), buf, 1, &errcode); in mp_uos_dupterm_rx_chr() 107 if (errcode == 0 && out_sz != 0) { in mp_uos_dupterm_rx_chr() 118 int errcode; in mp_uos_dupterm_rx_chr() local 126 if (mp_is_nonblocking_error(errcode)) { in mp_uos_dupterm_rx_chr() 129 mp_raise_OSError(errcode); in mp_uos_dupterm_rx_chr() 158 int errcode = 0; in mp_uos_dupterm_tx_strn() local [all …]
|
A D | vfs_reader.c | 50 int errcode; in mp_reader_vfs_readbyte() local 52 &errcode, MP_STREAM_RW_READ | MP_STREAM_RW_ONCE); in mp_reader_vfs_readbyte() 53 if (errcode != 0) { in mp_reader_vfs_readbyte() 79 int errcode; in mp_reader_new_file() local 80 …rf->len = mp_stream_rw(rf->file, rf->buf, sizeof(rf->buf), &errcode, MP_STREAM_RW_READ | MP_STREAM… in mp_reader_new_file() 81 if (errcode != 0) { in mp_reader_new_file() 82 mp_raise_OSError(errcode); in mp_reader_new_file()
|
A D | moduwebsocket.c | 58 STATIC mp_uint_t websocket_write(mp_obj_t self_in, const void *buf, mp_uint_t size, int *errcode); 77 STATIC mp_uint_t websocket_read(mp_obj_t self_in, void *buf, mp_uint_t size, int *errcode) { in websocket_read() argument 89 *errcode = MP_EAGAIN; in websocket_read() 173 out_sz = stream_p->read(self->sock, buf, sz, errcode); in websocket_read() 219 STATIC mp_uint_t websocket_write(mp_obj_t self_in, const void *buf, mp_uint_t size, int *errcode) { in websocket_write() argument 241 mp_uint_t out_sz = mp_stream_write_exactly(self->sock, header, hdr_sz, errcode); in websocket_write() 242 if (*errcode == 0) { in websocket_write() 243 out_sz = mp_stream_write_exactly(self->sock, buf, size, errcode); in websocket_write() 251 if (*errcode != 0) { in websocket_write() 257 STATIC mp_uint_t websocket_ioctl(mp_obj_t self_in, mp_uint_t request, uintptr_t arg, int *errcode) { in websocket_ioctl() argument [all …]
|
A D | vfs_lfsx_file.c | 131 STATIC mp_uint_t MP_VFS_LFSx(file_read)(mp_obj_t self_in, void *buf, mp_uint_t size, int *errcode) { in MP_VFS_LFSx() 136 *errcode = -sz; in MP_VFS_LFSx() 142 …p_uint_t MP_VFS_LFSx(file_write)(mp_obj_t self_in, const void *buf, mp_uint_t size, int *errcode) { in MP_VFS_LFSx() 152 *errcode = -sz; in MP_VFS_LFSx() 158 …_uint_t MP_VFS_LFSx(file_ioctl)(mp_obj_t self_in, mp_uint_t request, uintptr_t arg, int *errcode) { in MP_VFS_LFSx() 169 *errcode = -res; in MP_VFS_LFSx() 174 *errcode = -res; in MP_VFS_LFSx() 182 *errcode = -res; in MP_VFS_LFSx() 193 *errcode = -res; in MP_VFS_LFSx() 198 *errcode = MP_EINVAL; in MP_VFS_LFSx()
|
A D | vfs_fat_file.c | 72 STATIC mp_uint_t file_obj_read(mp_obj_t self_in, void *buf, mp_uint_t size, int *errcode) { in file_obj_read() argument 77 *errcode = fresult_to_errno_table[res]; in file_obj_read() 83 STATIC mp_uint_t file_obj_write(mp_obj_t self_in, const void *buf, mp_uint_t size, int *errcode) { in file_obj_write() argument 88 *errcode = fresult_to_errno_table[res]; in file_obj_write() 93 *errcode = MP_ENOSPC; in file_obj_write() 106 STATIC mp_uint_t file_obj_ioctl(mp_obj_t o_in, mp_uint_t request, uintptr_t arg, int *errcode) { in file_obj_ioctl() argument 132 *errcode = fresult_to_errno_table[res]; in file_obj_ioctl() 142 *errcode = fresult_to_errno_table[res]; in file_obj_ioctl() 149 *errcode = MP_EINVAL; in file_obj_ioctl()
|
A D | modwebrepl.c | 177 STATIC mp_uint_t _webrepl_read(mp_obj_t self_in, void *buf, mp_uint_t size, int *errcode); 179 STATIC mp_uint_t webrepl_read(mp_obj_t self_in, void *buf, mp_uint_t size, int *errcode) { in webrepl_read() argument 182 out_sz = _webrepl_read(self_in, buf, size, errcode); in webrepl_read() 187 STATIC mp_uint_t _webrepl_read(mp_obj_t self_in, void *buf, mp_uint_t size, int *errcode) { in _webrepl_read() argument 192 mp_uint_t out_sz = sock_stream->read(self->sock, buf, size, errcode); in _webrepl_read() 230 mp_uint_t hdr_sz = sock_stream->read(self->sock, p, self->hdr_to_recv, errcode); in _webrepl_read() 257 mp_uint_t sz = sock_stream->read(self->sock, filebuf + 1, to_read, errcode); in _webrepl_read() 296 STATIC mp_uint_t webrepl_write(mp_obj_t self_in, const void *buf, mp_uint_t size, int *errcode) { in webrepl_write() argument 303 return stream_p->write(self->sock, buf, size, errcode); in webrepl_write() 306 STATIC mp_uint_t webrepl_ioctl(mp_obj_t o_in, mp_uint_t request, uintptr_t arg, int *errcode) { in webrepl_ioctl() argument [all …]
|
A D | vfs_posix_file.c | 136 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 141 *errcode = err; 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 158 *errcode = err; 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 182 *errcode = err; in vfs_posix_file_ioctl() 193 *errcode = errno; in vfs_posix_file_ioctl() 210 *errcode = EINVAL; in vfs_posix_file_ioctl()
|
A D | machine_pinbase.c | 56 mp_uint_t pinbase_ioctl(mp_obj_t obj, mp_uint_t request, uintptr_t arg, int *errcode); 57 mp_uint_t pinbase_ioctl(mp_obj_t obj, mp_uint_t request, uintptr_t arg, int *errcode) { in pinbase_ioctl() argument 58 (void)errcode; in pinbase_ioctl()
|
A D | modussl_axtls.c | 193 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 197 *errcode = EBADF; in ussl_socket_read() 227 *errcode = r; 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 246 *errcode = EBADF; in ussl_socket_write() 268 *errcode = r; 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 282 return mp_get_stream(self->sock)->ioctl(self->sock, request, arg, errcode); in ussl_socket_ioctl()
|
A D | modujson.c | 127 mp_uint_t (*read)(mp_obj_t obj, void *buf, mp_uint_t size, int *errcode); 128 int errcode; member 138 mp_uint_t ret = s->read(s->stream_obj, &s->cur, 1, &s->errcode); in ujson_stream_next() 139 if (s->errcode != 0) { in ujson_stream_next() 140 mp_raise_OSError(s->errcode); in ujson_stream_next()
|
A D | modussl_mbedtls.c | 289 STATIC mp_uint_t socket_read(mp_obj_t o_in, void *buf, mp_uint_t size, int *errcode) { in socket_read() argument 308 *errcode = ret; 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 327 *errcode = ret; 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 353 return mp_get_stream(self->sock)->ioctl(self->sock, request, arg, errcode); in socket_ioctl()
|
A D | virtpin.h | 38 mp_uint_t (*ioctl)(mp_obj_t obj, mp_uint_t request, uintptr_t arg, int *errcode);
|
/AliOS-Things-master/components/py_engine/engine/py/ |
A D | modio.c | 57 STATIC mp_uint_t iobase_read_write(mp_obj_t obj, void *buf, mp_uint_t size, int *errcode, qstr qst)… in iobase_read_write() argument 64 *errcode = MP_EAGAIN; in iobase_read_write() 71 *errcode = -ret; in iobase_read_write() 75 STATIC mp_uint_t iobase_read(mp_obj_t obj, void *buf, mp_uint_t size, int *errcode) { in iobase_read() argument 76 return iobase_read_write(obj, buf, size, errcode, MP_QSTR_readinto); in iobase_read() 79 STATIC mp_uint_t iobase_write(mp_obj_t obj, const void *buf, mp_uint_t size, int *errcode) { in iobase_write() argument 80 return iobase_read_write(obj, (void *)buf, size, errcode, MP_QSTR_write); in iobase_write() 83 STATIC mp_uint_t iobase_ioctl(mp_obj_t obj, mp_uint_t request, uintptr_t arg, int *errcode) { in iobase_ioctl() argument 92 *errcode = -ret; in iobase_ioctl() 154 mp_uint_t out_sz = mp_stream_write_exactly(self->stream, self->buf, self->alloc, errcode); in bufwriter_write() [all …]
|
A D | objstringio.c | 54 STATIC mp_uint_t stringio_read(mp_obj_t o_in, void *buf, mp_uint_t size, int *errcode) { in stringio_read() argument 55 (void)errcode; 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 79 (void)errcode; in stringio_write() 90 *errcode = MP_EFBIG; 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 113 (void)errcode; in stringio_ioctl() 138 *errcode = MP_EINVAL; // replace with MP_EOVERFLOW when defined in stringio_ioctl() 158 *errcode = MP_EINVAL; in stringio_ioctl()
|
A D | stream.h | 72 mp_uint_t (*read)(mp_obj_t obj, void *buf, mp_uint_t size, int *errcode); 73 mp_uint_t (*write)(mp_obj_t obj, const void *buf, mp_uint_t size, int *errcode); 74 mp_uint_t (*ioctl)(mp_obj_t obj, mp_uint_t request, uintptr_t arg, int *errcode); 113 mp_uint_t mp_stream_rw(mp_obj_t stream, void *buf, mp_uint_t size, int *errcode, byte flags);
|
A D | stream.c | 48 mp_uint_t mp_stream_rw(mp_obj_t stream, void *buf_, mp_uint_t size, int *errcode, byte flags) { in mp_stream_rw() argument 50 typedef mp_uint_t (*io_func_t)(mp_obj_t obj, void *buf, mp_uint_t size, int *errcode); in mp_stream_rw() 59 *errcode = 0; in mp_stream_rw() 62 mp_uint_t out_sz = io_func(stream, buf, size, errcode); in mp_stream_rw() 71 if (mp_is_nonblocking_error(*errcode) && done != 0) { in mp_stream_rw() 72 *errcode = 0; in mp_stream_rw()
|
/AliOS-Things-master/components/py_engine/engine/shared/runtime/ |
A D | sys_stdio_mphal.c | 64 STATIC mp_uint_t stdio_read(mp_obj_t self_in, void *buf, mp_uint_t size, int *errcode) { in stdio_read() argument 76 *errcode = MP_EPERM; in stdio_read() 81 STATIC mp_uint_t stdio_write(mp_obj_t self_in, const void *buf, mp_uint_t size, int *errcode) { in stdio_write() argument 87 *errcode = MP_EPERM; in stdio_write() 92 STATIC mp_uint_t stdio_ioctl(mp_obj_t self_in, mp_uint_t request, uintptr_t arg, int *errcode) { in stdio_ioctl() argument 97 *errcode = MP_EINVAL; in stdio_ioctl() 149 STATIC mp_uint_t stdio_buffer_read(mp_obj_t self_in, void *buf, mp_uint_t size, int *errcode) { in stdio_buffer_read() argument 156 STATIC mp_uint_t stdio_buffer_write(mp_obj_t self_in, const void *buf, mp_uint_t size, int *errcode… in stdio_buffer_write() argument
|
/AliOS-Things-master/components/py_engine/adapter/haas/ |
A D | modsocket.c | 494 int *errcode) in _socket_read_data() argument 534 *errcode = errno; in _socket_read_data() 540 *errcode = sock->retries == 0 ? MP_EWOULDBLOCK : MP_ETIMEDOUT; in _socket_read_data() 550 int errcode; in _socket_recvfrom() local 553 mp_raise_OSError(errcode); in _socket_recvfrom() 679 return _socket_read_data(self_in, buf, size, NULL, NULL, errcode); in socket_stream_read() 695 *errcode = errno; in socket_stream_write() 700 *errcode = sock->retries == 0 ? MP_EWOULDBLOCK : MP_ETIMEDOUT; in socket_stream_write() 731 *errcode = MP_EIO; in socket_stream_ioctl() 756 *errcode = errno; in socket_stream_ioctl() [all …]
|
A D | machine_uart.c | 303 STATIC mp_uint_t machine_uart_read(mp_obj_t self_in, void *buf_in, mp_uint_t size, int *errcode) in machine_uart_read() argument 324 *errcode = MP_EAGAIN; in machine_uart_read() 331 …IC mp_uint_t machine_uart_write(mp_obj_t self_in, const void *buf_in, mp_uint_t size, int *errcode) in machine_uart_write() argument 346 *errcode = MP_EAGAIN; in machine_uart_write() 354 …ATIC mp_uint_t machine_uart_ioctl(mp_obj_t self_in, mp_uint_t request, uintptr_t arg, int *errcode) in machine_uart_ioctl() argument 370 *errcode = MP_EINVAL; in machine_uart_ioctl()
|
/AliOS-Things-master/components/py_engine/adapter/haas510/ |
A D | modsocket.c | 518 int *errcode) in _socket_read_data() argument 558 *errcode = errno; in _socket_read_data() 564 *errcode = sock->retries == 0 ? MP_EWOULDBLOCK : MP_ETIMEDOUT; in _socket_read_data() 575 int errcode; in _socket_recvfrom() local 579 mp_raise_OSError(errcode); in _socket_recvfrom() 708 int *errcode) in socket_stream_read() argument 727 *errcode = errno; in socket_stream_write() 737 uintptr_t arg, int *errcode) in socket_stream_ioctl() argument 764 *errcode = MP_EIO; in socket_stream_ioctl() 789 *errcode = errno; in socket_stream_ioctl() [all …]
|
A D | machine_uart.c | 298 STATIC mp_uint_t machine_uart_read(mp_obj_t self_in, void *buf_in, mp_uint_t size, int *errcode) { in machine_uart_read() argument 318 *errcode = MP_EAGAIN; in machine_uart_read() 325 … mp_uint_t machine_uart_write(mp_obj_t self_in, const void *buf_in, mp_uint_t size, int *errcode) { in machine_uart_write() argument 339 *errcode = MP_EAGAIN; in machine_uart_write() 347 …IC mp_uint_t machine_uart_ioctl(mp_obj_t self_in, mp_uint_t request, uintptr_t arg, int *errcode) { in machine_uart_ioctl() argument 362 *errcode = MP_EINVAL; in machine_uart_ioctl()
|
/AliOS-Things-master/components/py_engine/adapter/haas600/ |
A D | modsocket.c | 477 struct sockaddr *from, socklen_t *from_len, int *errcode) { in _socket_read_data() argument 515 *errcode = errno; in _socket_read_data() 521 *errcode = sock->retries == 0 ? MP_EWOULDBLOCK : MP_ETIMEDOUT; in _socket_read_data() 531 int errcode; in _socket_recvfrom() local 534 mp_raise_OSError(errcode); in _socket_recvfrom() 650 return _socket_read_data(self_in, buf, size, NULL, NULL, errcode); in socket_stream_read() 664 *errcode = errno; in socket_stream_write() 669 *errcode = sock->retries == 0 ? MP_EWOULDBLOCK : MP_ETIMEDOUT; in socket_stream_write() 699 *errcode = MP_EIO; in socket_stream_ioctl() 724 *errcode = errno; in socket_stream_ioctl() [all …]
|
A D | machine_uart.c | 298 STATIC mp_uint_t machine_uart_read(mp_obj_t self_in, void *buf_in, mp_uint_t size, int *errcode) { in machine_uart_read() argument 318 *errcode = MP_EAGAIN; in machine_uart_read() 325 … mp_uint_t machine_uart_write(mp_obj_t self_in, const void *buf_in, mp_uint_t size, int *errcode) { in machine_uart_write() argument 339 *errcode = MP_EAGAIN; in machine_uart_write() 347 …IC mp_uint_t machine_uart_ioctl(mp_obj_t self_in, mp_uint_t request, uintptr_t arg, int *errcode) { in machine_uart_ioctl() argument 362 *errcode = MP_EINVAL; in machine_uart_ioctl()
|
/AliOS-Things-master/components/genie_service/core/src/ |
A D | genie_time.c | 433 uint8_t errcode; in genie_time_timing_settting_event() local 437 errcode = ERR_CODE_UNIXTIME; in genie_time_timing_settting_event() 441 errcode = ERR_CODE_TIMER_INDEX; in genie_time_timing_settting_event() 445 errcode = ERR_CODE_TIMER_FULL; in genie_time_timing_settting_event() 449 errcode = ERR_CODE_TIMER_SETTING; in genie_time_timing_settting_event() 453 errcode = ERR_CODE_UNIXTIME; in genie_time_timing_settting_event() 554 uint8_t errcode; in genie_time_priordic_timing_settting_event() local 558 errcode = ERR_CODE_UNIXTIME; in genie_time_priordic_timing_settting_event() 562 errcode = ERR_CODE_TIMER_INDEX; in genie_time_priordic_timing_settting_event() 566 errcode = ERR_CODE_TIMER_FULL; in genie_time_priordic_timing_settting_event() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/tools/ |
A D | tiffdither.c | 72 int errcode = 0; in fsdither() local 145 errcode = 1; in fsdither() 151 return errcode; in fsdither()
|