Home
last modified time | relevance | path

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

/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()
277 if (buf_size) in jffs2_scan_medium()
443 unsigned char *buf, uint32_t buf_size, struct jffs2_summary *s) { in jffs2_scan_eraseblock() argument
487 if (!buf_size) { in jffs2_scan_eraseblock()
502 err = jffs2_fill_scan_buf(c, buf + buf_size - buf_len, in jffs2_scan_eraseblock()
508 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/f2fs/
Dverity.c190 size_t buf_size) in f2fs_get_verity_descriptor() argument
215 if (buf_size) { in f2fs_get_verity_descriptor()
216 if (size > buf_size) in f2fs_get_verity_descriptor()
Df2fs.h1493 void *buf, size_t buf_size) in f2fs_crc_valid() argument
1495 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.c325 size_t buf_size) in ext4_get_verity_descriptor() argument
335 if (buf_size) { in ext4_get_verity_descriptor()
336 if (desc_size > buf_size) in ext4_get_verity_descriptor()
Ddir.c635 int buf_size) in ext4_check_all_de() argument
643 top = buf + buf_size; in ext4_check_all_de()
646 buf, buf_size, offset)) in ext4_check_all_de()
648 rlen = ext4_rec_len_from_disk(de->rec_len, buf_size); in ext4_check_all_de()
Dnamei.c1378 int ext4_search_dir(struct buffer_head *bh, char *search_buf, int buf_size, in ext4_search_dir() argument
1387 dlimit = search_buf + buf_size; in ext4_search_dir()
1918 void *buf, int buf_size, in ext4_find_dest_de() argument
1929 top = buf + buf_size - reclen; in ext4_find_dest_de()
1932 buf, buf_size, offset)) in ext4_find_dest_de()
1937 rlen = ext4_rec_len_from_disk(de->rec_len, buf_size); in ext4_find_dest_de()
1952 int buf_size, in ext4_insert_dentry() argument
1959 rlen = ext4_rec_len_from_disk(de->rec_len, buf_size); in ext4_insert_dentry()
1963 de1->rec_len = ext4_rec_len_to_disk(rlen - nlen, buf_size); in ext4_insert_dentry()
1964 de->rec_len = ext4_rec_len_to_disk(nlen, buf_size); in ext4_insert_dentry()
[all …]
Dext4.h2473 void *buf, int buf_size,
2478 int buf_size,
2497 void *buf, int buf_size);
2654 int buf_size,
2664 int buf_size,
/fs/xfs/
Dxfs_log_cil.c135 int buf_size; in xlog_cil_alloc_shadow_bufs() local
171 buf_size = nbytes + xlog_cil_iovec_space(niovecs); in xlog_cil_alloc_shadow_bufs()
178 buf_size > lip->li_lv_shadow->lv_size) { in xlog_cil_alloc_shadow_bufs()
189 lv = kmem_alloc_large(buf_size, KM_NOFS); in xlog_cil_alloc_shadow_bufs()
193 lv->lv_size = buf_size; in xlog_cil_alloc_shadow_bufs()
/fs/btrfs/
Dioctl.c2033 size_t *buf_size, in copy_to_sk() argument
2067 if (sizeof(sh) + item_len > *buf_size) { in copy_to_sk()
2078 *buf_size = sizeof(sh) + item_len; in copy_to_sk()
2083 if (sizeof(sh) + item_len + *sk_offset > *buf_size) { in copy_to_sk()
2156 size_t *buf_size, in search_ioctl() argument
2167 if (*buf_size < sizeof(struct btrfs_ioctl_search_header)) { in search_ioctl()
2168 *buf_size = sizeof(struct btrfs_ioctl_search_header); in search_ioctl()
2201 ret = copy_to_sk(path, &key, sk, buf_size, ubuf, in search_ioctl()
2223 size_t buf_size; in btrfs_ioctl_tree_search() local
2233 buf_size = sizeof(uargs->buf); in btrfs_ioctl_tree_search()
[all …]
/fs/cifs/
Dxattr.c309 ssize_t cifs_listxattr(struct dentry *direntry, char *data, size_t buf_size) in cifs_listxattr() argument
342 full_path, NULL, data, buf_size, cifs_sb); in cifs_listxattr()
Dmisc.c163 size_t buf_size = sizeof(struct smb2_sync_hdr); in cifs_buf_get() local
175 memset(ret_buf, 0, buf_size + 3); in cifs_buf_get()
Dsmb2ops.c936 size_t buf_size = dst_size; in move_smb2_ea_to_cifs() local
971 if (buf_size == 0) { in move_smb2_ea_to_cifs()
1014 char *ea_data, size_t buf_size, in smb2_query_eas() argument
1057 rc = move_smb2_ea_to_cifs(ea_data, buf_size, info, in smb2_query_eas()
4201 unsigned int buf_size; in receive_encrypted_standard() local
4222 buf_size = pdu_length - sizeof(struct smb2_transform_hdr); in receive_encrypted_standard()
4223 length = decrypt_raw_data(server, buf, buf_size, NULL, 0, 0); in receive_encrypted_standard()
Dcifssmb.c6208 char *EAData, size_t buf_size, in CIFSSMBQAllEAs() argument
6347 if (buf_size == 0) in CIFSSMBQAllEAs()
6349 if ((size_t)value_len > buf_size) { in CIFSSMBQAllEAs()
6359 if (rc < (int) buf_size) { in CIFSSMBQAllEAs()
6367 } else if (buf_size == 0) { in CIFSSMBQAllEAs()
/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/incfs/
Ddata_mgmt.c40 size_t buf_size = PAGE_SIZE * options->read_log_pages; in incfs_alloc_mount_info() local
45 mi->mi_log.rl_size = buf_size / sizeof(*mi->mi_log.rl_ring_buf); in incfs_alloc_mount_info()
46 mi->mi_log.rl_ring_buf = kzalloc(buf_size, GFP_NOFS); in incfs_alloc_mount_info()
/fs/
Dexec.c1229 char *__get_task_comm(char *buf, size_t buf_size, struct task_struct *tsk) in __get_task_comm() argument
1232 strncpy(buf, tsk->comm, buf_size); in __get_task_comm()
/fs/ubifs/
Ddebug.c2717 size_t buf_size; in interpret_user_input() local
2720 buf_size = min_t(size_t, count, (sizeof(buf) - 1)); in interpret_user_input()
2721 if (copy_from_user(buf, u, buf_size)) in interpret_user_input()