Home
last modified time | relevance | path

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

/linux-6.15/net/sunrpc/auth_gss/
H A Dgss_krb5_wrap.c59 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()
/linux-6.15/net/sunrpc/
H A Dxdr.c1885 unsigned int this_len; in __read_bytes_from_xdr_buf() local
1888 memcpy(obj, subbuf->head[0].iov_base, this_len); in __read_bytes_from_xdr_buf()
1889 len -= this_len; in __read_bytes_from_xdr_buf()
1890 obj += this_len; in __read_bytes_from_xdr_buf()
1893 len -= this_len; in __read_bytes_from_xdr_buf()
1894 obj += this_len; in __read_bytes_from_xdr_buf()
1917 unsigned int this_len; in __write_bytes_to_xdr_buf() local
1921 len -= this_len; in __write_bytes_to_xdr_buf()
1922 obj += this_len; in __write_bytes_to_xdr_buf()
1925 len -= this_len; in __write_bytes_to_xdr_buf()
[all …]
/linux-6.15/fs/btrfs/
H A Dprops.c165 u32 total_len, cur, this_len; in iterate_object_props() local
201 this_len = sizeof(*di) + name_len + data_len; in iterate_object_props()
240 cur += this_len; in iterate_object_props()
241 di = (struct btrfs_dir_item *)((char *) di + this_len); in iterate_object_props()
H A Ddir-item.c378 u32 this_len; in btrfs_match_dir_item_name() local
386 this_len = sizeof(*dir_item) + in btrfs_match_dir_item_name()
395 cur += this_len; in btrfs_match_dir_item_name()
397 this_len); in btrfs_match_dir_item_name()
H A Dxattr.c325 u32 this_len = sizeof(*di) + name_len + data_len; in btrfs_listxattr() local
347 cur += this_len; in btrfs_listxattr()
348 di = (struct btrfs_dir_item *)((char *)di + this_len); in btrfs_listxattr()
H A Dtree-log.c2219 u32 this_len = sizeof(*di) + name_len + data_len; in replay_xattr_deletes() local
2257 cur += this_len; in replay_xattr_deletes()
2258 di = (struct btrfs_dir_item *)((char *)di + this_len); in replay_xattr_deletes()
5288 u32 this_len; in btrfs_check_ref_name_override() local
5300 this_len = sizeof(*iref) + this_name_len; in btrfs_check_ref_name_override()
5309 this_len = sizeof(*extref) + this_name_len; in btrfs_check_ref_name_override()
5353 cur_offset += this_len; in btrfs_check_ref_name_override()
/linux-6.15/kernel/
H A Dptrace.c613 int this_len, retval; in ptrace_readdata() local
615 this_len = (len > sizeof(buf)) ? sizeof(buf) : len; in ptrace_readdata()
616 retval = ptrace_access_vm(tsk, src, buf, this_len, FOLL_FORCE); in ptrace_readdata()
639 int this_len, retval; in ptrace_writedata() local
641 this_len = (len > sizeof(buf)) ? sizeof(buf) : len; in ptrace_writedata()
642 if (copy_from_user(buf, src, this_len)) in ptrace_writedata()
644 retval = ptrace_access_vm(tsk, dst, buf, this_len, in ptrace_writedata()
/linux-6.15/drivers/scsi/arm/
H A Dacornscsi.c898 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()
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
948 this_len = len; in acornscsi_data_write()
952 offset += this_len; in acornscsi_data_write()
953 ptr += this_len; in acornscsi_data_write()
[all …]
/linux-6.15/io_uring/
H A Dkbuf.c39 u32 this_len; in io_kbuf_inc_commit() local
42 this_len = min_t(int, len, buf->len); in io_kbuf_inc_commit()
43 buf->len -= this_len; in io_kbuf_inc_commit()
45 buf->addr += this_len; in io_kbuf_inc_commit()
49 len -= this_len; in io_kbuf_inc_commit()
H A Dnet.c471 int this_len = min_t(int, iov[nbufs].iov_len, ret); in io_bundle_nbufs() local
474 ret -= this_len; in io_bundle_nbufs()
/linux-6.15/arch/sparc/kernel/
H A 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()
/linux-6.15/fs/proc/
H A Dbase.c918 size_t this_len = min_t(size_t, count, PAGE_SIZE); in mem_rw() local
925 this_len = access_remote_vm(mm, addr, page, this_len, flags); in mem_rw()
926 if (!this_len) { in mem_rw()
932 if (!write && copy_to_user(buf, page, this_len)) { in mem_rw()
937 buf += this_len; in mem_rw()
938 addr += this_len; in mem_rw()
939 copied += this_len; in mem_rw()
940 count -= this_len; in mem_rw()
1027 size_t this_len, max_len; in environ_read() local
1033 this_len = env_end - (env_start + src); in environ_read()
[all …]
/linux-6.15/fs/fuse/
H A Dvirtio_fs.c1280 unsigned int this_len; in sg_count_fuse_folios() local
1283 this_len = min(folio_descs[i].length, total_len); in sg_count_fuse_folios()
1284 total_len -= this_len; in sg_count_fuse_folios()
1331 unsigned int this_len; in sg_init_fuse_folios() local
1335 this_len = min(folio_descs[i].length, total_len); in sg_init_fuse_folios()
1336 sg_set_folio(&sg[i], folios[i], this_len, folio_descs[i].offset); in sg_init_fuse_folios()
1337 total_len -= this_len; in sg_init_fuse_folios()
/linux-6.15/fs/overlayfs/
H A Dcopy_up.c300 size_t this_len = OVL_COPY_UP_CHUNK_SIZE; in ovl_copy_up_file() local
303 if (len < this_len) in ovl_copy_up_file()
304 this_len = len; in ovl_copy_up_file()
345 error = ovl_verify_area(old_pos, new_pos, this_len, len); in ovl_copy_up_file()
351 this_len, SPLICE_F_MOVE); in ovl_copy_up_file()
/linux-6.15/fs/
H A Dsplice.c715 size_t this_len = buf->len; in iter_file_splice_write() local
718 if (!this_len) in iter_file_splice_write()
720 this_len = min(this_len, left); in iter_file_splice_write()
729 bvec_set_page(&array[n], buf->page, this_len, in iter_file_splice_write()
731 left -= this_len; in iter_file_splice_write()
/linux-6.15/drivers/net/phy/
H A Dsfp.c634 size_t this_len; in sfp_i2c_read() local
647 this_len = len; in sfp_i2c_read()
648 if (this_len > block_size) in sfp_i2c_read()
649 this_len = block_size; in sfp_i2c_read()
651 msgs[1].len = this_len; in sfp_i2c_read()
660 msgs[1].buf += this_len; in sfp_i2c_read()
661 dev_addr += this_len; in sfp_i2c_read()
662 len -= this_len; in sfp_i2c_read()
/linux-6.15/drivers/usb/mon/
H A Dmon_bin.c412 unsigned int this_len; in mon_bin_get_data() local
434 this_len = min_t(unsigned int, sg->length, length); in mon_bin_get_data()
436 this_len); in mon_bin_get_data()
437 length -= this_len; in mon_bin_get_data()
/linux-6.15/crypto/
H A Dtestmgr.c1030 unsigned int this_len; in generate_random_sgl_divisions() local
1034 this_len = remaining; in generate_random_sgl_divisions()
1036 this_len = (remaining + 1) / 2; in generate_random_sgl_divisions()
1038 this_len = prandom_u32_inclusive(rng, 1, remaining); in generate_random_sgl_divisions()
1039 div->proportion_of_total = this_len; in generate_random_sgl_divisions()
1089 this_len / 100, this_len % 100, in generate_random_sgl_divisions()
1092 div->offset, this_len == remaining ? "" : ", "); in generate_random_sgl_divisions()
1093 remaining -= this_len; in generate_random_sgl_divisions()
/linux-6.15/drivers/md/
H A Ddm-integrity.c1888 unsigned int this_len; in integrity_metadata() local
1892 this_len = min(biv.bv_len, data_to_process); in integrity_metadata()
1894 this_len, dio->op == REQ_OP_READ ? TAG_READ : TAG_WRITE); in integrity_metadata()
1897 data_to_process -= this_len; in integrity_metadata()
/linux-6.15/drivers/net/ethernet/sun/
H A Dniu.c6700 unsigned int this_len = len; in niu_start_xmit() local
6702 if (this_len > MAX_TX_DESC_LEN) in niu_start_xmit()
6703 this_len = MAX_TX_DESC_LEN; in niu_start_xmit()
6705 niu_set_txd(rp, prod, mapping, this_len, mrk, nfg); in niu_start_xmit()
6709 mapping += this_len; in niu_start_xmit()
6710 len -= this_len; in niu_start_xmit()