/src/usr.sbin/mdconfig/ |
mdconfig.c | 62 size_t blks, bytes; local in function:main 76 blks = (size_t)num; 77 bytes = blks << DEV_BSHIFT; 78 if (num <= 0 || bytes >> DEV_BSHIFT != blks) {
|
/src/sys/arch/landisk/stand/boot/ |
biosdisk.c | 357 int blks; local in function:biosdisk_strategy 367 blks = size / BIOSDISK_SECSIZE; 368 if (blks && readsects(d->dev, dblk, buf, blks)) { 377 if (readsects(d->dev, dblk + blks, d->buf, 1)) { 379 *rsize = blks * BIOSDISK_SECSIZE; 382 memcpy(buf + blks * BIOSDISK_SECSIZE, d->buf, frag);
|
/src/sbin/fsck_lfs/ |
inode.c | 367 unsigned int blks, i; local in function:cacheino 369 blks = howmany(lfs_dino_getsize(fs, dp), lfs_sb_getbsize(fs)); 370 if (blks > ULFS_NDADDR) 371 blks = ULFS_NDADDR + ULFS_NIADDR; 372 inp = emalloc(sizeof(*inp) + (blks - 1) * sizeof(inp->i_blks[0])); 385 inp->i_numblks = blks * sizeof(inp->i_blks[0]); 386 for (i=0; i<blks && i<ULFS_NDADDR; i++) { 389 for (; i<blks; i++) {
|
/src/sys/dev/qbus/ |
rl.c | 591 int bn, cn, sn, tn, blks, err; local in function:rlcstart 638 blks = sc->sc_bytecnt/DEV_BSIZE; 640 if (sn + blks > RL_SPT/2) 641 blks = RL_SPT/2 - sn; 642 RL_WREG(RL_MP, -(blks*DEV_BSIZE)/2); 644 (blks*DEV_BSIZE), (bp->b_flags & B_PHYS ? bp->b_proc : 0), 652 sc->sc_bufaddr = (char *)sc->sc_bufaddr + (blks*DEV_BSIZE); 653 sc->sc_diskblk += blks; 654 sc->sc_bytecnt -= (blks*DEV_BSIZE);
|
/src/sys/ufs/ffs/ |
ffs_inode.c | 213 daddr_t blks[UFS_NDADDR + UFS_NIADDR], oldblks[UFS_NDADDR + UFS_NIADDR]; local in function:ffs_truncate 422 blks[UFS_NDADDR + level] = DIP(oip, ib[level]); 423 if (lastiblock[level] < 0 && blks[UFS_NDADDR + level] != 0) { 430 blks[i] = DIP(oip, db[i]); 431 if (i > lastblock && blks[i] != 0) { 451 DIP_ASSIGN(oip, db[i], blks[i]); 452 blks[i] = bn; 456 DIP_ASSIGN(oip, ib[i], blks[UFS_NDADDR + i]); 457 blks[UFS_NDADDR + i] = bn; 575 KASSERTMSG((blks[UFS_NDADDR + level] == DIP(oip, ib[level])) [all...] |
ffs_vfsops.c | 820 int i, bsize, blks, error; local in function:ffs_reload 961 blks = howmany(fs->fs_cssize, fs->fs_fsize); 963 for (i = 0; i < blks; i += fs->fs_frag) { 965 if (i + fs->fs_frag > blks) 966 bsize = (blks - i) * fs->fs_fsize; 1176 int blks, fstype = 0; local in function:ffs_mountfs 1474 blks = howmany(bsize, fs->fs_fsize); 1482 for (i = 0; i < blks; i += fs->fs_frag) { 1484 if (i + fs->fs_frag > blks) 1485 bsize = (blks - i) * fs->fs_fsize 2453 int blks; local in function:ffs_cgupdate [all...] |
/src/sys/dev/ic/ |
cac.c | 659 u_int32_t blks; local in function:cac_ioctl_vol 672 blks = CAC_GET2(dinfo.ncylinders) * CAC_GET1(dinfo.nheads) * 674 bv->bv_size = (off_t)blks * CAC_GET2(dinfo.secsize); 684 bv->bv_percent = ((blks - CAC_GET4(dstatus.prog)) * 1000ULL) / 685 blks;
|
ciss.c | 1528 u_int blks; local in function:ciss_ioctl_vol 1539 blks = (u_int)le16toh(ldid->nblocks[1]) << 16 | 1541 bv->bv_size = blks * (u_quad_t)le16toh(ldid->blksize); 1573 * blks is only correct for a RAID1 set; RAID5 needs to determine the 1584 blks = le32toh(pdid->nblocks); 1585 bv->bv_percent = (blks - prog) * 1000ULL / blks;
|
/src/sys/fs/udf/ |
udf_readwrite.c | 292 int blks = sector_size / DEV_BSIZE; local in function:udf_read_phys_sectors 308 buf->b_lblkno = buf->b_blkno = buf->b_rawblkno = start * blks; 327 nestbuf->b_blkno = rblkno * blks; 329 nestbuf->b_rawblkno = rblkno * blks; 433 int blks = sector_size / DEV_BSIZE; local in function:udf_write_phys_buf 452 rblkno = buf->b_blkno / blks; 467 nestbuf->b_blkno = rblkno * blks; 469 nestbuf->b_rawblkno = rblkno * blks; 490 int blks = sector_size / DEV_BSIZE; local in function:udf_write_phys_sectors 505 buf->b_lblkno = buf->b_blkno = buf->b_rawblkno = start * blks; 525 int blks = sector_size \/ DEV_BSIZE; local in function:udf_write_phys_dscr_sync 571 int blks = sector_size \/ DEV_BSIZE; local in function:udf_write_phys_dscr_async [all...] |
udf_strat_direct.c | 250 int blks = sector_size / DEV_BSIZE; local in function:udf_queue_buf_direct 277 __USE(blks); 282 buf, (uint32_t) buf->b_blkno / blks, buf->b_udf_c_type, 292 buf, (uint32_t) buf->b_blkno / blks, buf->b_udf_c_type,
|
udf_strat_sequential.c | 386 int blks = sector_size / DEV_BSIZE; local in function:udf_issue_buf 393 buf, (uint32_t) buf->b_blkno / blks, buf->b_udf_c_type, 402 buf, (uint32_t) buf->b_blkno / blks, buf->b_udf_c_type, 440 buf->b_blkno = (*lmapping + ptov) * blks;
|
/src/sys/netipsec/ |
xform_esp.c | 684 int hlen, rlen, tlen, padlen, blks, alen, i, roff; local in function:esp_output 711 blks = espx->blocksize; /* IV blocksize */ 717 padlen = ((blks - ((rlen + sizeof(struct esptail)) % blks)) % blks);
|
/src/sbin/fsck_ext2fs/ |
inode.c | 499 unsigned int blks; local in function:cacheino 501 blks = howmany(inosize(dp), sblock.e2fs_bsize); 502 if (blks > EXT2FS_NDADDR) 503 blks = EXT2FS_NDADDR + EXT2FS_NIADDR; 505 inp = malloc(sizeof(*inp) + (blks - 1) * sizeof(int32_t)); 520 inp->i_numblks = blks * sizeof(int32_t);
|
/src/usr.sbin/makefs/ffs/ |
mkfs.c | 504 printf("\tusing %d cylinder groups of %.2fMB, %d blks, " 570 int size, blks, i, saveflag; local in function:ffs_write_superblock 588 blks = howmany(size, fs->fs_fsize); 591 for (i = 0; i < blks; i+= fs->fs_frag) { 593 if (i + fs->fs_frag > blks) 594 size = (blks - i) * fs->fs_fsize;
|
/src/sbin/dump/ |
traverse.c | 658 int i, j, count, blks, tbperdb; local in function:blksout32 660 blks = howmany(frags * ufsib->ufs_fsize, TP_BSIZE); 662 for (i = 0; i < blks; i += TP_NINDIR) { 663 if (i + TP_NINDIR > blks) 664 count = blks; 690 int i, j, count, blks, tbperdb, added = 0; local in function:blksout64 693 blks = howmany(frags * ufsib->ufs_fsize, TP_BSIZE); 705 blks -= howmany(ufsib->ufs_fsize, TP_BSIZE) - resid; 709 for (i = 0; i < blks; i += TP_NINDIR) { 710 if (i + TP_NINDIR > blks) 754 int i, blks, tbperdb, count, extsize; local in function:appendextdata 800 int i, frags, blks, tbperdb, last, extsize; local in function:writeextdata [all...] |
tape.c | 279 int i, blks, got; local in function:flushtape 330 blks = 0; 335 blks++; 337 wp->count = lastspclrec + blks + 1 - iswap64(spcl.c_tapea);
|
/src/sys/ufs/lfs/ |
ulfs_lookup.c | 1201 daddr_t *blks; local in function:ulfs_blkatoff 1209 blks = kmem_alloc((1 + dirrablks) * sizeof(daddr_t), KM_SLEEP); 1224 blks[run] = lbn; 1233 error = breadn(vp, blks[0], blksizes[0], &blks[1], &blksizes[1], 1245 kmem_free(blks, (1 + dirrablks) * sizeof(daddr_t));
|
/src/common/dist/zlib/ |
crc32.c | 712 z_size_t blks; local in function:crc32_z 724 blks = len / (N * W); 725 len -= blks * N * W; 778 Process the first blks-1 blocks, computing the CRCs on each braid 781 while (--blks) { 900 Process the first blks-1 blocks, computing the CRCs on each braid 903 while (--blks) {
|
/src/usr.sbin/mmcformat/ |
mmcformat.c | 470 uint8_t *allow, uint32_t *blks, uint32_t *params) 478 bzero(blks, 255*4); 499 blks[format_tp] = num_blks; 680 "-X format expert format selector form 'fmt:blks:param' with -c\n" 692 uint32_t blks[256], params[256]; local in function:main 890 process_format_caps(caps, caps_len, inquiry, allow, blks, params); 979 format_blks = blks[format_type]; 984 blks, params); 1040 "format_type 0x%02x, blks %d, param %d, "
|
/src/sys/opencrypto/ |
cryptosoft.c | 94 int i, k, j, blks, ivlen; local in function:swcr_encdec 98 blks = exf->enc_xform->blocksize; 100 KASSERT(exf->reinit ? ivlen <= blks : ivlen == blks); 103 if (crd->crd_len % blks) 141 i < crd->crd_skip + crd->crd_len; i += blks) { 150 i < crd->crd_skip + crd->crd_len; i += blks) { 153 for (k = 0; k < blks; k++) 156 for (k = 0; k < blks; k++) 157 buf[i + k] ^= buf[i + k - blks]; [all...] |
/src/sys/arch/vax/vsa/ |
hdc9224.c | 500 int cn, sn, tn, bn, blks; local in function:hdcstart 540 blks = sc->sc_bytecnt/DEV_BSIZE; 541 if ((sn + blks) > lp->d_nsectors) 542 blks = lp->d_nsectors - sn; 547 p->udc_scnt = blks; 555 sc->sc_xfer = blks * DEV_BSIZE;
|
/src/sys/dev/gpib/ |
ct.c | 609 long blks; local in function:cteof 624 blks = sc->sc_stat.c_blk - sc->sc_blkno - 1; 628 blks, bp->b_bcount - CTKTOB(blks))); 629 if (blks == -1) { /* 9145 on EOF does not change sc_stat.c_blk */ 630 blks = 0; 635 bp->b_resid = bp->b_bcount - CTKTOB(blks); 658 else if (blks) {
|
/src/sys/fs/nilfs/ |
nilfs_vnops.c | 336 int blks, run, error; local in function:nilfs_trivial_bmap 342 blks = MAXPHYS / blocksize; 345 l2vmap = malloc(sizeof(uint64_t) * blks, M_TEMP, M_WAITOK); 348 error = nilfs_btree_nlookup(node, bn, blks, l2vmap); 363 while ((run < blks) && (l2vmap[run] == *bnp + run)) 391 uint64_t from, blks; local in function:nilfs_read_filebuf 406 blks = bp->b_bcount / blocksize; 409 "+ %"PRIu64" blocks\n", node->ino, from, blks)); 415 l2vmap = malloc(sizeof(uint64_t) * blks, M_TEMP, M_WAITOK); 416 v2pmap = malloc(sizeof(uint64_t) * blks, M_TEMP, M_WAITOK) [all...] |
/src/sys/arch/hp300/dev/ |
ct.c | 661 long blks; local in function:cteof 676 blks = sc->sc_stat.c_blk - sc->sc_blkno - 1; 681 blks, bp->b_bcount - CTKTOB(blks)); 683 if (blks == -1) { /* 9145 on EOF does not change sc_stat.c_blk */ 684 blks = 0; 690 bp->b_resid = bp->b_bcount - CTKTOB(blks); 713 else if (blks) {
|
/src/sys/ufs/ufs/ |
ufs_lookup.c | 1364 daddr_t *blks; local in function:ufs_blkatoff 1372 blks = kmem_alloc((1 + dirrablks) * sizeof(daddr_t), KM_SLEEP); 1387 blks[run] = lbn; 1396 error = breadn(vp, blks[0], blksizes[0], &blks[1], &blksizes[1], 1408 kmem_free(blks, (1 + dirrablks) * sizeof(daddr_t));
|