/kernel/linux/linux-6.6/net/sunrpc/auth_gss/ |
H A D | gss_krb5_wrap.c | 59 unsigned int this_len, i; in rotate_buf_a_little() local 65 this_len = min(LOCAL_BUF_LEN, buf->len - (i + shift)); in rotate_buf_a_little() 66 read_bytes_from_xdr_buf(buf, i+shift, tmp, this_len); in rotate_buf_a_little() 67 write_bytes_to_xdr_buf(buf, i, tmp, this_len); in rotate_buf_a_little()
|
/kernel/linux/linux-5.10/net/sunrpc/ |
H A D | xdr.c | 1478 unsigned int this_len; in __read_bytes_from_xdr_buf() local 1480 this_len = min_t(unsigned int, len, subbuf->head[0].iov_len); in __read_bytes_from_xdr_buf() 1481 memcpy(obj, subbuf->head[0].iov_base, this_len); in __read_bytes_from_xdr_buf() 1482 len -= this_len; in __read_bytes_from_xdr_buf() 1483 obj += this_len; in __read_bytes_from_xdr_buf() 1484 this_len = min_t(unsigned int, len, subbuf->page_len); in __read_bytes_from_xdr_buf() 1485 if (this_len) in __read_bytes_from_xdr_buf() 1486 _copy_from_pages(obj, subbuf->pages, subbuf->page_base, this_len); in __read_bytes_from_xdr_buf() 1487 len -= this_len; in __read_bytes_from_xdr_buf() 1488 obj += this_len; in __read_bytes_from_xdr_buf() 1509 unsigned int this_len; __write_bytes_to_xdr_buf() local [all...] |
/kernel/linux/linux-6.6/net/sunrpc/ |
H A D | xdr.c | 1879 unsigned int this_len; in __read_bytes_from_xdr_buf() local 1881 this_len = min_t(unsigned int, len, subbuf->head[0].iov_len); in __read_bytes_from_xdr_buf() 1882 memcpy(obj, subbuf->head[0].iov_base, this_len); in __read_bytes_from_xdr_buf() 1883 len -= this_len; in __read_bytes_from_xdr_buf() 1884 obj += this_len; in __read_bytes_from_xdr_buf() 1885 this_len = min_t(unsigned int, len, subbuf->page_len); in __read_bytes_from_xdr_buf() 1886 _copy_from_pages(obj, subbuf->pages, subbuf->page_base, this_len); in __read_bytes_from_xdr_buf() 1887 len -= this_len; in __read_bytes_from_xdr_buf() 1888 obj += this_len; in __read_bytes_from_xdr_buf() 1889 this_len in __read_bytes_from_xdr_buf() 1911 unsigned int this_len; __write_bytes_to_xdr_buf() local [all...] |
/kernel/linux/linux-5.10/kernel/ |
H A D | relay.c | 1241 unsigned int this_len, this_end, private; in subbuf_splice_actor() local 1247 this_len = min_t(unsigned long, len, PAGE_SIZE - poff); in subbuf_splice_actor() 1248 private = this_len; in subbuf_splice_actor() 1253 this_end = cur_pos + this_len; in subbuf_splice_actor() 1255 this_len = nonpad_end - cur_pos; in subbuf_splice_actor() 1256 private = this_len + padding; in subbuf_splice_actor() 1258 spd.partial[spd.nr_pages].len = this_len; in subbuf_splice_actor() 1261 len -= this_len; in subbuf_splice_actor() 1262 total_len += this_len; in subbuf_splice_actor()
|
H A D | ptrace.c | 637 int this_len, retval; in ptrace_readdata() local 639 this_len = (len > sizeof(buf)) ? sizeof(buf) : len; in ptrace_readdata() 640 retval = ptrace_access_vm(tsk, src, buf, this_len, FOLL_FORCE); in ptrace_readdata() 663 int this_len, retval; in ptrace_writedata() local 665 this_len = (len > sizeof(buf)) ? sizeof(buf) : len; in ptrace_writedata() 666 if (copy_from_user(buf, src, this_len)) in ptrace_writedata() 668 retval = ptrace_access_vm(tsk, dst, buf, this_len, in ptrace_writedata()
|
/kernel/linux/linux-6.6/kernel/ |
H A D | relay.c | 1153 unsigned int this_len, this_end, private; in subbuf_splice_actor() local 1159 this_len = min_t(unsigned long, len, PAGE_SIZE - poff); in subbuf_splice_actor() 1160 private = this_len; in subbuf_splice_actor() 1165 this_end = cur_pos + this_len; in subbuf_splice_actor() 1167 this_len = nonpad_end - cur_pos; in subbuf_splice_actor() 1168 private = this_len + padding; in subbuf_splice_actor() 1170 spd.partial[spd.nr_pages].len = this_len; in subbuf_splice_actor() 1173 len -= this_len; in subbuf_splice_actor() 1174 total_len += this_len; in subbuf_splice_actor()
|
H A D | ptrace.c | 633 int this_len, retval; in ptrace_readdata() local 635 this_len = (len > sizeof(buf)) ? sizeof(buf) : len; in ptrace_readdata() 636 retval = ptrace_access_vm(tsk, src, buf, this_len, FOLL_FORCE); in ptrace_readdata() 659 int this_len, retval; in ptrace_writedata() local 661 this_len = (len > sizeof(buf)) ? sizeof(buf) : len; in ptrace_writedata() 662 if (copy_from_user(buf, src, this_len)) in ptrace_writedata() 664 retval = ptrace_access_vm(tsk, dst, buf, this_len, in ptrace_writedata()
|
/kernel/linux/linux-5.10/net/sunrpc/auth_gss/ |
H A D | gss_krb5_wrap.c | 374 unsigned int this_len, i; in rotate_buf_a_little() local 380 this_len = min(LOCAL_BUF_LEN, buf->len - (i + shift)); in rotate_buf_a_little() 381 read_bytes_from_xdr_buf(buf, i+shift, tmp, this_len); in rotate_buf_a_little() 382 write_bytes_to_xdr_buf(buf, i, tmp, this_len); in rotate_buf_a_little()
|
/kernel/linux/linux-5.10/fs/btrfs/ |
H A D | dir-item.c | 379 u32 this_len; in btrfs_match_dir_item_name() local 387 this_len = sizeof(*dir_item) + in btrfs_match_dir_item_name() 396 cur += this_len; in btrfs_match_dir_item_name() 398 this_len); in btrfs_match_dir_item_name()
|
H A D | props.c | 133 u32 total_len, cur, this_len; in iterate_object_props() local 169 this_len = sizeof(*di) + name_len + data_len; in iterate_object_props() 208 cur += this_len; in iterate_object_props() 209 di = (struct btrfs_dir_item *)((char *) di + this_len); in iterate_object_props()
|
H A D | xattr.c | 343 u32 this_len = sizeof(*di) + name_len + data_len; in btrfs_listxattr() local 365 cur += this_len; in btrfs_listxattr() 366 di = (struct btrfs_dir_item *)((char *)di + this_len); in btrfs_listxattr()
|
/kernel/linux/linux-6.6/fs/btrfs/ |
H A D | props.c | 163 u32 total_len, cur, this_len; in iterate_object_props() local 199 this_len = sizeof(*di) + name_len + data_len; in iterate_object_props() 238 cur += this_len; in iterate_object_props() 239 di = (struct btrfs_dir_item *)((char *) di + this_len); in iterate_object_props()
|
H A D | dir-item.c | 389 u32 this_len; in btrfs_match_dir_item_name() local 397 this_len = sizeof(*dir_item) + in btrfs_match_dir_item_name() 406 cur += this_len; in btrfs_match_dir_item_name() 408 this_len); in btrfs_match_dir_item_name()
|
H A D | xattr.c | 327 u32 this_len = sizeof(*di) + name_len + data_len; in btrfs_listxattr() local 349 cur += this_len; in btrfs_listxattr() 350 di = (struct btrfs_dir_item *)((char *)di + this_len); in btrfs_listxattr()
|
/kernel/linux/linux-5.10/drivers/crypto/ |
H A D | n2_core.c | 240 static inline bool n2_should_run_async(struct spu_queue *qp, int this_len) 242 if (this_len >= 64 || 793 int this_len = nbytes; in skcipher_descriptor_len() local 795 this_len -= (nbytes & (block_size - 1)); in skcipher_descriptor_len() 796 return this_len > (1 << 16) ? (1 << 16) : this_len; in skcipher_descriptor_len() 877 int this_len; in n2_compute_chunks() local 884 this_len = skcipher_descriptor_len(nbytes, walk->blocksize); in n2_compute_chunks() 891 tot_len + this_len > (1 << 16)) { in n2_compute_chunks() 908 chunk->arr[chunk->arr_len].src_len = this_len; in n2_compute_chunks() [all...] |
/kernel/linux/linux-6.6/drivers/crypto/ |
H A D | n2_core.c | 242 static inline bool n2_should_run_async(struct spu_queue *qp, int this_len) 244 if (this_len >= 64 || 795 int this_len = nbytes; in skcipher_descriptor_len() local 797 this_len -= (nbytes & (block_size - 1)); in skcipher_descriptor_len() 798 return this_len > (1 << 16) ? (1 << 16) : this_len; in skcipher_descriptor_len() 879 int this_len; in n2_compute_chunks() local 886 this_len = skcipher_descriptor_len(nbytes, walk->blocksize); in n2_compute_chunks() 893 tot_len + this_len > (1 << 16)) { in n2_compute_chunks() 910 chunk->arr[chunk->arr_len].src_len = this_len; in n2_compute_chunks() [all...] |
/kernel/linux/linux-5.10/drivers/scsi/arm/ |
H A D | acornscsi.c | 915 unsigned int this_len; in acornscsi_data_read() local 918 this_len = (1 << 12) - offset; in acornscsi_data_read() 920 this_len = len; in acornscsi_data_read() 922 __acornscsi_in(host->base + (offset << 1), ptr, this_len); in acornscsi_data_read() 924 offset += this_len; in acornscsi_data_read() 925 ptr += this_len; in acornscsi_data_read() 926 len -= this_len; in acornscsi_data_read() 960 unsigned int this_len; in acornscsi_data_write() local 963 this_len = (1 << 12) - offset; in acornscsi_data_write() 965 this_len in acornscsi_data_write() [all...] |
/kernel/linux/linux-6.6/drivers/scsi/arm/ |
H A D | acornscsi.c | 898 unsigned int this_len; in acornscsi_data_read() local 901 this_len = (1 << 12) - offset; in acornscsi_data_read() 903 this_len = len; in acornscsi_data_read() 905 __acornscsi_in(host->base + (offset << 1), ptr, this_len); in acornscsi_data_read() 907 offset += this_len; in acornscsi_data_read() 908 ptr += this_len; in acornscsi_data_read() 909 len -= this_len; in acornscsi_data_read() 943 unsigned int this_len; in acornscsi_data_write() local 946 this_len = (1 << 12) - offset; in acornscsi_data_write() 948 this_len in acornscsi_data_write() [all...] |
/kernel/linux/linux-5.10/fs/fuse/ |
H A D | virtio_fs.c | 1034 unsigned int this_len; in sg_count_fuse_pages() local 1037 this_len = min(page_descs[i].length, total_len); in sg_count_fuse_pages() 1038 total_len -= this_len; in sg_count_fuse_pages() 1085 unsigned int this_len; in sg_init_fuse_pages() local 1089 this_len = min(page_descs[i].length, total_len); in sg_init_fuse_pages() 1090 sg_set_page(&sg[i], pages[i], this_len, page_descs[i].offset); in sg_init_fuse_pages() 1091 total_len -= this_len; in sg_init_fuse_pages()
|
/kernel/linux/linux-6.6/fs/fuse/ |
H A D | virtio_fs.c | 1028 unsigned int this_len; in sg_count_fuse_pages() local 1031 this_len = min(page_descs[i].length, total_len); in sg_count_fuse_pages() 1032 total_len -= this_len; in sg_count_fuse_pages() 1079 unsigned int this_len; in sg_init_fuse_pages() local 1083 this_len = min(page_descs[i].length, total_len); in sg_init_fuse_pages() 1084 sg_set_page(&sg[i], pages[i], this_len, page_descs[i].offset); in sg_init_fuse_pages() 1085 total_len -= this_len; in sg_init_fuse_pages()
|
/kernel/linux/linux-5.10/arch/sparc/kernel/ |
H A D | ldc.c | 2295 unsigned long this_len = cookies[i].cookie_size; in ldc_copy() local 2301 if (this_off > this_len) in ldc_copy() 2302 this_off = this_len; in ldc_copy() 2305 this_len -= this_off; in ldc_copy() 2306 if (!this_len) in ldc_copy() 2311 if (this_len > len) in ldc_copy() 2312 this_len = len; in ldc_copy() 2319 this_len, &actual_len); in ldc_copy() 2334 if (actual_len == this_len) in ldc_copy() 2337 this_len in ldc_copy() [all...] |
/kernel/linux/linux-6.6/arch/sparc/kernel/ |
H A D | ldc.c | 2295 unsigned long this_len = cookies[i].cookie_size; in ldc_copy() local 2301 if (this_off > this_len) in ldc_copy() 2302 this_off = this_len; in ldc_copy() 2305 this_len -= this_off; in ldc_copy() 2306 if (!this_len) in ldc_copy() 2311 if (this_len > len) in ldc_copy() 2312 this_len = len; in ldc_copy() 2319 this_len, &actual_len); in ldc_copy() 2334 if (actual_len == this_len) in ldc_copy() 2337 this_len in ldc_copy() [all...] |
/kernel/linux/linux-5.10/fs/proc/ |
H A D | base.c | 867 size_t this_len = min_t(size_t, count, PAGE_SIZE); in mem_rw() local 869 if (write && copy_from_user(page, buf, this_len)) { in mem_rw() 874 this_len = access_remote_vm(mm, addr, page, this_len, flags); in mem_rw() 875 if (!this_len) { in mem_rw() 881 if (!write && copy_to_user(buf, page, this_len)) { in mem_rw() 886 buf += this_len; in mem_rw() 887 addr += this_len; in mem_rw() 888 copied += this_len; in mem_rw() 889 count -= this_len; in mem_rw() 991 size_t this_len, max_len; environ_read() local [all...] |
/kernel/linux/linux-6.6/fs/proc/ |
H A D | base.c | 872 size_t this_len = min_t(size_t, count, PAGE_SIZE); in mem_rw() local 874 if (write && copy_from_user(page, buf, this_len)) { in mem_rw() 879 this_len = access_remote_vm(mm, addr, page, this_len, flags); in mem_rw() 880 if (!this_len) { in mem_rw() 886 if (!write && copy_to_user(buf, page, this_len)) { in mem_rw() 891 buf += this_len; in mem_rw() 892 addr += this_len; in mem_rw() 893 copied += this_len; in mem_rw() 894 count -= this_len; in mem_rw() 980 size_t this_len, max_len; environ_read() local [all...] |
/kernel/linux/linux-5.10/fs/overlayfs/ |
H A D | copy_up.c | 171 size_t this_len = OVL_COPY_UP_CHUNK_SIZE; in ovl_copy_up_data() local 174 if (len < this_len) in ovl_copy_up_data() 175 this_len = len; in ovl_copy_up_data() 214 this_len, SPLICE_F_MOVE); in ovl_copy_up_data()
|