| /linux-6.15/include/linux/ |
| H A D | regset.h | 256 const int start_pos, const int end_pos) in user_regset_copyin() argument 261 if (end_pos < 0 || *pos < end_pos) { in user_regset_copyin() 262 unsigned int copy = (end_pos < 0 ? *count in user_regset_copyin() 263 : min(*count, end_pos - *pos)); in user_regset_copyin() 283 const int end_pos) in user_regset_copyin_ignore() argument 288 if (end_pos < 0 || *pos < end_pos) { in user_regset_copyin_ignore() 289 unsigned int copy = (end_pos < 0 ? *count in user_regset_copyin_ignore() 290 : min(*count, end_pos - *pos)); in user_regset_copyin_ignore()
|
| H A D | bpf_verifier.h | 626 u64 end_pos; member
|
| /linux-6.15/kernel/bpf/ |
| H A D | log.c | 48 u64 len = log->end_pos + add_len; in bpf_vlog_update_len_max() 81 if (log->end_pos < log->len_total) { in bpf_verifier_vlog() 82 new_n = min_t(u32, log->len_total - log->end_pos, n); in bpf_verifier_vlog() 86 cur_pos = log->end_pos; in bpf_verifier_vlog() 87 log->end_pos += n - 1; /* don't count terminating '\0' */ in bpf_verifier_vlog() 96 new_end = log->end_pos + n; in bpf_verifier_vlog() 154 if (WARN_ON_ONCE(new_pos > log->end_pos)) in bpf_vlog_reset() 164 log->end_pos = new_pos; in bpf_vlog_reset() 165 if (log->end_pos < log->start_pos) in bpf_vlog_reset() 166 log->start_pos = log->end_pos; in bpf_vlog_reset() [all …]
|
| H A D | verifier.c | 2032 elem->log_pos = env->log.end_pos; in push_stack() 2799 elem->log_pos = env->log.end_pos; in push_async_cb() 19475 env->prev_log_pos = env->log.end_pos; in do_check() 19478 env->prev_insn_print_pos = env->log.end_pos - env->prev_log_pos; in do_check() 19479 env->prev_log_pos = env->log.end_pos; in do_check()
|
| /linux-6.15/fs/iomap/ |
| H A D | buffered-io.c | 1666 struct inode *inode, loff_t pos, loff_t end_pos, in iomap_add_to_ioend() argument 1747 struct inode *inode, u64 pos, u64 end_pos, in iomap_writepage_map_blocks() argument 1773 end_pos, map_len); in iomap_writepage_map_blocks() 1803 u64 *end_pos) in iomap_writepage_handle_eof() argument 1807 if (*end_pos > isize) { in iomap_writepage_handle_eof() 1848 *end_pos = isize; in iomap_writepage_handle_eof() 1860 u64 end_pos = pos + folio_size(folio); in iomap_writepage_map() local 1876 WARN_ON_ONCE(end_pos <= pos); in iomap_writepage_map() 1881 iomap_set_range_dirty(folio, 0, end_pos - pos); in iomap_writepage_map() 1903 end_aligned = round_up(end_pos, i_blocksize(inode)); in iomap_writepage_map() [all …]
|
| /linux-6.15/kernel/ |
| H A D | relay.c | 1016 size_t read_subbuf, padding, end_pos; in relay_file_read_end_pos() local 1023 end_pos = (read_subbuf + 1) * subbuf_size; in relay_file_read_end_pos() 1025 end_pos = read_pos + count; in relay_file_read_end_pos() 1026 if (end_pos >= subbuf_size * n_subbufs) in relay_file_read_end_pos() 1027 end_pos = 0; in relay_file_read_end_pos() 1029 return end_pos; in relay_file_read_end_pos()
|
| H A D | kcov.c | 243 u64 count, start_index, end_pos, max_pos; in write_comp_data() local 262 end_pos = (start_index + KCOV_WORDS_PER_CMP) * sizeof(u64); in write_comp_data() 263 if (likely(end_pos <= max_pos)) { in write_comp_data()
|
| /linux-6.15/fs/bcachefs/ |
| H A D | fs-io.c | 287 u64 end_pos; in __bch2_truncate_folio() local 360 end_pos = folio_end_pos(folio); in __bch2_truncate_folio() 362 end_pos = min_t(u64, inode->v.i_size, end_pos); in __bch2_truncate_folio() 363 ret = s->s[folio_pos_to_s(folio, end_pos - 1)].state >= SECTOR_dirty; in __bch2_truncate_folio() 636 struct bpos end_pos = POS(inode->v.i_ino, end_sector); in __bchfs_fallocate() local 657 if (bkey_ge(iter.pos, end_pos)) in __bchfs_fallocate() 672 hole_end = bpos_min(k.k->p, end_pos).offset; in __bchfs_fallocate()
|
| H A D | btree_journal_iter.c | 77 struct bpos end_pos, size_t *idx) in bch2_journal_keys_peek_max() argument 89 __journal_key_cmp(btree_id, level, end_pos, idx_to_key(keys, *idx - 1)) <= 0) { in bch2_journal_keys_peek_max() 102 if (__journal_key_cmp(btree_id, level, end_pos, k) < 0) in bch2_journal_keys_peek_max() 133 struct bpos end_pos, size_t *idx) in bch2_journal_keys_peek_prev_min() argument 145 __journal_key_cmp(btree_id, level, end_pos, idx_to_key(keys, *idx - 1)) <= 0) { in bch2_journal_keys_peek_prev_min() 158 if (__journal_key_cmp(btree_id, level, end_pos, k) > 0) in bch2_journal_keys_peek_prev_min()
|
| H A D | io_misc.c | 147 struct bpos end_pos = POS(inum.inum, end); in bch2_fpunch_at() local 172 k = bch2_btree_iter_peek_max(trans, iter, end_pos); in bch2_fpunch_at() 185 bch2_cut_back(end_pos, &delete); in bch2_fpunch_at()
|
| H A D | bcachefs_ioctl.h | 214 struct bpos end_pos; member
|
| H A D | btree_iter.c | 2112 struct bpos end_pos) in bch2_btree_journal_peek() argument 2119 end_pos, in bch2_btree_journal_peek() 2155 struct bpos end_pos) in bch2_btree_journal_peek_prev() argument 2162 end_pos, in bch2_btree_journal_peek_prev()
|
| H A D | move.c | 1214 struct bbpos end = BBPOS(op.end_btree, op.end_pos); in bch2_data_job()
|
| /linux-6.15/drivers/mtd/nand/spi/ |
| H A D | core.c | 859 struct nand_pos start_pos, end_pos; in spinand_use_cont_read() local 869 nanddev_offs_to_pos(nand, from + ops->len - 1, &end_pos); in spinand_use_cont_read() 879 if (start_pos.target != end_pos.target || in spinand_use_cont_read() 880 start_pos.plane != end_pos.plane || in spinand_use_cont_read() 881 start_pos.eraseblock != end_pos.eraseblock) in spinand_use_cont_read() 884 return start_pos.page < end_pos.page; in spinand_use_cont_read()
|
| /linux-6.15/fs/xfs/scrub/ |
| H A D | xfarray.c | 292 loff_t end_pos = *pos + array->obj_size - 1; in xfarray_find_data() local 313 new_pos = xfile_seek_data(array->xfile, end_pos); in xfarray_find_data() 318 if (new_pos == end_pos) in xfarray_find_data()
|
| /linux-6.15/fs/fuse/ |
| H A D | dax.c | 837 loff_t end_pos = (start_pos + FUSE_DAX_SZ - 1); in dmap_writeback_invalidate() local 839 ret = filemap_fdatawrite_range(inode->i_mapping, start_pos, end_pos); in dmap_writeback_invalidate() 842 ret, start_pos, end_pos); in dmap_writeback_invalidate() 848 end_pos >> PAGE_SHIFT); in dmap_writeback_invalidate()
|
| /linux-6.15/fs/ubifs/ |
| H A D | file.c | 524 loff_t end_pos = pos + len; in ubifs_write_end() local 525 int appending = !!(end_pos > inode->i_size); in ubifs_write_end() 563 i_size_write(inode, end_pos); in ubifs_write_end() 564 ui->ui_size = end_pos; in ubifs_write_end()
|
| /linux-6.15/fs/nfs/ |
| H A D | pnfs.c | 3288 loff_t end_pos) in pnfs_set_layoutcommit() argument 3295 nfsi->layout->plh_lwb = end_pos; in pnfs_set_layoutcommit() 3299 } else if (end_pos > nfsi->layout->plh_lwb) in pnfs_set_layoutcommit() 3300 nfsi->layout->plh_lwb = end_pos; in pnfs_set_layoutcommit() 3339 loff_t end_pos; in pnfs_layoutcommit_inode() local 3373 end_pos = nfsi->layout->plh_lwb; in pnfs_layoutcommit_inode() 3383 if (end_pos != 0) in pnfs_layoutcommit_inode() 3384 data->args.lastbytewritten = end_pos - 1; in pnfs_layoutcommit_inode() 3395 if (end_pos > nfsi->layout->plh_lwb) in pnfs_layoutcommit_inode() 3396 nfsi->layout->plh_lwb = end_pos; in pnfs_layoutcommit_inode()
|
| /linux-6.15/fs/btrfs/ |
| H A D | file.c | 78 u64 end_pos = pos + write_bytes; in btrfs_dirty_folio() local 119 if (end_pos > isize) in btrfs_dirty_folio() 120 i_size_write(&inode->vfs_inode, end_pos); in btrfs_dirty_folio() 1070 loff_t end_pos = round_up(pos + count, fs_info->sectorsize); in btrfs_write_check() local 1072 ret = btrfs_cont_expand(BTRFS_I(inode), oldsize, end_pos); in btrfs_write_check()
|
| /linux-6.15/include/trace/events/ |
| H A D | f2fs.h | 958 TP_PROTO(struct inode *dir, loff_t start_pos, loff_t end_pos, int err), 960 TP_ARGS(dir, start_pos, end_pos, err), 974 __entry->end = end_pos;
|
| /linux-6.15/scripts/ |
| H A D | checkpatch.pl | 3524 my $end_pos = $+[2]; 3537 $end_char = substr($rawline, $end_pos, 1) if ($end_pos < length($rawline));
|
| /linux-6.15/fs/f2fs/ |
| H A D | file.c | 4976 loff_t start_pos, loff_t end_pos) in f2fs_flush_buffered_write() argument 4980 ret = filemap_write_and_wait_range(mapping, start_pos, end_pos); in f2fs_flush_buffered_write() 4985 end_pos >> PAGE_SHIFT); in f2fs_flush_buffered_write()
|