Home
last modified time | relevance | path

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

/openbmc/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()
/openbmc/linux/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()
/openbmc/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 …]
/openbmc/linux/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()
508 struct extent_position *last_pos, in udf_do_extend_file() argument
548 err = udf_add_aext(inode, last_pos, &last_ext->extLocation, in udf_do_extend_file()
558 udf_write_aext(inode, last_pos, &last_ext->extLocation, in udf_do_extend_file()
567 err = udf_next_aext(inode, last_pos, &tmploc, &tmplen, in udf_do_extend_file()
588 err = udf_add_aext(inode, last_pos, &last_ext->extLocation, in udf_do_extend_file()
598 err = udf_add_aext(inode, last_pos, &last_ext->extLocation, in udf_do_extend_file()
[all …]
/openbmc/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()
/openbmc/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
/openbmc/linux/fs/ceph/
H A Dfile.c1697 u64 last_pos = (write_pos + write_len) - CEPH_FSCRYPT_BLOCK_SIZE; in ceph_sync_write() local
1705 if (first && last_pos == first_pos) in ceph_sync_write()
1713 ci->i_vino, first ? first_pos : last_pos, in ceph_sync_write()
1756 last_pos, CEPH_FSCRYPT_BLOCK_SIZE, in ceph_sync_write()
1771 offset_in_page(last_pos), in ceph_sync_write()
1803 offset_in_page(last_pos), in ceph_sync_write()
1819 offset_in_page(last_pos), in ceph_sync_write()
1834 offset_in_page(last_pos), in ceph_sync_write()
1865 offset_in_page(last_pos), in ceph_sync_write()
1866 last_pos >> CEPH_FSCRYPT_BLOCK_SHIFT); in ceph_sync_write()
/openbmc/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()
/openbmc/linux/fs/ext4/
H A Ddir.c574 if (info->last_pos != ctx->pos) { in ext4_dx_readdir()
639 info->last_pos = ctx->pos; in ext4_dx_readdir()
H A Dext4.h2538 loff_t last_pos; member
/openbmc/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()
/openbmc/linux/fs/gfs2/
H A Dglock.c58 loff_t last_pos; /* last position */ member
2576 if (*pos < gi->last_pos) { in gfs2_glock_seq_start()
2581 n = *pos - gi->last_pos; in gfs2_glock_seq_start()
2587 gi->last_pos = *pos; in gfs2_glock_seq_start()
2597 gi->last_pos = *pos; in gfs2_glock_seq_next()
2677 gi->last_pos = -1; in __gfs2_glocks_open()
/openbmc/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()
/openbmc/linux/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()
/openbmc/linux/mm/
H A Dzswap.c1167 unsigned int pos, last_pos = PAGE_SIZE / sizeof(*page) - 1; in zswap_is_page_same_filled() local
1172 if (val != page[last_pos]) in zswap_is_page_same_filled()
1175 for (pos = 1; pos < last_pos; pos++) { in zswap_is_page_same_filled()
H A Dfilemap.c2654 loff_t last_pos = ra->prev_pos; in filemap_read() local
2714 if (!pos_same_folio(iocb->ki_pos, last_pos - 1, in filemap_read()
2742 last_pos = iocb->ki_pos; in filemap_read()
2756 ra->prev_pos = last_pos; in filemap_read()
/openbmc/linux/fs/
H A Dlibfs.c960 loff_t last_pos = pos + copied; in simple_write_end() local
975 if (last_pos > inode->i_size) in simple_write_end()
976 i_size_write(inode, last_pos); in simple_write_end()
/openbmc/linux/sound/drivers/
H A Daloop.c577 unsigned long last_pos; in bytepos_delta() local
580 last_pos = byte_pos(dpcm, dpcm->irq_pos); in bytepos_delta()
582 delta = byte_pos(dpcm, dpcm->irq_pos) - last_pos; in bytepos_delta()
/openbmc/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()
/openbmc/linux/net/ipv4/
H A Dtcp_ipv4.c2576 if (*pos && *pos == st->last_pos) { in tcp_seq_start()
2589 st->last_pos = *pos; in tcp_seq_start()
2620 st->last_pos = *pos; in tcp_seq_next()
2981 st->last_pos = *pos; in bpf_iter_tcp_seq_next()
/openbmc/linux/block/
H A Dbfq-iosched.c231 #define BFQ_RQ_SEEKY(bfqd, last_pos, rq) \ argument
232 (get_sdist(last_pos, rq) > \
2383 static sector_t get_sdist(sector_t last_pos, struct request *rq) in get_sdist() argument
2385 if (last_pos) in get_sdist()
2386 return abs(blk_rq_pos(rq) - last_pos); in get_sdist()
/openbmc/linux/include/net/
H A Dtcp.h2094 loff_t last_pos; member