Home
last modified time | relevance | path

Searched refs:DEV_BSHIFT (Results 1 – 19 of 19) sorted by relevance

/freebsd/sys/sys/
H A Dparam.h165 #ifndef DEV_BSHIFT
166 #define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ macro
168 #define DEV_BSIZE (1<<DEV_BSHIFT)
226 ? (daddr_t)((unsigned long long)(bytes) >> DEV_BSHIFT) \
227 : (daddr_t)((unsigned long)(bytes) >> DEV_BSHIFT))
232 ((off_t)(db) << DEV_BSHIFT)
364 ((db + (ctodb(1) - 1)) >> (PAGE_SHIFT - DEV_BSHIFT))
367 ((db) << (PAGE_SHIFT - DEV_BSHIFT))
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/
H A Dsysmacros.h50 #define dtob(DD) ((DD) << DEV_BSHIFT)
51 #define btod(BB) (((BB) + DEV_BSIZE - 1) >> DEV_BSHIFT)
52 #define btodt(BB) ((BB) >> DEV_BSHIFT)
53 #define lbtod(BB) (((offset_t)(BB) + DEV_BSIZE - 1) >> DEV_BSHIFT)
/freebsd/usr.sbin/repquota/
H A Drepquota.c58 #if 10 > DEV_BSHIFT
60 ((off_t)(db) >> (10-DEV_BSHIFT))
61 #elif 10 < DEV_BSHIFT
63 ((off_t)(db) << (DEV_BSHIFT-10))
/freebsd/sys/cddl/contrib/opensolaris/uts/common/sys/
H A Dsysmacros.h50 #define dtob(DD) ((DD) << DEV_BSHIFT)
53 #define btod(BB) (((BB) + DEV_BSIZE - 1) >> DEV_BSHIFT)
55 #define btodt(BB) ((BB) >> DEV_BSHIFT)
56 #define lbtod(BB) (((offset_t)(BB) + DEV_BSIZE - 1) >> DEV_BSHIFT)
/freebsd/sys/contrib/openzfs/lib/libspl/include/os/linux/sys/
H A Dparam.h48 #define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ macro
/freebsd/sys/contrib/openzfs/include/sys/
H A Dzvol.h36 DEV_BSHIFT - 1)) - 1)
/freebsd/sys/fs/cd9660/
H A Dcd9660_bmap.c71 *ap->a_bnp = (ip->iso_start + lblkno) << (bshift - DEV_BSHIFT); in cd9660_bmap()
H A Dcd9660_vfsops.c424 ext_attr_length)) << (isomp->im_bshift - DEV_BSHIFT), in iso_mountfs()
747 lbn << (imp->im_bshift - DEV_BSHIFT), in cd9660_vget_internal()
H A Dcd9660_lookup.c456 bp->b_blkno = (ip->iso_start + bp->b_lblkno) << (bshift - DEV_BSHIFT); in cd9660_blkatoff()
H A Dcd9660_vnops.c643 (imp->im_bshift - DEV_BSHIFT), in cd9660_readlink()
718 (ip->i_mnt->im_bshift - DEV_BSHIFT); in cd9660_strategy()
H A Dcd9660_rrip.c528 (ana->imp->im_bshift - DEV_BSHIFT), in cd9660_rrip_loop()
/freebsd/usr.sbin/edquota/
H A Dedquota.c61 #if 10 > DEV_BSHIFT
63 ((off_t)(db) >> (10-DEV_BSHIFT))
64 #elif 10 < DEV_BSHIFT
66 ((off_t)(db) << (DEV_BSHIFT-10))
/freebsd/sys/fs/udf/
H A Dudf.h93 bread(devvp, sector << (udfmp->bshift - DEV_BSHIFT), size, NOCRED, bp)
H A Dudf_vnops.c1040 bp->b_blkno = sector << (node->udfmp->bshift - DEV_BSHIFT); in udf_strategy()
1083 *a->a_bnp = lsector << (node->udfmp->bshift - DEV_BSHIFT); in udf_bmap()
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/
H A Dsysmacros.h72 #define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ macro
/freebsd/stand/libsa/
H A Dufsread.c298 if (dskread(blkbuf, vbaddr, n >> DEV_BSHIFT)) in fsread_size()
/freebsd/sys/vm/
H A Dvm_page.c5298 first_bit = base >> DEV_BSHIFT; in vm_page_bits()
5299 last_bit = (base + size - 1) >> DEV_BSHIFT; in vm_page_bits()
5453 (m->valid & (1 << (base >> DEV_BSHIFT))) == 0) in vm_page_set_valid_range()
5463 (m->valid & (1 << (endoff >> DEV_BSHIFT))) == 0) in vm_page_set_valid_range()
5554 (m->valid & ((vm_page_bits_t)1 << (base >> DEV_BSHIFT))) == 0) in vm_page_set_validclean()
5564 (m->valid & ((vm_page_bits_t)1 << (endoff >> DEV_BSHIFT))) == 0) in vm_page_set_validclean()
5715 b << DEV_BSHIFT, (i - b) << DEV_BSHIFT); in vm_page_zero_invalid()
/freebsd/sys/contrib/openzfs/module/zfs/
H A Ddnode.c2512 ASSERT0(P2PHASE(space, 1<<DEV_BSHIFT)); in dnode_diduse_space()
2513 dn->dn_phys->dn_used = space >> DEV_BSHIFT; in dnode_diduse_space()
/freebsd/sys/kern/
H A Dvfs_bio.c3282 bp->b_blkno + ((i * size) >> DEV_BSHIFT)) == 0) in vfs_bio_awrite()
3287 bp->b_blkno - ((j * size) >> DEV_BSHIFT)) == 0) in vfs_bio_awrite()