Lines Matching refs:offset
8 uint32_t mail_index_uint32_to_offset(uint32_t offset)
10 i_assert(offset < 0x40000000);
11 i_assert((offset & 3) == 0);
13 offset >>= 2;
14 offset = 0x00000080 | ((offset & 0x0000007f)) |
15 0x00008000 | ((offset & 0x00003f80) >> 7 << 8) |
16 0x00800000 | ((offset & 0x001fc000) >> 14 << 16) |
17 0x80000000 | ((offset & 0x0fe00000) >> 21 << 24);
19 return cpu32_to_be(offset);
22 uint32_t mail_index_offset_to_uint32(uint32_t offset)
24 offset = be32_to_cpu(offset);
26 if ((offset & 0x80808080) != 0x80808080)
29 return (((offset & 0x0000007f)) |
30 ((offset & 0x00007f00) >> 8 << 7) |
31 ((offset & 0x007f0000) >> 16 << 14) |
32 ((offset & 0x7f000000) >> 24 << 21)) << 2;