Home
last modified time | relevance | path

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

/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.c1217 char *__get_task_comm(char *buf, size_t buf_size, struct task_struct *tsk) in __get_task_comm() argument
1220 strncpy(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()
299 workspace->strm.avail_out = workspace->buf_size; in zlib_decompress_bio()
338 workspace->strm.avail_out = workspace->buf_size; in zlib_decompress_bio()
388 workspace->strm.avail_out = workspace->buf_size; in zlib_decompress()
443 workspace->strm.avail_out = workspace->buf_size; in zlib_decompress()
Dioctl.c2119 u64 *buf_size, in copy_to_sk() argument
2153 if (sizeof(sh) + item_len > *buf_size) { in copy_to_sk()
2164 *buf_size = sizeof(sh) + item_len; in copy_to_sk()
2169 if (sizeof(sh) + item_len + *sk_offset > *buf_size) { in copy_to_sk()
2251 u64 *buf_size, in search_ioctl() argument
2262 if (*buf_size < sizeof(struct btrfs_ioctl_search_header)) { in search_ioctl()
2263 *buf_size = sizeof(struct btrfs_ioctl_search_header); in search_ioctl()
2288 *buf_size - sk_offset); in search_ioctl()
2298 ret = copy_to_sk(path, &key, sk, buf_size, ubuf, in search_ioctl()
2321 u64 buf_size; in btrfs_ioctl_tree_search() local
[all …]
/fs/f2fs/
Dverity.c219 size_t buf_size) in f2fs_get_verity_descriptor() argument
244 if (buf_size) { in f2fs_get_verity_descriptor()
245 if (size > buf_size) in f2fs_get_verity_descriptor()
Df2fs.h1914 void *buf, size_t buf_size) in f2fs_crc_valid() argument
1916 return f2fs_crc32(sbi, buf, buf_size) == blk_crc; in f2fs_crc_valid()
/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.c346 size_t buf_size) in ext4_get_verity_descriptor() argument
356 if (buf_size) { in ext4_get_verity_descriptor()
357 if (desc_size > buf_size) in ext4_get_verity_descriptor()
Ddir.c650 int buf_size) in ext4_check_all_de() argument
658 top = buf + buf_size; in ext4_check_all_de()
661 buf, buf_size, 0, offset)) in ext4_check_all_de()
663 rlen = ext4_rec_len_from_disk(de->rec_len, buf_size); in ext4_check_all_de()
Dnamei.c1494 int ext4_search_dir(struct buffer_head *bh, char *search_buf, int buf_size, in ext4_search_dir() argument
1504 dlimit = search_buf + buf_size; in ext4_search_dir()
1513 buf_size, lblk, offset)) in ext4_search_dir()
2058 void *buf, int buf_size, in ext4_find_dest_de() argument
2069 top = buf + buf_size - reclen; in ext4_find_dest_de()
2072 buf, buf_size, lblk, offset)) in ext4_find_dest_de()
2077 rlen = ext4_rec_len_from_disk(de->rec_len, buf_size); in ext4_find_dest_de()
2093 int buf_size, in ext4_insert_dentry() argument
2100 rlen = ext4_rec_len_from_disk(de->rec_len, buf_size); in ext4_insert_dentry()
2104 de1->rec_len = ext4_rec_len_to_disk(rlen - nlen, buf_size); in ext4_insert_dentry()
[all …]
Dext4.h2741 void *buf, int buf_size,
2746 int buf_size,
2769 void *buf, int buf_size);
2972 int buf_size,
2982 int buf_size,
/fs/xfs/
Dxfs_log_cil.c134 int buf_size; in xlog_cil_alloc_shadow_bufs() local
170 buf_size = nbytes + xlog_cil_iovec_space(niovecs); in xlog_cil_alloc_shadow_bufs()
177 buf_size > lip->li_lv_shadow->lv_size) { in xlog_cil_alloc_shadow_bufs()
188 lv = kmem_alloc_large(buf_size, KM_NOFS); in xlog_cil_alloc_shadow_bufs()
192 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/cifs/
Dxattr.c396 ssize_t cifs_listxattr(struct dentry *direntry, char *data, size_t buf_size) in cifs_listxattr() argument
429 full_path, NULL, data, buf_size, cifs_sb); in cifs_listxattr()
Dmisc.c167 size_t buf_size = sizeof(struct smb2_sync_hdr); in cifs_buf_get() local
179 memset(ret_buf, 0, buf_size + 3); in cifs_buf_get()
Dsmb2ops.c1003 size_t buf_size = dst_size; in move_smb2_ea_to_cifs() local
1039 if (buf_size == 0) { in move_smb2_ea_to_cifs()
1082 char *ea_data, size_t buf_size, in smb2_query_eas() argument
1125 rc = move_smb2_ea_to_cifs(ea_data, buf_size, info, in smb2_query_eas()
4897 unsigned int buf_size; in receive_encrypted_standard() local
4919 buf_size = pdu_length - sizeof(struct smb2_transform_hdr); in receive_encrypted_standard()
4920 length = decrypt_raw_data(server, buf, buf_size, NULL, 0, 0, false); in receive_encrypted_standard()
Dcifssmb.c6177 char *EAData, size_t buf_size, in CIFSSMBQAllEAs() argument
6316 if (buf_size == 0) in CIFSSMBQAllEAs()
6318 if ((size_t)value_len > buf_size) { in CIFSSMBQAllEAs()
6328 if (rc < (int) buf_size) { in CIFSSMBQAllEAs()
6336 } else if (buf_size == 0) { in CIFSSMBQAllEAs()
/fs/ubifs/
Ddebug.c2718 size_t buf_size; in interpret_user_input() local
2721 buf_size = min_t(size_t, count, (sizeof(buf) - 1)); in interpret_user_input()
2722 if (copy_from_user(buf, u, buf_size)) in interpret_user_input()