/illumos-gate/usr/src/uts/common/io/ |
H A D | emul64_bsd.c | 433 diskaddr_t lblkno; in bsd_scsi_io() local 438 lblkno = (uint32_t)GETG0ADDR(cdb); in bsd_scsi_io() 442 lblkno, nblks, sp->cmd_addr); in bsd_scsi_io() 446 emul64_name, lblkno, lblkno, nblks); in bsd_scsi_io() 450 lblkno = (uint32_t)GETG0ADDR(cdb); in bsd_scsi_io() 454 lblkno, nblks, sp->cmd_addr); in bsd_scsi_io() 458 emul64_name, lblkno, lblkno, nblks); in bsd_scsi_io() 462 lblkno = (uint32_t)GETG1ADDR(cdb); in bsd_scsi_io() 466 lblkno, nblks, sp->cmd_addr); in bsd_scsi_io() 470 emul64_name, lblkno, lblkno, nblks); in bsd_scsi_io() [all …]
|
H A D | lofi.c | 850 lofi_blk_mech(struct lofi_state *lsp, longlong_t lblkno) in lofi_blk_mech() argument 887 data = &lblkno; in lofi_blk_mech() 888 datasz = sizeof (lblkno); in lofi_blk_mech() 911 lblkno, ret); in lofi_blk_mech() 940 longlong_t lblkno = bp->b_lblkno; in lofi_crypto() local 956 ret = lofi_blk_mech(lsp, lblkno); in lofi_crypto() 973 lblkno++; in lofi_crypto() 981 lblkno, ret); in lofi_crypto()
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_ffs.c | 152 logno = lblkno (SUPERBLOCK, filepos); in ffs_read() 253 block = lblkno (SUPERBLOCK, loc); in ffs_dir()
|
H A D | fsys_ufs.c | 113 lblk = lblkno(SUPERBLOCK, filepos); in ufs_read() 245 lbn = lblkno(SUPERBLOCK, loc); in dlook()
|
H A D | fsys_ufs2.c | 177 logno = lblkno (SUPERBLOCK, filepos); in ufs2_read() 274 block = lblkno (SUPERBLOCK, loc); in ufs2_dir()
|
H A D | ufs.h | 218 #define lblkno(fs, loc) ((grub_int32_t)((loc) >> (fs)->fs_bshift)) macro
|
H A D | fs.h | 405 #define lblkno(fs, loc) /* calculates (loc / fs->fs_bsize) */ \ macro
|
H A D | ufs2.h | 392 #define lblkno(fs, loc) /* calculates (loc / fs->fs_bsize) */ \ macro
|
/illumos-gate/usr/src/uts/common/fs/ufs/ |
H A D | ufs_bmap.c | 218 lbn = (daddr_t)lblkno(fs, off); in bmap_read() 288 MIN(NINDIR(fs) - i, (daddr_t)lblkno(fs, ip->i_size - 1) - lbn + 1), in bmap_read() 341 lbn = (daddr_t)lblkno(fs, off); in bmap_write() 346 llbn = (daddr_t)((ip->i_size) ? lblkno(fs, ip->i_size - 1) : 0); in bmap_write() 1005 n = MIN(n, lblkno(fs, *lenp)); in findextent() 1200 lbn = (daddr_t)lblkno(fs, *off); in bmap_find() 1347 lbn = (daddr_t)lblkno(fs, off); in bmap_set_bn()
|
H A D | lufs_log.c | 118 daddr_t lblkno, in map_frag() argument 131 if (ext[i].ic_lbno <= lblkno) { in map_frag() 132 if ((ext[i].ic_lbno + ext[i].ic_nbno) > lblkno) { in map_frag() 134 bno_off = lblkno - (uint32_t)ext[i].ic_lbno; in map_frag() 168 daddr_t lblkno, pblkno; in ldl_strategy() local 184 lblkno = pb->b_blkno; in ldl_strategy() 188 error = map_frag(ul, lblkno, nb_left, &pblkno, &pbcount); in ldl_strategy() 198 lblkno += btodb(pbcount); in ldl_strategy()
|
H A D | ufs_trans.c | 660 maxfblk = lblkno(fs, writeend); in ufs_log_amt() 661 offblk = lblkno(fs, offset); in ufs_log_amt() 665 nblk = lblkno(fs, blkroundup(fs, resid)); in ufs_log_amt()
|
H A D | ufs_alloc.c | 1591 if (lblkno(fs, len) > fs->fs_cstotal.cs_nbfree) { in ufs_allocsp() 1594 if (lblkno(fs, len) > fs->fs_cstotal.cs_nbfree) in ufs_allocsp() 1624 if (lblkno(fs, lp->l_start) < NDADDR) { in ufs_allocsp() 1634 (lblkno(fs, lp->l_start + done_len) < NDADDR)) { in ufs_allocsp() 1955 daddr_t nblk = lblkno(fs, blkroundup(fs, nb)); in contigpref() 1956 daddr_t minblk = lblkno(fs, blkroundup(fs, minb)); in contigpref()
|
H A D | ufs_inode.c | 1270 bsize = (int)lblkno(fs, osize - 1) >= NDADDR ? in ufs_itrunc() 1372 bsize = (int)lblkno(fs, length - 1) >= NDADDR ? in ufs_itrunc() 1388 lastblock = lblkno(fs, length + fs->fs_bsize - 1) - 1; in ufs_itrunc()
|
/illumos-gate/usr/src/uts/common/fs/udfs/ |
H A D | udf_subr.c | 164 uint32_t lblkno, retblkno = 0, *addr; in ud_xlate_to_daddr() local 184 lblkno = SWAP_32(addr[blkno]); in ud_xlate_to_daddr() 241 lblkno = blkno; in ud_xlate_to_daddr() 247 lblkno = blkno; in ud_xlate_to_daddr() 257 if (lblkno >= ud_parts->udp_length) { in ud_xlate_to_daddr() 260 retblkno = ud_parts->udp_start + lblkno; in ud_xlate_to_daddr()
|
H A D | udf_vfsops.c | 967 daddr_t blkno, lblkno; in ud_validate_and_fill_superblock() local 1321 if (error = ud_get_last_block(dev, &lblkno)) { in ud_validate_and_fill_superblock() 1325 lblkno, map)) { in ud_validate_and_fill_superblock()
|
/illumos-gate/usr/src/common/fs/ |
H A D | ufsops.c | 341 lbn = lblkno(&devp->un_fs.di_fs, dstuff->loc); in readdir() 392 lbn = lblkno(fs, filep->fi_offset); in getblock() 457 lbn = lblkno(fs, filep->fi_offset); in getblock_noopt()
|
/illumos-gate/usr/src/uts/common/io/blkdev/ |
H A D | blkdev.c | 1467 diskaddr_t lblkno; in bd_strategy() local 1490 lblkno = bp->b_lblkno >> (shift - DEV_BSHIFT); in bd_strategy() 1493 (lblkno > p_nblks)) { in bd_strategy() 1499 if ((lblkno == p_nblks) || (bp->b_bcount == 0)) { in bd_strategy() 1504 if ((b_nblks + lblkno) > p_nblks) { in bd_strategy() 1505 bp->b_resid = ((lblkno + b_nblks - p_nblks) << shift); in bd_strategy() 1521 xi->i_blkno = lblkno + p_lba; in bd_strategy()
|
/illumos-gate/usr/src/boot/libsa/ |
H A D | ufs.c | 315 file_block = lblkno(fs, fp->f_seekp); in buf_write_file() 387 file_block = lblkno(fs, fp->f_seekp); in buf_read_file()
|
/illumos-gate/usr/src/boot/sys/fs/cd9660/ |
H A D | iso.h | 281 #define lblkno(imp, loc) ((loc) >> (imp)->im_bshift) macro
|
/illumos-gate/usr/src/stand/lib/fs/ufs/ |
H A D | ufsops.c | 421 lbn = lblkno(&devp->un_fs.di_fs, dstuff->loc); in readdir() 473 lbn = lblkno(fs, filep->fi_offset); in getblock()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/quot/ |
H A D | quot.c | 318 blks = lblkno(&sblock, ip->di_size); in qacct()
|
/illumos-gate/usr/src/cmd/fs.d/ufs/fsdb/ |
H A D | fsdb.c | 3172 lblkno(fs, addr) != (bhdr.fwd)->blkno)) { in syncshadowscan() 3174 addr = bmap(lblkno(fs, cur_bytes)) << FRGSHIFT; in syncshadowscan() 3317 block = lblkno(fs, address); in getblk() 4339 temp = cur_block - lblkno(fs, cur_bytes); in check_addr() 4354 temp = lblkno(fs, cur_bytes) - cur_block; in check_addr() 4770 if (lblkno(fs, addr) == (bhdr.fwd)->blkno)
|
/illumos-gate/usr/src/cmd/fs.d/ufs/ncheck/ |
H A D | ncheck.c | 502 lbn = lblkno(&sblock, dirp->loc); in dreaddir()
|
/illumos-gate/usr/src/boot/sys/ufs/ffs/ |
H A D | fs.h | 581 #define lblkno(fs, loc) /* calculates (loc / fs->fs_bsize) */ \ macro
|
/illumos-gate/usr/src/uts/common/sys/fs/ |
H A D | ufs_fs.h | 643 #define lblkno(fs, loc) /* calculates (loc / fs->fs_bsize) */ \ macro
|