/linux/net/sunrpc/ |
A D | xdr.c | 1718 unsigned int this_len; in __read_bytes_from_xdr_buf() local 1721 memcpy(obj, subbuf->head[0].iov_base, this_len); in __read_bytes_from_xdr_buf() 1722 len -= this_len; in __read_bytes_from_xdr_buf() 1723 obj += this_len; in __read_bytes_from_xdr_buf() 1726 len -= this_len; in __read_bytes_from_xdr_buf() 1727 obj += this_len; in __read_bytes_from_xdr_buf() 1750 unsigned int this_len; in __write_bytes_to_xdr_buf() local 1754 len -= this_len; in __write_bytes_to_xdr_buf() 1755 obj += this_len; in __write_bytes_to_xdr_buf() 1758 len -= this_len; in __write_bytes_to_xdr_buf() [all …]
|
/linux/kernel/ |
A D | relay.c | 1155 unsigned int this_len, this_end, private; in subbuf_splice_actor() local 1161 this_len = min_t(unsigned long, len, PAGE_SIZE - poff); in subbuf_splice_actor() 1162 private = this_len; in subbuf_splice_actor() 1167 this_end = cur_pos + this_len; in subbuf_splice_actor() 1169 this_len = nonpad_end - cur_pos; in subbuf_splice_actor() 1170 private = this_len + padding; in subbuf_splice_actor() 1172 spd.partial[spd.nr_pages].len = this_len; in subbuf_splice_actor() 1175 len -= this_len; in subbuf_splice_actor() 1176 total_len += this_len; in subbuf_splice_actor()
|
A D | ptrace.c | 610 int this_len, retval; in ptrace_readdata() local 612 this_len = (len > sizeof(buf)) ? sizeof(buf) : len; in ptrace_readdata() 613 retval = ptrace_access_vm(tsk, src, buf, this_len, FOLL_FORCE); in ptrace_readdata() 636 int this_len, retval; in ptrace_writedata() local 638 this_len = (len > sizeof(buf)) ? sizeof(buf) : len; in ptrace_writedata() 639 if (copy_from_user(buf, src, this_len)) in ptrace_writedata() 641 retval = ptrace_access_vm(tsk, dst, buf, this_len, in ptrace_writedata()
|
/linux/fs/btrfs/ |
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()
|
A D | dir-item.c | 406 u32 this_len; in btrfs_match_dir_item_name() local 414 this_len = sizeof(*dir_item) + in btrfs_match_dir_item_name() 423 cur += this_len; in btrfs_match_dir_item_name() 425 this_len); in btrfs_match_dir_item_name()
|
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()
|
A D | tree-log.c | 2430 u32 this_len = sizeof(*di) + name_len + data_len; in replay_xattr_deletes() local 2468 cur += this_len; in replay_xattr_deletes() 2469 di = (struct btrfs_dir_item *)((char *)di + this_len); in replay_xattr_deletes() 5182 u32 this_len; in btrfs_check_ref_name_override() local 5193 this_len = sizeof(*iref) + this_name_len; in btrfs_check_ref_name_override() 5202 this_len = sizeof(*extref) + this_name_len; in btrfs_check_ref_name_override() 5243 cur_offset += this_len; in btrfs_check_ref_name_override()
|
/linux/drivers/crypto/ |
A D | n2_core.c | 243 if (this_len >= 64 || 794 int this_len = nbytes; in skcipher_descriptor_len() local 796 this_len -= (nbytes & (block_size - 1)); in skcipher_descriptor_len() 797 return this_len > (1 << 16) ? (1 << 16) : this_len; in skcipher_descriptor_len() 878 int this_len; in n2_compute_chunks() local 885 this_len = skcipher_descriptor_len(nbytes, walk->blocksize); in n2_compute_chunks() 892 tot_len + this_len > (1 << 16)) { in n2_compute_chunks() 909 chunk->arr[chunk->arr_len].src_len = this_len; in n2_compute_chunks() 912 dest_prev = dest_paddr + this_len; in n2_compute_chunks() 914 tot_len += this_len; in n2_compute_chunks() [all …]
|
/linux/drivers/scsi/arm/ |
A D | acornscsi.c | 894 unsigned int this_len; in acornscsi_data_read() local 897 this_len = (1 << 12) - offset; in acornscsi_data_read() 899 this_len = len; in acornscsi_data_read() 903 offset += this_len; in acornscsi_data_read() 904 ptr += this_len; in acornscsi_data_read() 905 len -= this_len; in acornscsi_data_read() 939 unsigned int this_len; in acornscsi_data_write() local 944 this_len = len; in acornscsi_data_write() 948 offset += this_len; in acornscsi_data_write() 949 ptr += this_len; in acornscsi_data_write() [all …]
|
/linux/net/sunrpc/auth_gss/ |
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()
|
/linux/fs/fuse/ |
A D | virtio_fs.c | 1029 unsigned int this_len; in sg_count_fuse_pages() local 1032 this_len = min(page_descs[i].length, total_len); in sg_count_fuse_pages() 1033 total_len -= this_len; in sg_count_fuse_pages() 1080 unsigned int this_len; in sg_init_fuse_pages() local 1084 this_len = min(page_descs[i].length, total_len); in sg_init_fuse_pages() 1085 sg_set_page(&sg[i], pages[i], this_len, page_descs[i].offset); in sg_init_fuse_pages() 1086 total_len -= this_len; in sg_init_fuse_pages()
|
/linux/arch/sparc/kernel/ |
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 -= actual_len; in ldc_copy()
|
/linux/fs/ |
A D | splice.c | 667 size_t this_len = buf->len; in iter_file_splice_write() local 670 if (!this_len) in iter_file_splice_write() 672 this_len = min(this_len, left); in iter_file_splice_write() 682 array[n].bv_len = this_len; in iter_file_splice_write() 684 left -= this_len; in iter_file_splice_write()
|
/linux/fs/proc/ |
A D | base.c | 861 size_t this_len = min_t(size_t, count, PAGE_SIZE); in mem_rw() local 868 this_len = access_remote_vm(mm, addr, page, this_len, flags); in mem_rw() 869 if (!this_len) { in mem_rw() 875 if (!write && copy_to_user(buf, page, this_len)) { in mem_rw() 880 buf += this_len; in mem_rw() 881 addr += this_len; in mem_rw() 882 copied += this_len; in mem_rw() 883 count -= this_len; in mem_rw() 969 size_t this_len, max_len; in environ_read() local 975 this_len = env_end - (env_start + src); in environ_read() [all …]
|
/linux/fs/overlayfs/ |
A D | copy_up.c | 224 size_t this_len = OVL_COPY_UP_CHUNK_SIZE; in ovl_copy_up_data() local 227 if (len < this_len) in ovl_copy_up_data() 228 this_len = len; in ovl_copy_up_data() 267 this_len, SPLICE_F_MOVE); in ovl_copy_up_data()
|
/linux/drivers/net/phy/ |
A D | sfp.c | 358 size_t this_len; in sfp_i2c_read() local 371 this_len = len; in sfp_i2c_read() 372 if (this_len > block_size) in sfp_i2c_read() 373 this_len = block_size; in sfp_i2c_read() 375 msgs[1].len = this_len; in sfp_i2c_read() 384 msgs[1].buf += this_len; in sfp_i2c_read() 385 dev_addr += this_len; in sfp_i2c_read() 386 len -= this_len; in sfp_i2c_read()
|
/linux/drivers/usb/mon/ |
A D | mon_bin.c | 409 unsigned int this_len; in mon_bin_get_data() local 431 this_len = min_t(unsigned int, sg->length, length); in mon_bin_get_data() 433 this_len); in mon_bin_get_data() 434 length -= this_len; in mon_bin_get_data()
|
/linux/crypto/ |
A D | testmgr.c | 922 unsigned int this_len; in generate_random_sgl_divisions() local 926 this_len = remaining; in generate_random_sgl_divisions() 928 this_len = 1 + (prandom_u32() % remaining); in generate_random_sgl_divisions() 929 div->proportion_of_total = this_len; in generate_random_sgl_divisions() 977 this_len / 100, this_len % 100, in generate_random_sgl_divisions() 980 div->offset, this_len == remaining ? "" : ", "); in generate_random_sgl_divisions() 981 remaining -= this_len; in generate_random_sgl_divisions()
|
/linux/drivers/md/ |
A D | dm-integrity.c | 1829 unsigned this_len; in integrity_metadata() local 1833 this_len = min(biv.bv_len, data_to_process); in integrity_metadata() 1835 this_len, dio->op == REQ_OP_READ ? TAG_READ : TAG_WRITE); in integrity_metadata() 1838 data_to_process -= this_len; in integrity_metadata()
|
/linux/drivers/net/ethernet/sun/ |
A D | niu.c | 6678 unsigned int this_len = len; in niu_start_xmit() local 6680 if (this_len > MAX_TX_DESC_LEN) in niu_start_xmit() 6681 this_len = MAX_TX_DESC_LEN; in niu_start_xmit() 6683 niu_set_txd(rp, prod, mapping, this_len, mrk, nfg); in niu_start_xmit() 6687 mapping += this_len; in niu_start_xmit() 6688 len -= this_len; in niu_start_xmit()
|