Lines Matching refs:length
17 void __user *buf, u64 offset, int length) in fsverity_read_merkle_tree() argument
26 end_offset = min(offset + length, vi->tree_params.tree_size); in fsverity_read_merkle_tree()
81 static int fsverity_read_buffer(void __user *dst, u64 offset, int length, in fsverity_read_buffer() argument
89 length = min_t(size_t, length, src_length); in fsverity_read_buffer()
91 if (copy_to_user(dst, src, length)) in fsverity_read_buffer()
94 return length; in fsverity_read_buffer()
98 void __user *buf, u64 offset, int length) in fsverity_read_descriptor() argument
112 res = fsverity_read_buffer(buf, offset, length, desc, desc_size); in fsverity_read_descriptor()
119 void __user *buf, u64 offset, int length) in fsverity_read_signature() argument
137 res = fsverity_read_buffer(buf, offset, length, desc->signature, in fsverity_read_signature()
156 int length; in fsverity_ioctl_read_metadata() local
174 if (arg.offset + arg.length < arg.offset) in fsverity_ioctl_read_metadata()
178 length = min_t(u64, arg.length, INT_MAX); in fsverity_ioctl_read_metadata()
185 length); in fsverity_ioctl_read_metadata()
187 return fsverity_read_descriptor(inode, buf, arg.offset, length); in fsverity_ioctl_read_metadata()
189 return fsverity_read_signature(inode, buf, arg.offset, length); in fsverity_ioctl_read_metadata()