Home
last modified time | relevance | path

Searched refs:size_t (Results 1 – 25 of 508) sorted by relevance

12345678910>>...21

/fs/ecryptfs/
Decryptfs_kernel.h42 ecryptfs_to_hex(char *dst, char *src, size_t src_size) in ecryptfs_to_hex()
52 size_t enc_key_size;
203 size_t filename_size;
204 size_t encrypted_filename_size;
232 size_t iv_bytes;
233 size_t metadata_size;
234 size_t extent_size; /* Data extent size; default is 4096 */
235 size_t key_size;
236 size_t extent_shift;
315 size_t key_size;
[all …]
Dkeystore.c81 int ecryptfs_parse_packet_length(unsigned char *data, size_t *size, in ecryptfs_parse_packet_length()
82 size_t *length_size) in ecryptfs_parse_packet_length()
122 int ecryptfs_write_packet_length(char *dest, size_t size, in ecryptfs_write_packet_length()
123 size_t *packet_size_length) in ecryptfs_write_packet_length()
145 char **packet, size_t *packet_len) in write_tag_64_packet()
147 size_t i = 0; in write_tag_64_packet()
148 size_t data_len; in write_tag_64_packet()
149 size_t packet_size_len; in write_tag_64_packet()
202 size_t i = 0; in parse_tag_65_packet()
204 size_t data_len; in parse_tag_65_packet()
[all …]
Dread_write.c28 loff_t offset, size_t size) in ecryptfs_write_lower()
59 size_t offset_in_page, size_t size) in ecryptfs_write_lower_page_segment()
94 size_t size) in ecryptfs_write()
115 size_t start_offset_in_page = (pos & ~PAGE_MASK); in ecryptfs_write()
116 size_t num_bytes = (PAGE_SIZE - start_offset_in_page); in ecryptfs_write()
219 int ecryptfs_read_lower(char *data, loff_t offset, size_t size, in ecryptfs_read_lower()
246 size_t offset_in_page, size_t size, in ecryptfs_read_lower_page_segment()
Dcrypto.c400 size_t extent_size = crypt_stat->extent_size; in crypt_extent()
889 static void write_ecryptfs_marker(char *page_virt, size_t *written) in write_ecryptfs_marker()
903 size_t *written) in ecryptfs_write_crypt_stat_flags()
944 u8 ecryptfs_code_for_cipher_string(char *cipher_name, size_t key_bytes) in ecryptfs_code_for_cipher_string()
1017 size_t *written) in ecryptfs_write_header_metadata()
1064 static int ecryptfs_write_headers_virt(char *page_virt, size_t max, in ecryptfs_write_headers_virt()
1065 size_t *size, in ecryptfs_write_headers_virt()
1070 size_t written; in ecryptfs_write_headers_virt()
1071 size_t offset; in ecryptfs_write_headers_virt()
1097 char *virt, size_t virt_len) in ecryptfs_write_metadata_to_contents()
[all …]
/fs/romfs/
Dstorage.c24 void *buf, size_t buflen) in romfs_mtd_read()
26 size_t rlen; in romfs_mtd_read()
37 unsigned long pos, size_t maxlen) in romfs_mtd_strnlen()
40 size_t segment; in romfs_mtd_strnlen()
42 size_t len; in romfs_mtd_strnlen()
47 segment = min_t(size_t, maxlen, 16); in romfs_mtd_strnlen()
67 const char *str, size_t size) in romfs_mtd_strcmp()
70 size_t len, segment; in romfs_mtd_strcmp()
78 segment = min_t(size_t, size + 1, 17); in romfs_mtd_strcmp()
104 void *buf, size_t buflen) in romfs_blk_read()
[all …]
Dinternal.h16 static inline size_t romfs_maxsize(struct super_block *sb) in romfs_maxsize()
18 return (size_t) (unsigned long) sb->s_fs_info; in romfs_maxsize()
39 void *buf, size_t buflen);
41 unsigned long pos, size_t maxlen);
43 const char *str, size_t size);
/fs/proc/
Dvmcore.c41 static size_t elfcorebuf_sz;
42 static size_t elfcorebuf_sz_orig;
45 static size_t elfnotes_sz;
47 static size_t elfnotes_orig_sz;
64 static size_t vmcoredd_orig_sz;
107 ssize_t read_from_oldmem(char *buf, size_t count, in read_from_oldmem()
112 size_t nr_bytes; in read_from_oldmem()
175 ssize_t __weak elfcorehdr_read(char *buf, size_t count, u64 *ppos) in elfcorehdr_read()
183 ssize_t __weak elfcorehdr_read_notes(char *buf, size_t count, u64 *ppos) in elfcorehdr_read_notes()
203 copy_oldmem_page_encrypted(unsigned long pfn, char *buf, size_t csize, in copy_oldmem_page_encrypted()
[all …]
Dkcore.c81 void __init kclist_add(struct kcore_list *new, void *addr, size_t size, in kclist_add()
91 static size_t get_kcore_size(int *nphdr, size_t *phdrs_len, size_t *notes_len, in get_kcore_size()
92 size_t *data_offset) in get_kcore_size()
94 size_t try, size; in get_kcore_size()
101 try = kc_vaddr_to_offset((size_t)m->addr + m->size); in get_kcore_size()
261 size_t phdrs_len, notes_len, data_offset; in kcore_update_ram()
295 static void append_kcore_note(char *notes, size_t *i, const char *name, in append_kcore_note()
297 size_t descsz) in append_kcore_note()
312 read_kcore(struct file *file, char __user *buffer, size_t buflen, loff_t *fpos) in read_kcore()
315 size_t phdrs_offset, notes_offset, data_offset; in read_kcore()
[all …]
/fs/nilfs2/
Dsufile.h32 size_t);
33 ssize_t nilfs_sufile_set_suinfo(struct inode *, void *, unsigned int, size_t);
35 int nilfs_sufile_updatev(struct inode *, __u64 *, size_t, int, size_t *,
53 int nilfs_sufile_read(struct super_block *sb, size_t susize,
85 size_t nsegs, size_t *ndone) in nilfs_sufile_freev()
102 __u64 *segnumv, size_t nsegs, in nilfs_sufile_cancel_freev()
103 size_t *ndone) in nilfs_sufile_cancel_freev()
/fs/
Dxattr.c139 const void *value, size_t size, int flags) in __vfs_setxattr()
171 const void *value, size_t size, int flags) in __vfs_setxattr_noperm()
221 const void *value, size_t size, int flags, in __vfs_setxattr_locked()
248 size_t size, int flags) in vfs_setxattr()
271 size_t size) in xattr_getsecurity()
305 size_t xattr_size, gfp_t flags) in vfs_getxattr_alloc()
339 void *value, size_t size, int flags) in __vfs_getxattr()
377 vfs_getxattr(struct dentry *dentry, const char *name, void *value, size_t size) in vfs_getxattr()
384 vfs_listxattr(struct dentry *dentry, char *list, size_t size) in vfs_listxattr()
485 size_t size, int flags) in setxattr()
[all …]
/fs/hfsplus/
Dxattr.h23 const void *value, size_t size, int flags);
26 const void *value, size_t size, int flags,
27 const char *prefix, size_t prefixlen);
30 void *value, size_t size);
33 void *value, size_t size,
34 const char *prefix, size_t prefixlen);
36 ssize_t hfsplus_listxattr(struct dentry *dentry, char *buffer, size_t size);
/fs/btrfs/
Dzstd.c32 size_t src_len) in zstd_get_btrfs_parameters()
44 size_t size;
87 static size_t zstd_ws_mem_sizes[ZSTD_BTRFS_MAX_LEVEL];
155 size_t max_size = 0; in zstd_calc_ws_mem_sizes()
161 size_t level_size = in zstd_calc_ws_mem_sizes()
162 max_t(size_t, in zstd_calc_ws_mem_sizes()
166 max_size = max_t(size_t, max_size, level_size); in zstd_calc_ws_mem_sizes()
409 workspace->in_buf.size = min_t(size_t, len, PAGE_SIZE); in zstd_compress_pages()
421 workspace->out_buf.size = min_t(size_t, max_out, PAGE_SIZE); in zstd_compress_pages()
424 size_t ret2; in zstd_compress_pages()
[all …]
Dlzo.c118 static inline void write_compress_length(char *buf, size_t len) in write_compress_length()
126 static inline size_t read_compress_length(const char *buf) in read_compress_length()
153 size_t in_len; in lzo_compress_pages()
154 size_t out_len; in lzo_compress_pages()
312 size_t srclen = cb->compressed_len; in lzo_decompress_bio()
318 size_t in_len; in lzo_decompress_bio()
319 size_t out_len; in lzo_decompress_bio()
320 const size_t max_segment_len = lzo1x_worst_compress(PAGE_SIZE); in lzo_decompress_bio()
342 if (tot_len > min_t(size_t, BTRFS_MAX_COMPRESSED, srclen) || in lzo_decompress_bio()
450 size_t srclen, size_t destlen) in lzo_decompress()
[all …]
/fs/xfs/
Dxfs_buf.h85 size_t bt_meta_sectormask;
86 size_t bt_logical_sectorsize;
87 size_t bt_logical_sectormask;
192 xfs_daddr_t blkno, size_t numblks,
210 size_t numblks) in xfs_buf_get()
220 size_t numblks, in xfs_buf_read()
232 size_t numblks, in xfs_buf_readahead()
239 struct xfs_buf *xfs_buf_get_uncached(struct xfs_buftarg *target, size_t numblks,
242 size_t numblks, int flags, struct xfs_buf **bpp,
272 void xfs_buf_zero(struct xfs_buf *bp, size_t boff, size_t bsize);
[all …]
Dkmem.h55 extern void *kmem_alloc(size_t, xfs_km_flags_t);
56 extern void *kmem_alloc_io(size_t size, int align_mask, xfs_km_flags_t flags);
57 extern void *kmem_alloc_large(size_t size, xfs_km_flags_t);
58 extern void *kmem_realloc(const void *, size_t, xfs_km_flags_t);
66 kmem_zalloc(size_t size, xfs_km_flags_t flags) in kmem_zalloc()
72 kmem_zalloc_large(size_t size, xfs_km_flags_t flags) in kmem_zalloc_large()
/fs/nfsd/
Dnfsctl.c64 static ssize_t write_filehandle(struct file *file, char *buf, size_t size);
65 static ssize_t write_unlock_ip(struct file *file, char *buf, size_t size);
66 static ssize_t write_unlock_fs(struct file *file, char *buf, size_t size);
67 static ssize_t write_threads(struct file *file, char *buf, size_t size);
68 static ssize_t write_pool_threads(struct file *file, char *buf, size_t size);
69 static ssize_t write_versions(struct file *file, char *buf, size_t size);
70 static ssize_t write_ports(struct file *file, char *buf, size_t size);
71 static ssize_t write_maxblksize(struct file *file, char *buf, size_t size);
72 static ssize_t write_maxconn(struct file *file, char *buf, size_t size);
74 static ssize_t write_leasetime(struct file *file, char *buf, size_t size);
[all …]
/fs/pstore/
Dram_core.c42 static inline size_t buffer_size(struct persistent_ram_zone *prz) in buffer_size()
47 static inline size_t buffer_start(struct persistent_ram_zone *prz) in buffer_start()
53 static size_t buffer_start_add(struct persistent_ram_zone *prz, size_t a) in buffer_start_add()
75 static void buffer_size_add(struct persistent_ram_zone *prz, size_t a) in buffer_size_add()
77 size_t old; in buffer_size_add()
78 size_t new; in buffer_size_add()
99 uint8_t *data, size_t len, uint8_t *ecc) in persistent_ram_encode_rs8()
112 void *data, size_t len, uint8_t *ecc) in persistent_ram_decode_rs8()
193 size_t ecc_blocks; in persistent_ram_init_ecc()
194 size_t ecc_total; in persistent_ram_init_ecc()
[all …]
/fs/9p/
Dxattr.h26 void *, size_t);
28 void *, size_t);
30 const void *, size_t, int);
32 const void *, size_t, int);
33 extern ssize_t v9fs_listxattr(struct dentry *, char *, size_t);
Dxattr.c26 void *buffer, size_t buffer_size) in v9fs_fid_xattr_get()
71 void *buffer, size_t buffer_size) in v9fs_xattr_get()
97 const void *value, size_t value_len, int flags) in v9fs_xattr_set()
104 const void *value, size_t value_len, int flags) in v9fs_fid_xattr_set()
135 ssize_t v9fs_listxattr(struct dentry *dentry, char *buffer, size_t buffer_size) in v9fs_listxattr()
142 const char *name, void *buffer, size_t size, in v9fs_xattr_handler_get()
153 size_t size, int flags) in v9fs_xattr_handler_set()
/fs/nfs/
Dnfs4idmap.h60 int nfs_map_name_to_uid(const struct nfs_server *, const char *, size_t, kuid_t *);
61 int nfs_map_group_to_gid(const struct nfs_server *, const char *, size_t, kgid_t *);
62 int nfs_map_uid_to_name(const struct nfs_server *, kuid_t, char *, size_t);
63 int nfs_map_gid_to_group(const struct nfs_server *, kgid_t, char *, size_t);
65 int nfs_map_string_to_numeric(const char *name, size_t namelen, __u32 *res);
Dnfs4idmap.c164 int nfs_map_string_to_numeric(const char *name, size_t namelen, __u32 *res) in nfs_map_string_to_numeric()
180 static int nfs_map_numeric_to_string(__u32 id, char *buf, size_t buflen) in nfs_map_numeric_to_string()
257 static ssize_t nfs_idmap_get_desc(const char *name, size_t namelen, in nfs_idmap_get_desc()
258 const char *type, size_t typelen, char **desc) in nfs_idmap_get_desc()
261 size_t desclen = typelen + namelen + 2; in nfs_idmap_get_desc()
278 static struct key *nfs_idmap_request_key(const char *name, size_t namelen, in nfs_idmap_request_key()
304 static ssize_t nfs_idmap_get_key(const char *name, size_t namelen, in nfs_idmap_get_key()
306 size_t data_size, struct idmap *idmap) in nfs_idmap_get_key()
350 size_t buflen, struct idmap *idmap) in nfs_idmap_lookup_name()
364 static int nfs_idmap_lookup_id(const char *name, size_t namelen, const char *type, in nfs_idmap_lookup_id()
[all …]
/fs/ext4/
Dxattr.h114 size_t value_len;
175 extern ssize_t ext4_listxattr(struct dentry *, char *, size_t);
177 extern int ext4_xattr_get(struct inode *, int, const char *, void *, size_t);
178 extern int ext4_xattr_set(struct inode *, int, const char *, const void *, size_t, int);
179 …nt ext4_xattr_set_handle(handle_t *, struct inode *, int, const char *, const void *, size_t, int);
180 extern int ext4_xattr_set_credits(struct inode *inode, size_t value_len,
183 struct buffer_head *block_bh, size_t value_len,
201 void *buffer, size_t buffer_size);
Dverity.c41 static int pagecache_read(struct inode *inode, void *buf, size_t count, in pagecache_read()
45 size_t n = min_t(size_t, count, in pagecache_read()
72 static int pagecache_write(struct inode *inode, const void *buf, size_t count, in pagecache_write()
79 size_t n = min_t(size_t, count, in pagecache_write()
173 size_t desc_size, u64 merkle_tree_size) in ext4_write_verity_descriptor()
193 size_t desc_size, u64 merkle_tree_size) in ext4_end_enable_verity()
271 size_t *desc_size_ret, in ext4_get_verity_descriptor_location()
343 size_t buf_size) in ext4_get_verity_descriptor()
345 size_t desc_size = 0; in ext4_get_verity_descriptor()
/fs/fuse/
Dxattr.c15 size_t size, int flags) in fuse_setxattr()
50 size_t size) in fuse_getxattr()
90 static int fuse_verify_xattr_list(char *list, size_t size) in fuse_verify_xattr_list()
92 size_t origsize = size; in fuse_verify_xattr_list()
95 size_t thislen = strnlen(list, size); in fuse_verify_xattr_list()
107 ssize_t fuse_listxattr(struct dentry *entry, char *list, size_t size) in fuse_listxattr()
182 const char *name, void *value, size_t size, int flags) in fuse_xattr_get()
192 const char *name, const void *value, size_t size, in fuse_xattr_set()
211 const char *name, void *value, size_t size, int flags) in no_xattr_get()
219 size_t size, int flags) in no_xattr_set()
/fs/reiserfs/
Dxattr.h23 ssize_t reiserfs_listxattr(struct dentry *dentry, char *buffer, size_t size);
25 int reiserfs_xattr_get(struct inode *, const char *, void *, size_t);
26 int reiserfs_xattr_set(struct inode *, const char *, const void *, size_t, int);
29 size_t, int);
72 static inline size_t reiserfs_xattr_jcreate_nblocks(struct inode *inode) in reiserfs_xattr_jcreate_nblocks()
74 size_t nblocks = JOURNAL_BLOCKS_PER_OBJECT(inode->i_sb); in reiserfs_xattr_jcreate_nblocks()

12345678910>>...21