Lines Matching refs:ceph_frag_bits
26 static inline __u32 ceph_frag_bits(__u32 f) in ceph_frag_bits() function
36 return (0xffffffu << (24-ceph_frag_bits(f))) & 0xffffffu; in ceph_frag_mask()
40 return 24 - ceph_frag_bits(f); in ceph_frag_mask_shift()
50 return ceph_frag_bits(sub) >= ceph_frag_bits(f) && in ceph_frag_contains_frag()
56 return ceph_frag_make(ceph_frag_bits(f) - 1, in ceph_frag_parent()
61 return ceph_frag_bits(f) > 0 && in ceph_frag_is_left_child()
62 (ceph_frag_value(f) & (0x1000000 >> ceph_frag_bits(f))) == 0; in ceph_frag_is_left_child()
66 return ceph_frag_bits(f) > 0 && in ceph_frag_is_right_child()
67 (ceph_frag_value(f) & (0x1000000 >> ceph_frag_bits(f))) == 1; in ceph_frag_is_right_child()
71 return ceph_frag_make(ceph_frag_bits(f), in ceph_frag_sibling()
72 ceph_frag_value(f) ^ (0x1000000 >> ceph_frag_bits(f))); in ceph_frag_sibling()
76 return ceph_frag_make(ceph_frag_bits(f)+1, ceph_frag_value(f)); in ceph_frag_left_child()
80 return ceph_frag_make(ceph_frag_bits(f)+1, in ceph_frag_right_child()
81 ceph_frag_value(f) | (0x1000000 >> (1+ceph_frag_bits(f)))); in ceph_frag_right_child()
85 int newbits = ceph_frag_bits(f) + by; in ceph_frag_make_child()
99 return ceph_frag_make(ceph_frag_bits(f), in ceph_frag_next()
100 ceph_frag_value(f) + (0x1000000 >> ceph_frag_bits(f))); in ceph_frag_next()