Searched refs:bshift (Results 1 - 25 of 26) sorted by relevance

12

/netbsd-current/sys/fs/cd9660/
H A Dcd9660_bmap.c70 int bshift; local
84 bshift = ip->i_mnt->im_bshift;
85 *ap->a_bnp = (ip->iso_start + lblkno) << (bshift - DEV_BSHIFT);
94 nblk = (ip->i_size >> bshift) - (lblkno + 1);
97 else if (nblk >= (MAXBSIZE >> bshift))
98 *ap->a_runp = (MAXBSIZE >> bshift) - 1;
/netbsd-current/sys/fs/filecorefs/
H A Dfilecore_bmap.c118 int bshift=fcmp->log2bsize; local
120 nblk = (ip->i_size >> bshift) - (lbn + 1);
123 else if (nblk >= (MAXBSIZE >> bshift))
124 *ap->a_runp = (MAXBSIZE >> bshift) - 1;
/netbsd-current/lib/libc/db/hash/
H A Dhash.h72 int32_t bshift; /* Bucket shift */ member in struct:hashhdr
282 #define BSHIFT hdr.bshift
H A Dhash.c957 P_32_COPY(srcp->bshift, destp->bshift);
988 M_32_SWAP(hdrp->bshift);
/netbsd-current/sys/fs/udf/
H A Dudf_vfsops.c572 uint32_t sector_size, lb_size, bshift; local
617 bshift = 1;
618 while ((1 << bshift) < sector_size)
619 bshift++;
620 if ((1 << bshift) != sector_size) {
708 /* bshift is always equal to disc sector size */
709 mp->mnt_dev_bshift = bshift;
710 mp->mnt_fs_bshift = bshift;
/netbsd-current/sys/ufs/ext2fs/
H A Dext2fs_balloc.c358 int error, delta, bshift, bsize; local
361 bshift = fs->e2fs_bshift;
362 bsize = 1 << bshift;
/netbsd-current/sys/ufs/lfs/
H A Dulfs_inode.c178 int bshift = vp->v_mount->mnt_fs_bshift; local
179 int bsize = 1 << bshift;
H A Dulfs_lookup.c1205 const int bshift = mp->mnt_fs_bshift; local
1206 const int bsize = 1 << bshift;
1214 lbn = offset >> bshift;
1217 const off_t curoff = lbn << bshift;
H A Dulfs_vnops.c1228 int error, delta, bshift, bsize; local
1234 bshift = vp->v_mount->mnt_fs_bshift;
1235 bsize = 1 << bshift;
H A Dlfs_accessors.h1217 LFS_DEF_SB_ACCESSOR(uint32_t, bshift)
/netbsd-current/sys/ufs/ufs/
H A Dufs_inode.c209 int bshift = vp->v_mount->mnt_fs_bshift; local
210 int bsize = 1 << bshift;
H A Dufs_lookup.c1368 const int bshift = mp->mnt_fs_bshift; local
1369 const int bsize = 1 << bshift;
1377 lbn = offset >> bshift;
1380 const off_t curoff = lbn << bshift;
H A Dufs_vnops.c2319 int error, delta, bshift, bsize; local
2323 bshift = vp->v_mount->mnt_fs_bshift;
2324 bsize = 1 << bshift;
/netbsd-current/sbin/fsck_lfs/
H A Dsetup.c119 calcmaxfilesize(unsigned bshift) argument
124 nptr = (1 << bshift) / LFS_BLKPTRSIZE(fs);
127 return maxblock << bshift;
/netbsd-current/sys/lib/libsa/
H A Ddosfs.c74 u_int bshift; /* cluster conversion shift */ member in struct:__anon10
121 #define bytblk(fs, n) ((n) >> (fs)->bshift)
122 #define blkbyt(fs, b) ((BYTE_OFF_T)(b) << (fs)->bshift)
123 #define secblk(fs, s) ((s) >> ((fs)->bshift - SSHIFT))
124 #define blksec(fs, b) ((b) << ((fs)->bshift - SSHIFT))
442 fs->bshift = (u_int)ffs((int)fs->bsize) - 1;
/netbsd-current/sys/fs/hfs/
H A Dhfs_vnops.c735 int bshift; local
740 bshift = vp->v_mount->mnt_fs_bshift;
775 *ap->a_bnp = ((extents[i].start_block + lblkno) << (bshift-DEV_BSHIFT))
784 else if (nblk > MAXBSIZE >> bshift)
785 *ap->a_runp = (MAXBSIZE >> bshift) - 1;
/netbsd-current/external/cddl/osnet/dist/uts/common/fs/zfs/
H A Dvdev_cache.c97 SYSCTL_INT(_vfs_zfs_vdev_cache, OID_AUTO, bshift, CTLFLAG_RDTUN,
/netbsd-current/sbin/newfs_lfs/
H A Dmake_lfs.c276 maxfilesize(struct lfs *fs, int bshift) argument
281 nptr = (1 << bshift) / LFS_BLKPTRSIZE(fs);
284 return maxblock << bshift;
/netbsd-current/sys/miscfs/genfs/
H A Dgenfs_io.c1875 int bsize, bshift, run; local
1877 bshift = vp->v_mount->mnt_fs_bshift;
1878 bsize = 1 << bshift;
1879 lbn = off >> bshift;
1880 elbn = (off + len + bsize - 1) >> bshift;
/netbsd-current/external/gpl3/gdb/dist/libdecnumber/
H A DdecNumber.c6301 /* requested (that is, C may be B only if bshift==0). */
6332 const Unit *b, Int blength, Int bshift,
6351 if (bshift!=0) { /* B is shifted; low As copy across */
6352 minC+=bshift;
6354 if (a==c && bshift<=alength) {
6355 c+=bshift;
6356 a+=bshift;
6358 else for (; c<clsu+bshift; a++, c++) { /* copy needed */
6331 decUnitAddSub(const Unit *a, Int alength, const Unit *b, Int blength, Int bshift, Unit *c, Int m) argument
/netbsd-current/external/gpl3/gdb.old/dist/libdecnumber/
H A DdecNumber.c6301 /* requested (that is, C may be B only if bshift==0). */
6332 const Unit *b, Int blength, Int bshift,
6351 if (bshift!=0) { /* B is shifted; low As copy across */
6352 minC+=bshift;
6354 if (a==c && bshift<=alength) {
6355 c+=bshift;
6356 a+=bshift;
6358 else for (; c<clsu+bshift; a++, c++) { /* copy needed */
6331 decUnitAddSub(const Unit *a, Int alength, const Unit *b, Int blength, Int bshift, Unit *c, Int m) argument
/netbsd-current/external/gpl3/gcc.old/dist/libdecnumber/
H A DdecNumber.c6301 /* requested (that is, C may be B only if bshift==0). */
6332 const Unit *b, Int blength, Int bshift,
6351 if (bshift!=0) { /* B is shifted; low As copy across */
6352 minC+=bshift;
6354 if (a==c && bshift<=alength) {
6355 c+=bshift;
6356 a+=bshift;
6358 else for (; c<clsu+bshift; a++, c++) { /* copy needed */
6331 decUnitAddSub(const Unit *a, Int alength, const Unit *b, Int blength, Int bshift, Unit *c, Int m) argument
/netbsd-current/external/gpl3/gcc/dist/libdecnumber/
H A DdecNumber.c6301 /* requested (that is, C may be B only if bshift==0). */
6332 const Unit *b, Int blength, Int bshift,
6351 if (bshift!=0) { /* B is shifted; low As copy across */
6352 minC+=bshift;
6354 if (a==c && bshift<=alength) {
6355 c+=bshift;
6356 a+=bshift;
6358 else for (; c<clsu+bshift; a++, c++) { /* copy needed */
6331 decUnitAddSub(const Unit *a, Int alength, const Unit *b, Int blength, Int bshift, Unit *c, Int m) argument
/netbsd-current/external/cddl/osnet/dist/cmd/ztest/
H A Dztest.c4795 int bshift = SPA_MAXBLOCKSHIFT + 2; local
4981 offset = ztest_random(fsize / (leaves << bshift)) *
4982 (leaves << bshift) + (leaf << bshift) +
4983 (ztest_random(1ULL << (bshift - 1)) & -8ULL);
/netbsd-current/sys/dev/stbi/
H A Dstb_image.c3416 int rshift=0,gshift=0,bshift=0,ashift=0,rcount=0,gcount=0,bcount=0,acount=0; local
3438 bshift = high_bit(mb)-7; bcount = bitcount(mr);
3458 out[z++] = (uint8) shiftsigned(v & mb, bshift, bcount);

Completed in 637 milliseconds

12