Lines Matching refs:dblk

145 static int bd_strategy(void *devdata, int flag, daddr_t dblk, size_t size,
147 static int bd_realstrategy(void *devdata, int flag, daddr_t dblk, size_t size,
927 bd_strategy(void *devdata, int rw, daddr_t dblk, size_t size, in bd_strategy() argument
950 return (bcache_strategy(&bcd, rw, dblk + offset, size, in bd_strategy()
955 bd_realstrategy(void *devdata, int rw, daddr_t dblk, size_t size, in bd_realstrategy() argument
983 offset = dblk * BIOSDISK_SECSIZE; in bd_realstrategy()
984 dblk = offset / bd->bd_sectorsize; in bd_realstrategy()
1002 if (dblk > dblk + blks) in bd_realstrategy()
1025 if (dblk < d_offset || dblk >= d_offset + disk_blocks) in bd_realstrategy()
1031 if (dblk + blks >= d_offset + disk_blocks) { in bd_realstrategy()
1032 blks = d_offset + disk_blocks - dblk; in bd_realstrategy()
1059 DPRINTF("read %d from %lld to %p", x, dblk, buf); in bd_realstrategy()
1064 if ((rc = bd_io(dev, bd, dblk, x, bbuf, BD_RD)) != 0) { in bd_realstrategy()
1072 DPRINTF("write %d from %lld to %p", x, dblk, buf); in bd_realstrategy()
1081 rc = bd_io(dev, bd, dblk, x, bbuf, BD_RD); in bd_realstrategy()
1089 rc = bd_io(dev, bd, dblk, x, bbuf, BD_RD); in bd_realstrategy()
1099 if ((rc = bd_io(dev, bd, dblk, x, bbuf, BD_WR)) != 0) { in bd_realstrategy()
1114 dblk += x; in bd_realstrategy()
1126 bd_edd_io(bdinfo_t *bd, daddr_t dblk, int blks, caddr_t dest, in bd_edd_io() argument
1135 packet.lba = dblk; in bd_edd_io()
1152 bd_chs_io(bdinfo_t *bd, daddr_t dblk, int blks, caddr_t dest, in bd_chs_io() argument
1158 x = dblk; in bd_chs_io()
1197 bd_io(struct disk_devdesc *dev, bdinfo_t *bd, daddr_t dblk, int blks, in bd_io() argument
1217 if (dowrite == BD_RD && dblk >= 0x100000000) in bd_io()
1221 result = bd_edd_io(bd, dblk, blks, dest, dowrite); in bd_io()
1223 result = bd_chs_io(bd, dblk, blks, dest, dowrite); in bd_io()
1250 dev->dd.d_unit, blks, dest, VTOP(dest), dblk, in bd_io()
1255 dev->dd.d_unit, blks, dblk, dest, VTOP(dest), in bd_io()