/linux-4.1.27/drivers/mtd/maps/ |
D | gpio-addr-flash.c | 109 int this_len; in gf_copy_from() local 113 this_len = state->win_size - (from % state->win_size); in gf_copy_from() 115 this_len = len; in gf_copy_from() 119 this_len); in gf_copy_from() 120 len -= this_len; in gf_copy_from() 121 from += this_len; in gf_copy_from() 122 to += this_len; in gf_copy_from() 156 int this_len; in gf_copy_to() local 160 this_len = state->win_size - (to % state->win_size); in gf_copy_to() 162 this_len = len; in gf_copy_to() [all …]
|
/linux-4.1.27/net/sunrpc/ |
D | xdr.c | 1110 unsigned int this_len; in __read_bytes_from_xdr_buf() local 1112 this_len = min_t(unsigned int, len, subbuf->head[0].iov_len); in __read_bytes_from_xdr_buf() 1113 memcpy(obj, subbuf->head[0].iov_base, this_len); in __read_bytes_from_xdr_buf() 1114 len -= this_len; in __read_bytes_from_xdr_buf() 1115 obj += this_len; in __read_bytes_from_xdr_buf() 1116 this_len = min_t(unsigned int, len, subbuf->page_len); in __read_bytes_from_xdr_buf() 1117 if (this_len) in __read_bytes_from_xdr_buf() 1118 _copy_from_pages(obj, subbuf->pages, subbuf->page_base, this_len); in __read_bytes_from_xdr_buf() 1119 len -= this_len; in __read_bytes_from_xdr_buf() 1120 obj += this_len; in __read_bytes_from_xdr_buf() [all …]
|
/linux-4.1.27/fs/ |
D | splice.c | 391 unsigned int this_len; in __generic_file_splice_read() local 399 this_len = min_t(unsigned long, len, PAGE_CACHE_SIZE - loff); in __generic_file_splice_read() 481 this_len = min(this_len, plen - loff); in __generic_file_splice_read() 482 len = this_len; in __generic_file_splice_read() 486 spd.partial[page_nr].len = this_len; in __generic_file_splice_read() 487 len -= this_len; in __generic_file_splice_read() 617 size_t this_len; in default_file_splice_read() local 651 this_len = min_t(size_t, len, PAGE_CACHE_SIZE - offset); in default_file_splice_read() 653 vec[i].iov_len = this_len; in default_file_splice_read() 656 len -= this_len; in default_file_splice_read() [all …]
|
/linux-4.1.27/fs/overlayfs/ |
D | copy_up.c | 107 size_t this_len = OVL_COPY_UP_CHUNK_SIZE; in ovl_copy_up_data() local 110 if (len < this_len) in ovl_copy_up_data() 111 this_len = len; in ovl_copy_up_data() 120 this_len, SPLICE_F_MOVE); in ovl_copy_up_data()
|
/linux-4.1.27/fs/btrfs/ |
D | props.c | 178 u32 total_len, cur, this_len; in iterate_object_props() local 214 this_len = sizeof(*di) + name_len + data_len; in iterate_object_props() 253 cur += this_len; in iterate_object_props() 254 di = (struct btrfs_dir_item *)((char *) di + this_len); in iterate_object_props()
|
D | dir-item.c | 390 u32 this_len; in btrfs_match_dir_item_name() local 400 this_len = sizeof(*dir_item) + in btrfs_match_dir_item_name() 409 cur += this_len; in btrfs_match_dir_item_name() 411 this_len); in btrfs_match_dir_item_name()
|
D | tree-log.c | 2006 u32 this_len = sizeof(*di) + name_len + data_len; in replay_xattr_deletes() local 2044 cur += this_len; in replay_xattr_deletes() 2045 di = (struct btrfs_dir_item *)((char *)di + this_len); in replay_xattr_deletes() 4371 u32 this_len; in btrfs_check_ref_name_override() local 4382 this_len = sizeof(*iref) + this_name_len; in btrfs_check_ref_name_override() 4391 this_len = sizeof(*extref) + this_name_len; in btrfs_check_ref_name_override() 4419 cur_offset += this_len; in btrfs_check_ref_name_override()
|
/linux-4.1.27/kernel/ |
D | relay.c | 1257 unsigned int this_len, this_end, private; in subbuf_splice_actor() local 1263 this_len = min_t(unsigned long, len, PAGE_SIZE - poff); in subbuf_splice_actor() 1264 private = this_len; in subbuf_splice_actor() 1269 this_end = cur_pos + this_len; in subbuf_splice_actor() 1271 this_len = nonpad_end - cur_pos; in subbuf_splice_actor() 1272 private = this_len + padding; in subbuf_splice_actor() 1274 spd.partial[spd.nr_pages].len = this_len; in subbuf_splice_actor() 1277 len -= this_len; in subbuf_splice_actor() 1278 total_len += this_len; in subbuf_splice_actor()
|
D | ptrace.c | 531 int this_len, retval; in ptrace_readdata() local 533 this_len = (len > sizeof(buf)) ? sizeof(buf) : len; in ptrace_readdata() 534 retval = access_process_vm(tsk, src, buf, this_len, 0); in ptrace_readdata() 556 int this_len, retval; in ptrace_writedata() local 558 this_len = (len > sizeof(buf)) ? sizeof(buf) : len; in ptrace_writedata() 559 if (copy_from_user(buf, src, this_len)) in ptrace_writedata() 561 retval = access_process_vm(tsk, dst, buf, this_len, 1); in ptrace_writedata()
|
/linux-4.1.27/net/sunrpc/auth_gss/ |
D | gss_krb5_wrap.c | 405 unsigned int this_len, i; in rotate_buf_a_little() local 411 this_len = min(LOCAL_BUF_LEN, buf->len - (i + shift)); in rotate_buf_a_little() 412 read_bytes_from_xdr_buf(buf, i+shift, tmp, this_len); in rotate_buf_a_little() 413 write_bytes_to_xdr_buf(buf, i, tmp, this_len); in rotate_buf_a_little()
|
/linux-4.1.27/drivers/crypto/ |
D | n2_core.c | 233 static inline bool n2_should_run_async(struct spu_queue *qp, int this_len) 235 if (this_len >= 64 || 820 int this_len = nbytes; in cipher_descriptor_len() local 822 this_len -= (nbytes & (block_size - 1)); in cipher_descriptor_len() 823 return this_len > (1 << 16) ? (1 << 16) : this_len; in cipher_descriptor_len() 904 int this_len; in n2_compute_chunks() local 911 this_len = cipher_descriptor_len(nbytes, walk->blocksize); in n2_compute_chunks() 918 tot_len + this_len > (1 << 16)) { in n2_compute_chunks() 935 chunk->arr[chunk->arr_len].src_len = this_len; in n2_compute_chunks() 938 dest_prev = dest_paddr + this_len; in n2_compute_chunks() [all …]
|
/linux-4.1.27/drivers/scsi/arm/ |
D | acornscsi.c | 917 unsigned int this_len; in acornscsi_data_read() local 920 this_len = (1 << 12) - offset; in acornscsi_data_read() 922 this_len = len; in acornscsi_data_read() 924 __acornscsi_in(host->base + (offset << 1), ptr, this_len); in acornscsi_data_read() 926 offset += this_len; in acornscsi_data_read() 927 ptr += this_len; in acornscsi_data_read() 928 len -= this_len; in acornscsi_data_read() 962 unsigned int this_len; in acornscsi_data_write() local 965 this_len = (1 << 12) - offset; in acornscsi_data_write() 967 this_len = len; in acornscsi_data_write() [all …]
|
/linux-4.1.27/fs/proc/ |
D | base.c | 673 int this_len = min_t(int, count, PAGE_SIZE); in mem_rw() local 675 if (write && copy_from_user(page, buf, this_len)) { in mem_rw() 680 this_len = access_remote_vm(mm, addr, page, this_len, write); in mem_rw() 681 if (!this_len) { in mem_rw() 687 if (!write && copy_to_user(buf, page, this_len)) { in mem_rw() 692 buf += this_len; in mem_rw() 693 addr += this_len; in mem_rw() 694 copied += this_len; in mem_rw() 695 count -= this_len; in mem_rw() 773 size_t this_len, max_len; in environ_read() local [all …]
|
/linux-4.1.27/arch/sparc/kernel/ |
D | ldc.c | 2225 unsigned long this_len = cookies[i].cookie_size; in ldc_copy() local 2231 if (this_off > this_len) in ldc_copy() 2232 this_off = this_len; in ldc_copy() 2235 this_len -= this_off; in ldc_copy() 2236 if (!this_len) in ldc_copy() 2241 if (this_len > len) in ldc_copy() 2242 this_len = len; in ldc_copy() 2249 this_len, &actual_len); in ldc_copy() 2264 if (actual_len == this_len) in ldc_copy() 2267 this_len -= actual_len; in ldc_copy()
|
/linux-4.1.27/fs/ceph/ |
D | file.c | 355 u64 pos, this_len, left; in striped_read() local 378 this_len = left; in striped_read() 380 &ci->i_layout, pos, &this_len, in striped_read() 386 hit_stripe = this_len < left; in striped_read() 387 was_short = ret >= 0 && ret < this_len; in striped_read() 394 int zlen = min(this_len - ret, in striped_read()
|
/linux-4.1.27/drivers/usb/mon/ |
D | mon_bin.c | 406 unsigned int this_len; in mon_bin_get_data() local 428 this_len = min_t(unsigned int, sg->length, length); in mon_bin_get_data() 430 this_len); in mon_bin_get_data() 431 length -= this_len; in mon_bin_get_data()
|
/linux-4.1.27/mm/ |
D | shmem.c | 1683 unsigned int this_len; in shmem_file_splice_read() local 1688 this_len = min_t(unsigned long, len, PAGE_CACHE_SIZE - loff); in shmem_file_splice_read() 1713 this_len = min(this_len, plen - loff); in shmem_file_splice_read() 1714 len = this_len; in shmem_file_splice_read() 1718 spd.partial[page_nr].len = this_len; in shmem_file_splice_read() 1719 len -= this_len; in shmem_file_splice_read()
|
/linux-4.1.27/drivers/net/ethernet/sun/ |
D | niu.c | 6704 unsigned int this_len = len; in niu_start_xmit() local 6706 if (this_len > MAX_TX_DESC_LEN) in niu_start_xmit() 6707 this_len = MAX_TX_DESC_LEN; in niu_start_xmit() 6709 niu_set_txd(rp, prod, mapping, this_len, mrk, nfg); in niu_start_xmit() 6713 mapping += this_len; in niu_start_xmit() 6714 len -= this_len; in niu_start_xmit()
|