Lines Matching refs:ptr
422 unsigned long ptr,phys; in ufs_getfrag_block() local
451 ptr = fragment; in ufs_getfrag_block()
470 if (ptr < UFS_NDIR_FRAGMENT) { in ufs_getfrag_block()
471 bh = GET_INODE_DATABLOCK(ptr); in ufs_getfrag_block()
474 ptr -= UFS_NDIR_FRAGMENT; in ufs_getfrag_block()
475 if (ptr < (1 << (uspi->s_apbshift + uspi->s_fpbshift))) { in ufs_getfrag_block()
476 bh = GET_INODE_PTR(UFS_IND_FRAGMENT + (ptr >> uspi->s_apbshift)); in ufs_getfrag_block()
479 ptr -= 1 << (uspi->s_apbshift + uspi->s_fpbshift); in ufs_getfrag_block()
480 if (ptr < (1 << (uspi->s_2apbshift + uspi->s_fpbshift))) { in ufs_getfrag_block()
481 bh = GET_INODE_PTR(UFS_DIND_FRAGMENT + (ptr >> uspi->s_2apbshift)); in ufs_getfrag_block()
484 ptr -= 1 << (uspi->s_2apbshift + uspi->s_fpbshift); in ufs_getfrag_block()
485 bh = GET_INODE_PTR(UFS_TIND_FRAGMENT + (ptr >> uspi->s_3apbshift)); in ufs_getfrag_block()
486 bh = GET_INDIRECT_PTR((ptr >> uspi->s_2apbshift) & uspi->s_apbmask); in ufs_getfrag_block()
488 bh = GET_INDIRECT_PTR((ptr >> uspi->s_apbshift) & uspi->s_apbmask); in ufs_getfrag_block()
490 bh = GET_INDIRECT_DATABLOCK(ptr & uspi->s_apbmask); in ufs_getfrag_block()