| /linux/net/sunrpc/auth_gss/ |
| H A D | gss_krb5_wrap.c | 59 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/net/sunrpc/ |
| H A D | xdr.c | 1855 unsigned int this_len; in __read_bytes_from_xdr_buf() local 1857 this_len = min_t(unsigned int, len, subbuf->head[0].iov_len); in __read_bytes_from_xdr_buf() 1858 memcpy(obj, subbuf->head[0].iov_base, this_len); in __read_bytes_from_xdr_buf() 1859 len -= this_len; in __read_bytes_from_xdr_buf() 1860 obj += this_len; in __read_bytes_from_xdr_buf() 1861 this_len = min_t(unsigned int, len, subbuf->page_len); in __read_bytes_from_xdr_buf() 1862 _copy_from_pages(obj, subbuf->pages, subbuf->page_base, this_len); in __read_bytes_from_xdr_buf() 1863 len -= this_len; in __read_bytes_from_xdr_buf() 1864 obj += this_len; in __read_bytes_from_xdr_buf() 1865 this_len = min_t(unsigned int, len, subbuf->tail[0].iov_len); in __read_bytes_from_xdr_buf() [all …]
|
| /linux/fs/btrfs/ |
| H A D | props.c | 165 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 D | tree-log.c | 2562 u32 this_len = sizeof(*di) + name_len + data_len; in replay_xattr_deletes() local 2619 cur += this_len; in replay_xattr_deletes() 2620 di = (struct btrfs_dir_item *)((char *)di + this_len); in replay_xattr_deletes() 5766 u32 this_len; in btrfs_check_ref_name_override() local 5778 this_len = sizeof(*iref) + this_name_len; in btrfs_check_ref_name_override() 5787 this_len = sizeof(*extref) + this_name_len; in btrfs_check_ref_name_override() 5827 cur_offset += this_len; in btrfs_check_ref_name_override()
|
| /linux/io_uring/ |
| H A D | kbuf.c | 43 u32 buf_len, this_len; in io_kbuf_inc_commit() local 47 this_len = min_t(u32, len, buf_len); in io_kbuf_inc_commit() 48 buf_len -= this_len; in io_kbuf_inc_commit() 50 if (buf_len || !this_len) { in io_kbuf_inc_commit() 51 WRITE_ONCE(buf->addr, READ_ONCE(buf->addr) + this_len); in io_kbuf_inc_commit() 57 len -= this_len; in io_kbuf_inc_commit()
|
| H A D | net.c | 489 int this_len = min_t(int, iov[nbufs].iov_len, ret); in io_bundle_nbufs() 492 ret -= this_len; in io_bundle_nbufs() 487 int this_len = min_t(int, iov[nbufs].iov_len, ret); io_bundle_nbufs() local
|
| /linux/block/ |
| H A D | bio.c | 1342 size_t this_len = min(total_len, SZ_1M); in bio_iov_iter_bounce_write() local 1345 if (this_len > PAGE_SIZE * 2) in bio_iov_iter_bounce_write() 1346 this_len = rounddown_pow_of_two(this_len); in bio_iov_iter_bounce_write() 1348 if (bio->bi_iter.bi_size > BIO_MAX_SIZE - this_len) in bio_iov_iter_bounce_write() 1351 folio = folio_alloc_greedy(GFP_KERNEL, &this_len); in bio_iov_iter_bounce_write() 1354 bio_add_folio_nofail(bio, folio, this_len, 0); in bio_iov_iter_bounce_write() 1356 if (copy_from_iter(folio_address(folio), this_len, iter) != in bio_iov_iter_bounce_write() 1357 this_len) { in bio_iov_iter_bounce_write() 1362 total_len -= this_len; in bio_iov_iter_bounce_write()
|
| /linux/arch/sparc/kernel/ |
| H 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/proc/ |
| H A D | base.c | 924 size_t this_len = min_t(size_t, count, PAGE_SIZE); in mem_rw() local 926 if (write && copy_from_user(page, buf, this_len)) { in mem_rw() 931 this_len = access_remote_vm(mm, addr, page, this_len, flags); in mem_rw() 932 if (!this_len) { in mem_rw() 938 if (!write && copy_to_user(buf, page, this_len)) { in mem_rw() 943 buf += this_len; in mem_rw() 944 addr += this_len; in mem_rw() 945 copied += this_len; in mem_rw() 946 count -= this_len; in mem_rw() 1033 size_t this_len, max_len; in environ_read() local [all …]
|
| /linux/fs/overlayfs/ |
| H A D | copy_up.c | 300 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/fs/fuse/ |
| H A D | virtio_fs.c | 1277 unsigned int this_len; in sg_count_fuse_folios() local 1280 this_len = min(folio_descs[i].length, total_len); in sg_count_fuse_folios() 1281 total_len -= this_len; in sg_count_fuse_folios() 1328 unsigned int this_len; in sg_init_fuse_folios() local 1332 this_len = min(folio_descs[i].length, total_len); in sg_init_fuse_folios() 1333 sg_set_folio(&sg[i], folios[i], this_len, folio_descs[i].offset); in sg_init_fuse_folios() 1334 total_len -= this_len; in sg_init_fuse_folios()
|
| /linux/fs/ |
| H A D | splice.c | 713 size_t this_len = buf->len; in iter_file_splice_write() local 716 if (!this_len) in iter_file_splice_write() 718 this_len = min(this_len, left); in iter_file_splice_write() 727 bvec_set_page(&array[n], buf->page, this_len, in iter_file_splice_write() 729 left -= this_len; in iter_file_splice_write()
|
| /linux/fs/xfs/ |
| H A D | xfs_zone_gc.c | 648 unsigned int this_len = min(len, XFS_GC_BUF_SIZE - this_off); in xfs_zone_gc_add_data() local 652 this_len, this_off); in xfs_zone_gc_add_data() 653 len -= this_len; in xfs_zone_gc_add_data() 654 off += this_len; in xfs_zone_gc_add_data()
|
| /linux/drivers/usb/mon/ |
| H A D | mon_bin.c | 414 unsigned int this_len; in mon_bin_get_data() local 436 this_len = min_t(unsigned int, sg->length, length); in mon_bin_get_data() 438 this_len); in mon_bin_get_data() 439 length -= this_len; in mon_bin_get_data()
|
| /linux/drivers/net/phy/ |
| H A D | sfp.c | 680 size_t this_len; in sfp_i2c_read() 693 this_len = len; in sfp_i2c_read() 694 if (this_len > block_size) in sfp_i2c_read() 695 this_len = block_size; in sfp_i2c_read() 697 msgs[1].len = this_len; in sfp_i2c_read() 706 msgs[1].buf += this_len; in sfp_i2c_read() 707 dev_addr += this_len; in sfp_i2c_read() 708 len -= this_len; 675 size_t this_len; sfp_i2c_read() local
|
| /linux/crypto/ |
| H A D | testmgr.c | 1021 unsigned int this_len; in generate_random_sgl_divisions() local 1025 this_len = remaining; in generate_random_sgl_divisions() 1027 this_len = (remaining + 1) / 2; in generate_random_sgl_divisions() 1029 this_len = prandom_u32_inclusive(rng, 1, remaining); in generate_random_sgl_divisions() 1030 div->proportion_of_total = this_len; in generate_random_sgl_divisions() 1080 this_len / 100, this_len % 100, in generate_random_sgl_divisions() 1083 div->offset, this_len == remaining ? "" : ", "); in generate_random_sgl_divisions() 1084 remaining -= this_len; in generate_random_sgl_divisions()
|
| /linux/drivers/net/ethernet/sun/ |
| H A D | niu.c | 6699 unsigned int this_len = len; in niu_start_xmit() local 6701 if (this_len > MAX_TX_DESC_LEN) in niu_start_xmit() 6702 this_len = MAX_TX_DESC_LEN; in niu_start_xmit() 6704 niu_set_txd(rp, prod, mapping, this_len, mrk, nfg); in niu_start_xmit() 6708 mapping += this_len; in niu_start_xmit() 6709 len -= this_len; in niu_start_xmit()
|
| /linux/drivers/md/ |
| H A D | dm-integrity.c | 1998 unsigned int this_len; in integrity_metadata() local 2002 this_len = min(biv.bv_len, data_to_process); in integrity_metadata() 2004 this_len, dio->op == REQ_OP_READ ? TAG_READ : TAG_WRITE); in integrity_metadata() 2007 data_to_process -= this_len; in integrity_metadata()
|