Home
last modified time | relevance | path

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

/linux/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()
/linux/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++; } /* fill empty pos… in ZSTD_compressBlock_opt_generic()
1256 lastSequence = opt[last_pos]; in ZSTD_compressBlock_opt_generic()
1257 …cur = last_pos > ZSTD_totalLen(lastSequence) ? last_pos - ZSTD_totalLen(lastSequence) : 0; /* sin… in ZSTD_compressBlock_opt_generic()
[all …]
/linux/fs/bcachefs/
H A Dfsck.c621 struct bpos last_pos;
703 w->last_pos.inode, k.k->p.snapshot, i->snapshot, buf.buf); in get_inodes_all_snapshots()
724 if (w->last_pos.inode != k.k->p.inode) { in get_inodes_all_snapshots()
728 } else if (bkey_cmp(w->last_pos, k.k->p)) { in lookup_inode_for_snapshot()
733 w->last_pos = k.k->p; in lookup_inode_for_snapshot()
1183 count2 = bch2_count_inode_sectors(trans, w->last_pos.inode, i->snapshot); in check_inode()
1190 w->last_pos.inode, i->snapshot, i->count, count2); in check_inode()
1197 w->last_pos.inode, i->snapshot, in check_inode()
1224 struct bpos last_pos;
1404 if (bpos_eq(extent_ends->last_pos, in overlapping_extents_found()
671 struct bpos last_pos; global() member
1296 struct bpos last_pos; global() member
[all...]
H A Dsnapshot.c1378 struct bpos *last_pos) in move_key_to_correct_snapshot()
1389 if (!bkey_eq(k.k->p, *last_pos)) in move_key_to_correct_snapshot()
1396 if (!bpos_eq(*last_pos, k.k->p) && in move_key_to_correct_snapshot()
1401 *last_pos = k.k->p; in move_key_to_correct_snapshot()
1610 struct bpos last_pos = POS_MIN; in bch2_delete_dead_snapshots()
1622 &equiv_seen, &last_pos)); in bch2_delete_dead_snapshots()
1358 snapshot_delete_key(struct btree_trans * trans,struct btree_iter * iter,struct bkey_s_c k,snapshot_id_list * deleted,snapshot_id_list * equiv_seen,struct bpos * last_pos) snapshot_delete_key() argument
1588 struct bpos last_pos = POS_MIN; bch2_delete_dead_snapshots() local
/linux/fs/udf/
H A Dinode.c280 loff_t last_pos; in udf_write_end()
286 last_pos = pos + copied; in udf_write_end()
287 if (last_pos > inode->i_size) in udf_write_end()
288 i_size_write(inode, last_pos); in udf_write_end()
500 struct extent_position *last_pos, in udf_do_extend_file()
540 err = udf_add_aext(inode, last_pos, &last_ext->extLocation, in udf_do_extend_file()
549 udf_write_aext(inode, last_pos, &last_ext->extLocation, in udf_do_extend_file()
558 udf_next_aext(inode, last_pos, &tmploc, &tmplen, 0); in udf_do_extend_file()
575 err = udf_add_aext(inode, last_pos, &last_ext->extLocation, in udf_do_extend_file()
585 err = udf_add_aext(inode, last_pos, in udf_do_extend_file()
283 loff_t last_pos; udf_write_end() local
501 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
613 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...]
/linux/drivers/gpu/host1x/
H A Dcdma.h67 unsigned int last_pos; /* last value written to DMAPUT */ member
H A Dcdma.c411 restart_addr = cdma->last_pos; in host1x_cdma_update_sync_queue()
/linux/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 = 0; in snd_ymfpci_capture_prepare()
H A Dymfpci.h266 u32 last_pos; member
/linux/fs/ceph/
H A Dfile.c1796 u64 last_pos = (write_pos + write_len) - CEPH_FSCRYPT_BLOCK_SIZE; in ceph_sync_write()
1804 if (first && last_pos == first_pos) in ceph_sync_write()
1812 ci->i_vino, first ? first_pos : last_pos, in ceph_sync_write()
1855 last_pos, CEPH_FSCRYPT_BLOCK_SIZE, in ceph_sync_write()
1870 offset_in_page(last_pos), in ceph_sync_write()
1902 offset_in_page(last_pos), in ceph_sync_write()
1918 offset_in_page(last_pos), in ceph_sync_write()
1933 offset_in_page(last_pos), in ceph_sync_write()
1964 offset_in_page(last_pos), in ceph_sync_write()
1965 last_pos >> CEPH_FSCRYPT_BLOCK_SHIF in ceph_sync_write()
1734 u64 last_pos = (write_pos + write_len) - CEPH_FSCRYPT_BLOCK_SIZE; ceph_sync_write() local
[all...]
/linux/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()
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()
/linux/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()
H A Dext4.h2552 loff_t last_pos; member
/linux/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()
/linux/fs/gfs2/
H A Dglock.c58 loff_t last_pos; /* last position */ member
2612 if (*pos < gi->last_pos) { in gfs2_glock_seq_start()
2617 n = *pos - gi->last_pos; in gfs2_glock_seq_start()
2623 gi->last_pos = *pos; in gfs2_glock_seq_start()
2633 gi->last_pos = *pos; in gfs2_glock_seq_next()
2713 gi->last_pos = -1; in __gfs2_glocks_open()
/linux/fs/orangefs/
H A Dinode.c378 loff_t last_pos = pos + copied; in orangefs_write_end() local
384 if (last_pos > inode->i_size) in orangefs_write_end()
385 i_size_write(inode, last_pos); in orangefs_write_end()
/linux/fs/btrfs/
H A Dfile.c998 u64 last_pos; in lock_and_cleanup_extent_if_need() local
1003 last_pos = round_up(pos + write_bytes, fs_info->sectorsize) - 1; in lock_and_cleanup_extent_if_need()
1009 if (!try_lock_extent(&inode->io_tree, start_pos, last_pos, in lock_and_cleanup_extent_if_need()
1020 lock_extent(&inode->io_tree, start_pos, last_pos, cached_state); in lock_and_cleanup_extent_if_need()
1024 last_pos - start_pos + 1); in lock_and_cleanup_extent_if_need()
1027 ordered->file_offset <= last_pos) { in lock_and_cleanup_extent_if_need()
1028 unlock_extent(&inode->io_tree, start_pos, last_pos, in lock_and_cleanup_extent_if_need()
1042 *lockend = last_pos; in lock_and_cleanup_extent_if_need()
/linux/mm/
H A Dzswap.c1380 unsigned int pos, last_pos = PAGE_SIZE / sizeof(*page) - 1; in zswap_alloc_shrinker()
1386 if (val != page[last_pos]) in zswap_alloc_shrinker()
1389 for (pos = 1; pos < last_pos; pos++) { in shrink_memcg()
1472 unsigned int pos, last_pos = PAGE_SIZE / sizeof(*page) - 1; zswap_is_page_same_filled() local
H A Dfilemap.c2601 loff_t last_pos = ra->prev_pos; in filemap_read()
2652 if (!pos_same_folio(iocb->ki_pos, last_pos - 1, in filemap_read()
2680 last_pos = iocb->ki_pos; in kiocb_write_and_wait()
2694 ra->prev_pos = last_pos; in kiocb_invalidate_pages()
2577 loff_t last_pos = ra->prev_pos; filemap_read() local
/linux/fs/
H A Dlibfs.c953 loff_t last_pos = pos + copied; in simple_write_end() local
968 if (last_pos > inode->i_size) in simple_write_end()
969 i_size_write(inode, last_pos); in simple_write_end()
/linux/sound/drivers/
H A Daloop.c621 unsigned long last_pos; in bytepos_delta() local
624 last_pos = byte_pos(dpcm, dpcm->irq_pos); in bytepos_delta()
626 delta = byte_pos(dpcm, dpcm->irq_pos) - last_pos; in bytepos_delta()
/linux/drivers/block/zram/
H A Dzram_drv.c208 unsigned int pos, last_pos = PAGE_SIZE / sizeof(*page) - 1; in page_same_filled() local
213 if (val != page[last_pos]) in page_same_filled()
216 for (pos = 1; pos < last_pos; pos++) { in page_same_filled()
/linux/block/
H A Dbfq-iosched.c231 #define BFQ_RQ_SEEKY(bfqd, last_pos, rq) \ argument
232 (get_sdist(last_pos, rq) > \
2372 static sector_t get_sdist(sector_t last_pos, struct request *rq) in get_sdist() argument
2374 if (last_pos) in get_sdist()
2375 return abs(blk_rq_pos(rq) - last_pos); in get_sdist()
/linux/net/ipv4/
H A Dtcp_ipv4.c2778 if (*pos && *pos == st->last_pos) {
2791 st->last_pos = *pos;
2822 st->last_pos = *pos;
3180 /* Keeping st->last_pos consistent in tcp_iter_state.
3181 * bpf iter does not do lseek, so st->last_pos always equals to *pos.
3183 st->last_pos = *pos;
/linux/include/net/
H A Dtcp.h2184 loff_t last_pos; member