/freebsd-11-stable/sys/crypto/aesni/ |
H A D | aesni_wrap.c | 80 struct blocks8 *blks; local 87 blks = (struct blocks8 *)buf; 88 aesni_dec8(rounds - 1, key_schedule, blks->blk[0], blks->blk[1], 89 blks->blk[2], blks->blk[3], blks->blk[4], blks->blk[5], 90 blks->blk[6], blks 116 const struct blocks8 *blks; local 154 const struct blocks8 *blks; local 217 const struct blocks8 *blks; local [all...] |
/freebsd-11-stable/lib/libufs/ |
H A D | sblock.c | 56 int i, size, blks; local 97 blks = howmany(size, fs->fs_fsize); 105 for (i = 0; i < blks; i += fs->fs_frag) { 107 if (i + fs->fs_frag > blks) 108 size = (blks - i) * fs->fs_fsize; 128 int blks, size; local 147 blks = howmany(fs->fs_cssize, fs->fs_fsize); 149 for (i = 0; i < blks; i += fs->fs_frag) { 151 if (i + fs->fs_frag > blks) 152 size = (blks [all...] |
/freebsd-11-stable/stand/pc98/libpc98/ |
H A D | biosdisk.c | 100 static int bd_read(struct disk_devdesc *dev, daddr_t dblk, int blks, 102 static int bd_write(struct disk_devdesc *dev, daddr_t dblk, int blks, 426 int blks, rc; local 450 blks = size / BD(dev).bd_sectorsize; 451 if (dblk > dblk + blks) 473 if (dblk + blks >= dev->d_offset + disk_blocks) { 474 blks = dev->d_offset + disk_blocks - dblk; 475 size = blks * BD(dev).bd_sectorsize; 476 DEBUG("short read %d", blks); 481 DEBUG("read %d from %lld to %p", blks, dbl 529 bd_chs_io(struct disk_devdesc *dev, daddr_t dblk, int blks, caddr_t dest, int write) argument 567 bd_io(struct disk_devdesc *dev, daddr_t dblk, int blks, caddr_t dest, int write) argument 660 bd_read(struct disk_devdesc *dev, daddr_t dblk, int blks, caddr_t dest) argument 668 bd_write(struct disk_devdesc *dev, daddr_t dblk, int blks, caddr_t dest) argument [all...] |
H A D | bioscd.c | 94 static int bc_read(int unit, daddr_t dblk, int blks, caddr_t dest); 256 int blks; local 271 blks = size / BIOSCD_SECSIZE; 275 DEBUG("read %d from %lld to %p", blks, dblk, buf); 279 if (blks && bc_read(unit, dblk, blks, buf)) { 285 fragsize, dblk, blks, buf + (blks * BIOSCD_SECSIZE)); 286 if (fragsize && bc_read(unit, dblk + blks, 1, fragbuf)) { 290 bcopy(fragbuf, buf + (blks * BIOSCD_SECSIZ 301 bc_read(int unit, daddr_t dblk, int blks, caddr_t dest) argument [all...] |
/freebsd-11-stable/stand/libsa/geli/ |
H A D | geliboot_crypto.c | 45 int err, blks, i; local 64 blks = rijndael_blockDecrypt(&cipher, &aeskey, data, 68 blks = rijndael_blockEncrypt(&cipher, &aeskey, data, 71 if (datasize != (blks / 8)) { 73 "%u != %zu\n", blks, datasize);
|
/freebsd-11-stable/stand/efi/include/ |
H A D | efifs.h | 105 #define EFI_LBAL_ARRAY_SIZE(lbal,offs,blks) \ 106 (((blks) - (offs) - (lbal)->Hdr.HeaderSize) / sizeof(EFI_RL))
|
/freebsd-11-stable/sbin/dump/ |
H A D | traverse.c | 630 int i, j, count, blks, tbperdb; local 632 blks = howmany(frags * sblock->fs_fsize, TP_BSIZE); 634 for (i = 0; i < blks; i += TP_NINDIR) { 635 if (i + TP_NINDIR > blks) 636 count = blks; 666 int i, j, count, resid, blks, tbperdb, added; local 674 blks = howmany(frags * sblock->fs_fsize, TP_BSIZE); 683 blks -= howmany(sblock->fs_fsize, TP_BSIZE) - resid; 686 for (i = 0; i < blks; i += TP_NINDIR) { 687 if (i + TP_NINDIR > blks) 730 int i, blks, tbperdb; local 773 int i, frags, blks, tbperdb, last; local [all...] |
H A D | tape.c | 227 int i, blks, got; local 278 blks = 0; 282 blks++; 284 slp->count = lastspclrec + blks + 1 - spcl.c_tapea;
|
/freebsd-11-stable/stand/i386/libi386/ |
H A D | biosdisk.c | 951 size_t blks, blkoff, bsize, bio_size, rest; local 988 blks = size / bd->bd_sectorsize; 989 if (blks == 0 || (size % bd->bd_sectorsize) != 0) 990 blks++; 992 if (dblk > dblk + blks) 1021 if (dblk + blks >= d_offset + disk_blocks) { 1022 blks = d_offset + disk_blocks - dblk; 1023 size = blks * bd->bd_sectorsize; 1024 DEBUG("short I/O %d", blks); 1044 while (blks > 1117 bd_edd_io(bdinfo_t *bd, daddr_t dblk, int blks, caddr_t dest, int dowrite) argument 1144 bd_chs_io(bdinfo_t *bd, daddr_t dblk, int blks, caddr_t dest, int dowrite) argument 1189 bd_io(struct disk_devdesc *dev, bdinfo_t *bd, daddr_t dblk, int blks, caddr_t dest, int dowrite) argument [all...] |
/freebsd-11-stable/sbin/fsck_ffs/ |
H A D | main.c | 243 intmax_t blks, files; local 514 blks = n_blks + 516 blks += cgsblock(&sblock, 0) - cgbase(&sblock, 0); 517 blks += howmany(sblock.fs_cssize, sblock.fs_fsize); 518 blks = maxfsblock - (n_ffree + sblock.fs_frag * n_bfree) - blks; 519 if (bkgrdflag && (files > 0 || blks > 0)) { 522 countdirs, files - countdirs, blks); 533 if (blks < 0) 534 printf("%jd blocks missing\n", -blks); [all...] |
H A D | gjournal.c | 328 ufs2_daddr_t *blks; local 333 blks = (ufs2_daddr_t *)&sblks; 335 if (blks[i] == 0) 338 blkfree(blks[i], fs->fs_bsize); 340 freeindir(blks[i], level - 1);
|
H A D | inode.c | 455 int i, blks; local 458 blks = NDADDR + NIADDR; 460 blks = howmany(DIP(dp, di_size), sblock.fs_bsize); 462 blks = 1; 464 Malloc(sizeof(*inp) + (blks - 1) * sizeof(ufs2_daddr_t)); 474 inp->i_numblks = blks; 475 for (i = 0; i < MIN(blks, NDADDR); i++) 477 if (blks > NDADDR)
|
/freebsd-11-stable/sys/opencrypto/ |
H A D | cryptosoft.c | 90 int i, j, k, blks, ind, count, ivlen; local 100 blks = exf->blocksize; 104 if (crd->crd_len % blks) 189 if (uio->uio_iov[ind].iov_len < k + blks && 191 cuio_copydata(uio, count, blks, blk); 204 for (j = 0; j < blks; j++) 213 bcopy(blk, iv, blks); 221 bcopy(blk, nivp, blks); 226 for (j = 0; j < blks; j++) 233 cuio_copyback(uio, count, blks, bl [all...] |
/freebsd-11-stable/usr.sbin/quot/ |
H A D | quot.c | 327 uses(uid_t uid, daddr_t blks, time_t act) argument 337 usr->space += blks; 340 usr->spc90 += blks; 342 usr->spc60 += blks; 344 usr->spc30 += blks;
|
/freebsd-11-stable/usr.sbin/makefs/ffs/ |
H A D | mkfs.c | 123 int size, blks; local 404 blks = howmany(size, sblock.fs_fsize); 472 printf("\tusing %d cylinder groups of %.2fMB, %d blks, " 540 int cylno, size, blks, i, saveflag; local 559 blks = howmany(size, fs->fs_fsize); 562 for (i = 0; i < blks; i+= fs->fs_frag) { 564 if (i + fs->fs_frag > blks) 565 size = (blks - i) * fs->fs_fsize;
|
/freebsd-11-stable/usr.bin/mkimg/ |
H A D | gpt.c | 154 gpt_write_pmbr(lba_t blks, void *bootcode) argument 160 secs = (blks > UINT32_MAX) ? UINT32_MAX : (uint32_t)blks - 1;
|
/freebsd-11-stable/sys/ufs/ffs/ |
H A D | ffs_vfsops.c | 623 int i, blks, error; local 689 blks = howmany(size, fs->fs_fsize); 696 for (i = 0; i < blks; i += fs->fs_frag) { 698 if (i + fs->fs_frag > blks) 699 size = (blks - i) * fs->fs_fsize; 787 int error, i, blks, len, ronly; local 945 blks = howmany(size, fs->fs_fsize); 951 for (i = 0; i < blks; i += fs->fs_frag) { 953 if (i + fs->fs_frag > blks) 954 size = (blks 1933 int blks; local [all...] |
H A D | fs.h | 299 int32_t fs_maxcontig; /* max number of contiguous blks */ 300 int32_t fs_maxbpg; /* max number of blks per cyl group */ 604 #define blkstofrags(fs, blks) /* calculates (blks * fs->fs_frag) */ \ 605 ((blks) << (fs)->fs_fragshift)
|
/freebsd-11-stable/sbin/tunefs/ |
H A D | tunefs.c | 948 int blks; local 1048 blks = indir_fill(blk, i, &resid) + 1; 1049 if (blks <= 0) { 1055 dp1->di_blocks += blks; 1058 dp2->di_blocks += blks;
|
/freebsd-11-stable/sys/netipsec/ |
H A D | xform_esp.c | 675 int hlen, rlen, padding, blks, alen, i, roff; local 693 blks = MAX(4, espx->blocksize); /* Cipher blocksize */ 696 padding = ((blks - ((rlen + 2) % blks)) % blks) + 2; 726 __func__, skip, hlen, rlen, padding, alen, blks)); */
|
/freebsd-11-stable/sys/contrib/octeon-sdk/ |
H A D | cvmx-dma-engine.c | 181 dpi_engx_buf.s.blks = 2; 187 dpi_engx_buf.s.blks = 6;
|
H A D | cvmx-dpi-defs.h | 1172 uint64_t blks : 4; /**< The size of the engine fifo member in struct:cvmx_dpi_engx_buf::cvmx_dpi_engx_buf_s 1186 uint64_t blks : 4; 1198 uint64_t blks : 4; /**< The size in 512B blocks of the engine fifo member in struct:cvmx_dpi_engx_buf::cvmx_dpi_engx_buf_cn63xx 1210 uint64_t blks : 4;
|
/freebsd-11-stable/sys/dev/amr/ |
H A D | amrvar.h | 296 extern int amr_dump_blocks(struct amr_softc *sc, int unit, u_int32_t lba, void *data, int blks);
|
/freebsd-11-stable/sys/dev/nand/ |
H A D | nand.c | 156 uint32_t blks, pgs; local 159 blks = cg->blks_per_lun * cg->luns; 160 blk_stat = malloc(sizeof(struct block_stat) * blks, M_NAND, 165 pgs = blks * cg->pgs_per_blk;
|
/freebsd-11-stable/sbin/restore/ |
H A D | tape.c | 1493 long blks, i; local 1529 blks = 0; 1533 blks++; 1534 predict = blks;
|