| /third_party/node/src/ |
| H A D | json_utils.cc | 18 size_t last_pos = 0; in EscapeJsonChars() local 32 if (pos > last_pos) { in EscapeJsonChars() 33 ret += str.substr(last_pos, pos - last_pos); in EscapeJsonChars() 35 last_pos = pos + 1; in EscapeJsonChars() 40 if (last_pos < str.size()) { in EscapeJsonChars() 41 ret += str.substr(last_pos, pos - last_pos); in EscapeJsonChars()
|
| /kernel/linux/linux-5.10/lib/zstd/ |
| H A D | zstd_opt.h | 202 while (last_pos < pos) { \ 203 opt[last_pos + 1].price = ZSTD_MAX_PRICE; \ 204 last_pos++; \ 440 U32 cur, match_num, last_pos, litlen, price; in ZSTD_compressBlock_opt_generic() local 443 last_pos = 0; in ZSTD_compressBlock_opt_generic() 458 last_pos = 1; in ZSTD_compressBlock_opt_generic() 464 if (mlen > last_pos || price < opt[mlen].price) in ZSTD_compressBlock_opt_generic() 465 SET_PRICE(mlen, mlen, i, litlen, price); /* note : macro modifies last_pos */ in ZSTD_compressBlock_opt_generic() 474 if (!last_pos && !match_num) { in ZSTD_compressBlock_opt_generic() 483 last_pos in ZSTD_compressBlock_opt_generic() 738 U32 cur, match_num, last_pos, litlen, price; ZSTD_compressBlock_opt_extDict_generic() local [all...] |
| /kernel/linux/linux-5.10/drivers/gpu/host1x/hw/ |
| H A D | cdma_hw.c | 51 cdma->last_pos = cdma->push_buffer.pos; in cdma_start() 98 cdma->last_pos = cdma->push_buffer.pos; in cdma_timeout_restart() 127 cdma->last_pos); in cdma_timeout_restart() 147 if (cdma->push_buffer.pos != cdma->last_pos) { in cdma_flush() 150 cdma->last_pos = cdma->push_buffer.pos; in cdma_flush() 215 cdma->last_pos); in cdma_freeze()
|
| /kernel/linux/linux-6.6/drivers/gpu/host1x/hw/ |
| H A D | cdma_hw.c | 51 cdma->last_pos = cdma->push_buffer.pos; in cdma_start() 98 cdma->last_pos = cdma->push_buffer.pos; in cdma_timeout_restart() 127 cdma->last_pos); in cdma_timeout_restart() 147 if (cdma->push_buffer.pos != cdma->last_pos) { in cdma_flush() 150 cdma->last_pos = cdma->push_buffer.pos; in cdma_flush() 215 cdma->last_pos); in cdma_freeze()
|
| /third_party/mesa3d/src/gallium/drivers/r600/ |
| H A D | compute_memory_pool.c | 222 int64_t last_pos; in compute_memory_finalize_pending() local 299 last_pos = allocated; in compute_memory_finalize_pending() 305 err = compute_memory_promote_item(pool, item, pipe, last_pos); in compute_memory_finalize_pending() 308 last_pos += align(item->size_in_dw, ITEM_ALIGNMENT); in compute_memory_finalize_pending() 330 int64_t last_pos; in compute_memory_defrag() local 334 last_pos = 0; in compute_memory_defrag() 336 if (src != dst || item->start_in_dw != last_pos) { in compute_memory_defrag() 337 assert(last_pos <= item->start_in_dw); in compute_memory_defrag() 340 item, last_pos, pipe); in compute_memory_defrag() 343 last_pos in compute_memory_defrag() [all...] |
| /third_party/FreeBSD/sys/dev/usb/ |
| H A D | usb_hid.c | 62 struct hid_pos_data last_pos[MAXID]; member 115 if (s->last_pos[i].rid == c->report_ID) in hid_switch_rid() 117 if (s->last_pos[i].rid == 0) in hid_switch_rid() 122 s->last_pos[i].rid = c->report_ID; in hid_switch_rid() 123 s->last_pos[i].pos = c->loc.pos; in hid_switch_rid() 136 if (s->last_pos[i].rid == next_rID) in hid_switch_rid() 138 if (s->last_pos[i].rid == 0) in hid_switch_rid() 143 s->last_pos[i].rid = next_rID; in hid_switch_rid() 144 c->loc.pos = s->last_pos[i].pos; in hid_switch_rid()
|
| /kernel/linux/linux-6.6/fs/9p/ |
| H A D | vfs_addr.c | 301 loff_t last_pos = pos + copied; in v9fs_write_end() local 320 if (last_pos > inode->i_size) { in v9fs_write_end() 321 inode_add_bytes(inode, last_pos - inode->i_size); in v9fs_write_end() 322 i_size_write(inode, last_pos); in v9fs_write_end() 325 &last_pos); in v9fs_write_end()
|
| /third_party/skia/third_party/externals/libwebp/src/utils/ |
| H A D | bit_reader_utils.c | 240 static int last_pos = 0; variable 279 if (abs(pos - last_pos) > 32) { in BitTrace() 282 last_pos = 0; in BitTrace() 290 kLabels[i].size += pos - last_pos; in BitTrace() 293 last_pos = pos; in BitTrace()
|
| /kernel/linux/common_modules/tzdriver/tlogger/ |
| H A D | tlogger.c | 123 * last_pos : current log's end position, last log's start position. 129 uint32_t last_pos; member 319 *log_last_pos = log_flag->last_pos; in get_last_read_pos() 434 uint32_t last_pos; in process_tlogger_read() local 452 ret = get_last_read_pos(&buffer_flag, reader, &last_pos, &is_read); in process_tlogger_read() 456 return trigger_parse_log(buf, count, last_pos, log_buffer, reader); in process_tlogger_read() 470 if (g_last_read_offset != log_buffer->flag.last_pos) { in tz_log_write() 611 if (buffer->flag.last_pos != reader->r_off) in process_tlogger_poll() 637 reader->r_off = buffer->flag.last_pos; in set_reader_cur_pos() 782 if (pool_buffer == NULL || (uint64_t)(pool_buffer->flag).last_pos > g_log_pool_siz in log_pool_append() [all...] |
| /kernel/linux/linux-5.10/fs/9p/ |
| H A D | vfs_addr.c | 295 loff_t last_pos = pos + copied; in v9fs_write_end() local 312 if (last_pos > inode->i_size) { in v9fs_write_end() 313 inode_add_bytes(inode, last_pos - inode->i_size); in v9fs_write_end() 314 i_size_write(inode, last_pos); in v9fs_write_end()
|
| /third_party/skia/third_party/externals/brotli/research/ |
| H A D | find_opt_references.cc | 44 size_t last_pos = 0; in ReadInput() local 48 available_in = fread(storage + last_pos, 1, kFileBufferSize, fin); in ReadInput() 49 last_pos += available_in; in ReadInput() 51 assert(last_pos == input_size); in ReadInput()
|
| /third_party/ffmpeg/libavformat/ |
| H A D | gif.c | 37 int64_t last_pos; member 107 gif->last_pos = avio_tell(pb); in gif_write_packet() 111 if (!gif->last_pos) { in gif_write_packet()
|
| H A D | gxf.c | 461 uint64_t last_pos; in gxf_resync_media() local 475 last_pos = avio_tell(pb); in gxf_resync_media() 479 if (avio_seek(pb, last_pos, SEEK_SET) < 0) in gxf_resync_media() 488 if (avio_seek(pb, last_pos, SEEK_SET) >= 0) in gxf_resync_media()
|
| /kernel/linux/linux-6.6/lib/zstd/compress/ |
| H A D | zstd_opt.c | 1078 U32 cur, last_pos = 0; in ZSTD_compressBlock_opt_generic() local 1112 last_pos = ZSTD_totalLen(lastSequence); in ZSTD_compressBlock_opt_generic() 1137 last_pos = pos-1; in ZSTD_compressBlock_opt_generic() 1142 for (cur = 1; cur <= last_pos; cur++) { in ZSTD_compressBlock_opt_generic() 1187 if (cur == last_pos) break; in ZSTD_compressBlock_opt_generic() 1221 last_pos = cur + ZSTD_totalLen(lastSequence); in ZSTD_compressBlock_opt_generic() 1240 if ((pos > last_pos) || (price < opt[pos].price)) { in ZSTD_compressBlock_opt_generic() 1243 while (last_pos < pos) { opt[last_pos+1].price = ZSTD_MAX_PRICE; last_pos in ZSTD_compressBlock_opt_generic() [all...] |
| /kernel/linux/linux-5.10/fs/udf/ |
| H A D | file.c | 118 loff_t last_pos = pos + copied; in udf_adinicb_write_end() local 119 if (last_pos > inode->i_size) in udf_adinicb_write_end() 120 i_size_write(inode, last_pos); in udf_adinicb_write_end()
|
| H A D | inode.c | 489 struct extent_position *last_pos, in udf_do_extend_file() 528 err = udf_add_aext(inode, last_pos, &last_ext->extLocation, in udf_do_extend_file() 537 udf_write_aext(inode, last_pos, &last_ext->extLocation, in udf_do_extend_file() 546 udf_next_aext(inode, last_pos, &tmploc, &tmplen, 0); in udf_do_extend_file() 562 err = udf_add_aext(inode, last_pos, &last_ext->extLocation, in udf_do_extend_file() 571 err = udf_add_aext(inode, last_pos, &last_ext->extLocation, in udf_do_extend_file() 579 /* last_pos should point to the last written extent... */ in udf_do_extend_file() 581 last_pos->offset -= sizeof(struct short_ad); in udf_do_extend_file() 583 last_pos->offset -= sizeof(struct long_ad); in udf_do_extend_file() 597 struct extent_position *last_pos, in udf_do_extend_final_block() 488 udf_do_extend_file(struct inode *inode, struct extent_position *last_pos, struct kernel_long_ad *last_ext, loff_t new_block_bytes) udf_do_extend_file() argument 596 udf_do_extend_final_block(struct inode *inode, struct extent_position *last_pos, struct kernel_long_ad *last_ext, uint32_t new_elen) udf_do_extend_final_block() argument [all...] |
| /kernel/linux/linux-6.6/fs/udf/ |
| H A D | inode.c | 283 loff_t last_pos; in udf_write_end() local 288 last_pos = pos + copied; in udf_write_end() 289 if (last_pos > inode->i_size) in udf_write_end() 290 i_size_write(inode, last_pos); in udf_write_end() 501 struct extent_position *last_pos, in udf_do_extend_file() 541 err = udf_add_aext(inode, last_pos, &last_ext->extLocation, in udf_do_extend_file() 550 udf_write_aext(inode, last_pos, &last_ext->extLocation, in udf_do_extend_file() 559 udf_next_aext(inode, last_pos, &tmploc, &tmplen, 0); in udf_do_extend_file() 576 err = udf_add_aext(inode, last_pos, &last_ext->extLocation, in udf_do_extend_file() 586 err = udf_add_aext(inode, last_pos, in udf_do_extend_file() 500 udf_do_extend_file(struct inode *inode, struct extent_position *last_pos, struct kernel_long_ad *last_ext, loff_t new_block_bytes) udf_do_extend_file() argument 612 udf_do_extend_final_block(struct inode *inode, struct extent_position *last_pos, struct kernel_long_ad *last_ext, uint32_t new_elen) udf_do_extend_final_block() argument [all...] |
| /third_party/skia/third_party/externals/libwebp/src/dsp/ |
| H A D | upsampling_neon.c | 205 const int last_pos = 1 + 16 * num_blocks; \ 242 top_dst, bottom_dst, last_pos, len - last_pos); \
|
| /third_party/skia/third_party/externals/freetype/src/sdf/ |
| H A D | ftsdf.c | 332 * last_pos :: 347 FT_26D6_Vec last_pos; member 666 contour->last_pos = *to; in sdf_move_to() 698 if ( contour->last_pos.x == to->x && in sdf_line_to() 699 contour->last_pos.y == to->y ) in sdf_line_to() 705 edge->start_pos = contour->last_pos; in sdf_line_to() 710 contour->last_pos = *to; in sdf_line_to() 744 edge->start_pos = contour->last_pos; in sdf_conic_to() 750 contour->last_pos = *to; in sdf_conic_to() 786 edge->start_pos = contour->last_pos; in sdf_cubic_to() [all...] |
| /kernel/linux/linux-5.10/drivers/gpu/host1x/ |
| H A D | cdma.h | 66 unsigned int last_pos; /* last value written to DMAPUT */ member
|
| /kernel/linux/linux-6.6/drivers/gpu/host1x/ |
| H A D | cdma.h | 67 unsigned int last_pos; /* last value written to DMAPUT */ member
|
| /third_party/skia/src/shaders/gradients/ |
| H A D | Sk4fGradientBase.cpp | 196 const SkScalar last_pos = SK_Scalar1 - first_pos; in init() local 228 fIntervals.emplace_back(clamp_color, last_pos, in init()
|
| /third_party/ffmpeg/libavcodec/ |
| H A D | atrac3.c | 453 int i, j, last_pos = -1; in add_tonal_components() local 457 last_pos = FFMAX(components[i].pos + components[i].num_coefs, last_pos); in add_tonal_components() 465 return last_pos; in add_tonal_components()
|
| /kernel/linux/linux-5.10/sound/pci/ymfpci/ |
| H A D | ymfpci_main.c | 303 if (pos < ypcm->last_pos) in snd_ymfpci_pcm_interrupt() 304 delta = pos + (ypcm->buffer_size - ypcm->last_pos); in snd_ymfpci_pcm_interrupt() 306 delta = pos - ypcm->last_pos; in snd_ymfpci_pcm_interrupt() 308 ypcm->last_pos = pos; in snd_ymfpci_pcm_interrupt() 355 if (pos < ypcm->last_pos) in snd_ymfpci_pcm_capture_interrupt() 356 delta = pos + (ypcm->buffer_size - ypcm->last_pos); in snd_ymfpci_pcm_capture_interrupt() 358 delta = pos - ypcm->last_pos; in snd_ymfpci_pcm_capture_interrupt() 360 ypcm->last_pos = pos; in snd_ymfpci_pcm_capture_interrupt() 672 ypcm->last_pos = 0; in snd_ymfpci_playback_prepare() 706 ypcm->last_pos in snd_ymfpci_capture_prepare() [all...] |
| /kernel/linux/linux-6.6/sound/pci/ymfpci/ |
| H A D | ymfpci_main.c | 298 if (pos < ypcm->last_pos) in snd_ymfpci_pcm_interrupt() 299 delta = pos + (ypcm->buffer_size - ypcm->last_pos); in snd_ymfpci_pcm_interrupt() 301 delta = pos - ypcm->last_pos; in snd_ymfpci_pcm_interrupt() 303 ypcm->last_pos = pos; in snd_ymfpci_pcm_interrupt() 350 if (pos < ypcm->last_pos) in snd_ymfpci_pcm_capture_interrupt() 351 delta = pos + (ypcm->buffer_size - ypcm->last_pos); in snd_ymfpci_pcm_capture_interrupt() 353 delta = pos - ypcm->last_pos; in snd_ymfpci_pcm_capture_interrupt() 355 ypcm->last_pos = pos; in snd_ymfpci_pcm_capture_interrupt() 667 ypcm->last_pos = 0; in snd_ymfpci_playback_prepare() 701 ypcm->last_pos in snd_ymfpci_capture_prepare() [all...] |