Searched refs:DEV_BSHIFT (Results 1 – 19 of 19) sorted by relevance
/freebsd/sys/sys/ |
H A D | param.h | 165 #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 D | sysmacros.h | 50 #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 D | repquota.c | 58 #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 D | sysmacros.h | 50 #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 D | param.h | 48 #define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ macro
|
/freebsd/sys/contrib/openzfs/include/sys/ |
H A D | zvol.h | 36 DEV_BSHIFT - 1)) - 1)
|
/freebsd/sys/fs/cd9660/ |
H A D | cd9660_bmap.c | 71 *ap->a_bnp = (ip->iso_start + lblkno) << (bshift - DEV_BSHIFT); in cd9660_bmap()
|
H A D | cd9660_vfsops.c | 424 ext_attr_length)) << (isomp->im_bshift - DEV_BSHIFT), in iso_mountfs() 747 lbn << (imp->im_bshift - DEV_BSHIFT), in cd9660_vget_internal()
|
H A D | cd9660_lookup.c | 456 bp->b_blkno = (ip->iso_start + bp->b_lblkno) << (bshift - DEV_BSHIFT); in cd9660_blkatoff()
|
H A D | cd9660_vnops.c | 643 (imp->im_bshift - DEV_BSHIFT), in cd9660_readlink() 718 (ip->i_mnt->im_bshift - DEV_BSHIFT); in cd9660_strategy()
|
H A D | cd9660_rrip.c | 528 (ana->imp->im_bshift - DEV_BSHIFT), in cd9660_rrip_loop()
|
/freebsd/usr.sbin/edquota/ |
H A D | edquota.c | 61 #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 D | udf.h | 93 bread(devvp, sector << (udfmp->bshift - DEV_BSHIFT), size, NOCRED, bp)
|
H A D | udf_vnops.c | 1040 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 D | sysmacros.h | 72 #define DEV_BSHIFT 9 /* log2(DEV_BSIZE) */ macro
|
/freebsd/stand/libsa/ |
H A D | ufsread.c | 298 if (dskread(blkbuf, vbaddr, n >> DEV_BSHIFT)) in fsread_size()
|
/freebsd/sys/vm/ |
H A D | vm_page.c | 5298 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 D | dnode.c | 2512 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 D | vfs_bio.c | 3282 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()
|