Lines Matching refs:r
143 xfs_bmbt_rec_host_t *r, in xfs_bmbt_get_all() argument
146 __xfs_bmbt_get_all(r->l0, r->l1, s); in xfs_bmbt_get_all()
154 xfs_bmbt_rec_host_t *r) in xfs_bmbt_get_blockcount() argument
156 return (xfs_filblks_t)(r->l1 & xfs_mask64lo(21)); in xfs_bmbt_get_blockcount()
164 xfs_bmbt_rec_host_t *r) in xfs_bmbt_get_startblock() argument
167 return (((xfs_fsblock_t)r->l0 & xfs_mask64lo(9)) << 43) | in xfs_bmbt_get_startblock()
168 (((xfs_fsblock_t)r->l1) >> 21); in xfs_bmbt_get_startblock()
173 b = (((xfs_dfsbno_t)r->l0 & xfs_mask64lo(9)) << 43) | in xfs_bmbt_get_startblock()
174 (((xfs_dfsbno_t)r->l1) >> 21); in xfs_bmbt_get_startblock()
178 return (xfs_fsblock_t)(((xfs_dfsbno_t)r->l1) >> 21); in xfs_bmbt_get_startblock()
188 xfs_bmbt_rec_host_t *r) in xfs_bmbt_get_startoff() argument
190 return ((xfs_fileoff_t)r->l0 & in xfs_bmbt_get_startoff()
196 xfs_bmbt_rec_host_t *r) in xfs_bmbt_get_state() argument
200 ext_flag = (int)((r->l0) >> (64 - BMBT_EXNTFLAG_BITLEN)); in xfs_bmbt_get_state()
201 return xfs_extent_state(xfs_bmbt_get_blockcount(r), in xfs_bmbt_get_state()
208 xfs_bmbt_rec_t *r, in xfs_bmbt_disk_get_all() argument
211 __xfs_bmbt_get_all(get_unaligned_be64(&r->l0), in xfs_bmbt_disk_get_all()
212 get_unaligned_be64(&r->l1), s); in xfs_bmbt_disk_get_all()
220 xfs_bmbt_rec_t *r) in xfs_bmbt_disk_get_blockcount() argument
222 return (xfs_filblks_t)(be64_to_cpu(r->l1) & xfs_mask64lo(21)); in xfs_bmbt_disk_get_blockcount()
230 xfs_bmbt_rec_t *r) in xfs_bmbt_disk_get_startoff() argument
232 return ((xfs_fileoff_t)be64_to_cpu(r->l0) & in xfs_bmbt_disk_get_startoff()
242 xfs_bmbt_rec_host_t *r, in xfs_bmbt_set_allf() argument
257 r->l0 = ((xfs_bmbt_rec_base_t)extent_flag << 63) | in xfs_bmbt_set_allf()
260 r->l1 = ((xfs_bmbt_rec_base_t)startblock << 21) | in xfs_bmbt_set_allf()
265 r->l0 = ((xfs_bmbt_rec_base_t)extent_flag << 63) | in xfs_bmbt_set_allf()
268 r->l1 = xfs_mask64hi(11) | in xfs_bmbt_set_allf()
273 r->l0 = ((xfs_bmbt_rec_base_t)extent_flag << 63) | in xfs_bmbt_set_allf()
275 r->l1 = ((xfs_bmbt_rec_base_t)startblock << 21) | in xfs_bmbt_set_allf()
287 xfs_bmbt_rec_host_t *r, in xfs_bmbt_set_all() argument
290 xfs_bmbt_set_allf(r, s->br_startoff, s->br_startblock, in xfs_bmbt_set_all()
300 xfs_bmbt_rec_t *r, in xfs_bmbt_disk_set_allf() argument
315 r->l0 = cpu_to_be64( in xfs_bmbt_disk_set_allf()
319 r->l1 = cpu_to_be64( in xfs_bmbt_disk_set_allf()
325 r->l0 = cpu_to_be64( in xfs_bmbt_disk_set_allf()
329 r->l1 = cpu_to_be64(xfs_mask64hi(11) | in xfs_bmbt_disk_set_allf()
334 r->l0 = cpu_to_be64( in xfs_bmbt_disk_set_allf()
337 r->l1 = cpu_to_be64( in xfs_bmbt_disk_set_allf()
350 xfs_bmbt_rec_t *r, in xfs_bmbt_disk_set_all() argument
353 xfs_bmbt_disk_set_allf(r, s->br_startoff, s->br_startblock, in xfs_bmbt_disk_set_all()
362 xfs_bmbt_rec_host_t *r, in xfs_bmbt_set_blockcount() argument
366 r->l1 = (r->l1 & (xfs_bmbt_rec_base_t)xfs_mask64hi(43)) | in xfs_bmbt_set_blockcount()
375 xfs_bmbt_rec_host_t *r, in xfs_bmbt_set_startblock() argument
380 r->l0 = (r->l0 & (xfs_bmbt_rec_base_t)xfs_mask64hi(55)) | in xfs_bmbt_set_startblock()
382 r->l1 = (r->l1 & (xfs_bmbt_rec_base_t)xfs_mask64lo(21)) | in xfs_bmbt_set_startblock()
386 r->l0 |= (xfs_bmbt_rec_base_t)xfs_mask64lo(9); in xfs_bmbt_set_startblock()
387 r->l1 = (xfs_bmbt_rec_base_t)xfs_mask64hi(11) | in xfs_bmbt_set_startblock()
389 (r->l1 & (xfs_bmbt_rec_base_t)xfs_mask64lo(21)); in xfs_bmbt_set_startblock()
391 r->l0 &= ~(xfs_bmbt_rec_base_t)xfs_mask64lo(9); in xfs_bmbt_set_startblock()
392 r->l1 = ((xfs_bmbt_rec_base_t)v << 21) | in xfs_bmbt_set_startblock()
393 (r->l1 & (xfs_bmbt_rec_base_t)xfs_mask64lo(21)); in xfs_bmbt_set_startblock()
403 xfs_bmbt_rec_host_t *r, in xfs_bmbt_set_startoff() argument
407 r->l0 = (r->l0 & (xfs_bmbt_rec_base_t) xfs_mask64hi(1)) | in xfs_bmbt_set_startoff()
409 (r->l0 & (xfs_bmbt_rec_base_t)xfs_mask64lo(9)); in xfs_bmbt_set_startoff()
417 xfs_bmbt_rec_host_t *r, in xfs_bmbt_set_state() argument
422 r->l0 &= xfs_mask64lo(64 - BMBT_EXNTFLAG_BITLEN); in xfs_bmbt_set_state()
424 r->l0 |= xfs_mask64hi(BMBT_EXNTFLAG_BITLEN); in xfs_bmbt_set_state()
797 struct xfs_bmbt_rec_host r; in xfs_bmbt_trace_cursor() local
799 xfs_bmbt_set_all(&r, &cur->bc_rec.b); in xfs_bmbt_trace_cursor()
804 *l0 = r.l0; in xfs_bmbt_trace_cursor()
805 *l1 = r.l1; in xfs_bmbt_trace_cursor()