Home
last modified time | relevance | path

Searched refs:buf_size (Results 1 – 25 of 26) sorted by relevance

12

/fs/
Dkernel_read_file.c36 size_t buf_size, size_t *file_size, in kernel_read_file() argument
66 if (!file_size && offset == 0 && i_size > buf_size) { in kernel_read_file()
71 whole_file = (offset == 0 && i_size <= buf_size); in kernel_read_file()
88 while (copied < buf_size) { in kernel_read_file()
90 size_t wanted = min_t(size_t, buf_size - copied, in kernel_read_file()
128 size_t buf_size, size_t *file_size, in kernel_read_file_from_path() argument
141 ret = kernel_read_file(file, offset, buf, buf_size, file_size, id); in kernel_read_file_from_path()
148 void **buf, size_t buf_size, in kernel_read_file_from_path_initns() argument
168 ret = kernel_read_file(file, offset, buf, buf_size, file_size, id); in kernel_read_file_from_path_initns()
175 size_t buf_size, size_t *file_size, in kernel_read_file_from_fd() argument
[all …]
Dexec.c1220 char *__get_task_comm(char *buf, size_t buf_size, struct task_struct *tsk) in __get_task_comm() argument
1224 strscpy_pad(buf, tsk->comm, buf_size); in __get_task_comm()
/fs/jffs2/
Dscan.c40 unsigned char *buf, uint32_t buf_size, struct jffs2_summary *s);
96 uint32_t buf_size = 0; in jffs2_scan_medium() local
131 buf_size = (uint32_t)try_size; in jffs2_scan_medium()
151 ret = jffs2_scan_eraseblock(c, jeb, buf_size?flashbuf:(flashbuf+jeb->offset), in jffs2_scan_medium()
152 buf_size, s); in jffs2_scan_medium()
281 if (buf_size) in jffs2_scan_medium()
446 unsigned char *buf, uint32_t buf_size, struct jffs2_summary *s) { in jffs2_scan_eraseblock() argument
490 if (!buf_size) { in jffs2_scan_eraseblock()
505 err = jffs2_fill_scan_buf(c, buf + buf_size - buf_len, in jffs2_scan_eraseblock()
511 sm = (void *)buf + buf_size - sizeof(*sm); in jffs2_scan_eraseblock()
[all …]
/fs/ntfs/
Dlcnalloc.c146 int err = 0, rlpos, rlsize, buf_size; in ntfs_cluster_alloc() local
278 buf_size = last_read_pos & ~PAGE_MASK; in ntfs_cluster_alloc()
279 buf = page_address(page) + buf_size; in ntfs_cluster_alloc()
280 buf_size = PAGE_SIZE - buf_size; in ntfs_cluster_alloc()
281 if (unlikely(last_read_pos + buf_size > i_size)) in ntfs_cluster_alloc()
282 buf_size = i_size - last_read_pos; in ntfs_cluster_alloc()
283 buf_size <<= 3; in ntfs_cluster_alloc()
287 "bmp_pos 0x%llx, need_writeback %i.", buf_size, in ntfs_cluster_alloc()
290 while (lcn < buf_size && lcn + bmp_pos < zone_end) { in ntfs_cluster_alloc()
295 "*byte 0x%x.", buf_size, in ntfs_cluster_alloc()
[all …]
/fs/btrfs/
Dzlib.c29 unsigned int buf_size; member
77 workspace->buf_size = ZLIB_DFLTCC_BUF_SIZE; in zlib_alloc_workspace()
81 workspace->buf_size = PAGE_SIZE; in zlib_alloc_workspace()
146 workspace->buf_size / PAGE_SIZE); in zlib_compress_pages()
175 (unsigned long) workspace->buf_size); in zlib_compress_pages()
291 workspace->strm.avail_out = workspace->buf_size; in zlib_decompress_bio()
329 workspace->strm.avail_out = workspace->buf_size; in zlib_decompress_bio()
377 workspace->strm.avail_out = workspace->buf_size; in zlib_decompress()
431 workspace->strm.avail_out = workspace->buf_size; in zlib_decompress()
Dverity.c662 int btrfs_get_verity_descriptor(struct inode *inode, void *buf, size_t buf_size) in btrfs_get_verity_descriptor() argument
681 if (buf_size == 0) in btrfs_get_verity_descriptor()
683 if (buf_size < true_size) in btrfs_get_verity_descriptor()
687 buf, buf_size, NULL); in btrfs_get_verity_descriptor()
Dioctl.c2435 u64 *buf_size, in copy_to_sk() argument
2469 if (sizeof(sh) + item_len > *buf_size) { in copy_to_sk()
2480 *buf_size = sizeof(sh) + item_len; in copy_to_sk()
2485 if (sizeof(sh) + item_len + *sk_offset > *buf_size) { in copy_to_sk()
2567 u64 *buf_size, in search_ioctl() argument
2578 if (*buf_size < sizeof(struct btrfs_ioctl_search_header)) { in search_ioctl()
2579 *buf_size = sizeof(struct btrfs_ioctl_search_header); in search_ioctl()
2609 *buf_size - sk_offset)) in search_ioctl()
2618 ret = copy_to_sk(path, &key, sk, buf_size, ubuf, in search_ioctl()
2640 u64 buf_size; in btrfs_ioctl_tree_search() local
[all …]
Dctree.h4074 int btrfs_get_verity_descriptor(struct inode *inode, void *buf, size_t buf_size);
4093 size_t buf_size) in btrfs_get_verity_descriptor() argument
/fs/f2fs/
Dverity.c220 size_t buf_size) in f2fs_get_verity_descriptor() argument
247 if (buf_size) { in f2fs_get_verity_descriptor()
248 if (size > buf_size) in f2fs_get_verity_descriptor()
/fs/hfsplus/
Dpart_tbl.c96 int buf_size = hfsplus_min_io_size(sb); in hfs_parse_new_pmap() local
112 if ((u8 *)pm - (u8 *)buf >= buf_size) { in hfs_parse_new_pmap()
/fs/ext4/
Dverity.c342 size_t buf_size) in ext4_get_verity_descriptor() argument
352 if (buf_size) { in ext4_get_verity_descriptor()
353 if (desc_size > buf_size) in ext4_get_verity_descriptor()
Ddir.c644 int buf_size) in ext4_check_all_de() argument
652 top = buf + buf_size; in ext4_check_all_de()
655 buf, buf_size, offset)) in ext4_check_all_de()
657 rlen = ext4_rec_len_from_disk(de->rec_len, buf_size); in ext4_check_all_de()
Dnamei.c1530 int ext4_search_dir(struct buffer_head *bh, char *search_buf, int buf_size, in ext4_search_dir() argument
1539 dlimit = search_buf + buf_size; in ext4_search_dir()
1548 buf_size, offset)) in ext4_search_dir()
2098 void *buf, int buf_size, in ext4_find_dest_de() argument
2109 top = buf + buf_size - reclen; in ext4_find_dest_de()
2112 buf, buf_size, offset)) in ext4_find_dest_de()
2117 rlen = ext4_rec_len_from_disk(de->rec_len, buf_size); in ext4_find_dest_de()
2133 int buf_size, in ext4_insert_dentry() argument
2140 rlen = ext4_rec_len_from_disk(de->rec_len, buf_size); in ext4_insert_dentry()
2144 de1->rec_len = ext4_rec_len_to_disk(rlen - nlen, buf_size); in ext4_insert_dentry()
[all …]
Dext4.h2814 void *buf, int buf_size,
2819 int buf_size,
2842 void *buf, int buf_size);
3051 int buf_size,
3060 int buf_size,
/fs/xfs/
Dxfs_log_priv.h692 size_t buf_size) in xlog_kvmalloc() argument
700 p = kmalloc(buf_size, flags); in xlog_kvmalloc()
702 p = vmalloc(buf_size); in xlog_kvmalloc()
Dxfs_log_cil.c279 int buf_size; in xlog_cil_alloc_shadow_bufs() local
322 buf_size = nbytes + xlog_cil_iovec_space(niovecs); in xlog_cil_alloc_shadow_bufs()
329 buf_size > lip->li_lv_shadow->lv_size) { in xlog_cil_alloc_shadow_bufs()
338 lv = xlog_kvmalloc(buf_size); in xlog_cil_alloc_shadow_bufs()
344 lv->lv_size = buf_size; in xlog_cil_alloc_shadow_bufs()
/fs/jfs/
Dxattr.c795 size_t buf_size) in __jfs_getxattr() argument
827 else if (size > buf_size) { in __jfs_getxattr()
855 ssize_t jfs_listxattr(struct dentry * dentry, char *data, size_t buf_size) in jfs_listxattr() argument
887 if (size > buf_size) { in jfs_listxattr()
/fs/fat/
Ddir.c234 fat_shortname2uni(struct nls_table *nls, unsigned char *buf, int buf_size, in fat_shortname2uni() argument
240 len = fat_short2lower_uni(nls, buf, buf_size, uni_buf); in fat_shortname2uni()
242 len = fat_short2uni(nls, buf, buf_size, uni_buf); in fat_shortname2uni()
245 len = fat_short2lower_uni(nls, buf, buf_size, uni_buf); in fat_shortname2uni()
247 len = fat_short2uni(nls, buf, buf_size, uni_buf); in fat_shortname2uni()
249 len = fat_short2uni(nls, buf, buf_size, uni_buf); in fat_shortname2uni()
Dnamei_vfat.c278 unsigned char *buf, int buf_size, in to_shortname_char() argument
293 len = nls->uni2char(*src, buf, buf_size); in to_shortname_char()
/fs/fscache/
Dcookie.c281 size_t buf_size; in fscache_set_key() local
283 buf_size = round_up(index_key_len, sizeof(__le32)); in fscache_set_key()
286 buf = kzalloc(buf_size, GFP_KERNEL); in fscache_set_key()
296 buf, buf_size); in fscache_set_key()
/fs/smb/client/
Dxattr.c410 ssize_t cifs_listxattr(struct dentry *direntry, char *data, size_t buf_size) in cifs_listxattr() argument
448 full_path, NULL, data, buf_size, cifs_sb); in cifs_listxattr()
Dmisc.c163 size_t buf_size = sizeof(struct smb2_hdr); in cifs_buf_get() local
175 memset(ret_buf, 0, buf_size + 3); in cifs_buf_get()
Dsmb2ops.c978 size_t buf_size = dst_size; in move_smb2_ea_to_cifs() local
1014 if (buf_size == 0) { in move_smb2_ea_to_cifs()
1057 char *ea_data, size_t buf_size, in smb2_query_eas() argument
1095 rc = move_smb2_ea_to_cifs(ea_data, buf_size, info, in smb2_query_eas()
5087 unsigned int buf_size; in receive_encrypted_standard() local
5109 buf_size = pdu_length - sizeof(struct smb2_transform_hdr); in receive_encrypted_standard()
5110 length = decrypt_raw_data(server, buf, buf_size, NULL, 0, 0, false); in receive_encrypted_standard()
Dcifssmb.c5590 char *EAData, size_t buf_size, in CIFSSMBQAllEAs() argument
5729 if (buf_size == 0) in CIFSSMBQAllEAs()
5731 if ((size_t)value_len > buf_size) { in CIFSSMBQAllEAs()
5741 if (rc < (int) buf_size) { in CIFSSMBQAllEAs()
5749 } else if (buf_size == 0) { in CIFSSMBQAllEAs()
/fs/ubifs/
Ddebug.c2738 size_t buf_size; in interpret_user_input() local
2741 buf_size = min_t(size_t, count, (sizeof(buf) - 1)); in interpret_user_input()
2742 if (copy_from_user(buf, u, buf_size)) in interpret_user_input()

12