Home
last modified time | relevance | path

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

/fs/cifs/
Dsmb2pdu.c406 unsigned int *total_len) in fill_small_buf() argument
421 *total_len = parmsize + sizeof(struct smb2_sync_hdr); in fill_small_buf()
430 void **request_buf, unsigned int *total_len) in __smb2_plain_req_init() argument
444 total_len); in __smb2_plain_req_init()
456 void **request_buf, unsigned int *total_len) in smb2_plain_req_init() argument
465 total_len); in smb2_plain_req_init()
469 void **request_buf, unsigned int *total_len) in smb2_ioctl_req_init() argument
474 total_len); in smb2_ioctl_req_init()
476 return smb2_plain_req_init(SMB2_IOCTL, tcon, request_buf, total_len); in smb2_ioctl_req_init()
555 struct TCP_Server_Info *server, unsigned int *total_len) in assemble_neg_contexts() argument
[all …]
Dtransport.c325 size_t total_len = 0, sent, size; in __smb_send_rqst() local
376 total_len += sent; in __smb_send_rqst()
398 total_len += sent; in __smb_send_rqst()
414 total_len += sent; in __smb_send_rqst()
432 if (signal_pending(current) && (total_len != send_length)) { in __smb_send_rqst()
442 if ((total_len > 0) && (total_len != send_length)) { in __smb_send_rqst()
444 send_length, total_len); in __smb_send_rqst()
Dfile.c3014 ctx->total_len += wdata->bytes; in collect_uncached_write_data()
3048 cifs_stats_bytes_written(tcon, ctx->total_len); in collect_uncached_write_data()
3051 ctx->rc = (rc == 0) ? ctx->total_len : rc; in collect_uncached_write_data()
3149 total_written = ctx->total_len; in __cifs_writev()
3153 total_written = ctx->total_len; in __cifs_writev()
3762 ctx->total_len += rdata->got_bytes; in collect_uncached_read_data()
3769 ctx->total_len = ctx->len - iov_iter_count(to); in collect_uncached_read_data()
3775 ctx->rc = (rc == 0) ? ctx->total_len : rc; in collect_uncached_read_data()
3872 total_read = ctx->total_len; in __cifs_readv()
3876 total_read = ctx->total_len; in __cifs_readv()
Dcifsglob.h1294 unsigned int total_len; member
/fs/
Dsplice.c446 if (sd->len < sd->total_len && pipe->nrbufs > 1) in pipe_to_sendpage()
490 if (sd->len > sd->total_len) in splice_from_pipe_feed()
491 sd->len = sd->total_len; in splice_from_pipe_feed()
510 sd->total_len -= ret; in splice_from_pipe_feed()
520 if (!sd->total_len) in splice_from_pipe_feed()
652 .total_len = len, in splice_from_pipe()
684 .total_len = len, in iter_file_splice_write()
700 while (sd.total_len) { in iter_file_splice_write()
721 left = sd.total_len; in iter_file_splice_write()
745 iov_iter_bvec(&from, WRITE, array, n, sd.total_len - left); in iter_file_splice_write()
[all …]
Dpipe.c274 size_t total_len = iov_iter_count(to); in pipe_read() local
281 if (unlikely(total_len == 0)) in pipe_read()
296 if (chars > total_len) in pipe_read()
297 chars = total_len; in pipe_read()
318 total_len = chars; in pipe_read()
329 total_len -= chars; in pipe_read()
330 if (!total_len) in pipe_read()
385 size_t total_len = iov_iter_count(from); in pipe_write() local
389 if (unlikely(total_len == 0)) in pipe_write()
401 chars = total_len & (PAGE_SIZE-1); /* size of the last buffer */ in pipe_write()
/fs/pstore/
Dplatform.c356 size_t total_len; in copy_kmsg_to_buffer() local
359 total_len = hsize + len; in copy_kmsg_to_buffer()
361 if (total_len > psinfo->bufsize) { in copy_kmsg_to_buffer()
362 diff = total_len - psinfo->bufsize + hsize; in copy_kmsg_to_buffer()
366 total_len = psinfo->bufsize; in copy_kmsg_to_buffer()
368 memcpy(psinfo->buf, big_oops_buf, total_len); in copy_kmsg_to_buffer()
370 return total_len; in copy_kmsg_to_buffer()
/fs/btrfs/
Dprops.c133 u32 total_len, cur, this_len; in iterate_object_props() local
161 total_len = btrfs_item_size_nr(leaf, slot); in iterate_object_props()
163 while (cur < total_len) { in iterate_object_props()
Ddir-item.c377 u32 total_len; in btrfs_match_dir_item_name() local
385 total_len = btrfs_item_size_nr(leaf, path->slots[0]); in btrfs_match_dir_item_name()
386 while (cur < total_len) { in btrfs_match_dir_item_name()
Dioctl.c2299 int total_len = 0; in btrfs_search_path_in_tree() local
2350 total_len += len + 1; in btrfs_search_path_in_tree()
2367 memmove(name, ptr, total_len); in btrfs_search_path_in_tree()
2368 name[total_len] = '\0'; in btrfs_search_path_in_tree()
2395 int total_len = 0; in btrfs_search_path_in_tree_user() local
2443 total_len += len + 1; in btrfs_search_path_in_tree_user()
2496 memmove(args->path, ptr, total_len); in btrfs_search_path_in_tree_user()
2497 args->path[total_len] = '\0'; in btrfs_search_path_in_tree_user()
Dsend.c579 int total_len = sizeof(*hdr) + len; in tlv_put() local
582 if (unlikely(left < total_len)) in tlv_put()
589 sctx->send_size += total_len; in tlv_put()
Dinode.c6030 int total_len = 0; in btrfs_real_readdir() local
6083 if ((total_len + sizeof(struct dir_entry) + name_len) >= in btrfs_real_readdir()
6091 total_len = 0; in btrfs_real_readdir()
6107 total_len += sizeof(struct dir_entry) + name_len; in btrfs_real_readdir()
/fs/ceph/
Dxattr.c66 size_t len, total_len = 0; in ceph_vxattrcb_layout() local
79 total_len = len + strlen(pool_name); in ceph_vxattrcb_layout()
85 total_len = len; in ceph_vxattrcb_layout()
89 total_len += strlen(ns_field) + pool_ns->len; in ceph_vxattrcb_layout()
91 ret = total_len; in ceph_vxattrcb_layout()
92 if (size >= total_len) { in ceph_vxattrcb_layout()
Dfile.c729 size_t total_len; member
761 ret = aio_req->total_len; in ceph_aio_complete()
768 loff_t endoff = aio_req->iocb->ki_pos + aio_req->total_len; in ceph_aio_complete()
837 aio_req->total_len = rc + zlen; in ceph_aio_complete_req()
1033 aio_req->total_len += len; in ceph_direct_read_write()
Dmds_client.c3389 size_t struct_len, total_len = sizeof(u64); in encode_caps_cb() local
3424 total_len += 2 * sizeof(u8) + sizeof(u32); in encode_caps_cb()
3440 total_len += struct_len; in encode_caps_cb()
3442 if (pagelist->length + total_len > RECONNECT_MAX_SIZE) { in encode_caps_cb()
3449 err = ceph_pagelist_reserve(pagelist, total_len); in encode_caps_cb()
3664 size_t total_len = in send_mds_reconnect() local
3670 total_len += sizeof(u32); in send_mds_reconnect()
3672 total_len += mdsc->num_snap_realms * in send_mds_reconnect()
3675 if (total_len > RECONNECT_MAX_SIZE) { in send_mds_reconnect()
/fs/fuse/
Dvirtio_fs.c830 unsigned int total_len) in sg_init_fuse_pages() argument
835 for (i = 0; i < num_pages && total_len; i++) { in sg_init_fuse_pages()
837 this_len = min(page_descs[i].length, total_len); in sg_init_fuse_pages()
839 total_len -= this_len; in sg_init_fuse_pages()
Ddev.c1644 size_t total_len = 0; in fuse_retrieve() local
1698 total_len += this_num; in fuse_retrieve()
1702 ra->inarg.size = total_len; in fuse_retrieve()
1705 args->in_args[1].size = total_len; in fuse_retrieve()
/fs/ocfs2/
Daops.c2153 unsigned len, total_len = bh_result->b_size; in ocfs2_dio_wr_get_block() local
2157 len = min(total_len, len); in ocfs2_dio_wr_get_block()
2175 inode->i_ino, pos, len, total_len); in ocfs2_dio_wr_get_block()
2182 if (pos + total_len <= i_size_read(inode)) { in ocfs2_dio_wr_get_block()
2202 if (ocfs2_clusters_for_bytes(inode->i_sb, pos + total_len) > in ocfs2_dio_wr_get_block()
2231 total_len, NULL); in ocfs2_dio_wr_get_block()
Dxattr.c889 int total_len; in ocfs2_xattr_list_entry() local
913 total_len = prefix_len + name_len + 1; in ocfs2_xattr_list_entry()
914 *result += total_len; in ocfs2_xattr_list_entry()
/fs/f2fs/
Dsegment.c1127 block_t lstart, start, len, total_len; in __submit_discard_cmd() local
1141 total_len = len; in __submit_discard_cmd()
1145 while (total_len && *issued < dpolicy->max_requests && !err) { in __submit_discard_cmd()
1212 total_len -= len; in __submit_discard_cmd()
1213 len = total_len; in __submit_discard_cmd()
1999 unsigned int cur_pos = 0, next_pos, len, total_len = 0; in f2fs_clear_prefree_segments() local
2014 total_len += len; in f2fs_clear_prefree_segments()
2027 dcc->nr_discards -= total_len; in f2fs_clear_prefree_segments()
/fs/nfsd/
Dvfs.c876 .total_len = *count, in nfsd_splice_read()