Home
last modified time | relevance | path

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

/openbmc/u-boot/fs/btrfs/
H A Ddir-item.c38 u32 total_len, cur = 0, this_len; in btrfs_match_dir_item_name() local
47 this_len = sizeof(*item) + item->name_len + item->data_len; in btrfs_match_dir_item_name()
56 cur += this_len; in btrfs_match_dir_item_name()
57 item = (struct btrfs_dir_item *) ((u8 *) item + this_len); in btrfs_match_dir_item_name()
/openbmc/linux/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()
/openbmc/linux/net/sunrpc/
H A Dxdr.c1879 unsigned int this_len; in __read_bytes_from_xdr_buf() local
1881 this_len = min_t(unsigned int, len, subbuf->head[0].iov_len); in __read_bytes_from_xdr_buf()
1882 memcpy(obj, subbuf->head[0].iov_base, this_len); in __read_bytes_from_xdr_buf()
1883 len -= this_len; in __read_bytes_from_xdr_buf()
1884 obj += this_len; in __read_bytes_from_xdr_buf()
1885 this_len = min_t(unsigned int, len, subbuf->page_len); in __read_bytes_from_xdr_buf()
1886 _copy_from_pages(obj, subbuf->pages, subbuf->page_base, this_len); in __read_bytes_from_xdr_buf()
1887 len -= this_len; in __read_bytes_from_xdr_buf()
1888 obj += this_len; in __read_bytes_from_xdr_buf()
1889 this_len = min_t(unsigned int, len, subbuf->tail[0].iov_len); in __read_bytes_from_xdr_buf()
[all …]
/openbmc/linux/kernel/
H A Drelay.c1153 unsigned int this_len, this_end, private; in subbuf_splice_actor() local
1159 this_len = min_t(unsigned long, len, PAGE_SIZE - poff); in subbuf_splice_actor()
1160 private = this_len; in subbuf_splice_actor()
1165 this_end = cur_pos + this_len; in subbuf_splice_actor()
1167 this_len = nonpad_end - cur_pos; in subbuf_splice_actor()
1168 private = this_len + padding; in subbuf_splice_actor()
1170 spd.partial[spd.nr_pages].len = this_len; in subbuf_splice_actor()
1173 len -= this_len; in subbuf_splice_actor()
1174 total_len += this_len; in subbuf_splice_actor()
H A Dptrace.c633 int this_len, retval; in ptrace_readdata() local
635 this_len = (len > sizeof(buf)) ? sizeof(buf) : len; in ptrace_readdata()
636 retval = ptrace_access_vm(tsk, src, buf, this_len, FOLL_FORCE); in ptrace_readdata()
659 int this_len, retval; in ptrace_writedata() local
661 this_len = (len > sizeof(buf)) ? sizeof(buf) : len; in ptrace_writedata()
662 if (copy_from_user(buf, src, this_len)) in ptrace_writedata()
664 retval = ptrace_access_vm(tsk, dst, buf, this_len, in ptrace_writedata()
/openbmc/linux/fs/btrfs/
H A Dprops.c163 u32 total_len, cur, this_len; in iterate_object_props() local
199 this_len = sizeof(*di) + name_len + data_len; in iterate_object_props()
238 cur += this_len; in iterate_object_props()
239 di = (struct btrfs_dir_item *)((char *) di + this_len); in iterate_object_props()
H A Ddir-item.c389 u32 this_len; in btrfs_match_dir_item_name() local
397 this_len = sizeof(*dir_item) + in btrfs_match_dir_item_name()
406 cur += this_len; in btrfs_match_dir_item_name()
408 this_len); in btrfs_match_dir_item_name()
H A Dxattr.c327 u32 this_len = sizeof(*di) + name_len + data_len; in btrfs_listxattr() local
349 cur += this_len; in btrfs_listxattr()
350 di = (struct btrfs_dir_item *)((char *)di + this_len); in btrfs_listxattr()
H A Dtree-log.c2237 u32 this_len = sizeof(*di) + name_len + data_len; in replay_xattr_deletes() local
2275 cur += this_len; in replay_xattr_deletes()
2276 di = (struct btrfs_dir_item *)((char *)di + this_len); in replay_xattr_deletes()
5244 u32 this_len; in btrfs_check_ref_name_override() local
5256 this_len = sizeof(*iref) + this_name_len; in btrfs_check_ref_name_override()
5265 this_len = sizeof(*extref) + this_name_len; in btrfs_check_ref_name_override()
5309 cur_offset += this_len; in btrfs_check_ref_name_override()
/openbmc/linux/drivers/crypto/
H A Dn2_core.c242 static inline bool n2_should_run_async(struct spu_queue *qp, int this_len)
244 if (this_len >= 64 ||
795 int this_len = nbytes; in skcipher_descriptor_len() local
797 this_len -= (nbytes & (block_size - 1)); in skcipher_descriptor_len()
798 return this_len > (1 << 16) ? (1 << 16) : this_len; in skcipher_descriptor_len()
879 int this_len; in n2_compute_chunks() local
886 this_len = skcipher_descriptor_len(nbytes, walk->blocksize); in n2_compute_chunks()
893 tot_len + this_len > (1 << 16)) { in n2_compute_chunks()
910 chunk->arr[chunk->arr_len].src_len = this_len; in n2_compute_chunks()
913 dest_prev = dest_paddr + this_len; in n2_compute_chunks()
[all …]
/openbmc/linux/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()
905 __acornscsi_in(host->base + (offset << 1), ptr, this_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
946 this_len = (1 << 12) - offset; in acornscsi_data_write()
948 this_len = len; in acornscsi_data_write()
[all …]
/openbmc/linux/fs/fuse/
H A Dvirtio_fs.c1038 unsigned int this_len; in sg_count_fuse_pages() local
1041 this_len = min(page_descs[i].length, total_len); in sg_count_fuse_pages()
1042 total_len -= this_len; in sg_count_fuse_pages()
1089 unsigned int this_len; in sg_init_fuse_pages() local
1093 this_len = min(page_descs[i].length, total_len); in sg_init_fuse_pages()
1094 sg_set_page(&sg[i], pages[i], this_len, page_descs[i].offset); in sg_init_fuse_pages()
1095 total_len -= this_len; in sg_init_fuse_pages()
/openbmc/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()
/openbmc/linux/fs/proc/
H A Dbase.c919 size_t this_len = min_t(size_t, count, PAGE_SIZE); in mem_rw() local
921 if (write && copy_from_user(page, buf, this_len)) { in mem_rw()
926 this_len = access_remote_vm(mm, addr, page, this_len, flags); in mem_rw()
927 if (!this_len) { in mem_rw()
933 if (!write && copy_to_user(buf, page, this_len)) { in mem_rw()
938 buf += this_len; in mem_rw()
939 addr += this_len; in mem_rw()
940 copied += this_len; in mem_rw()
941 count -= this_len; in mem_rw()
1027 size_t this_len, max_len; in environ_read() local
[all …]
/openbmc/linux/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()
/openbmc/linux/fs/overlayfs/
H A Dcopy_up.c265 size_t this_len = OVL_COPY_UP_CHUNK_SIZE; in ovl_copy_up_file() local
268 if (len < this_len) in ovl_copy_up_file()
269 this_len = len; in ovl_copy_up_file()
308 this_len, SPLICE_F_MOVE); in ovl_copy_up_file()
/openbmc/linux/drivers/net/phy/
H A Dsfp.c602 size_t this_len; in sfp_i2c_read() local
615 this_len = len; in sfp_i2c_read()
616 if (this_len > block_size) in sfp_i2c_read()
617 this_len = block_size; in sfp_i2c_read()
619 msgs[1].len = this_len; in sfp_i2c_read()
628 msgs[1].buf += this_len; in sfp_i2c_read()
629 dev_addr += this_len; in sfp_i2c_read()
630 len -= this_len; in sfp_i2c_read()
/openbmc/linux/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()
/openbmc/linux/crypto/
H A Dtestmgr.c1006 unsigned int this_len; in generate_random_sgl_divisions() local
1010 this_len = remaining; in generate_random_sgl_divisions()
1012 this_len = prandom_u32_inclusive(rng, 1, remaining); in generate_random_sgl_divisions()
1013 div->proportion_of_total = this_len; in generate_random_sgl_divisions()
1063 this_len / 100, this_len % 100, in generate_random_sgl_divisions()
1066 div->offset, this_len == remaining ? "" : ", "); in generate_random_sgl_divisions()
1067 remaining -= this_len; in generate_random_sgl_divisions()
/openbmc/linux/drivers/md/
H A Ddm-integrity.c1903 unsigned int this_len; in integrity_metadata() local
1907 this_len = min(biv.bv_len, data_to_process); in integrity_metadata()
1909 this_len, dio->op == REQ_OP_READ ? TAG_READ : TAG_WRITE); in integrity_metadata()
1912 data_to_process -= this_len; in integrity_metadata()
/openbmc/linux/drivers/net/ethernet/sun/
H A Dniu.c6696 unsigned int this_len = len; in niu_start_xmit() local
6698 if (this_len > MAX_TX_DESC_LEN) in niu_start_xmit()
6699 this_len = MAX_TX_DESC_LEN; in niu_start_xmit()
6701 niu_set_txd(rp, prod, mapping, this_len, mrk, nfg); in niu_start_xmit()
6705 mapping += this_len; in niu_start_xmit()
6706 len -= this_len; in niu_start_xmit()