Home
last modified time | relevance | path

Searched refs:bmask (Results 1 – 15 of 15) sorted by relevance

/dragonfly/usr.sbin/pw/
HDbitmap.c56 bm_getmask(int *pos, unsigned char *bmask) in bm_getmask() argument
58 *bmask = (unsigned char) (1 << (*pos % 8)); in bm_getmask()
65 unsigned char bmask; in bm_setbit() local
67 bm_getmask(&pos, &bmask); in bm_setbit()
68 bm->map[pos] |= bmask; in bm_setbit()
74 unsigned char bmask; in bm_clrbit() local
76 bm_getmask(&pos, &bmask); in bm_clrbit()
77 bm->map[pos] &= ~bmask; in bm_clrbit()
83 unsigned char bmask; in bm_isset() local
85 bm_getmask(&pos, &bmask); in bm_isset()
[all …]
/dragonfly/sys/vfs/udf/
HDudf.h50 int bmask; member
99 (size + udfmp->bmask) & ~udfmp->bmask, bp)); in udf_readlblks()
114 (size + udfmp->bmask) & ~udfmp->bmask, in udf_readalblks()
HDudf_vfsops.c307 udfmp->bmask = udfmp->bsize - 1; in udf_mountfs()
/dragonfly/games/gomoku/
HDmakemove.c65 int space, val, bmask; in makemove() local
88 bmask = BFLAG << r; in makemove()
92 if (fsp->s_flags & bmask) in makemove()
127 fsp->s_flags |= bmask; in makemove()
218 int a, b, bmask, bmask1; in update_overlap() local
226 bmask = BFLAG << r; in update_overlap()
230 if (sp1->s_flags & bmask) in update_overlap()
244 if (sp2->s_flags & bmask) in update_overlap()
HDbdinit.c175 int mask, bmask, vertex, s; in init_overlap() local
200 bmask = BFLAG << r; in init_overlap()
207 if (sp2->s_flags & bmask) in init_overlap()
HDpickmove.c418 int baseB, fcnt, emask, bmask, n; in makecombo2() local
439 bmask = (BFLAG | FFLAG | MFLAG) << r; in makecombo2()
444 if (fsp->s_flags & bmask) in makecombo2()
/dragonfly/sys/vfs/isofs/cd9660/
HDcd9660_lookup.c102 u_long bmask; /* block offset mask */ in cd9660_lookup() local
152 bmask = imp->im_bmask; in cd9660_lookup()
160 if ((entryoffsetinblock = dp->i_offset & bmask) && in cd9660_lookup()
174 if ((dp->i_offset & bmask) == 0) { in cd9660_lookup()
192 (dp->i_offset & ~bmask) + imp->logical_block_size; in cd9660_lookup()
283 entryoffsetinblock = saveoffset & bmask; in cd9660_lookup()
HDcd9660_vnops.c432 u_long bmask; in cd9660_readdir() local
441 bmask = imp->im_bmask; in cd9660_readdir()
475 if ((entryoffsetinblock = idp->curroff & bmask) && in cd9660_readdir()
488 if ((idp->curroff & bmask) == 0) { in cd9660_readdir()
506 (idp->curroff & ~bmask) + imp->logical_block_size; in cd9660_readdir()
/dragonfly/sys/vfs/ufs/
HDufs_dirhash.c104 doff_t bmask, pos; in ufsdirhash_build() local
188 bmask = VFSTOUFS(vp->v_mount)->um_mountp->mnt_stat.f_iosize - 1; in ufsdirhash_build()
192 if ((pos & bmask) == 0) { in ufsdirhash_build()
200 ep = (struct direct *)((char *)bp->b_data + (pos & bmask)); in ufsdirhash_build()
291 doff_t blkoff, bmask, offset, prevoff; in ufsdirhash_lookup() local
328 bmask = VFSTOUFS(vp->v_mount)->um_mountp->mnt_stat.f_iosize - 1; in ufsdirhash_lookup()
363 if ((offset & ~bmask) != blkoff) { in ufsdirhash_lookup()
366 blkoff = offset & ~bmask; in ufsdirhash_lookup()
370 dp = (struct direct *)(bp->b_data + (offset & bmask)); in ufsdirhash_lookup()
HDufs_lookup.c128 u_long bmask; /* block offset mask */ in ufs_lookup() local
166 bmask = VFSTOUFS(vdp->v_mount)->um_mountp->mnt_stat.f_iosize - 1; in ufs_lookup()
195 (dp->i_offset & bmask)); in ufs_lookup()
224 if ((entryoffsetinblock = dp->i_offset & bmask) && in ufs_lookup()
238 if ((dp->i_offset & bmask) == 0) { in ufs_lookup()
/dragonfly/sys/vfs/ext2fs/
HDext2_lookup.c328 u_long bmask; /* block offset mask */ in ext2_lookup_ino() local
345 bmask = VFSTOEXT2(vdp->v_mount)->um_mountp->mnt_stat.f_iosize - 1; in ext2_lookup_ino()
385 (i_offset & bmask)); in ext2_lookup_ino()
417 if ((entryoffsetinblock = i_offset & bmask) && in ext2_lookup_ino()
454 (entryoffsetinblock & bmask)); in ext2_lookup_ino()
/dragonfly/usr.sbin/makefs/hammer2/
HDhammer2_bulkfree.c944 hammer2_bitmap_t bmask; in h2_bulkfree_callback() local
949 bmask = (hammer2_bitmap_t)3 << in h2_bulkfree_callback()
958 if ((bmap->bitmapq[bindex] & bmask) == 0) { in h2_bulkfree_callback()
964 bmap->bitmapq[bindex] |= bmask; in h2_bulkfree_callback()
/dragonfly/sys/vfs/hammer2/
HDhammer2_bulkfree.c933 hammer2_bitmap_t bmask; in h2_bulkfree_callback() local
938 bmask = (hammer2_bitmap_t)3 << in h2_bulkfree_callback()
947 if ((bmap->bitmapq[bindex] & bmask) == 0) { in h2_bulkfree_callback()
953 bmap->bitmapq[bindex] |= bmask; in h2_bulkfree_callback()
/dragonfly/sys/platform/vkernel64/platform/
HDbusdma_machdep.c534 bus_addr_t bmask; in _bus_dmamap_load_buffer() local
604 bmask = ~(dmat->boundary - 1); /* note: will be 0 if boundary is 0 */ in _bus_dmamap_load_buffer()
654 if (((nextpaddr - 1) ^ sg->ds_addr) & bmask) { in _bus_dmamap_load_buffer()
656 (sg->ds_addr & ~bmask); in _bus_dmamap_load_buffer()
/dragonfly/sys/platform/pc64/x86_64/
HDbusdma_machdep.c598 bus_addr_t bmask; in _bus_dmamap_load_buffer() local
668 bmask = ~(dmat->boundary - 1); /* note: will be 0 if boundary is 0 */ in _bus_dmamap_load_buffer()
717 if (((nextpaddr - 1) ^ sg->ds_addr) & bmask) { in _bus_dmamap_load_buffer()
719 (sg->ds_addr & ~bmask); in _bus_dmamap_load_buffer()