Home
last modified time | relevance | path

Searched refs:v1 (Results 1 – 14 of 14) sorted by relevance

/fs/crypto/
Dkeysetup_v1.c192 memcpy(&hash_key, ci->ci_policy.v1.master_key_descriptor, in find_or_insert_direct_key()
197 if (memcmp(ci->ci_policy.v1.master_key_descriptor, in find_or_insert_direct_key()
240 memcpy(dk->dk_descriptor, ci->ci_policy.v1.master_key_descriptor, in fscrypt_get_direct_key()
265 if (ci->ci_policy.v1.contents_encryption_mode != in setup_v1_file_key_direct()
266 ci->ci_policy.v1.filenames_encryption_mode) { in setup_v1_file_key_direct()
308 if (ci->ci_policy.v1.flags & FSCRYPT_POLICY_FLAG_DIRECT_KEY) in fscrypt_setup_v1_file_key()
321 ci->ci_policy.v1.master_key_descriptor, in fscrypt_setup_v1_file_key_via_subscribed_keyrings()
325 ci->ci_policy.v1.master_key_descriptor, in fscrypt_setup_v1_file_key_via_subscribed_keyrings()
Dfscrypt_private.h59 struct fscrypt_context_v1 v1; member
71 BUILD_BUG_ON(sizeof(ctx->v1) != 28); in fscrypt_context_size()
72 return sizeof(ctx->v1); in fscrypt_context_size()
83 struct fscrypt_policy_v1 v1; member
95 return sizeof(policy->v1); in fscrypt_policy_size()
108 return policy->v1.contents_encryption_mode; in fscrypt_policy_contents_mode()
121 return policy->v1.filenames_encryption_mode; in fscrypt_policy_fnames_mode()
134 return policy->v1.flags; in fscrypt_policy_flags()
Dpolicy.c81 const struct fscrypt_policy_v1 *policy = &policy_u->v1; in fscrypt_supported_policy()
153 const struct fscrypt_policy_v1 *policy = &policy_u->v1; in fscrypt_new_context_from_policy()
154 struct fscrypt_context_v1 *ctx = &ctx_u->v1; in fscrypt_new_context_from_policy()
210 const struct fscrypt_context_v1 *ctx = &ctx_u->v1; in fscrypt_policy_from_context()
211 struct fscrypt_policy_v1 *policy = &policy_u->v1; in fscrypt_policy_from_context()
390 if (copy_to_user(arg, &policy, sizeof(policy.v1))) in fscrypt_ioctl_get_policy()
Dkeysetup.c313 ci->ci_policy.v1.master_key_descriptor, in setup_file_encryption_key()
453 ctx.v1.contents_encryption_mode = FSCRYPT_MODE_AES_256_XTS; in fscrypt_get_encryption_info()
454 ctx.v1.filenames_encryption_mode = FSCRYPT_MODE_AES_256_CTS; in fscrypt_get_encryption_info()
455 memset(ctx.v1.master_key_descriptor, 0x42, in fscrypt_get_encryption_info()
457 res = sizeof(ctx.v1); in fscrypt_get_encryption_info()
475 memcpy(crypt_info->ci_nonce, ctx.v1.nonce, in fscrypt_get_encryption_info()
/fs/adfs/
Dsuper.c93 unsigned int v0, v1, v2, v3; in adfs_calczonecheck() local
96 v0 = v1 = v2 = v3 = 0; in adfs_calczonecheck()
100 v1 += map[i + 1] + (v0 >> 8); in adfs_calczonecheck()
102 v2 += map[i + 2] + (v1 >> 8); in adfs_calczonecheck()
103 v1 &= 0xff; in adfs_calczonecheck()
108 v1 += map[1] + (v0 >> 8); in adfs_calczonecheck()
109 v2 += map[2] + (v1 >> 8); in adfs_calczonecheck()
112 return v0 ^ v1 ^ v2 ^ v3; in adfs_calczonecheck()
/fs/nfs/
Dinternal.h539 nfs_write_verifier_cmp(const struct nfs_write_verifier *v1, in nfs_write_verifier_cmp() argument
542 return memcmp(v1->data, v2->data, sizeof(v1->data)); in nfs_write_verifier_cmp()
Dnfs4client.c488 static bool nfs4_same_verifier(nfs4_verifier *v1, nfs4_verifier *v2) in nfs4_same_verifier() argument
490 return memcmp(v1->data, v2->data, sizeof(v1->data)) == 0; in nfs4_same_verifier()
Ddirect.c203 static int nfs_direct_cmp_verf(const struct nfs_writeverf *v1, in nfs_direct_cmp_verf() argument
206 return nfs_write_verifier_cmp(&v1->verifier, &v2->verifier); in nfs_direct_cmp_verf()
/fs/ceph/
Dmds_client.c3339 struct ceph_mds_cap_reconnect_v1 v1; in encode_caps_cb() member
3366 rec.v1.cap_id = cpu_to_le64(cap->cap_id); in encode_caps_cb()
3367 rec.v1.wanted = cpu_to_le32(__ceph_caps_wanted(ci)); in encode_caps_cb()
3368 rec.v1.issued = cpu_to_le32(cap->issued); in encode_caps_cb()
3369 rec.v1.size = cpu_to_le64(inode->i_size); in encode_caps_cb()
3370 ceph_encode_timespec64(&rec.v1.mtime, &inode->i_mtime); in encode_caps_cb()
3371 ceph_encode_timespec64(&rec.v1.atime, &inode->i_atime); in encode_caps_cb()
3372 rec.v1.snaprealm = cpu_to_le64(ci->i_snap_realm->ino); in encode_caps_cb()
3373 rec.v1.pathbase = 0; in encode_caps_cb()
3482 rec.v1.pathbase = cpu_to_le64(pathbase); in encode_caps_cb()
[all …]
/fs/cifs/
Dsmb2pdu.c3563 struct smbd_buffer_descriptor_v1 *v1; in smb2_new_read_req() local
3581 v1 = (struct smbd_buffer_descriptor_v1 *) &req->Buffer[0]; in smb2_new_read_req()
3582 v1->offset = cpu_to_le64(rdata->mr->mr->iova); in smb2_new_read_req()
3583 v1->token = cpu_to_le32(rdata->mr->mr->rkey); in smb2_new_read_req()
3584 v1->length = cpu_to_le32(rdata->mr->mr->length); in smb2_new_read_req()
3586 *total_len += sizeof(*v1) - 1; in smb2_new_read_req()
3969 struct smbd_buffer_descriptor_v1 *v1; in smb2_async_writev() local
3997 v1 = (struct smbd_buffer_descriptor_v1 *) &req->Buffer[0]; in smb2_async_writev()
3998 v1->offset = cpu_to_le64(wdata->mr->mr->iova); in smb2_async_writev()
3999 v1->token = cpu_to_le32(wdata->mr->mr->rkey); in smb2_async_writev()
[all …]
/fs/fuse/
Dfile.c345 u32 v1 = v >> 32; in fuse_lock_owner_id() local
350 v0 += ((v1 << 4 ^ v1 >> 5) + v1) ^ (sum + k[sum & 3]); in fuse_lock_owner_id()
352 v1 += ((v0 << 4 ^ v0 >> 5) + v0) ^ (sum + k[sum>>11 & 3]); in fuse_lock_owner_id()
355 return (u64) v0 + ((u64) v1 << 32); in fuse_lock_owner_id()
/fs/ntfs/
Dlayout.h876 } __attribute__ ((__packed__)) v1; member
/fs/btrfs/
Dvolumes.c3898 #define CHECK_APPEND_1ARG(a, v1) \ in describe_balance_args() argument
3900 ret = snprintf(bp, size_bp, (a), (v1)); \ in describe_balance_args()
3907 #define CHECK_APPEND_2ARG(a, v1, v2) \ in describe_balance_args() argument
3909 ret = snprintf(bp, size_bp, (a), (v1), (v2)); \ in describe_balance_args()
3986 #define CHECK_APPEND_1ARG(a, v1) \ in describe_balance_start_or_resume() argument
3988 ret = snprintf(bp, size_bp, (a), (v1)); \ in describe_balance_start_or_resume()
/fs/nfsd/
Dnfs4state.c2125 same_verf(nfs4_verifier *v1, nfs4_verifier *v2) in same_verf() argument
2127 return 0 == memcmp(v1->data, v2->data, sizeof(v1->data)); in same_verf()