Home
last modified time | relevance | path

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

/fs/crypto/
Dfscrypt_private.h69 struct fscrypt_context_v1 v1; member
81 BUILD_BUG_ON(sizeof(ctx->v1) != 28); in fscrypt_context_size()
82 return sizeof(ctx->v1); in fscrypt_context_size()
102 return ctx->v1.nonce; in fscrypt_context_nonce()
112 struct fscrypt_policy_v1 v1; member
124 return sizeof(policy->v1); in fscrypt_policy_size()
137 return policy->v1.contents_encryption_mode; in fscrypt_policy_contents_mode()
150 return policy->v1.filenames_encryption_mode; in fscrypt_policy_fnames_mode()
163 return policy->v1.flags; in fscrypt_policy_flags()
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()
293 if (ci->ci_policy.v1.flags & FSCRYPT_POLICY_FLAG_DIRECT_KEY) in fscrypt_setup_v1_file_key()
306 ci->ci_policy.v1.master_key_descriptor, in fscrypt_setup_v1_file_key_via_subscribed_keyrings()
310 ci->ci_policy.v1.master_key_descriptor, in fscrypt_setup_v1_file_key_via_subscribed_keyrings()
Dpolicy.c242 return fscrypt_supported_v1_policy(&policy_u->v1, inode); in fscrypt_supported_policy()
268 const struct fscrypt_policy_v1 *policy = &policy_u->v1; in fscrypt_new_context()
269 struct fscrypt_context_v1 *ctx = &ctx_u->v1; in fscrypt_new_context()
329 const struct fscrypt_context_v1 *ctx = &ctx_u->v1; in fscrypt_policy_from_context()
330 struct fscrypt_policy_v1 *policy = &policy_u->v1; in fscrypt_policy_from_context()
514 if (copy_to_user(arg, &policy, sizeof(policy.v1))) in fscrypt_ioctl_get_policy()
757 policy->v1.contents_encryption_mode = FSCRYPT_MODE_AES_256_XTS; in fscrypt_set_test_dummy_encryption()
758 policy->v1.filenames_encryption_mode = FSCRYPT_MODE_AES_256_CTS; in fscrypt_set_test_dummy_encryption()
759 memcpy(policy->v1.master_key_descriptor, key_spec.u.descriptor, in fscrypt_set_test_dummy_encryption()
Dkeysetup.c465 ci->ci_policy.v1.master_key_descriptor, in setup_file_encryption_key()
/fs/adfs/
Dmap.c262 unsigned int v0, v1, v2, v3; in adfs_calczonecheck() local
265 v0 = v1 = v2 = v3 = 0; in adfs_calczonecheck()
269 v1 += map[i + 1] + (v0 >> 8); in adfs_calczonecheck()
271 v2 += map[i + 2] + (v1 >> 8); in adfs_calczonecheck()
272 v1 &= 0xff; in adfs_calczonecheck()
277 v1 += map[1] + (v0 >> 8); in adfs_calczonecheck()
278 v2 += map[2] + (v1 >> 8); in adfs_calczonecheck()
281 return v0 ^ v1 ^ v2 ^ v3; in adfs_calczonecheck()
/fs/afs/
Ddynroot.c138 struct dns_server_list_v1_header *v1 = (void *)result; in afs_probe_cell_name() local
140 if (v1->hdr.zero == 0 && in afs_probe_cell_name()
141 v1->hdr.content == DNS_PAYLOAD_IS_SERVER_LIST && in afs_probe_cell_name()
142 v1->hdr.version == 1 && in afs_probe_cell_name()
143 (v1->status != DNS_LOOKUP_GOOD && in afs_probe_cell_name()
144 v1->status != DNS_LOOKUP_GOOD_WITH_BAD)) in afs_probe_cell_name()
/fs/nfs/
Dinternal.h577 nfs_write_verifier_cmp(const struct nfs_write_verifier *v1, in nfs_write_verifier_cmp() argument
580 return memcmp(v1->data, v2->data, sizeof(v1->data)); in nfs_write_verifier_cmp()
Dnfs4client.c490 static bool nfs4_same_verifier(nfs4_verifier *v1, nfs4_verifier *v2) in nfs4_same_verifier() argument
492 return memcmp(v1->data, v2->data, sizeof(v1->data)) == 0; in nfs4_same_verifier()
/fs/ceph/
Dmds_client.c3730 struct ceph_mds_cap_reconnect_v1 v1; in reconnect_caps_cb() member
3784 rec.v1.cap_id = cpu_to_le64(cap->cap_id); in reconnect_caps_cb()
3785 rec.v1.wanted = cpu_to_le32(__ceph_caps_wanted(ci)); in reconnect_caps_cb()
3786 rec.v1.issued = cpu_to_le32(cap->issued); in reconnect_caps_cb()
3787 rec.v1.size = cpu_to_le64(inode->i_size); in reconnect_caps_cb()
3788 ceph_encode_timespec64(&rec.v1.mtime, &inode->i_mtime); in reconnect_caps_cb()
3789 ceph_encode_timespec64(&rec.v1.atime, &inode->i_atime); in reconnect_caps_cb()
3790 rec.v1.snaprealm = cpu_to_le64(ci->i_snap_realm->ino); in reconnect_caps_cb()
3791 rec.v1.pathbase = cpu_to_le64(pathbase); in reconnect_caps_cb()
3888 pathlen + sizeof(rec.v1)); in reconnect_caps_cb()
[all …]
/fs/cifs/
Dsmb2pdu.c3893 struct smbd_buffer_descriptor_v1 *v1; in smb2_new_read_req() local
3910 v1 = (struct smbd_buffer_descriptor_v1 *) &req->Buffer[0]; in smb2_new_read_req()
3911 v1->offset = cpu_to_le64(rdata->mr->mr->iova); in smb2_new_read_req()
3912 v1->token = cpu_to_le32(rdata->mr->mr->rkey); in smb2_new_read_req()
3913 v1->length = cpu_to_le32(rdata->mr->mr->length); in smb2_new_read_req()
3915 *total_len += sizeof(*v1) - 1; in smb2_new_read_req()
4322 struct smbd_buffer_descriptor_v1 *v1; in smb2_async_writev() local
4350 v1 = (struct smbd_buffer_descriptor_v1 *) &req->Buffer[0]; in smb2_async_writev()
4351 v1->offset = cpu_to_le64(wdata->mr->mr->iova); in smb2_async_writev()
4352 v1->token = cpu_to_le32(wdata->mr->mr->rkey); in smb2_async_writev()
[all …]
/fs/fuse/
Dfile.c406 u32 v1 = v >> 32; in fuse_lock_owner_id() local
411 v0 += ((v1 << 4 ^ v1 >> 5) + v1) ^ (sum + k[sum & 3]); in fuse_lock_owner_id()
413 v1 += ((v0 << 4 ^ v0 >> 5) + v0) ^ (sum + k[sum>>11 & 3]); in fuse_lock_owner_id()
416 return (u64) v0 + ((u64) v1 << 32); in fuse_lock_owner_id()
/fs/ntfs/
Dlayout.h876 } __attribute__ ((__packed__)) v1; member
/fs/btrfs/
Dvolumes.c3959 #define CHECK_APPEND_1ARG(a, v1) \ in describe_balance_args() argument
3961 ret = snprintf(bp, size_bp, (a), (v1)); \ in describe_balance_args()
3968 #define CHECK_APPEND_2ARG(a, v1, v2) \ in describe_balance_args() argument
3970 ret = snprintf(bp, size_bp, (a), (v1), (v2)); \ in describe_balance_args()
4047 #define CHECK_APPEND_1ARG(a, v1) \ in describe_balance_start_or_resume() argument
4049 ret = snprintf(bp, size_bp, (a), (v1)); \ in describe_balance_start_or_resume()
/fs/nfsd/
Dnfs4state.c2212 same_verf(nfs4_verifier *v1, nfs4_verifier *v2) in same_verf() argument
2214 return 0 == memcmp(v1->data, v2->data, sizeof(v1->data)); in same_verf()