Home
last modified time | relevance | path

Searched refs:blks (Results 1 – 16 of 16) sorted by relevance

/dflybsd-src/stand/boot/pc32/libi386/
H A Dbioscd.c90 static int bc_read(int unit, daddr_t dblk, int blks, caddr_t dest);
218 int blks; in bc_strategy() local
234 blks = size / BIOSCD_SECSIZE; in bc_strategy()
238 DEBUG("read %d from %d to %p", blks, dblk, buf); in bc_strategy()
242 if (blks && bc_read(unit, dblk, blks, buf)) { in bc_strategy()
248 fragsize, dblk, blks, buf + (blks * BIOSCD_SECSIZE)); in bc_strategy()
249 if (fragsize && bc_read(unit, dblk + blks, 1, fragsize)) { in bc_strategy()
253 bcopy(fragbuf, buf + (blks * BIOSCD_SECSIZE), fragsize); in bc_strategy()
261 bc_read(int unit, daddr_t dblk, int blks, caddr_t dest) in bc_read() argument
272 if (blks < 0) in bc_read()
[all …]
H A Dbiosdisk.c107 static int bd_read(struct open_disk *od, daddr_t dblk, int blks,
109 static int bd_write(struct open_disk *od, daddr_t dblk, int blks,
954 int blks; in bd_realstrategy() local
969 blks = size / BIOSDISK_SECSIZE; in bd_realstrategy()
970 DEBUG("read %d from %d to %p", blks, dblk, buf); in bd_realstrategy()
974 if (blks && bd_read(od, dblk, blks, buf)) { in bd_realstrategy()
980 fragsize, dblk, blks, buf + (blks * BIOSDISK_SECSIZE)); in bd_realstrategy()
981 if (fragsize && bd_read(od, dblk + blks, 1, fragsize)) { in bd_realstrategy()
985 bcopy(fragbuf, buf + (blks * BIOSDISK_SECSIZE), fragsize); in bd_realstrategy()
991 blks = size / BIOSDISK_SECSIZE; in bd_realstrategy()
[all …]
/dflybsd-src/sys/opencrypto/
H A Dcryptosoft.c85 int i, k, j, blks, ivlen; in swcr_encdec() local
90 blks = exf->blocksize; in swcr_encdec()
94 if (crd->crd_len % blks) in swcr_encdec()
169 if (m->m_len < k + blks && m->m_len != k) { in swcr_encdec()
170 m_copydata(m, k, blks, blk); in swcr_encdec()
183 for (j = 0; j < blks; j++) in swcr_encdec()
192 bcopy(blk, iv, blks); in swcr_encdec()
200 bcopy(blk, nivp, blks); in swcr_encdec()
205 for (j = 0; j < blks; j++) in swcr_encdec()
212 m_copyback(m, k, blks, blk); in swcr_encdec()
[all …]
/dflybsd-src/sys/vfs/ufs/
H A Dffs_vfsops.c453 int i, blks, size, error; in ffs_reload() local
515 blks = howmany(fs->fs_cssize, fs->fs_fsize); in ffs_reload()
517 for (i = 0; i < blks; i += fs->fs_frag) { in ffs_reload()
519 if (i + fs->fs_frag > blks) in ffs_reload()
520 size = (blks - i) * fs->fs_fsize; in ffs_reload()
596 int error, i, blks, size, ronly; in ffs_mountfs() local
681 blks = howmany(size, fs->fs_fsize); in ffs_mountfs()
687 for (i = 0; i < blks; i += fs->fs_frag) { in ffs_mountfs()
689 if (i + fs->fs_frag > blks) in ffs_mountfs()
690 size = (blks - i) * fs->fs_fsize; in ffs_mountfs()
[all …]
H A Dfs.h520 #define blkstofrags(fs, blks) /* calculates (blks * fs->fs_frag) */ \ argument
521 ((blks) << (fs)->fs_fragshift)
/dflybsd-src/sbin/fsck/
H A Dinode.c377 int blks; in cacheino() local
379 blks = howmany(dp->di_size, sblock.fs_bsize); in cacheino()
380 if (blks > UFS_NDADDR) in cacheino()
381 blks = UFS_NDADDR + UFS_NIADDR; in cacheino()
383 sizeof(*inp) + (blks - 1) * sizeof(ufs_daddr_t)); in cacheino()
393 inp->i_numblks = blks * sizeof(ufs_daddr_t); in cacheino()
/dflybsd-src/test/stress/stress2/lib/
H A Dresources.c196 reservedf(int64_t blks, int64_t inos) in reservedf() argument
213 getprogname(), blks/1024, inos, blocks/1024, inodes); in reservedf()
214 blocks -= blks; in reservedf()
/dflybsd-src/usr.sbin/quot/
H A Dquot.c285 uses(uid_t uid, daddr_t blks, time_t act) in uses() argument
295 usr->space += blks; in uses()
298 usr->spc90 += blks; in uses()
300 usr->spc60 += blks; in uses()
302 usr->spc30 += blks; in uses()
/dflybsd-src/sbin/dump/
H A Dtraverse.c459 int i, j, count, blks, tbperdb; in blksout() local
461 blks = howmany(frags * sblock->fs_fsize, TP_BSIZE); in blksout()
463 for (i = 0; i < blks; i += TP_NINDIR) { in blksout()
464 if (i + TP_NINDIR > blks) in blksout()
465 count = blks; in blksout()
H A Dtape.c223 int i, blks, got; in flushtape() local
274 blks = 0; in flushtape()
278 blks++; in flushtape()
280 slp->count = lastspclrec + blks + 1 - spcl.c_tapea; in flushtape()
/dflybsd-src/usr.sbin/makefs/ffs/
H A Dmkfs.c613 int size, blks, i, saveflag; in ffs_write_superblock() local
637 blks = howmany(size, fs->fs_fsize); in ffs_write_superblock()
640 for (i = 0; i < blks; i+= fs->fs_frag) { in ffs_write_superblock()
642 if (i + fs->fs_frag > blks) in ffs_write_superblock()
643 size = (blks - i) * fs->fs_fsize; in ffs_write_superblock()
/dflybsd-src/stand/boot/common/
H A Dfs.h560 #define blkstofrags(fs, blks) /* calculates (blks * fs->fs_frag) */ \ argument
561 ((blks) << (fs)->fs_fragshift)
/dflybsd-src/sbin/restore/
H A Dtape.c1153 long blks, i; in accthdr() local
1189 blks = 0; in accthdr()
1193 blks++; in accthdr()
1194 predict = blks; in accthdr()
/dflybsd-src/sys/dev/raid/amr/
H A Damrvar.h302 extern int amr_dump_blocks(struct amr_softc *sc, int unit, u_int32_t lba, void *data, int blks);
H A Damr.c2350 amr_dump_blocks(struct amr_softc *sc, int unit, u_int32_t lba, void *data, int blks) in amr_dump_blocks() argument
2367 ac->ac_length = blks * AMR_BLKSIZE; in amr_dump_blocks()
2371 ac->ac_mailbox.mb_blkcount = blks; in amr_dump_blocks()
/dflybsd-src/contrib/binutils-2.27/gold/
H A Dsparc.cc1714 unsigned int blks = ext_cnt / plt_entries_per_block; in do_write() local
1716 for (unsigned int i = 0; i < blks; ++i) in do_write()