Lines Matching refs:v2
1259 static inline __u16 offset_v2_k_type(const struct offset_v2 *v2)
1261 __u8 type = le64_to_cpu(v2->v) >> 60;
1265 static inline void set_offset_v2_k_type(struct offset_v2 *v2, int type)
1267 v2->v =
1268 (v2->v & cpu_to_le64(~0ULL >> 4)) | cpu_to_le64((__u64) type << 60);
1271 static inline loff_t offset_v2_k_offset(const struct offset_v2 *v2)
1273 return le64_to_cpu(v2->v) & (~0ULL >> 4);
1276 static inline void set_offset_v2_k_offset(struct offset_v2 *v2, loff_t offset)
1279 v2->v = (v2->v & cpu_to_le64(15ULL << 60)) | cpu_to_le64(offset);