Home
last modified time | relevance | path

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

12345678910>>...24

/fs/ntfs3/
Dlznt.c32 size_t max_len;
38 static inline size_t get_match_len(const u8 *ptr, const u8 *end, const u8 *prev, in get_match_len()
39 size_t max_len) in get_match_len()
41 size_t len = 0; in get_match_len()
48 static size_t longest_match_std(const u8 *src, struct lznt *ctx) in longest_match_std()
50 size_t hash_index; in longest_match_std()
51 size_t len1 = 0, len2 = 0; in longest_match_std()
89 static size_t longest_match_best(const u8 *src, struct lznt *ctx) in longest_match_best()
91 size_t max_len; in longest_match_best()
99 size_t len = in longest_match_best()
[all …]
Dbitfunc.c12 #define BITS_IN_SIZE_T (sizeof(size_t) * 8)
33 bool are_bits_clear(const ulong *lmap, size_t bit, size_t nbits) in are_bits_clear()
35 size_t pos = bit & 7; in are_bits_clear()
48 pos = ((size_t)map) & (sizeof(size_t) - 1); in are_bits_clear()
50 pos = sizeof(size_t) - pos; in are_bits_clear()
59 for (pos = nbits / BITS_IN_SIZE_T; pos; pos--, map += sizeof(size_t)) { in are_bits_clear()
60 if (*((size_t *)map)) in are_bits_clear()
81 bool are_bits_set(const ulong *lmap, size_t bit, size_t nbits) in are_bits_set()
84 size_t pos = bit & 7; in are_bits_set()
99 pos = ((size_t)map) & (sizeof(size_t) - 1); in are_bits_set()
[all …]
Dntfs_fs.h43 #define MINUS_ONE_T ((size_t)(-1))
109 #define RUN_DEALLOCATE ((struct runs_tree *)(size_t)1)
114 size_t count; /* Currently used size a ntfs_run storage. */
115 size_t allocated; /* Currently allocated ntfs_run storage size. */
142 size_t nbits;
144 size_t total_zeroes; // Total number of free bits.
146 size_t nwnd;
151 size_t count; // Extents count.
159 size_t extent_min; // Minimal extent used while building.
160 size_t extent_max; // Upper estimate of biggest free block.
[all …]
Dbitmap.c27 size_t key;
36 static struct buffer_head *wnd_map(struct wnd_bitmap *wnd, size_t iw);
37 static bool wnd_is_free_hlp(struct wnd_bitmap *wnd, size_t bit, size_t bits);
54 static inline u32 wnd_bits(const struct wnd_bitmap *wnd, size_t i) in wnd_bits()
67 static size_t wnd_scan(const ulong *buf, size_t wbit, u32 wpos, u32 wend, in wnd_scan()
68 size_t to_alloc, size_t *prev_tail, size_t *b_pos, in wnd_scan()
69 size_t *b_len) in wnd_scan()
72 size_t free_len; in wnd_scan()
146 static struct rb_node *rb_lookup(struct rb_root *root, size_t v) in rb_lookup()
175 size_t e_ckey = e->count.key; in rb_insert_count()
[all …]
/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;
312 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()
248 size_t offset_in_page, size_t size, in ecryptfs_read_lower_page_segment()
Dcrypto.c383 size_t extent_size = crypt_stat->extent_size; in crypt_extent()
871 static void write_ecryptfs_marker(char *page_virt, size_t *written) in write_ecryptfs_marker()
885 size_t *written) in ecryptfs_write_crypt_stat_flags()
926 u8 ecryptfs_code_for_cipher_string(char *cipher_name, size_t key_bytes) in ecryptfs_code_for_cipher_string()
999 size_t *written) in ecryptfs_write_header_metadata()
1046 static int ecryptfs_write_headers_virt(char *page_virt, size_t max, in ecryptfs_write_headers_virt()
1047 size_t *size, in ecryptfs_write_headers_virt()
1052 size_t written; in ecryptfs_write_headers_virt()
1053 size_t offset; in ecryptfs_write_headers_virt()
1079 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/
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.c149 size_t preflen; in xattr_supported_namespace()
171 size_t size, int flags) in __vfs_setxattr()
206 const void *value, size_t size, int flags) in __vfs_setxattr_noperm()
258 const char *name, const void *value, size_t size, in __vfs_setxattr_locked()
287 const char *name, const void *value, size_t size, int flags) in vfs_setxattr()
321 const char *name, void *value, size_t size) in xattr_getsecurity()
357 const char *name, char **xattr_value, size_t xattr_size, in vfs_getxattr_alloc()
392 void *value, size_t size) in __vfs_getxattr()
407 const char *name, void *value, size_t size) in vfs_getxattr()
439 vfs_listxattr(struct dentry *dentry, char *list, size_t size) in vfs_listxattr()
[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/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);
142 bool btrfs_compress_is_valid_type(const char *str, size_t len);
151 struct page *dest_page, unsigned long start_byte, size_t srclen,
152 size_t destlen);
162 struct page *dest_page, unsigned long start_byte, size_t srclen,
163 size_t destlen);
172 struct page *dest_page, unsigned long start_byte, size_t srclen,
173 size_t destlen);
/fs/xfs/
Dxfs_buf.h94 size_t bt_meta_sectormask;
95 size_t bt_logical_sectorsize;
96 size_t bt_logical_sectormask;
199 xfs_daddr_t blkno, size_t numblks,
215 size_t numblks, in xfs_buf_get()
227 size_t numblks, in xfs_buf_read()
242 size_t numblks, in xfs_buf_readahead()
249 int xfs_buf_get_uncached(struct xfs_buftarg *target, size_t numblks, int flags,
252 size_t numblks, int flags, struct xfs_buf **bpp,
281 void xfs_buf_zero(struct xfs_buf *bp, size_t boff, size_t bsize);
[all …]
/fs/ksmbd/
Dasn1.c162 int ksmbd_gssapi_this_mech(void *context, size_t hdrlen, unsigned char tag, in ksmbd_gssapi_this_mech()
163 const void *value, size_t vlen) in ksmbd_gssapi_this_mech()
179 int ksmbd_neg_token_init_mech_type(void *context, size_t hdrlen, in ksmbd_neg_token_init_mech_type()
181 size_t vlen) in ksmbd_neg_token_init_mech_type()
211 static int ksmbd_neg_token_alloc(void *context, size_t hdrlen, in ksmbd_neg_token_alloc()
213 size_t vlen) in ksmbd_neg_token_alloc()
229 int ksmbd_neg_token_init_mech_token(void *context, size_t hdrlen, in ksmbd_neg_token_init_mech_token()
231 size_t vlen) in ksmbd_neg_token_init_mech_token()
236 int ksmbd_neg_token_targ_resp_token(void *context, size_t hdrlen, in ksmbd_neg_token_targ_resp_token()
238 size_t vlen) in ksmbd_neg_token_targ_resp_token()
/fs/nfsd/
Dnfsctl.c65 static ssize_t write_filehandle(struct file *file, char *buf, size_t size);
66 static ssize_t write_unlock_ip(struct file *file, char *buf, size_t size);
67 static ssize_t write_unlock_fs(struct file *file, char *buf, size_t size);
68 static ssize_t write_threads(struct file *file, char *buf, size_t size);
69 static ssize_t write_pool_threads(struct file *file, char *buf, size_t size);
70 static ssize_t write_versions(struct file *file, char *buf, size_t size);
71 static ssize_t write_ports(struct file *file, char *buf, size_t size);
72 static ssize_t write_maxblksize(struct file *file, char *buf, size_t size);
73 static ssize_t write_maxconn(struct file *file, char *buf, size_t size);
75 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/ntfs3/lib/
Ddecompress_common.h27 #define WORDBYTES (sizeof(size_t))
32 put_unaligned(get_unaligned((const size_t *)src), (size_t *)dst); in copy_unaligned_word()
39 static forceinline size_t repeat_byte(u8 b) in repeat_byte()
41 size_t v; in repeat_byte()
182 void *dst_buffer, size_t count) in bitstream_read_bytes()
184 if ((size_t)(is->end - is->next) < count) in bitstream_read_bytes()
305 size_t v = repeat_byte(*(dst - 1)); in lz_copy()
308 put_unaligned(v, (size_t *)dst); in lz_copy()
/fs/ext4/
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()
69 static int pagecache_write(struct inode *inode, const void *buf, size_t count, in pagecache_write()
76 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()
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);

12345678910>>...24