Home
last modified time | relevance | path

Searched refs:blkoff (Results 1 – 25 of 42) sorted by relevance

12

/titanic_50/usr/src/uts/common/fs/zfs/
H A Dbpobj.c115 uint64_t offset, blkoff; in bpobj_free() local
118 blkoff = P2PHASE(i, epb); in bpobj_free()
131 bpobj_free(os, objarray[blkoff], tx); in bpobj_free()
221 uint64_t offset, blkoff; in bpobj_iterate_impl() local
224 blkoff = P2PHASE(i, bpo->bpo_epb); in bpobj_iterate_impl()
239 bp = &bparray[blkoff]; in bpobj_iterate_impl()
277 uint64_t offset, blkoff; in bpobj_iterate_impl() local
283 blkoff = P2PHASE(i, epb); in bpobj_iterate_impl()
298 err = bpobj_open(&sublist, bpo->bpo_os, objarray[blkoff]); in bpobj_iterate_impl()
325 objarray[blkoff], tx); in bpobj_iterate_impl()
[all …]
H A Ddmu_tx.c492 int err, i, blkoff, tochk; in dmu_tx_count_free() local
518 blkoff = P2PHASE(blkid, epb); in dmu_tx_count_free()
519 tochk = MIN(epb - blkoff, nblks); in dmu_tx_count_free()
546 bp += blkoff; in dmu_tx_count_free()
H A Ddnode.c1532 uint64_t blkoff, blkid, nblks; in dnode_free_range() local
1552 blkoff = P2PHASE(off, blksz); in dnode_free_range()
1576 blkoff = off; in dnode_free_range()
1580 ASSERT3U(blkoff + head, ==, blksz); in dnode_free_range()
1594 bzero(data + blkoff, head); in dnode_free_range()
/titanic_50/usr/src/cmd/mdb/common/mdb/
H A Dmdb_fdio.c193 size_t blkoff = off & (DEV_BSIZE - 1); in fdio_bdev_read() local
194 size_t len = MIN(resid, DEV_BSIZE - blkoff); in fdio_bdev_read()
199 bcopy(&blk[blkoff], buf, len); in fdio_bdev_read()
234 size_t blkoff = off & (DEV_BSIZE - 1); in fdio_bdev_write() local
235 size_t len = MIN(resid, DEV_BSIZE - blkoff); in fdio_bdev_write()
240 bcopy(buf, &blk[blkoff], len); in fdio_bdev_write()
/titanic_50/usr/src/grub/grub-0.97/stage2/
H A Dfsys_xfs.c56 int blkoff; member
380 if (xfs.blkoff >= xfs.dirbsize) { in next_dentry()
381 xfs.blkoff = sizeof(xfs_dir2_data_hdr_t); in next_dentry()
383 filepos |= xfs.blkoff; in next_dentry()
386 xfs.blkoff += 4; in next_dentry()
389 xfs.blkoff += toread; in next_dentry()
402 xfs.blkoff += toread + 5; in next_dentry()
447 xfs.blkoff = sizeof(xfs_dir2_data_hdr_t); in first_dentry()
448 filepos = xfs.blkoff; in first_dentry()
H A Dfsys_ffs.c151 off = blkoff (SUPERBLOCK, filepos); in ffs_read()
251 if (!(off = blkoff (SUPERBLOCK, loc))) in ffs_dir()
H A Dfs.h401 #define blkoff(fs, loc) /* calculates (loc % fs->fs_bsize) */ \ macro
436 : (fragroundup(fs, blkoff(fs, (ip)->i_size))))
440 : (fragroundup(fs, blkoff(fs, (dip)->di_size))))
H A Dufs2.h384 #define blkoff(fs, loc) /* calculates (loc % fs->fs_bsize) */ \ macro
413 : (fragroundup(fs, blkoff(fs, (ip)->i_size))))
417 : (fragroundup(fs, blkoff(fs, (size)))))
H A Dfsys_ufs2.c176 off = blkoff (SUPERBLOCK, filepos); in ufs2_read()
272 if (!(off = blkoff (SUPERBLOCK, loc))) in ufs2_dir()
H A Dfsys_ufs.c112 off = blkoff(SUPERBLOCK, filepos); in ufs_read()
241 off = blkoff(SUPERBLOCK, loc); in dlook()
H A Dufs.h217 #define blkoff(fs, loc) ((int)((loc & ~(fs)->fs_bmask))) macro
/titanic_50/usr/src/cmd/fs.d/ufs/fsdb/
H A Dfsdb.c1020 cur_bytes = blkoff(fs, addr); in main()
1680 dirp = (struct direct *)(cptr+blkoff(fs, addr)); in main()
2344 cptr += blkoff(fs, addr); in fmtentry()
2474 cptr += blkoff(fs, addr); in follow_path()
2852 cptr += blkoff(fs, addr); in fill()
2900 bptr += blkoff(fs, temp); in get()
2962 cptr += blkoff(fs, address); in icheck()
3004 cptr += blkoff(fs, addr); in getdirslot()
3065 cptr += blkoff(fs, addr); in getdirslot()
3183 curblkoff = blkoff(fs, cur_bytes); in syncshadowscan()
[all …]
/titanic_50/usr/src/uts/common/sys/fs/
H A Dufs_fs.h629 #define blkoff(fs, loc) /* calculates (loc % fs->fs_bsize) */ \ macro
705 : (fragroundup(fs, blkoff(fs, (ip)->i_size))))
711 : (fragroundup(fs, blkoff(fs, (dip)->di_size))))
/titanic_50/usr/src/uts/common/fs/specfs/
H A Dspecvnops.c1840 u_offset_t blkoff; in spec_getapage() local
1894 blkoff = (off / adj_klustsize) * adj_klustsize; in spec_getapage()
1898 if (blkoff + adj_klustsize <= size) in spec_getapage()
1902 MIN(size - blkoff, adj_klustsize); in spec_getapage()
1906 &io_len1, blkoff, blksz, 0); in spec_getapage()
2120 u_offset_t blkoff; in spec_putapage() local
2135 blkoff = (pp->p_offset / adj_klustsize) * adj_klustsize; in spec_putapage()
2137 if (blkoff + adj_klustsize <= size) in spec_putapage()
2140 blksz = size - blkoff; in spec_putapage()
2145 pp = pvn_write_kluster(vp, pp, &tmpoff, &io_len, blkoff, in spec_putapage()
/titanic_50/usr/src/uts/common/fs/nfs/
H A Dnfs_vnops.c3714 u_offset_t blkoff; in nfs_getapage() local
3739 blkoff = lbn * bsize; in nfs_getapage()
3765 else if (blkoff == rp->r_nextr) in nfs_getapage()
3767 else if (rp->r_nextr > blkoff && in nfs_getapage()
3768 ((ra_window = (rp->r_nextr - blkoff) / bsize) in nfs_getapage()
3805 (void) nfs_async_readahead(vp, blkoff, addr, seg, cr, in nfs_getapage()
3828 if (blkoff < rp->r_size && in nfs_getapage()
3829 blkoff + bsize >= rp->r_size) { in nfs_getapage()
3839 blksize = off + PAGESIZE - blkoff; in nfs_getapage()
3841 blksize = rp->r_size - blkoff; in nfs_getapage()
[all …]
H A Dnfs3_vnops.c4618 u_offset_t blkoff; in nfs3_getapage() local
4644 blkoff = lbn * bsize; in nfs3_getapage()
4670 else if (blkoff == rp->r_nextr) in nfs3_getapage()
4672 else if (rp->r_nextr > blkoff && in nfs3_getapage()
4673 ((ra_window = (rp->r_nextr - blkoff) / bsize) in nfs3_getapage()
4710 (void) nfs_async_readahead(vp, blkoff, addr, seg, cr, in nfs3_getapage()
4733 if (blkoff < rp->r_size && in nfs3_getapage()
4734 blkoff + bsize >= rp->r_size) { in nfs3_getapage()
4744 blksize = off + PAGESIZE - blkoff; in nfs3_getapage()
4746 blksize = rp->r_size - blkoff; in nfs3_getapage()
[all …]
/titanic_50/usr/src/uts/common/nfs/
H A Dnfs_clnt.h100 u_offset_t blkoff; /* offset in file */ member
147 #define a_nfs_blkoff a_args.a_read_args.blkoff
/titanic_50/usr/src/uts/common/fs/ufs/
H A Dufs_extvnops.c134 offsetn = blkoff(fs, offset1); in ufs_rdwr_data()
307 offsetn = (int)blkoff(fs, uoff); in ufs_alloc_data()
H A Dufs_directio.c503 on = (int)blkoff(fs, uoff); in ufs_directio_write()
970 (long)blkoff(fs, uoff), nbytes); in ufs_directio_read()
H A Dufs_dir.c370 entryoffsetinblock = blkoff(dp->i_fs, offset); in ufs_dirlook()
390 if (blkoff(dp->i_fs, offset) == 0) { in ufs_dirlook()
1247 if (blkoff(tdp->i_fs, offset) == 0) { in ufs_dircheckforname()
1988 (int)(blkoff(dp->i_fs, slotp->offset) + DIRBLKSIZ), cr); in dirprepareentry()
2790 *res = fbp->fb_addr + blkoff(fs, offset); in blkatoff()
/titanic_50/usr/src/common/fs/
H A Dufsops.c334 off = blkoff(&devp->un_fs.di_fs, dstuff->loc); in readdir()
393 off = blkoff(fs, filep->fi_offset); in getblock()
458 off = blkoff(fs, filep->fi_offset); in getblock_noopt()
/titanic_50/usr/src/psm/stand/bootblks/ufs/common/
H A Dufs.fth84 : blkoff ( byte-off -- blk-off ) bsize mod ;
276 totoff @ blkoff 0= if
428 file-offset@ dup blkoff swap lblkno
519 file-offset@ blkoff ?dup if ( #read adr len off )
/titanic_50/usr/src/cmd/fs.d/ufs/ncheck/
H A Dncheck.c502 if (blkoff(&sblock, dirp->loc) == 0) { in dreaddir()
515 (dirp->dbuf + blkoff(&sblock, dirp->loc)); in dreaddir()
/titanic_50/usr/src/cmd/fs.d/ufs/ff/
H A Dff.c567 if (blkoff(&sblock, dirp->loc) == 0) { in dreaddir()
576 (dirp->dbuf + blkoff(&sblock, dirp->loc)); in dreaddir()
/titanic_50/usr/src/stand/lib/fs/ufs/
H A Dufsops.c418 off = blkoff(&devp->un_fs.di_fs, dstuff->loc); in readdir()
486 off = blkoff(fs, filep->fi_offset); in getblock()

12