/fs/verity/ |
D | open.c | 28 int fsverity_init_merkle_tree_params(struct merkle_tree_params *params, in fsverity_init_merkle_tree_params() argument 40 memset(params, 0, sizeof(*params)); in fsverity_init_merkle_tree_params() 45 params->hash_alg = hash_alg; in fsverity_init_merkle_tree_params() 46 params->digest_size = hash_alg->digest_size; in fsverity_init_merkle_tree_params() 48 params->hashstate = fsverity_prepare_hash_state(hash_alg, salt, in fsverity_init_merkle_tree_params() 50 if (IS_ERR(params->hashstate)) { in fsverity_init_merkle_tree_params() 51 err = PTR_ERR(params->hashstate); in fsverity_init_merkle_tree_params() 52 params->hashstate = NULL; in fsverity_init_merkle_tree_params() 63 params->log_blocksize = log_blocksize; in fsverity_init_merkle_tree_params() 64 params->block_size = 1 << log_blocksize; in fsverity_init_merkle_tree_params() [all …]
|
D | enable.c | 18 const struct merkle_tree_params *params, in build_merkle_tree_level() argument 28 if (WARN_ON(params->block_size != PAGE_SIZE)) /* checked earlier too */ in build_merkle_tree_level() 31 if (level < params->num_levels) { in build_merkle_tree_level() 32 dst_block_num = params->level_start[level]; in build_merkle_tree_level() 59 params->level_start[level - 1] + i); in build_merkle_tree_level() 64 err, params->level_start[level - 1] + i); in build_merkle_tree_level() 69 err = fsverity_hash_page(params, inode, req, src_page, in build_merkle_tree_level() 74 pending_size += params->digest_size; in build_merkle_tree_level() 76 if (level == params->num_levels) /* Root hash? */ in build_merkle_tree_level() 79 if (pending_size + params->digest_size > params->block_size || in build_merkle_tree_level() [all …]
|
D | verify.c | 25 static void hash_at_level(const struct merkle_tree_params *params, in hash_at_level() argument 32 position = dindex >> (level * params->log_arity); in hash_at_level() 35 *hindex = params->level_start[level] + (position >> params->log_arity); in hash_at_level() 38 *hoffset = (position & ((1 << params->log_arity) - 1)) << in hash_at_level() 39 (params->log_blocksize - params->log_arity); in hash_at_level() 89 const struct merkle_tree_params *params = &vi->tree_params; in verify_page() local 90 const unsigned int hsize = params->digest_size; in verify_page() 110 for (level = 0; level < params->num_levels; level++) { in verify_page() 115 hash_at_level(params, index, level, &hindex, &hoffset); in verify_page() 135 params->hash_alg->name, in verify_page() [all …]
|
D | hash_algs.c | 184 int fsverity_hash_page(const struct merkle_tree_params *params, in fsverity_hash_page() argument 192 if (WARN_ON(params->block_size != PAGE_SIZE)) in fsverity_hash_page() 202 if (params->hashstate) { in fsverity_hash_page() 203 err = crypto_ahash_import(req, params->hashstate); in fsverity_hash_page()
|
D | fsverity_private.h | 121 int fsverity_hash_page(const struct merkle_tree_params *params, 141 int fsverity_init_merkle_tree_params(struct merkle_tree_params *params,
|
/fs/dlm/ |
D | user.c | 237 struct dlm_lock_params *params) in device_user_lock() argument 248 if (!params->castaddr || !params->lksb) { in device_user_lock() 257 ua->user_lksb = params->lksb; in device_user_lock() 258 ua->castparam = params->castparam; in device_user_lock() 259 ua->castaddr = params->castaddr; in device_user_lock() 260 ua->bastparam = params->bastparam; in device_user_lock() 261 ua->bastaddr = params->bastaddr; in device_user_lock() 262 ua->xid = params->xid; in device_user_lock() 264 if (params->flags & DLM_LKF_CONVERT) { in device_user_lock() 266 params->mode, params->flags, in device_user_lock() [all …]
|
/fs/afs/ |
D | volume.c | 18 static struct afs_volume *afs_alloc_volume(struct afs_fs_context *params, in afs_alloc_volume() argument 34 volume->vid = vldb->vid[params->type]; in afs_alloc_volume() 36 volume->cell = afs_get_cell(params->cell); in afs_alloc_volume() 37 volume->type = params->type; in afs_alloc_volume() 38 volume->type_force = params->force; in afs_alloc_volume() 47 slist = afs_alloc_server_list(params->cell, params->key, vldb, type_mask); in afs_alloc_volume() 58 afs_put_cell(params->net, volume->cell); in afs_alloc_volume() 111 struct afs_volume *afs_create_volume(struct afs_fs_context *params) in afs_create_volume() argument 115 unsigned long type_mask = 1UL << params->type; in afs_create_volume() 117 vldb = afs_vl_lookup_vldb(params->cell, params->key, in afs_create_volume() [all …]
|
/fs/ |
D | binfmt_elf_fdpic.c | 138 static int elf_fdpic_fetch_phdrs(struct elf_fdpic_params *params, in elf_fdpic_fetch_phdrs() argument 144 loff_t pos = params->hdr.e_phoff; in elf_fdpic_fetch_phdrs() 146 if (params->hdr.e_phentsize != sizeof(struct elf_phdr)) in elf_fdpic_fetch_phdrs() 148 if (params->hdr.e_phnum > 65536U / sizeof(struct elf_phdr)) in elf_fdpic_fetch_phdrs() 151 size = params->hdr.e_phnum * sizeof(struct elf_phdr); in elf_fdpic_fetch_phdrs() 152 params->phdrs = kmalloc(size, GFP_KERNEL); in elf_fdpic_fetch_phdrs() 153 if (!params->phdrs) in elf_fdpic_fetch_phdrs() 156 retval = kernel_read(file, params->phdrs, size, &pos); in elf_fdpic_fetch_phdrs() 161 phdr = params->phdrs; in elf_fdpic_fetch_phdrs() 162 for (loop = 0; loop < params->hdr.e_phnum; loop++, phdr++) { in elf_fdpic_fetch_phdrs() [all …]
|
D | io_uring.c | 3934 static long io_uring_setup(u32 entries, struct io_uring_params __user *params) in io_uring_setup() argument 3940 if (copy_from_user(&p, params, sizeof(p))) in io_uring_setup() 3955 if (copy_to_user(params, &p, sizeof(p))) in io_uring_setup() 3962 struct io_uring_params __user *, params) in SYSCALL_DEFINE2() argument 3964 return io_uring_setup(entries, params); in SYSCALL_DEFINE2()
|
/fs/cifs/ |
D | cifssmb.c | 930 __u16 params, param_offset, offset, byte_count; in CIFSPOSIXDelFile() local 949 params = 6 + name_len; in CIFSPOSIXDelFile() 959 offset = param_offset + params; in CIFSPOSIXDelFile() 969 byte_count = 3 /* pad */ + params + sizeof(struct unlink_psx_rq); in CIFSPOSIXDelFile() 973 pSMB->ParameterCount = cpu_to_le16(params); in CIFSPOSIXDelFile() 1136 __u16 params, param_offset, offset, byte_count, count; in CIFSPOSIXCreate() local 1157 params = 6 + name_len; in CIFSPOSIXCreate() 1168 offset = param_offset + params; in CIFSPOSIXCreate() 1179 byte_count = 3 /* pad */ + params + count; in CIFSPOSIXCreate() 1182 pSMB->ParameterCount = cpu_to_le16(params); in CIFSPOSIXCreate() [all …]
|
/fs/btrfs/ |
D | zstd.c | 34 ZSTD_parameters params = ZSTD_getParams(level, src_len, 0); in zstd_get_btrfs_parameters() local 36 if (params.cParams.windowLog > ZSTD_BTRFS_MAX_WINDOWLOG) in zstd_get_btrfs_parameters() 37 params.cParams.windowLog = ZSTD_BTRFS_MAX_WINDOWLOG; in zstd_get_btrfs_parameters() 39 return params; in zstd_get_btrfs_parameters() 159 ZSTD_parameters params = in zstd_calc_ws_mem_sizes() local 163 ZSTD_CStreamWorkspaceBound(params.cParams), in zstd_calc_ws_mem_sizes() 389 ZSTD_parameters params = zstd_get_btrfs_parameters(workspace->req_level, in zstd_compress_pages() local 397 stream = ZSTD_initCStream(params, len, workspace->mem, in zstd_compress_pages()
|