Home
last modified time | relevance | path

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

12345678910>>...22

/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.c385 size_t extent_size = crypt_stat->extent_size; in crypt_extent()
874 static void write_ecryptfs_marker(char *page_virt, size_t *written) in write_ecryptfs_marker()
888 size_t *written) in ecryptfs_write_crypt_stat_flags()
929 u8 ecryptfs_code_for_cipher_string(char *cipher_name, size_t key_bytes) in ecryptfs_code_for_cipher_string()
1002 size_t *written) in ecryptfs_write_header_metadata()
1049 static int ecryptfs_write_headers_virt(char *page_virt, size_t max, in ecryptfs_write_headers_virt()
1050 size_t *size, in ecryptfs_write_headers_virt()
1055 size_t written; in ecryptfs_write_headers_virt()
1056 size_t offset; in ecryptfs_write_headers_virt()
1082 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.c40 static size_t elfcorebuf_sz;
41 static size_t elfcorebuf_sz_orig;
44 static size_t elfnotes_sz;
46 static size_t elfnotes_orig_sz;
63 static size_t vmcoredd_orig_sz;
106 ssize_t read_from_oldmem(char *buf, size_t count, in read_from_oldmem()
111 size_t nr_bytes; in read_from_oldmem()
174 ssize_t __weak elfcorehdr_read(char *buf, size_t count, u64 *ppos) in elfcorehdr_read()
182 ssize_t __weak elfcorehdr_read_notes(char *buf, size_t count, u64 *ppos) in elfcorehdr_read_notes()
202 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/
Dkernel_read_file.c36 size_t buf_size, size_t *file_size, in kernel_read_file()
40 size_t copied; 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()
148 void **buf, size_t buf_size, in kernel_read_file_from_path_initns()
149 size_t *file_size, in kernel_read_file_from_path_initns()
175 size_t buf_size, size_t *file_size, in kernel_read_file_from_fd()
Dxattr.c145 size_t preflen; in xattr_supported_namespace()
166 const void *value, size_t size, int flags) in __vfs_setxattr()
198 const void *value, size_t size, int flags) in __vfs_setxattr_noperm()
248 const void *value, size_t size, int flags, in __vfs_setxattr_locked()
275 size_t size, int flags) in vfs_setxattr()
298 size_t size) in xattr_getsecurity()
332 size_t xattr_size, gfp_t flags) in vfs_getxattr_alloc()
366 void *value, size_t size, int flags) in __vfs_getxattr()
404 vfs_getxattr(struct dentry *dentry, const char *name, void *value, size_t size) in vfs_getxattr()
411 vfs_listxattr(struct dentry *dentry, char *list, size_t size) in vfs_listxattr()
[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];
154 size_t max_size = 0; in zstd_calc_ws_mem_sizes()
160 size_t level_size = in zstd_calc_ws_mem_sizes()
161 max_t(size_t, in zstd_calc_ws_mem_sizes()
165 max_size = max_t(size_t, max_size, level_size); in zstd_calc_ws_mem_sizes()
404 workspace->in_buf.size = min_t(size_t, len, PAGE_SIZE); in zstd_compress_pages()
416 workspace->out_buf.size = min_t(size_t, max_out, PAGE_SIZE); in zstd_compress_pages()
419 size_t ret2; in zstd_compress_pages()
[all …]
Dcompression.h88 unsigned long start_byte, size_t srclen, size_t destlen);
143 bool btrfs_compress_is_valid_type(const char *str, size_t len);
152 struct page *dest_page, unsigned long start_byte, size_t srclen,
153 size_t destlen);
163 struct page *dest_page, unsigned long start_byte, size_t srclen,
164 size_t destlen);
173 struct page *dest_page, unsigned long start_byte, size_t srclen,
174 size_t destlen);
Dlzo.c98 static inline void write_compress_length(char *buf, size_t len) in write_compress_length()
106 static inline size_t read_compress_length(const char *buf) in read_compress_length()
129 size_t in_len; in lzo_compress_pages()
130 size_t out_len; in lzo_compress_pages()
288 size_t srclen = cb->compressed_len; in lzo_decompress_bio()
294 size_t in_len; in lzo_decompress_bio()
295 size_t out_len; in lzo_decompress_bio()
296 const size_t max_segment_len = lzo1x_worst_compress(PAGE_SIZE); in lzo_decompress_bio()
318 if (tot_len > min_t(size_t, BTRFS_MAX_COMPRESSED, srclen) || in lzo_decompress_bio()
424 struct page *dest_page, unsigned long start_byte, size_t srclen, in lzo_decompress()
[all …]
/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/xfs/
Dxfs_buf.h94 size_t bt_meta_sectormask;
95 size_t bt_logical_sectorsize;
96 size_t bt_logical_sectormask;
197 xfs_daddr_t blkno, size_t numblks,
213 size_t numblks, in xfs_buf_get()
225 size_t numblks, in xfs_buf_read()
240 size_t numblks, in xfs_buf_readahead()
247 int xfs_buf_get_uncached(struct xfs_buftarg *target, size_t numblks, int flags,
250 size_t numblks, int flags, struct xfs_buf **bpp,
279 void xfs_buf_zero(struct xfs_buf *bp, size_t boff, size_t bsize);
[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/verity/
Dfsverity_private.h97 const u8 *salt, size_t salt_size);
102 const void *data, size_t size, u8 *out);
122 const u8 *salt, size_t salt_size);
126 size_t desc_size);
134 size_t *desc_size_ret);
143 const u8 *signature, size_t sig_size);
149 const u8 *signature, size_t sig_size) in fsverity_verify_signature()
/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);
/fs/ext4/
Dxattr.h114 size_t value_len;
176 extern ssize_t ext4_listxattr(struct dentry *, char *, size_t);
178 extern int ext4_xattr_get(struct inode *, int, const char *, void *, size_t);
179 extern int ext4_xattr_set(struct inode *, int, const char *, const void *, size_t, int);
180 …nt ext4_xattr_set_handle(handle_t *, struct inode *, int, const char *, const void *, size_t, int);
181 extern int ext4_xattr_set_credits(struct inode *inode, size_t value_len,
184 struct buffer_head *block_bh, size_t value_len,
202 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()
176 size_t desc_size, u64 merkle_tree_size) in ext4_write_verity_descriptor()
196 size_t desc_size, u64 merkle_tree_size) in ext4_end_enable_verity()
274 size_t *desc_size_ret, in ext4_get_verity_descriptor_location()
346 size_t buf_size) in ext4_get_verity_descriptor()
348 size_t desc_size = 0; in ext4_get_verity_descriptor()
/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.c165 int nfs_map_string_to_numeric(const char *name, size_t namelen, __u32 *res) in nfs_map_string_to_numeric()
181 static int nfs_map_numeric_to_string(__u32 id, char *buf, size_t buflen) in nfs_map_numeric_to_string()
258 static ssize_t nfs_idmap_get_desc(const char *name, size_t namelen, in nfs_idmap_get_desc()
259 const char *type, size_t typelen, char **desc) in nfs_idmap_get_desc()
262 size_t desclen = typelen + namelen + 2; in nfs_idmap_get_desc()
279 static struct key *nfs_idmap_request_key(const char *name, size_t namelen, in nfs_idmap_request_key()
305 static ssize_t nfs_idmap_get_key(const char *name, size_t namelen, in nfs_idmap_get_key()
307 size_t data_size, struct idmap *idmap) in nfs_idmap_get_key()
351 size_t buflen, struct idmap *idmap) in nfs_idmap_lookup_name()
365 static int nfs_idmap_lookup_id(const char *name, size_t namelen, const char *type, in nfs_idmap_lookup_id()
[all …]
/fs/afs/
Dxattr.c39 void *buffer, size_t size, int flags) in afs_xattr_get_acl()
74 const void *buffer, size_t size) in afs_make_acl()
102 const void *buffer, size_t size, int flags) in afs_xattr_set_acl()
140 void *buffer, size_t size, int flags) in afs_xattr_get_yfs()
232 const void *buffer, size_t size, int flags) in afs_xattr_set_yfs()
269 void *buffer, size_t size, int flags) in afs_xattr_get_cell()
273 size_t namelen; in afs_xattr_get_cell()
296 void *buffer, size_t size, int flags) in afs_xattr_get_fid()
300 size_t len; in afs_xattr_get_fid()
334 void *buffer, size_t size, int flags) in afs_xattr_get_volume()
[all …]

12345678910>>...22