Home
last modified time | relevance | path

Searched refs:last_pos (Results 1 - 25 of 47) sorted by relevance

12

/kernel/linux/linux-5.10/lib/zstd/
H A Dzstd_opt.h202 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 Dcdma_hw.c51 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 Dcdma_hw.c51 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/fs/9p/
H A Dvfs_addr.c301 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()
/kernel/linux/common_modules/tzdriver/tlogger/
H A Dtlogger.c123 * 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 Dvfs_addr.c295 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()
/kernel/linux/linux-6.6/lib/zstd/compress/
H A Dzstd_opt.c1078 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 Dfile.c118 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 Dinode.c489 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 Dinode.c283 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...]
/kernel/linux/linux-5.10/drivers/gpu/host1x/
H A Dcdma.h66 unsigned int last_pos; /* last value written to DMAPUT */ member
/kernel/linux/linux-6.6/drivers/gpu/host1x/
H A Dcdma.h67 unsigned int last_pos; /* last value written to DMAPUT */ member
/kernel/linux/linux-5.10/sound/pci/ymfpci/
H A Dymfpci_main.c303 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...]
H A Dymfpci.h266 u32 last_pos; member
/kernel/linux/linux-6.6/sound/pci/ymfpci/
H A Dymfpci_main.c298 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...]
H A Dymfpci.h266 u32 last_pos; member
/kernel/linux/linux-5.10/drivers/gpu/drm/exynos/
H A Dexynos_drm_g2d.c639 unsigned long bpp, last_pos; in g2d_check_buf_desc_is_valid() local
666 last_pos = ((unsigned long)buf_desc->bottom_y - 1) * in g2d_check_buf_desc_is_valid()
672 * that the first_pos < last_pos (first_pos being the position in g2d_check_buf_desc_is_valid()
674 * check if last_pos is smaller then the buffer size. in g2d_check_buf_desc_is_valid()
677 if (last_pos >= size) { in g2d_check_buf_desc_is_valid()
679 "is out of range [%lu]!\n", last_pos, size); in g2d_check_buf_desc_is_valid()
/kernel/linux/linux-6.6/drivers/gpu/drm/exynos/
H A Dexynos_drm_g2d.c634 unsigned long bpp, last_pos; in g2d_check_buf_desc_is_valid() local
661 last_pos = ((unsigned long)buf_desc->bottom_y - 1) * in g2d_check_buf_desc_is_valid()
667 * that the first_pos < last_pos (first_pos being the position in g2d_check_buf_desc_is_valid()
669 * check if last_pos is smaller then the buffer size. in g2d_check_buf_desc_is_valid()
672 if (last_pos >= size) { in g2d_check_buf_desc_is_valid()
674 "is out of range [%lu]!\n", last_pos, size); in g2d_check_buf_desc_is_valid()
/kernel/linux/linux-5.10/fs/gfs2/
H A Dglock.c55 loff_t last_pos; /* last position */ member
2369 if (*pos < gi->last_pos) { in __acquires()
2374 n = *pos - gi->last_pos; in __acquires()
2380 gi->last_pos = *pos; in __acquires()
2390 gi->last_pos = *pos; in gfs2_glock_seq_next()
2470 gi->last_pos = -1; in __gfs2_glocks_open()
/kernel/linux/linux-6.6/fs/ceph/
H A Dfile.c1694 u64 last_pos = (write_pos + write_len) - CEPH_FSCRYPT_BLOCK_SIZE; in ceph_sync_write() local
1702 if (first && last_pos == first_pos) in ceph_sync_write()
1710 ci->i_vino, first ? first_pos : last_pos, in ceph_sync_write()
1753 last_pos, CEPH_FSCRYPT_BLOCK_SIZE, in ceph_sync_write()
1768 offset_in_page(last_pos), in ceph_sync_write()
1800 offset_in_page(last_pos), in ceph_sync_write()
1816 offset_in_page(last_pos), in ceph_sync_write()
1831 offset_in_page(last_pos), in ceph_sync_write()
1862 offset_in_page(last_pos), in ceph_sync_write()
1863 last_pos >> CEPH_FSCRYPT_BLOCK_SHIF in ceph_sync_write()
[all...]
/kernel/linux/linux-5.10/fs/ext4/
H A Ddir.c550 if (info->last_pos != ctx->pos) { in ext4_dx_readdir()
615 info->last_pos = ctx->pos; in ext4_dx_readdir()
/kernel/linux/linux-6.6/fs/ext4/
H A Ddir.c566 if (info->last_pos != ctx->pos) { in ext4_dx_readdir()
631 info->last_pos = ctx->pos; in ext4_dx_readdir()
/kernel/linux/linux-6.6/sound/pci/
H A Dintel8x0.c320 unsigned int last_pos; member
800 ichdev->last_pos = ichdev->position; in snd_intel8x0_pcm_trigger()
1022 ptr = ichdev->last_pos; in snd_intel8x0_pcm_pointer()
1027 if (ptr < ichdev->last_pos) { in snd_intel8x0_pcm_pointer()
1030 last_base = ichdev->last_pos / ichdev->fragsize1; in snd_intel8x0_pcm_pointer()
1035 ptr = ichdev->last_pos; in snd_intel8x0_pcm_pointer()
1038 ichdev->last_pos = ptr; in snd_intel8x0_pcm_pointer()
/kernel/linux/linux-6.6/fs/gfs2/
H A Dglock.c58 loff_t last_pos; /* last position */ member
2533 if (*pos < gi->last_pos) { in __acquires()
2538 n = *pos - gi->last_pos; in __acquires()
2544 gi->last_pos = *pos; in __acquires()
2554 gi->last_pos = *pos; in gfs2_glock_seq_next()
2634 gi->last_pos = -1; in __gfs2_glocks_open()
/kernel/linux/linux-6.6/fs/btrfs/
H A Dfile.c984 u64 last_pos; in lock_and_cleanup_extent_if_need() local
989 last_pos = round_up(pos + write_bytes, fs_info->sectorsize) - 1; in lock_and_cleanup_extent_if_need()
995 if (!try_lock_extent(&inode->io_tree, start_pos, last_pos, in lock_and_cleanup_extent_if_need()
1006 lock_extent(&inode->io_tree, start_pos, last_pos, cached_state); in lock_and_cleanup_extent_if_need()
1010 last_pos - start_pos + 1); in lock_and_cleanup_extent_if_need()
1013 ordered->file_offset <= last_pos) { in lock_and_cleanup_extent_if_need()
1014 unlock_extent(&inode->io_tree, start_pos, last_pos, in lock_and_cleanup_extent_if_need()
1028 *lockend = last_pos; in lock_and_cleanup_extent_if_need()

Completed in 42 milliseconds

12