Home
last modified time | relevance | path

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

/linux-6.12.1/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()
/linux-6.12.1/lib/zstd/compress/
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-6.12.1/mm/
Dpage_io.c177 unsigned int pos, last_pos; in is_folio_zero_filled() local
181 last_pos = PAGE_SIZE / sizeof(*data) - 1; in is_folio_zero_filled()
189 if (data[last_pos]) { in is_folio_zero_filled()
193 for (pos = 0; pos < last_pos; pos++) { in is_folio_zero_filled()
Dfilemap.c2621 loff_t last_pos = ra->prev_pos; in filemap_read() local
2672 if (!pos_same_folio(iocb->ki_pos, last_pos - 1, in filemap_read()
2700 last_pos = iocb->ki_pos; in filemap_read()
2714 ra->prev_pos = last_pos; in filemap_read()
/linux-6.12.1/fs/udf/
Dinode.c279 loff_t last_pos; in udf_write_end() local
284 last_pos = pos + copied; in udf_write_end()
285 if (last_pos > inode->i_size) in udf_write_end()
286 i_size_write(inode, last_pos); in udf_write_end()
504 struct extent_position *last_pos, in udf_do_extend_file() argument
544 err = udf_add_aext(inode, last_pos, &last_ext->extLocation, in udf_do_extend_file()
554 udf_write_aext(inode, last_pos, &last_ext->extLocation, in udf_do_extend_file()
563 err = udf_next_aext(inode, last_pos, &tmploc, &tmplen, in udf_do_extend_file()
584 err = udf_add_aext(inode, last_pos, &last_ext->extLocation, in udf_do_extend_file()
594 err = udf_add_aext(inode, last_pos, &last_ext->extLocation, in udf_do_extend_file()
[all …]
/linux-6.12.1/drivers/gpu/host1x/
Dcdma.h67 unsigned int last_pos; /* last value written to DMAPUT */ member
Dcdma.c411 restart_addr = cdma->last_pos; in host1x_cdma_update_sync_queue()
/linux-6.12.1/fs/bcachefs/
Dfsck.c780 struct bpos last_pos; member
869 w->last_pos.inode, k.k->p.snapshot, i->snapshot, buf.buf); in lookup_inode_for_snapshot()
890 if (w->last_pos.inode != k.k->p.inode) { in walk_inode()
896 w->last_pos = k.k->p; in walk_inode()
1604 inode->last_pos.inode--; in check_key_has_inode()
1644 count2 = bch2_count_inode_sectors(trans, w->last_pos.inode, i->snapshot); in check_i_sectors_notnested()
1651 w->last_pos.inode, i->snapshot, i->count, count2); in check_i_sectors_notnested()
1658 w->last_pos.inode, i->snapshot, in check_i_sectors_notnested()
1685 struct bpos last_pos; member
1865 if (bpos_eq(extent_ends->last_pos, k.k->p)) in check_overlapping_extents()
[all …]
Dsnapshot.c1411 struct bpos *last_pos) in delete_dead_snapshots_process_key() argument
1422 if (!bkey_eq(k.k->p, *last_pos)) in delete_dead_snapshots_process_key()
1429 if (!bpos_eq(*last_pos, k.k->p) && in delete_dead_snapshots_process_key()
1434 *last_pos = k.k->p; in delete_dead_snapshots_process_key()
1636 struct bpos last_pos = POS_MIN; in bch2_delete_dead_snapshots() local
1648 &equiv_seen, &last_pos)); in bch2_delete_dead_snapshots()
/linux-6.12.1/sound/pci/ymfpci/
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()
Dymfpci.h266 u32 last_pos; member
/linux-6.12.1/drivers/gpu/drm/exynos/
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-6.12.1/fs/ceph/
Dfile.c1796 u64 last_pos = (write_pos + write_len) - CEPH_FSCRYPT_BLOCK_SIZE; in ceph_sync_write() local
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_SHIFT); in ceph_sync_write()
/linux-6.12.1/fs/ext4/
Ddir.c568 if (info->last_pos != ctx->pos) { in ext4_dx_readdir()
633 info->last_pos = ctx->pos; in ext4_dx_readdir()
Dext4.h2553 loff_t last_pos; member
/linux-6.12.1/sound/pci/
Dintel8x0.c320 unsigned int last_pos; member
797 ichdev->last_pos = ichdev->position; in snd_intel8x0_pcm_trigger()
1019 ptr = ichdev->last_pos; in snd_intel8x0_pcm_pointer()
1024 if (ptr < ichdev->last_pos) { in snd_intel8x0_pcm_pointer()
1027 last_base = ichdev->last_pos / ichdev->fragsize1; in snd_intel8x0_pcm_pointer()
1032 ptr = ichdev->last_pos; in snd_intel8x0_pcm_pointer()
1035 ichdev->last_pos = ptr; in snd_intel8x0_pcm_pointer()
/linux-6.12.1/fs/gfs2/
Dglock.c58 loff_t last_pos; /* last position */ member
2586 if (*pos < gi->last_pos) { in gfs2_glock_seq_start()
2591 n = *pos - gi->last_pos; in gfs2_glock_seq_start()
2597 gi->last_pos = *pos; in gfs2_glock_seq_start()
2607 gi->last_pos = *pos; in gfs2_glock_seq_next()
2687 gi->last_pos = -1; in __gfs2_glocks_open()
/linux-6.12.1/fs/orangefs/
Dinode.c368 loff_t last_pos = pos + copied; in orangefs_write_end() local
374 if (last_pos > inode->i_size) in orangefs_write_end()
375 i_size_write(inode, last_pos); in orangefs_write_end()
/linux-6.12.1/fs/btrfs/
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-6.12.1/fs/
Dlibfs.c965 loff_t last_pos = pos + copied; in simple_write_end() local
980 if (last_pos > inode->i_size) in simple_write_end()
981 i_size_write(inode, last_pos); in simple_write_end()
/linux-6.12.1/sound/drivers/
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-6.12.1/drivers/block/zram/
Dzram_drv.c209 unsigned int pos, last_pos = PAGE_SIZE / sizeof(*page) - 1; in page_same_filled() local
214 if (val != page[last_pos]) in page_same_filled()
217 for (pos = 1; pos < last_pos; pos++) { in page_same_filled()
/linux-6.12.1/block/
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-6.12.1/net/ipv4/
Dtcp_ipv4.c2798 if (*pos && *pos == st->last_pos) {
2811 st->last_pos = *pos;
2842 st->last_pos = *pos;
3203 st->last_pos = *pos;
/linux-6.12.1/include/net/
Dtcp.h2189 loff_t last_pos; member