/kernel/linux/linux-5.10/include/linux/ |
H A D | regset.h | 244 const int start_pos, const int end_pos) in user_regset_copyin() 249 if (end_pos < 0 || *pos < end_pos) { in user_regset_copyin() 250 unsigned int copy = (end_pos < 0 ? *count in user_regset_copyin() 251 : min(*count, end_pos - *pos)); in user_regset_copyin() 271 const int end_pos) 276 if (end_pos < 0 || *pos < end_pos) { 277 unsigned int copy = (end_pos < 0 ? *count 278 : min(*count, end_pos 241 user_regset_copyin(unsigned int *pos, unsigned int *count, const void **kbuf, const void __user **ubuf, void *data, const int start_pos, const int end_pos) user_regset_copyin() argument [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | regset.h | 256 const int start_pos, const int end_pos) in user_regset_copyin() 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) 288 if (end_pos < 0 || *pos < end_pos) { 289 unsigned int copy = (end_pos < 0 ? *count 290 : min(*count, end_pos 253 user_regset_copyin(unsigned int *pos, unsigned int *count, const void **kbuf, const void __user **ubuf, void *data, const int start_pos, const int end_pos) user_regset_copyin() argument [all...] |
H A D | bpf_verifier.h | 535 * Once truncation starts to happen, start_pos + len_total == end_pos, 536 * except during log reset situations, in which (end_pos - start_pos) 538 * Generally, (end_pos - start_pos) gives number of useful data in 542 u64 end_pos; member
|
/kernel/linux/linux-6.6/kernel/bpf/ |
H A D | log.c | 45 u64 len = log->end_pos + add_len; in bpf_vlog_update_len_max() 78 if (log->end_pos < log->len_total) { in bpf_verifier_vlog() 79 new_n = min_t(u32, log->len_total - log->end_pos, n); in bpf_verifier_vlog() 83 cur_pos = log->end_pos; in bpf_verifier_vlog() 84 log->end_pos += n - 1; /* don't count terminating '\0' */ in bpf_verifier_vlog() 93 new_end = log->end_pos + n; in bpf_verifier_vlog() 100 log->end_pos = new_end - 1; /* don't count terminating '\0' */ in bpf_verifier_vlog() 151 if (WARN_ON_ONCE(new_pos > log->end_pos)) in bpf_vlog_reset() 159 * start_pos to end up with an empty log (start_pos == end_pos) in bpf_vlog_reset() 161 log->end_pos in bpf_vlog_reset() [all...] |
/kernel/linux/linux-6.6/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() 610 loff_t end_pos; in xfarray_want_pagesort() local 614 end_pos = xfarray_pos(si->array, hi) + si->array->obj_size - 1; in xfarray_want_pagesort() 615 hi_page = end_pos >> PAGE_SHIFT; in xfarray_want_pagesort()
|
/kernel/linux/common_modules/tzdriver/tlogger/ |
H A D | tlogger.c | 228 uint32_t end_pos; member 250 while (start_pos < position->end_pos) { in parse_log_item() 253 position->end_pos - start_pos, &start_pos); in parse_log_item() 342 const unsigned char *buffer_start, uint32_t max_len, uint32_t start_pos, uint32_t end_pos) in set_reader_position() 347 position->end_pos = end_pos; in set_reader_position() 341 set_reader_position(struct reader_position *position, const unsigned char *buffer_start, uint32_t max_len, uint32_t start_pos, uint32_t end_pos) set_reader_position() argument
|
/kernel/linux/linux-5.10/kernel/ |
H A D | relay.c | 1105 size_t read_subbuf, padding, end_pos; in relay_file_read_end_pos() local 1112 end_pos = (read_subbuf + 1) * subbuf_size; in relay_file_read_end_pos() 1114 end_pos = read_pos + count; in relay_file_read_end_pos() 1115 if (end_pos >= subbuf_size * n_subbufs) in relay_file_read_end_pos() 1116 end_pos = 0; in relay_file_read_end_pos() 1118 return end_pos; in relay_file_read_end_pos()
|
H A D | kcov.c | 215 u64 count, start_index, end_pos, max_pos; in write_comp_data() local 234 end_pos = (start_index + KCOV_WORDS_PER_CMP) * sizeof(u64); in write_comp_data() 235 if (likely(end_pos <= max_pos)) { in write_comp_data()
|
/kernel/linux/linux-6.6/kernel/ |
H A D | relay.c | 1017 size_t read_subbuf, padding, end_pos; in relay_file_read_end_pos() local 1024 end_pos = (read_subbuf + 1) * subbuf_size; in relay_file_read_end_pos() 1026 end_pos = read_pos + count; in relay_file_read_end_pos() 1027 if (end_pos >= subbuf_size * n_subbufs) in relay_file_read_end_pos() 1028 end_pos = 0; in relay_file_read_end_pos() 1030 return end_pos; in relay_file_read_end_pos()
|
H A D | kcov.c | 233 u64 count, start_index, end_pos, max_pos; in write_comp_data() local 252 end_pos = (start_index + KCOV_WORDS_PER_CMP) * sizeof(u64); in write_comp_data() 253 if (likely(end_pos <= max_pos)) { in write_comp_data()
|
/kernel/linux/linux-6.6/fs/iomap/ |
H A D | buffered-io.c | 1776 struct folio *folio, u64 end_pos) in iomap_writepage_map() 1786 WARN_ON_ONCE(end_pos <= pos); in iomap_writepage_map() 1790 iomap_set_range_dirty(folio, 0, end_pos - pos); in iomap_writepage_map() 1800 for (i = 0; i < nblocks && pos < end_pos; i++, pos += len) { in iomap_writepage_map() 1895 u64 end_pos, isize; in iomap_do_writepage() local 1916 * The folio index is less than the end_index, adjust the end_pos in iomap_do_writepage() 1927 end_pos = folio_pos(folio) + folio_size(folio); in iomap_do_writepage() 1928 if (end_pos > isize) { in iomap_do_writepage() 1973 end_pos = isize; in iomap_do_writepage() 1976 return iomap_writepage_map(wpc, wbc, inode, folio, end_pos); in iomap_do_writepage() 1774 iomap_writepage_map(struct iomap_writepage_ctx *wpc, struct writeback_control *wbc, struct inode *inode, struct folio *folio, u64 end_pos) iomap_writepage_map() argument [all...] |
/kernel/linux/linux-5.10/fs/hmdfs/ |
H A D | hmdfs_trace.h | 97 TP_PROTO(struct dentry *__d, loff_t start_pos, loff_t end_pos, int err), 99 TP_ARGS(__d, start_pos, end_pos, err), 111 __entry->end = end_pos; 115 TP_printk("dentry[%s] start_pos:%llx, end_pos:%llx, err:%d", 123 loff_t end_pos, int err), \ 124 TP_ARGS(__d, start_pos, end_pos, err))
|
/kernel/linux/linux-6.6/fs/hmdfs/ |
H A D | hmdfs_trace.h | 97 TP_PROTO(struct dentry *__d, loff_t start_pos, loff_t end_pos, int err), 99 TP_ARGS(__d, start_pos, end_pos, err), 111 __entry->end = end_pos; 115 TP_printk("dentry[%s] start_pos:%llx, end_pos:%llx, err:%d", 123 loff_t end_pos, int err), \ 124 TP_ARGS(__d, start_pos, end_pos, err))
|
/kernel/linux/linux-5.10/fs/fuse/ |
H A D | dax.c | 876 loff_t end_pos = (start_pos + FUSE_DAX_SZ - 1); in dmap_writeback_invalidate() local 878 ret = filemap_fdatawrite_range(inode->i_mapping, start_pos, end_pos); in dmap_writeback_invalidate() 880 pr_debug("fuse: filemap_fdatawrite_range() failed. err=%d start_pos=0x%llx, end_pos=0x%llx\n", in dmap_writeback_invalidate() 881 ret, start_pos, end_pos); in dmap_writeback_invalidate() 887 end_pos >> PAGE_SHIFT); in dmap_writeback_invalidate()
|
/kernel/linux/linux-5.10/fs/ubifs/ |
H A D | file.c | 535 loff_t end_pos = pos + len; in ubifs_write_end() local 536 int appending = !!(end_pos > inode->i_size); in ubifs_write_end() 574 i_size_write(inode, end_pos); in ubifs_write_end() 575 ui->ui_size = end_pos; in ubifs_write_end()
|
/kernel/linux/linux-6.6/fs/fuse/ |
H A D | dax.c | 870 loff_t end_pos = (start_pos + FUSE_DAX_SZ - 1); in dmap_writeback_invalidate() local 872 ret = filemap_fdatawrite_range(inode->i_mapping, start_pos, end_pos); in dmap_writeback_invalidate() 874 pr_debug("fuse: filemap_fdatawrite_range() failed. err=%d start_pos=0x%llx, end_pos=0x%llx\n", in dmap_writeback_invalidate() 875 ret, start_pos, end_pos); in dmap_writeback_invalidate() 881 end_pos >> PAGE_SHIFT); in dmap_writeback_invalidate()
|
/kernel/linux/linux-6.6/fs/ubifs/ |
H A D | file.c | 534 loff_t end_pos = pos + len; in ubifs_write_end() local 535 int appending = !!(end_pos > inode->i_size); in ubifs_write_end() 573 i_size_write(inode, end_pos); in ubifs_write_end() 574 ui->ui_size = end_pos; in ubifs_write_end()
|
/kernel/linux/linux-5.10/fs/nfs/ |
H A D | pnfs.c | 3150 loff_t end_pos) in pnfs_set_layoutcommit() 3157 nfsi->layout->plh_lwb = end_pos; in pnfs_set_layoutcommit() 3161 } else if (end_pos > nfsi->layout->plh_lwb) in pnfs_set_layoutcommit() 3162 nfsi->layout->plh_lwb = end_pos; in pnfs_set_layoutcommit() 3168 dprintk("%s: lseg %p end_pos %llu\n", in pnfs_set_layoutcommit() 3201 loff_t end_pos; in pnfs_layoutcommit_inode() local 3235 end_pos = nfsi->layout->plh_lwb; in pnfs_layoutcommit_inode() 3245 if (end_pos != 0) in pnfs_layoutcommit_inode() 3246 data->args.lastbytewritten = end_pos - 1; in pnfs_layoutcommit_inode() 3257 if (end_pos > nfs in pnfs_layoutcommit_inode() 3149 pnfs_set_layoutcommit(struct inode *inode, struct pnfs_layout_segment *lseg, loff_t end_pos) pnfs_set_layoutcommit() argument [all...] |
/kernel/linux/linux-6.6/fs/nfs/ |
H A D | pnfs.c | 3148 loff_t end_pos) in pnfs_set_layoutcommit() 3155 nfsi->layout->plh_lwb = end_pos; in pnfs_set_layoutcommit() 3159 } else if (end_pos > nfsi->layout->plh_lwb) in pnfs_set_layoutcommit() 3160 nfsi->layout->plh_lwb = end_pos; in pnfs_set_layoutcommit() 3166 dprintk("%s: lseg %p end_pos %llu\n", in pnfs_set_layoutcommit() 3199 loff_t end_pos; in pnfs_layoutcommit_inode() local 3233 end_pos = nfsi->layout->plh_lwb; in pnfs_layoutcommit_inode() 3243 if (end_pos != 0) in pnfs_layoutcommit_inode() 3244 data->args.lastbytewritten = end_pos - 1; in pnfs_layoutcommit_inode() 3255 if (end_pos > nfs in pnfs_layoutcommit_inode() 3147 pnfs_set_layoutcommit(struct inode *inode, struct pnfs_layout_segment *lseg, loff_t end_pos) pnfs_set_layoutcommit() argument [all...] |
/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | file.c | 473 u64 end_pos = pos + write_bytes; in btrfs_dirty_pages() local 508 if (end_pos > isize) in btrfs_dirty_pages() 509 i_size_write(&inode->vfs_inode, end_pos); in btrfs_dirty_pages() 1865 u64 end_pos; in btrfs_file_write_iter() local 1947 end_pos = round_up(pos + count, in btrfs_file_write_iter() 1949 err = btrfs_cont_expand(inode, oldsize, end_pos); in btrfs_file_write_iter()
|
/kernel/linux/linux-5.10/include/trace/events/ |
H A D | f2fs.h | 859 TP_PROTO(struct inode *dir, loff_t start_pos, loff_t end_pos, int err), 861 TP_ARGS(dir, start_pos, end_pos, err), 875 __entry->end = end_pos; 879 TP_printk("dev = (%d,%d), ino = %lu, start_pos:%llu, end_pos:%llu, err:%d",
|
/kernel/linux/linux-6.6/fs/btrfs/ |
H A D | file.c | 137 u64 end_pos = pos + write_bytes; in btrfs_dirty_pages() local 180 if (end_pos > isize) in btrfs_dirty_pages() 181 i_size_write(&inode->vfs_inode, end_pos); in btrfs_dirty_pages() 1165 loff_t end_pos = round_up(pos + count, fs_info->sectorsize); in btrfs_write_check() local 1167 ret = btrfs_cont_expand(BTRFS_I(inode), oldsize, end_pos); in btrfs_write_check()
|
/kernel/linux/linux-6.6/include/trace/events/ |
H A D | f2fs.h | 871 TP_PROTO(struct inode *dir, loff_t start_pos, loff_t end_pos, int err), 873 TP_ARGS(dir, start_pos, end_pos, err), 887 __entry->end = end_pos; 891 TP_printk("dev = (%d,%d), ino = %lu, start_pos:%llu, end_pos:%llu, err:%d",
|
/kernel/linux/linux-6.6/fs/f2fs/ |
H A D | file.c | 4657 loff_t start_pos, loff_t end_pos) in f2fs_flush_buffered_write() 4661 ret = filemap_write_and_wait_range(mapping, start_pos, end_pos); in f2fs_flush_buffered_write() 4666 end_pos >> PAGE_SHIFT); in f2fs_flush_buffered_write() 4656 f2fs_flush_buffered_write(struct address_space *mapping, loff_t start_pos, loff_t end_pos) f2fs_flush_buffered_write() argument
|
/kernel/linux/linux-6.6/scripts/ |
H A D | checkpatch.pl | 3519 my $end_pos = $+[2]; 3532 $end_char = substr($rawline, $end_pos, 1) if ($end_pos < length($rawline));
|