Home
last modified time | relevance | path

Searched refs:daddr_t (Results 1 – 25 of 135) sorted by relevance

123456

/illumos-gate/usr/src/uts/common/sys/fs/
H A Dpc_node.h60 daddr_t pc_eblkno; /* disk blkno for entry */
64 daddr_t pc_lindex; /* index of last cluster visited */
121 extern struct pcnode *pc_getnode(struct pcfs *, daddr_t, int, struct pcdir *);
127 extern int pc_bmap(struct pcnode *, daddr_t, daddr_t *, uint_t *);
129 extern int pc_balloc(struct pcnode *, daddr_t, int, daddr_t *);
H A Dufs_inode.h872 extern void free(struct inode *, daddr_t, off_t, int);
873 extern int alloc(struct inode *, daddr_t, int, daddr_t *, cred_t *);
874 extern int realloccg(struct inode *, daddr_t, daddr_t, int, int,
875 daddr_t *, cred_t *);
879 extern daddr_t blkpref(struct inode *, daddr_t, int, daddr32_t *);
880 extern daddr_t contigpref(ufsvfs_t *, size_t, size_t);
887 daddr_t *, struct cred *);
902 extern int ufs_badblock(struct inode *, daddr_t);
906 extern int isblock(struct fs *, uchar_t *, daddr_t);
907 extern void setblock(struct fs *, uchar_t *, daddr_t);
[all …]
H A Dpc_fs.h405 daddr_t pcfs_dosstart; /* start blkno of DOS partition */
406 daddr_t pcfs_fsistart; /* start blkno of FSI sector */
407 daddr_t pcfs_fatstart; /* start blkno of first FAT */
408 daddr_t pcfs_rdirstart; /* start blkno of root dir */
409 daddr_t pcfs_datastart; /* start blkno of data area */
534 ((daddr_t)((OFF) / (PCFS)->pcfs_clsize))
540 ((daddr_t)((CL) * (PCFS)->pcfs_spcl))
549 pc_dbdaddr(PCFS, ((daddr_t)((PCFS)->pcfs_datastart + \
H A Dufs_bio.h64 daddr_t blkno, long bsize);
68 daddr_t blkno, long bsize, int flag);
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/
H A Dfsck.h83 daddr_t b_bno;
89 daddr_t *b_indir; /* indirect block */
108 (bp)->b_bno = (daddr_t)-1; \
118 daddr_t id_blkno; /* current block number being examined */
181 extern daddr_t n_blks; /* number of blocks in use */
182 extern daddr_t n_files; /* number of files in use */
183 extern daddr_t n_dirs; /* number of dirs in use */
218 void markbusy(daddr_t, long);
H A Dutilities.c60 static struct bufarea *getdatablk(daddr_t, long);
64 int32_t bread(int32_t, char *, daddr_t, long);
65 void bwrite(int, char *, daddr_t, long);
125 markbusy(daddr_t block, long count) in markbusy()
178 bp = getdatablk((daddr_t)(block + part_start), fsbsize); in getfilentry()
290 getdatablk(daddr_t blkno, long size) in getdatablk()
317 getblk(struct bufarea *bp, daddr_t blk, long size) in getblk()
319 daddr_t dblk; in getblk()
346 rwerror(char *mesg, daddr_t blk) in rwerror()
381 bread(int fd, char *buf, daddr_t blk, long size) in bread()
[all …]
/illumos-gate/usr/src/boot/common/
H A Dbcache.c53 daddr_t bc_blkno;
89 static void bcache_invalidate(struct bcache *bc, daddr_t blkno);
90 static void bcache_insert(struct bcache *bc, daddr_t blkno);
185 write_strategy(void *devdata, int rw, daddr_t blk, size_t size, in write_strategy()
190 daddr_t i, nblk; in write_strategy()
209 read_strategy(void *devdata, int rw, daddr_t blk, size_t size, in read_strategy()
216 daddr_t p_blk; in read_strategy()
235 if (BCACHE_LOOKUP(bc, (daddr_t)(blk + i))) { in read_strategy()
334 if (BCACHE_LOOKUP(bc, (daddr_t)(blk + i))) in read_strategy()
447 bcache_insert(struct bcache *bc, daddr_t blkno) in bcache_insert()
[all …]
H A Dmd.c63 static int md_strategy(void *, int, daddr_t, size_t, char *, size_t *);
87 md_strategy(void *devdata, int rw, daddr_t blk, size_t size, char *buf, in md_strategy()
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_alloc.c109 daddr_t bno; in alloc()
185 daddr_t bno; in realloccg()
534 daddr_t
893 static daddr_t
974 static daddr_t
1102 static daddr_t
1106 daddr_t bpref, in alloccgblk()
1109 daddr_t bno; in alloccgblk()
1382 static daddr_t
1535 daddr_t blk;
[all …]
H A Dufs_subr.c573 daddr_t blkno; in ufs_sync_indir()
575 daddr_t clbn; /* current logical blk */ in ufs_sync_indir()
582 daddr_t indirect_blkno; in ufs_sync_indir()
595 lbn = (daddr_t)lblkno(fs, ip->i_size - 1); in ufs_sync_indir()
679 daddr_t lbn; in ufs_indirblk_sync()
683 daddr_t ob, nb, tbn; in ufs_indirblk_sync()
697 lbn = (daddr_t)lblkno(fs, off); in ufs_indirblk_sync()
718 tbn -= (daddr_t)sh; in ufs_indirblk_sync()
785 ufs_badblock(struct inode *ip, daddr_t bn) in ufs_badblock()
788 daddr_t sum; in ufs_badblock()
[all …]
H A Dufs_bmap.c207 daddr_t lbn; in bmap_read()
213 daddr_t ob, nb, tbn; in bmap_read()
218 lbn = (daddr_t)lblkno(fs, off); in bmap_read()
341 lbn = (daddr_t)lblkno(fs, off); in bmap_write()
992 register daddr_t bn, nextbn; in findextent()
1189 daddr_t ob, nb, tbn, lbn, skip; in bmap_find()
1196 daddr_t limits[NIADDR]; in bmap_find()
1200 lbn = (daddr_t)lblkno(fs, *off); in bmap_find()
1332 daddr_t lbn; in bmap_set_bn()
1340 daddr_t ob, nb, tbn; in bmap_set_bn()
[all …]
H A Dufs_trans.c231 ufs_trans_push_buf(ufsvfs_t *ufsvfsp, delta_t dtyp, daddr_t bno) in ufs_trans_push_buf()
372 daddr_t *fragsp, in ufs_trans_mata_direct()
377 daddr_t frag; in ufs_trans_mata_direct()
401 daddr_t *fragsp, in ufs_trans_mata_indir()
402 daddr_t frag, in ufs_trans_mata_indir()
437 daddr_t frags = dbtofsb(ip->i_fs, ip->i_blocks); in ufs_trans_mata_iget()
469 daddr_t frag, in ufs_trans_mata_alloc()
489 daddr_t bn; in ufs_trans_dir()
643 daddr_t nblk, maxfblk; in ufs_log_amt()
690 niblk += roundup(n3blk * sizeof (daddr_t), bsize) / bsize + 1; in ufs_log_amt()
[all …]
/illumos-gate/usr/src/uts/common/sys/scsi/impl/
H A Dservices.h68 int severity, daddr_t blkno, daddr_t err_blkno,
74 char *drv_name, int severity, daddr_t blkno, daddr_t err_blkno,
80 char *label, int severity, daddr_t blkno, daddr_t err_blkno,
/illumos-gate/usr/src/uts/common/sys/
H A Dbuf.h374 void blkflush(dev_t, daddr_t);
389 struct buf *bread(dev_t, daddr_t, long);
390 struct buf *bread_common(void *, dev_t, daddr_t, long);
391 struct buf *breada(dev_t, daddr_t, daddr_t, long);
392 struct buf *getblk(dev_t, daddr_t, long);
393 struct buf *getblk_common(void *, dev_t, daddr_t, long, int);
399 struct buf *bioclone(struct buf *, off_t, size_t, dev_t, daddr_t,
H A Dhdio.h42 daddr_t hdkc_blkno; /* disk address for command */
80 daddr_t hdkd_errsect; /* most recent sector in error */
98 daddr_t hdkl_block; /* location of block in error */
H A Dmtio.h54 daddr_t mt_count; /* how many of them */
108 daddr_t mt_resid; /* residual count */
109 daddr_t mt_fileno; /* file number of current position */
110 daddr_t mt_blkno; /* block number of current position */
/illumos-gate/usr/src/boot/i386/common/
H A Ddrv.h38 daddr_t start;
42 int drvread(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk);
43 int drvwrite(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk);
H A Ddrv.c52 drvread(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk) in drvread()
79 drvwrite(struct dsk *dskp, void *buf, daddr_t lba, unsigned nblk) in drvwrite()
/illumos-gate/usr/src/uts/common/fs/pcfs/
H A Dpc_alloc.c54 daddr_t lcn, /* logical cluster no */ in pc_bmap()
55 daddr_t *dbnp, /* ptr to phys block no */ in pc_bmap()
62 daddr_t olcn = lcn; in pc_bmap()
75 daddr_t lbn; /* logical (disk) block number */ in pc_bmap()
97 lcn >= (daddr_t)howmany((offset_t)pcp->pc_size, in pc_bmap()
163 daddr_t lcn, /* logical cluster no */ in pc_balloc()
165 daddr_t *dbnp) /* ptr to phys block no */ in pc_balloc()
183 daddr_t lbn; in pc_balloc()
/illumos-gate/usr/src/cmd/fs.d/ufs/ncheck/
H A Dncheck.c45 #define MAXNINDIR (MAXBSIZE / sizeof (daddr_t))
123 daddr_t bmap(daddr_t);
496 daddr_t lbn, d; in dreaddir()
609 daddr_t
610 bmap(daddr_t i) in bmap()
612 daddr_t ibuf[MAXNINDIR]; in bmap()
619 return ((daddr_t)0); in bmap()
/illumos-gate/usr/src/boot/libsa/
H A Dext2fs.c313 daddr_t f_blkno[NIADDR]; /* disk address of block in
317 daddr_t f_buf_blkno; /* block number of data block */
322 static int block_map(struct open_file *f, daddr_t file_block,
323 daddr_t *disk_block_p);
501 daddr_t disk_block; in ext2fs_open()
506 error = block_map(f, (daddr_t)0, &disk_block); in ext2fs_open()
600 block_map(struct open_file *f, daddr_t file_block, daddr_t *disk_block_p) in block_map()
604 daddr_t ind_block_num; in block_map()
705 daddr_t file_block; in buf_read_file()
706 daddr_t disk_block; in buf_read_file()
/illumos-gate/usr/src/uts/common/sys/dktp/
H A Dgda.h45 int, daddr_t, daddr_t, char **, char **);
H A Dtgdk.h52 daddr_t b_lblk;
54 daddr_t b_psec;
84 tgdk_iob_handle (*tg_iob_alloc)(opaque_t, daddr_t, ssize_t, int);
165 #define LBLK2SEC(BLK, SHF) (daddr_t)((BLK) >> (SHF))
/illumos-gate/usr/src/uts/sun/sys/dada/targets/
H A Ddadpriv.h62 daddr_t failed_blk;
84 daddr_t blkaddr;
/illumos-gate/usr/src/boot/i386/isoboot/
H A Dcd9660read.c59 read_iso_block(void *buffer, daddr_t blkno) in read_iso_block()
232 daddr_t bno, boff; in cd9660_lookup()
322 static daddr_t curstart = 0, curblk = 0; in cd9660_fsread()
323 daddr_t blk, blk_off; in cd9660_fsread()

123456