Lines Matching refs:ptr
295 __be64 *ptr; in lookup_metapath() local
300 ptr = metapointer(x, mp); in lookup_metapath()
301 dblock = be64_to_cpu(*ptr); in lookup_metapath()
339 static inline unsigned int gfs2_extent_length(void *start, unsigned int len, __be64 *ptr, unsigned … in gfs2_extent_length() argument
342 const __be64 *first = ptr; in gfs2_extent_length()
343 u64 d = be64_to_cpu(*ptr); in gfs2_extent_length()
347 ptr++; in gfs2_extent_length()
348 if (ptr >= end) in gfs2_extent_length()
354 } while(be64_to_cpu(*ptr) == d); in gfs2_extent_length()
355 if (ptr >= end) in gfs2_extent_length()
357 return (ptr - first); in gfs2_extent_length()
380 __be64 *ptr = (__be64 *)(mp->mp_bh[i - 1]->b_data + in gfs2_indirect_init() local
389 ptr += offset; in gfs2_indirect_init()
390 *ptr = cpu_to_be64(bn); in gfs2_indirect_init()
391 return ptr; in gfs2_indirect_init()
441 __be64 *ptr; in gfs2_bmap_alloc() local
452 ptr = metapointer(end_of_metadata, mp); in gfs2_bmap_alloc()
454 dblks = gfs2_extent_length(bh->b_data, bh->b_size, ptr, maxlen, in gfs2_bmap_alloc()
489 ptr = (__be64 *)(dibh->b_data + in gfs2_bmap_alloc()
491 zero_bn = *ptr; in gfs2_bmap_alloc()
503 ptr = (__be64 *)(mp->mp_bh[i]->b_data + in gfs2_bmap_alloc()
505 *ptr = zero_bn; in gfs2_bmap_alloc()
534 ptr = metapointer(end_of_metadata, mp); in gfs2_bmap_alloc()
537 *ptr++ = cpu_to_be64(bn++); in gfs2_bmap_alloc()
573 __be64 *ptr; in gfs2_block_map() local
611 ptr = metapointer(ip->i_height - 1, &mp); in gfs2_block_map()
612 if (*ptr == 0) in gfs2_block_map()
614 map_bh(bh_map, inode->i_sb, be64_to_cpu(*ptr)); in gfs2_block_map()
616 len = gfs2_extent_length(bh->b_data, bh->b_size, ptr, maxlen, &eob); in gfs2_block_map()