Home
last modified time | relevance | path

Searched refs:this_len (Results 1 – 20 of 20) sorted by relevance

/kernel/linux/linux-5.10/net/sunrpc/
Dxdr.c1478 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()
[all …]
/kernel/linux/linux-5.10/fs/btrfs/
Dprops.c133 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()
Ddir-item.c379 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()
Dxattr.c343 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()
Dtree-log.c2387 u32 this_len = sizeof(*di) + name_len + data_len; in replay_xattr_deletes() local
2425 cur += this_len; in replay_xattr_deletes()
2426 di = (struct btrfs_dir_item *)((char *)di + this_len); in replay_xattr_deletes()
4848 u32 this_len; in btrfs_check_ref_name_override() local
4859 this_len = sizeof(*iref) + this_name_len; in btrfs_check_ref_name_override()
4868 this_len = sizeof(*extref) + this_name_len; in btrfs_check_ref_name_override()
4909 cur_offset += this_len; in btrfs_check_ref_name_override()
/kernel/linux/linux-5.10/kernel/
Drelay.c1241 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()
Dptrace.c637 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-5.10/drivers/crypto/
Dn2_core.c240 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()
911 dest_prev = dest_paddr + this_len; in n2_compute_chunks()
[all …]
/kernel/linux/linux-5.10/net/sunrpc/auth_gss/
Dgss_krb5_wrap.c374 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/drivers/scsi/arm/
Dacornscsi.c915 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 …]
/kernel/linux/linux-5.10/fs/fuse/
Dvirtio_fs.c1028 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/
Dldc.c2295 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()
/kernel/linux/linux-5.10/fs/overlayfs/
Dcopy_up.c171 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()
/kernel/linux/linux-5.10/fs/proc/
Dbase.c867 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; in environ_read() local
[all …]
/kernel/linux/linux-5.10/fs/
Dsplice.c667 size_t this_len = buf->len; in iter_file_splice_write() local
669 if (this_len > left) in iter_file_splice_write()
670 this_len = left; in iter_file_splice_write()
680 array[n].bv_len = this_len; in iter_file_splice_write()
682 left -= this_len; in iter_file_splice_write()
/kernel/linux/linux-5.10/drivers/net/phy/
Dsfp.c355 size_t this_len; in sfp_i2c_read() local
368 this_len = len; in sfp_i2c_read()
369 if (this_len > block_size) in sfp_i2c_read()
370 this_len = block_size; in sfp_i2c_read()
372 msgs[1].len = this_len; in sfp_i2c_read()
381 msgs[1].buf += this_len; in sfp_i2c_read()
382 dev_addr += this_len; in sfp_i2c_read()
383 len -= this_len; in sfp_i2c_read()
/kernel/linux/linux-5.10/drivers/usb/mon/
Dmon_bin.c409 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()
/kernel/linux/linux-5.10/crypto/
Dtestmgr.c919 unsigned int this_len; in generate_random_sgl_divisions() local
923 this_len = remaining; in generate_random_sgl_divisions()
925 this_len = 1 + (prandom_u32() % remaining); in generate_random_sgl_divisions()
926 div->proportion_of_total = this_len; in generate_random_sgl_divisions()
974 this_len / 100, this_len % 100, in generate_random_sgl_divisions()
977 div->offset, this_len == remaining ? "" : ", "); in generate_random_sgl_divisions()
978 remaining -= this_len; in generate_random_sgl_divisions()
/kernel/linux/linux-5.10/drivers/md/
Ddm-integrity.c1715 unsigned this_len; in integrity_metadata() local
1719 this_len = min(biv.bv_len, data_to_process); in integrity_metadata()
1721 this_len, dio->op == REQ_OP_READ ? TAG_READ : TAG_WRITE); in integrity_metadata()
1724 data_to_process -= this_len; in integrity_metadata()
/kernel/linux/linux-5.10/drivers/net/ethernet/sun/
Dniu.c6678 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()