Home
last modified time | relevance | path

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

/linux/net/sunrpc/auth_gss/
H A Dgss_krb5_wrap.c58 unsigned int this_len, i; in rotate_buf_a_little() local
64 this_len = min(LOCAL_BUF_LEN, buf->len - (i + shift)); in rotate_buf_a_little()
65 read_bytes_from_xdr_buf(buf, i+shift, tmp, this_len); in rotate_buf_a_little()
66 write_bytes_to_xdr_buf(buf, i, tmp, this_len); in rotate_buf_a_little()
/linux/net/sunrpc/
H A Dxdr.c2059 unsigned int this_len; in __read_bytes_from_xdr_buf() local
2061 this_len = min_t(unsigned int, len, subbuf->head[0].iov_len); in __read_bytes_from_xdr_buf()
2062 memcpy(obj, subbuf->head[0].iov_base, this_len); in __read_bytes_from_xdr_buf()
2063 len -= this_len; in __read_bytes_from_xdr_buf()
2064 obj += this_len; in __read_bytes_from_xdr_buf()
2065 this_len = min_t(unsigned int, len, subbuf->page_len); in __read_bytes_from_xdr_buf()
2066 _copy_from_pages(obj, subbuf->pages, subbuf->page_base, this_len); in __read_bytes_from_xdr_buf()
2067 len -= this_len; in __read_bytes_from_xdr_buf()
2068 obj += this_len; in __read_bytes_from_xdr_buf()
2069 this_len = min_t(unsigned int, len, subbuf->tail[0].iov_len); in __read_bytes_from_xdr_buf()
[all …]
/linux/fs/btrfs/
H A Dprops.c175 u32 total_len, cur, this_len; in iterate_object_props() local
211 this_len = sizeof(*di) + name_len + data_len; in iterate_object_props()
250 cur += this_len; in iterate_object_props()
251 di = (struct btrfs_dir_item *)((char *) di + this_len); in iterate_object_props()
H A Dtree-log.c2534 u32 this_len = sizeof(*di) + name_len + data_len; in replay_xattr_deletes() local
2591 cur += this_len; in replay_xattr_deletes()
2592 di = (struct btrfs_dir_item *)((char *)di + this_len); in replay_xattr_deletes()
5744 u32 this_len; in btrfs_check_ref_name_override() local
5756 this_len = sizeof(*iref) + this_name_len; in btrfs_check_ref_name_override()
5765 this_len = sizeof(*extref) + this_name_len; in btrfs_check_ref_name_override()
5805 cur_offset += this_len; in btrfs_check_ref_name_override()
/linux/block/
H A Dbio.c1378 size_t this_len = min(total_len, SZ_1M); in bio_iov_iter_bounce_write() local
1382 if (this_len > minsize * 2) in bio_iov_iter_bounce_write()
1383 this_len = rounddown_pow_of_two(this_len); in bio_iov_iter_bounce_write()
1385 if (bio->bi_iter.bi_size > BIO_MAX_SIZE - this_len) in bio_iov_iter_bounce_write()
1388 folio = folio_alloc_greedy(GFP_KERNEL, &this_len, minsize); in bio_iov_iter_bounce_write()
1391 bio_add_folio_nofail(bio, folio, this_len, 0); in bio_iov_iter_bounce_write()
1394 copied = copy_folio_from_iter_atomic(folio, 0, this_len, in bio_iov_iter_bounce_write()
1397 copied = copy_folio_from_iter(folio, 0, this_len, iter); in bio_iov_iter_bounce_write()
1398 if (copied < this_len) { in bio_iov_iter_bounce_write()
1408 iov_iter_revert(iter, bio->bi_iter.bi_size - this_len + in bio_iov_iter_bounce_write()
[all …]
/linux/drivers/net/phy/
H A Dsfp.c749 size_t this_len; in sfp_i2c_read() local
762 this_len = len; in sfp_i2c_read()
763 if (this_len > block_size) in sfp_i2c_read()
764 this_len = block_size; in sfp_i2c_read()
766 msgs[1].len = this_len; in sfp_i2c_read()
775 msgs[1].buf += this_len; in sfp_i2c_read()
776 dev_addr += this_len; in sfp_i2c_read()
777 len -= this_len; in sfp_i2c_read()
815 size_t this_len, transferred; in sfp_smbus_read() local
823 this_len = min(len, sfp->i2c_block_size); in sfp_smbus_read()
[all …]
/linux/io_uring/
H A Dkbuf.c44 u32 buf_len, this_len; in io_kbuf_inc_commit() local
48 this_len = min_t(u32, len, buf_len); in io_kbuf_inc_commit()
49 buf_len -= this_len; in io_kbuf_inc_commit()
51 if (buf_len > bl->min_left_sub_one || !this_len) { in io_kbuf_inc_commit()
52 WRITE_ONCE(buf->addr, READ_ONCE(buf->addr) + this_len); in io_kbuf_inc_commit()
58 len -= this_len; in io_kbuf_inc_commit()
H A Dnet.c473 int this_len = min_t(int, iov[nbufs].iov_len, ret); in io_bundle_nbufs() local
476 ret -= this_len; in io_bundle_nbufs()
/linux/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/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/fs/
H A Dsplice.c713 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 Dxfs_zone_gc.c673 unsigned int this_len = min(len, XFS_GC_BUF_SIZE - this_off); in xfs_zone_gc_add_data() local
677 this_len, this_off); in xfs_zone_gc_add_data()
678 len -= this_len; in xfs_zone_gc_add_data()
679 off += this_len; in xfs_zone_gc_add_data()
/linux/drivers/usb/mon/
H A Dmon_bin.c414 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/ethernet/sun/
H A Dniu.c6699 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 Ddm-integrity.c2070 unsigned int this_len; in integrity_metadata() local
2074 this_len = min(biv.bv_len, data_to_process); in integrity_metadata()
2076 this_len, dio->op == REQ_OP_READ ? TAG_READ : TAG_WRITE); in integrity_metadata()
2079 data_to_process -= this_len; in integrity_metadata()