/Linux-v5.4/net/sunrpc/ |
D | xdr.c | 1156 unsigned int this_len; in __read_bytes_from_xdr_buf() local 1158 this_len = min_t(unsigned int, len, subbuf->head[0].iov_len); in __read_bytes_from_xdr_buf() 1159 memcpy(obj, subbuf->head[0].iov_base, this_len); in __read_bytes_from_xdr_buf() 1160 len -= this_len; in __read_bytes_from_xdr_buf() 1161 obj += this_len; in __read_bytes_from_xdr_buf() 1162 this_len = min_t(unsigned int, len, subbuf->page_len); in __read_bytes_from_xdr_buf() 1163 if (this_len) in __read_bytes_from_xdr_buf() 1164 _copy_from_pages(obj, subbuf->pages, subbuf->page_base, this_len); in __read_bytes_from_xdr_buf() 1165 len -= this_len; in __read_bytes_from_xdr_buf() 1166 obj += this_len; in __read_bytes_from_xdr_buf() [all …]
|
/Linux-v5.4/fs/btrfs/ |
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()
|
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()
|
D | xattr.c | 318 u32 this_len = sizeof(*di) + name_len + data_len; in btrfs_listxattr() local 340 cur += this_len; in btrfs_listxattr() 341 di = (struct btrfs_dir_item *)((char *)di + this_len); in btrfs_listxattr()
|
D | tree-log.c | 2361 u32 this_len = sizeof(*di) + name_len + data_len; in replay_xattr_deletes() local 2399 cur += this_len; in replay_xattr_deletes() 2400 di = (struct btrfs_dir_item *)((char *)di + this_len); in replay_xattr_deletes() 4874 u32 this_len; in btrfs_check_ref_name_override() local 4885 this_len = sizeof(*iref) + this_name_len; in btrfs_check_ref_name_override() 4894 this_len = sizeof(*extref) + this_name_len; in btrfs_check_ref_name_override() 4935 cur_offset += this_len; in btrfs_check_ref_name_override()
|
/Linux-v5.4/kernel/ |
D | relay.c | 1238 unsigned int this_len, this_end, private; in subbuf_splice_actor() local 1244 this_len = min_t(unsigned long, len, PAGE_SIZE - poff); in subbuf_splice_actor() 1245 private = this_len; in subbuf_splice_actor() 1250 this_end = cur_pos + this_len; in subbuf_splice_actor() 1252 this_len = nonpad_end - cur_pos; in subbuf_splice_actor() 1253 private = this_len + padding; in subbuf_splice_actor() 1255 spd.partial[spd.nr_pages].len = this_len; in subbuf_splice_actor() 1258 len -= this_len; in subbuf_splice_actor() 1259 total_len += this_len; in subbuf_splice_actor()
|
D | ptrace.c | 594 int this_len, retval; in ptrace_readdata() local 596 this_len = (len > sizeof(buf)) ? sizeof(buf) : len; in ptrace_readdata() 597 retval = ptrace_access_vm(tsk, src, buf, this_len, FOLL_FORCE); in ptrace_readdata() 620 int this_len, retval; in ptrace_writedata() local 622 this_len = (len > sizeof(buf)) ? sizeof(buf) : len; in ptrace_writedata() 623 if (copy_from_user(buf, src, this_len)) in ptrace_writedata() 625 retval = ptrace_access_vm(tsk, dst, buf, this_len, in ptrace_writedata()
|
/Linux-v5.4/net/sunrpc/auth_gss/ |
D | gss_krb5_wrap.c | 403 unsigned int this_len, i; in rotate_buf_a_little() local 409 this_len = min(LOCAL_BUF_LEN, buf->len - (i + shift)); in rotate_buf_a_little() 410 read_bytes_from_xdr_buf(buf, i+shift, tmp, this_len); in rotate_buf_a_little() 411 write_bytes_to_xdr_buf(buf, i, tmp, this_len); in rotate_buf_a_little()
|
/Linux-v5.4/drivers/crypto/ |
D | n2_core.c | 239 static inline bool n2_should_run_async(struct spu_queue *qp, int this_len) 241 if (this_len >= 64 || 827 int this_len = nbytes; in cipher_descriptor_len() local 829 this_len -= (nbytes & (block_size - 1)); in cipher_descriptor_len() 830 return this_len > (1 << 16) ? (1 << 16) : this_len; in cipher_descriptor_len() 911 int this_len; in n2_compute_chunks() local 918 this_len = cipher_descriptor_len(nbytes, walk->blocksize); in n2_compute_chunks() 925 tot_len + this_len > (1 << 16)) { in n2_compute_chunks() 942 chunk->arr[chunk->arr_len].src_len = this_len; in n2_compute_chunks() 945 dest_prev = dest_paddr + this_len; in n2_compute_chunks() [all …]
|
/Linux-v5.4/drivers/scsi/arm/ |
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 = len; in acornscsi_data_write() [all …]
|
/Linux-v5.4/fs/ |
D | splice.c | 407 size_t this_len = min_t(size_t, len, PAGE_SIZE - offset); in default_file_splice_read() local 409 vec[i].iov_len = this_len; in default_file_splice_read() 410 len -= this_len; in default_file_splice_read() 724 size_t this_len = buf->len; in iter_file_splice_write() local 726 if (this_len > left) in iter_file_splice_write() 727 this_len = left; in iter_file_splice_write() 740 array[n].bv_len = this_len; in iter_file_splice_write() 742 left -= this_len; in iter_file_splice_write()
|
/Linux-v5.4/drivers/net/phy/ |
D | sfp.c | 287 size_t this_len; in sfp_i2c_read() local 300 this_len = len; in sfp_i2c_read() 301 if (this_len > 16) in sfp_i2c_read() 302 this_len = 16; in sfp_i2c_read() 304 msgs[1].len = this_len; in sfp_i2c_read() 313 msgs[1].buf += this_len; in sfp_i2c_read() 314 dev_addr += this_len; in sfp_i2c_read() 315 len -= this_len; in sfp_i2c_read()
|
/Linux-v5.4/arch/sparc/kernel/ |
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-v5.4/fs/proc/ |
D | base.c | 839 int this_len = min_t(int, count, PAGE_SIZE); in mem_rw() local 841 if (write && copy_from_user(page, buf, this_len)) { in mem_rw() 846 this_len = access_remote_vm(mm, addr, page, this_len, flags); in mem_rw() 847 if (!this_len) { in mem_rw() 853 if (!write && copy_to_user(buf, page, this_len)) { in mem_rw() 858 buf += this_len; in mem_rw() 859 addr += this_len; in mem_rw() 860 copied += this_len; in mem_rw() 861 count -= this_len; in mem_rw() 947 size_t this_len, max_len; in environ_read() local [all …]
|
/Linux-v5.4/fs/overlayfs/ |
D | copy_up.c | 149 size_t this_len = OVL_COPY_UP_CHUNK_SIZE; in ovl_copy_up_data() local 152 if (len < this_len) in ovl_copy_up_data() 153 this_len = len; in ovl_copy_up_data() 162 this_len, SPLICE_F_MOVE); in ovl_copy_up_data()
|
/Linux-v5.4/drivers/usb/mon/ |
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-v5.4/fs/fuse/ |
D | virtio_fs.c | 833 unsigned int this_len; in sg_init_fuse_pages() local 837 this_len = min(page_descs[i].length, total_len); in sg_init_fuse_pages() 838 sg_set_page(&sg[i], pages[i], this_len, page_descs[i].offset); in sg_init_fuse_pages() 839 total_len -= this_len; in sg_init_fuse_pages()
|
/Linux-v5.4/crypto/ |
D | testmgr.c | 837 unsigned int this_len; in generate_random_sgl_divisions() local 841 this_len = remaining; in generate_random_sgl_divisions() 843 this_len = 1 + (prandom_u32() % remaining); in generate_random_sgl_divisions() 844 div->proportion_of_total = this_len; in generate_random_sgl_divisions() 892 this_len / 100, this_len % 100, in generate_random_sgl_divisions() 895 div->offset, this_len == remaining ? "" : ", "); in generate_random_sgl_divisions() 896 remaining -= this_len; in generate_random_sgl_divisions()
|
/Linux-v5.4/drivers/md/ |
D | dm-integrity.c | 1595 unsigned this_len; in integrity_metadata() local 1599 this_len = min(biv.bv_len, data_to_process); in integrity_metadata() 1601 this_len, !dio->write ? TAG_READ : TAG_WRITE); in integrity_metadata() 1604 data_to_process -= this_len; in integrity_metadata()
|
/Linux-v5.4/drivers/net/ethernet/sun/ |
D | niu.c | 6680 unsigned int this_len = len; in niu_start_xmit() local 6682 if (this_len > MAX_TX_DESC_LEN) in niu_start_xmit() 6683 this_len = MAX_TX_DESC_LEN; in niu_start_xmit() 6685 niu_set_txd(rp, prod, mapping, this_len, mrk, nfg); in niu_start_xmit() 6689 mapping += this_len; in niu_start_xmit() 6690 len -= this_len; in niu_start_xmit()
|