Home
last modified time | relevance | path

Searched refs:last_pos (Results 1 – 23 of 23) sorted by relevance

/kernel/linux/linux-5.10/lib/zstd/
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()
474 if (!last_pos && !match_num) { in ZSTD_compressBlock_opt_generic()
483 last_pos = 1; in ZSTD_compressBlock_opt_generic()
488 best_mlen = (last_pos) ? last_pos : minMatch; in ZSTD_compressBlock_opt_generic()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/host1x/hw/
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/common_modules/tzdriver/tlogger/
Dtlogger.c129 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_size || in log_pool_append()
783 …((uint64_t)sizeof(struct log_buffer) + (uint64_t)(pool_buffer->flag).last_pos) > g_log_pool_size) { in log_pool_append()
[all …]
/kernel/linux/linux-5.10/fs/9p/
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-5.10/fs/udf/
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()
Dinode.c489 struct extent_position *last_pos, in udf_do_extend_file() argument
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()
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() argument
613 udf_write_aext(inode, last_pos, &last_ext->extLocation, in udf_do_extend_final_block()
/kernel/linux/linux-5.10/drivers/gpu/host1x/
Dcdma.h66 unsigned int last_pos; /* last value written to DMAPUT */ member
Dcdma.c418 restart_addr = cdma->last_pos; in host1x_cdma_update_sync_queue()
/kernel/linux/linux-5.10/sound/pci/ymfpci/
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 = 0; in snd_ymfpci_capture_prepare()
Dymfpci.h266 u32 last_pos; member
/kernel/linux/linux-5.10/fs/ext4/
Ddir.c550 if (info->last_pos != ctx->pos) { in ext4_dx_readdir()
615 info->last_pos = ctx->pos; in ext4_dx_readdir()
Dext4.h2395 loff_t last_pos; member
/kernel/linux/linux-5.10/drivers/gpu/drm/exynos/
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()
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-5.10/fs/gfs2/
Dglock.c55 loff_t last_pos; /* last position */ member
2369 if (*pos < gi->last_pos) { in gfs2_glock_seq_start()
2374 n = *pos - gi->last_pos; in gfs2_glock_seq_start()
2380 gi->last_pos = *pos; in gfs2_glock_seq_start()
2390 gi->last_pos = *pos; in gfs2_glock_seq_next()
2470 gi->last_pos = -1; in __gfs2_glocks_open()
/kernel/linux/linux-5.10/fs/orangefs/
Dinode.c416 loff_t last_pos = pos + copied; in orangefs_write_end() local
422 if (last_pos > inode->i_size) in orangefs_write_end()
423 i_size_write(inode, last_pos); in orangefs_write_end()
/kernel/linux/linux-5.10/sound/pci/
Dintel8x0.c343 unsigned int last_pos; member
821 ichdev->last_pos = ichdev->position; in snd_intel8x0_pcm_trigger()
1043 ptr = ichdev->last_pos; in snd_intel8x0_pcm_pointer()
1048 if (ptr < ichdev->last_pos) { in snd_intel8x0_pcm_pointer()
1051 last_base = ichdev->last_pos / ichdev->fragsize1; in snd_intel8x0_pcm_pointer()
1056 ptr = ichdev->last_pos; in snd_intel8x0_pcm_pointer()
1059 ichdev->last_pos = ptr; in snd_intel8x0_pcm_pointer()
/kernel/linux/linux-5.10/fs/
Dlibfs.c573 loff_t last_pos = pos + copied; in simple_write_end() local
588 if (last_pos > inode->i_size) in simple_write_end()
589 i_size_write(inode, last_pos); in simple_write_end()
/kernel/linux/linux-5.10/fs/btrfs/
Dfile.c1413 u64 last_pos; in lock_and_cleanup_extent_if_need() local
1418 last_pos = round_up(pos + write_bytes, fs_info->sectorsize) - 1; in lock_and_cleanup_extent_if_need()
1423 lock_extent_bits(&inode->io_tree, start_pos, last_pos, in lock_and_cleanup_extent_if_need()
1426 last_pos - start_pos + 1); in lock_and_cleanup_extent_if_need()
1429 ordered->file_offset <= last_pos) { in lock_and_cleanup_extent_if_need()
1431 last_pos, cached_state); in lock_and_cleanup_extent_if_need()
1444 *lockend = last_pos; in lock_and_cleanup_extent_if_need()
/kernel/linux/linux-5.10/sound/drivers/
Daloop.c578 unsigned long last_pos; in bytepos_delta() local
581 last_pos = byte_pos(dpcm, dpcm->irq_pos); in bytepos_delta()
583 delta = byte_pos(dpcm, dpcm->irq_pos) - last_pos; in bytepos_delta()
/kernel/linux/linux-5.10/drivers/block/zram/
Dzram_drv.c162 unsigned int pos, last_pos = PAGE_SIZE / sizeof(*page) - 1; in page_same_filled() local
167 if (val != page[last_pos]) in page_same_filled()
170 for (pos = 1; pos < last_pos; pos++) { in page_same_filled()
/kernel/linux/linux-5.10/block/
Dbfq-iosched.c231 #define BFQ_RQ_SEEKY(bfqd, last_pos, rq) \ argument
232 (get_sdist(last_pos, rq) > \
2136 static sector_t get_sdist(sector_t last_pos, struct request *rq) in get_sdist() argument
2138 if (last_pos) in get_sdist()
2139 return abs(blk_rq_pos(rq) - last_pos); in get_sdist()
/kernel/linux/linux-5.10/net/ipv4/
Dtcp_ipv4.c2486 if (*pos && *pos == st->last_pos) { in tcp_seq_start()
2499 st->last_pos = *pos; in tcp_seq_start()
2530 st->last_pos = *pos; in tcp_seq_next()
/kernel/linux/linux-5.10/include/net/
Dtcp.h1963 loff_t last_pos; member