/AliOS-Things-master/components/py_engine/engine/lib/re1.5/ |
A D | recursiveloop.c | 11 int off; in recursiveloop() local 45 off = (signed char)*pc++; in recursiveloop() 46 pc = pc + off; in recursiveloop() 49 off = (signed char)*pc++; in recursiveloop() 52 pc = pc + off; in recursiveloop() 55 off = (signed char)*pc++; in recursiveloop() 60 off = (unsigned char)*pc++; in recursiveloop() 61 if(off >= nsubp) { in recursiveloop() 64 old = subp[off]; in recursiveloop() 65 subp[off] = sp; in recursiveloop() [all …]
|
A D | charclass.c | 18 int off = (*pc >> 5) & 1; in _re1_5_namedclassmatch() local 21 off ^= 1; in _re1_5_namedclassmatch() 25 off ^= 1; in _re1_5_namedclassmatch() 29 off ^= 1; in _re1_5_namedclassmatch() 32 return off; in _re1_5_namedclassmatch()
|
/AliOS-Things-master/components/py_engine/tests/extmod/ |
A D | ticks_diff.py | 29 off = 100 variable 32 assert ticks_diff(MODULO_HALF + off, 1 + off) == MODULO_HALF - 1 33 assert ticks_diff(MODULO_HALF + off, 0 + off) == -MODULO_HALF 34 assert ticks_diff(MODULO_HALF - off, ticks_add(1, -off)) == MODULO_HALF - 1 35 assert ticks_diff(MODULO_HALF - off, ticks_add(0, -off)) == -MODULO_HALF
|
A D | vfs_blockdev.py | 19 def readblocks(self, block, buf, off=0): argument 20 addr = block * self.ERASE_BLOCK_SIZE + off 24 def writeblocks(self, block, buf, off=None): argument 25 if off is None: 27 off = 0 28 addr = block * self.ERASE_BLOCK_SIZE + off
|
A D | vfs_fat_ramdisklarge.py | 34 for off in range(0, len(buf), self.SEC_SIZE): 35 s = n + off // self.SEC_SIZE 38 self.data[s][:] = mv[off : off + self.SEC_SIZE]
|
A D | vfs_lfs_error.py | 19 def readblocks(self, block, buf, off): argument 20 addr = block * self.ERASE_BLOCK_SIZE + off 24 def writeblocks(self, block, buf, off): argument 25 addr = block * self.ERASE_BLOCK_SIZE + off
|
/AliOS-Things-master/components/ble_host/bt_host/port/core/settings/src/ |
A D | settings_line.c | 228 off_t off; in settings_line_raw_read_until() local 238 off = seek / rbs * rbs; in settings_line_raw_read_until() 248 off = seek - off; in settings_line_raw_read_until() 249 len = read_size - off; in settings_line_raw_read_until() 256 len = pend - &temp_buf[off]; in settings_line_raw_read_until() 304 seek_begin = off / 3 * 4; in settings_line_val_read() 352 off += clen; in settings_line_val_read() 478 off_t off = 0; in settings_line_cmp() local 502 off += len_read; in settings_line_cmp() 509 off_t off, void *cb_arg) in settings_line_dup_check_cb() argument [all …]
|
A D | settings_priv.h | 27 void settings_line_io_init(int (*read_cb)(void *ctx, off_t off, char *buf, 29 int (*write_cb)(void *ctx, off_t off, 41 off_t off, void *cb_arg); 44 off_t off, void *cb_arg); 47 off_t off, void *cb_arg); 51 off_t off; member 92 int settings_line_val_read(off_t val_off, off_t off, char *out, size_t len_req, 116 void settings_line_io_init(int (*read_cb)(void *ctx, off_t off, char *buf, 118 int (*write_cb)(void *ctx, off_t off, char const *buf, 126 typedef void (*load_cb)(char *name, void *val_read_cb_ctx, off_t off,
|
A D | settings_fcb.c | 117 static int read_entry_len(const struct fcb_entry_ctx *entry_ctx, off_t off) in read_entry_len() argument 119 if (off >= entry_ctx->loc.fe_data_len) { in read_entry_len() 122 return entry_ctx->loc.fe_data_len - off; in read_entry_len() 178 static int read_handler(void *ctx, off_t off, char *buf, size_t *len) in read_handler() argument 182 if (off >= entry_ctx->loc.fe_data_len) { in read_handler() 187 if ((off + *len) > entry_ctx->loc.fe_data_len) { in read_handler() 188 *len = entry_ctx->loc.fe_data_len - off; in read_handler() 192 FCB_ENTRY_FA_DATA_OFF(entry_ctx->loc) + off, buf, in read_handler() 293 static int write_handler(void *ctx, off_t off, char const *buf, size_t len) in write_handler() argument 298 FCB_ENTRY_FA_DATA_OFF(entry_ctx->loc) + off, in write_handler()
|
A D | settings_file.c | 103 static int read_entry_len(const struct line_entry_ctx *entry_ctx, off_t off) in read_entry_len() argument 105 if (off >= entry_ctx->len) { in read_entry_len() 108 return entry_ctx->len - off; in read_entry_len() 432 static int read_handler(void *ctx, off_t off, char *buf, size_t *len) in read_handler() argument 441 if (off >= entry_ctx->len) { in read_handler() 446 if ((off + *len) > entry_ctx->len) { in read_handler() 447 *len = entry_ctx->len - off; in read_handler() 451 rc = fs_seek(file, entry_ctx->seek + off, FS_SEEK_SET); in read_handler() 475 static int write_handler(void *ctx, off_t off, char const *buf, size_t len) in write_handler() argument
|
/AliOS-Things-master/components/SDL2/src/image/external/libwebp-1.0.2/imageio/ |
A D | pnmdec.c | 55 out[i] = data[off++]; in ReadLine() 58 if (off < data_size) { in ReadLine() 64 return off; in ReadLine() 79 off = ReadLine(info->data, off, info->data_size, out, &out_size); in ReadPAMFields() 132 return off; in ReadPAMFields() 136 size_t off = 0; in ReadHeader() local 149 off = ReadLine(info->data, off, info->data_size, out, &out_size); in ReadHeader() 152 off = ReadPAMFields(info, off); in ReadHeader() 154 off = ReadLine(info->data, off, info->data_size, out, &out_size); in ReadHeader() 158 off = ReadLine(info->data, off, info->data_size, out, &out_size); in ReadHeader() [all …]
|
/AliOS-Things-master/components/py_engine/engine/lib/littlefs/ |
A D | lfs1.c | 22 off < pcache->off + lfs1->cfg->prog_size) { in lfs1_cache_read() 34 if (block == rcache->block && off >= rcache->off && in lfs1_cache_read() 35 off < rcache->off + lfs1->cfg->read_size) { in lfs1_cache_read() 63 rcache->off = off - (off % lfs1->cfg->read_size); in lfs1_cache_read() 214 pcache->off = off - (off % lfs1->cfg->prog_size); in lfs1_cache_prog() 277 lfs1_block_t off = ((block - lfs1->free.off) in lfs1_alloc_lookahead() local 759 if (d->off > entry->off) { in lfs1_dir_remove() 772 entry->off = dir->off; in lfs1_dir_next() 792 entry->off = dir->off; in lfs1_dir_next() 1082 dir->off = off; in lfs1_dir_seek() [all …]
|
A D | lfs2.c | 42 if (off >= pcache->off) { in lfs2_bd_read() 59 if (off >= rcache->off) { in lfs2_bd_read() 205 off >= pcache->off && in lfs2_bd_prog() 585 lfs2_off_t off = dir->off; in lfs2_dir_getslice() local 665 if (off >= pcache->off) { in lfs2_dir_getread() 682 if (off >= rcache->off) { in lfs2_dir_getread() 1773 dir->off = commit.off; in lfs2_dir_compact() 1884 .off = dir->off, in lfs2_dir_commit() 1946 dir->off = commit.off; in lfs2_dir_commit() 4432 entry->off = dir->off; [all …]
|
A D | lfs1.h | 117 lfs1_off_t off, void *buffer, lfs1_size_t size); 123 lfs1_off_t off, const void *buffer, lfs1_size_t size); 198 lfs1_off_t off; member 217 lfs1_off_t off; member 233 lfs1_off_t off; member 240 lfs1_off_t off; member 253 lfs1_off_t off; member 269 lfs1_block_t off; member 403 lfs1_soff_t off, int whence); 460 int lfs1_dir_seek(lfs1_t *lfs1, lfs1_dir_t *dir, lfs1_off_t off);
|
A D | lfs2.h | 165 lfs2_off_t off, void *buffer, lfs2_size_t size); 171 lfs2_off_t off, const void *buffer, lfs2_size_t size); 317 lfs2_off_t off; member 325 lfs2_off_t off; member 359 lfs2_off_t off; member 398 lfs2_block_t off; member 570 lfs2_soff_t off, int whence); 632 int lfs2_dir_seek(lfs2_t *lfs2, lfs2_dir_t *dir, lfs2_off_t off);
|
/AliOS-Things-master/components/littlefs/src/littlefs-v220/ |
A D | lfs.c | 55 if (off >= pcache->off) { in lfs_bd_read() 72 if (off >= rcache->off) { in lfs_bd_read() 209 off >= pcache->off && in lfs_bd_prog() 536 lfs_off_t off = dir->off; in lfs_dir_getslice() local 616 if (off >= pcache->off) { in lfs_dir_getread() 633 if (off >= rcache->off) { in lfs_dir_getread() 1696 dir->off = commit.off; in lfs_dir_compact() 1805 .off = dir->off, in lfs_dir_commit() 1867 dir->off = commit.off; in lfs_dir_commit() 4828 entry->off = dir->off; in lfs1_dir_next() [all …]
|
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/libtiff/ |
A D | tif_stream.cxx | 154 _tiffosSeekProc(thandle_t fd, uint64 off, int whence) in _tiffosSeekProc() argument 180 ios::off_type offset = static_cast<ios::off_type>(off); in _tiffosSeekProc() 181 if (static_cast<uint64>(offset) != off) in _tiffosSeekProc() 190 ios::off_type offset = static_cast<ios::off_type>(off); in _tiffosSeekProc() 191 if (static_cast<uint64>(offset) != off) in _tiffosSeekProc() 239 num_fill = (static_cast<uint64>(origin)) + off - os->tellp(); in _tiffosSeekProc() 252 _tiffisSeekProc(thandle_t fd, uint64 off, int whence) in _tiffisSeekProc() argument 273 ios::off_type offset = static_cast<ios::off_type>(off); in _tiffisSeekProc() 274 if (static_cast<uint64>(offset) != off) in _tiffisSeekProc() 283 ios::off_type offset = static_cast<ios::off_type>(off); in _tiffisSeekProc() [all …]
|
/AliOS-Things-master/components/ota/hal/ |
A D | ota_hal_plat.c | 39 unsigned int off = 0; in ota_hal_init() local 43 ret = aos_hal_flash_erase(boot_part, ota_receive_total_len + off, block_size); in ota_hal_init() 53 off += block_size; in ota_hal_init() 72 OTA_WEAK int ota_hal_write(unsigned int *off, char *in_buf, unsigned int in_buf_len) in ota_hal_write() argument 76 if(off == NULL || in_buf_len > OTA_FLASH_WRITE_CACHE_SIZE) { in ota_hal_write() 88 ret = aos_hal_flash_write(boot_part, off, ota_cache, OTA_FLASH_WRITE_CACHE_SIZE); in ota_hal_write() 104 ret = aos_hal_flash_write(boot_part, off, ota_cache, ota_cache_len); in ota_hal_write() 184 int ota_hal_read(unsigned int *off, char *out_buf, unsigned int out_buf_len) in ota_hal_read() argument 187 ret = aos_hal_flash_read(boot_part, off, out_buf, out_buf_len); in ota_hal_read()
|
A D | ota_hal_vfs_plat.c | 36 unsigned int off = 0; in ota_hal_init() local 73 ret = lseek(ota_fd, (off_t)off, SEEK_SET); in ota_hal_init() 79 erase_info.offset = off; in ota_hal_init() 87 off += block_size; in ota_hal_init() 113 OTA_WEAK int ota_hal_write(unsigned int *off, char *in_buf, unsigned int in_buf_len) in ota_hal_write() argument 118 if (off == NULL || in_buf_len > OTA_FLASH_WRITE_CACHE_SIZE) { in ota_hal_write() 130 ret = lseek(ota_fd, (off_t)*off, SEEK_SET); in ota_hal_write() 138 *off += OTA_FLASH_WRITE_CACHE_SIZE; in ota_hal_write() 151 ret = lseek(ota_fd, (off_t)*off, SEEK_SET); in ota_hal_write() 159 *off += ota_cache_len; in ota_hal_write() [all …]
|
/AliOS-Things-master/hardware/chip/rtl872xd/hal/ |
A D | ble_port.c | 44 unsigned int off = 0; in storage_read() 47 … err_code = hal_flash_read(HAL_PARTITION_PARAMETER_3, &off, &local_storage, sizeof(bt_storage_t)); in storage_read() 86 unsigned int off = 0; in storage_write() 88 … err_code = hal_flash_read(HAL_PARTITION_PARAMETER_3, &off, &local_storage, sizeof(bt_storage_t)); in storage_write() 96 err_code = hal_flash_erase(HAL_PARTITION_PARAMETER_3, &off, 4096); in storage_write() 102 …err_code = hal_flash_erase_write(HAL_PARTITION_PARAMETER_3, &off, &local_storage, sizeof(bt_storag… in storage_write()
|
/AliOS-Things-master/components/py_engine/engine/extmod/uasyncio/ |
A D | stream.py | 63 off = 0 64 while off < len(mv): 66 ret = self.s.write(mv[off:]) 68 off += ret 152 async def stream_awrite(self, buf, off=0, sz=-1): argument 153 if off != 0 or sz != -1: 157 buf = buf[off : off + sz]
|
/AliOS-Things-master/components/kv/src/ |
A D | kv_cli.c | 16 kv_size_t off; in __item_print_cb() local 27 off = item->pos + KV_ITEM_HDR_SIZE; in __item_print_cb() 28 kv_flash_read(off, p_key, item->hdr.key_len); in __item_print_cb() 37 off = item->pos + KV_ITEM_HDR_SIZE + item->hdr.key_len; in __item_print_cb() 38 kv_flash_read(off, p_val, item->hdr.val_len); in __item_print_cb()
|
/AliOS-Things-master/components/py_engine/engine/py/ |
A D | stream.c | 156 for (mp_uint_t off = last_buf_offset;;) { in stream_read_generic() local 157 byte b = vstr.buf[off]; in stream_read_generic() 175 if (off + n <= vstr.len) { in stream_read_generic() 177 off += n; in stream_read_generic() 179 last_buf_offset = off; in stream_read_generic() 180 if (off >= vstr.len) { in stream_read_generic() 253 size_t off = 0; in stream_write_method() local 257 off = mp_obj_get_int_truncated(args[2]); in stream_write_method() 259 if (off > bufinfo.len) { in stream_write_method() 260 off = bufinfo.len; in stream_write_method() [all …]
|
/AliOS-Things-master/components/littlefs/src/littlefs-v220/include/ |
A D | lfs.h | 160 lfs_off_t off, void *buffer, lfs_size_t size); 166 lfs_off_t off, const void *buffer, lfs_size_t size); 307 lfs_off_t off; member 315 lfs_off_t off; member 349 lfs_off_t off; member 388 lfs_block_t off; member 556 lfs_soff_t off, int whence); 614 int lfs_dir_seek(lfs_t *lfs, lfs_dir_t *dir, lfs_off_t off);
|
/AliOS-Things-master/components/ulog/src/ |
A D | ulog_session_udp.c | 70 void on_tcpip_service_on(const uint32_t on, const uint32_t off) in on_tcpip_service_on() argument 72 if (on == -1 && off == 1) { in on_tcpip_service_on() 79 } else if (on == 1 && off == -1) { in on_tcpip_service_on() 95 SESSION_UDP_INFO("ulog sys log start invalid param on %d, off %d\n", on, off); in on_tcpip_service_on()
|