Lines Matching refs:ref_tag

44 			pi->ref_tag = cpu_to_be32(lower_32_bits(iter->seed));  in t10_pi_generate()
46 pi->ref_tag = 0; in t10_pi_generate()
72 if (be32_to_cpu(pi->ref_tag) != in t10_pi_verify()
77 iter->seed, be32_to_cpu(pi->ref_tag)); in t10_pi_verify()
82 pi->ref_tag == T10_PI_REF_ESCAPE) in t10_pi_verify()
138 u32 ref_tag = t10_pi_ref_tag(rq); in t10_pi_type1_prepare() local
159 if (be32_to_cpu(pi->ref_tag) == virt) in t10_pi_type1_prepare()
160 pi->ref_tag = cpu_to_be32(ref_tag); in t10_pi_type1_prepare()
162 ref_tag++; in t10_pi_type1_prepare()
188 u32 ref_tag = t10_pi_ref_tag(rq); in t10_pi_type1_complete() local
205 if (be32_to_cpu(pi->ref_tag) == ref_tag) in t10_pi_type1_complete()
206 pi->ref_tag = cpu_to_be32(virt); in t10_pi_type1_complete()
208 ref_tag++; in t10_pi_type1_complete()
300 put_unaligned_be48(iter->seed, pi->ref_tag); in ext_pi_crc64_generate()
302 put_unaligned_be48(0ULL, pi->ref_tag); in ext_pi_crc64_generate()
312 static bool ext_pi_ref_escape(u8 *ref_tag) in ext_pi_ref_escape() argument
316 return memcmp(ref_tag, ref_escape, sizeof(ref_escape)) == 0; in ext_pi_ref_escape()
333 ref = get_unaligned_be48(pi->ref_tag); in ext_pi_crc64_verify()
342 ext_pi_ref_escape(pi->ref_tag)) in ext_pi_crc64_verify()
377 u64 ref_tag = ext_pi_ref_tag(rq); in ext_pi_type1_prepare() local
397 u64 ref = get_unaligned_be48(pi->ref_tag); in ext_pi_type1_prepare()
400 put_unaligned_be48(ref_tag, pi->ref_tag); in ext_pi_type1_prepare()
402 ref_tag++; in ext_pi_type1_prepare()
416 u64 ref_tag = ext_pi_ref_tag(rq); in ext_pi_type1_complete() local
432 u64 ref = get_unaligned_be48(pi->ref_tag); in ext_pi_type1_complete()
434 if (ref == ref_tag) in ext_pi_type1_complete()
435 put_unaligned_be48(virt, pi->ref_tag); in ext_pi_type1_complete()
437 ref_tag++; in ext_pi_type1_complete()