| /freebsd-10-stable/sys/crypto/aesni/ |
| D | aesni_wrap.c | 72 struct blocks8 *blks; in aesni_decrypt_cbc() local 79 blks = (struct blocks8 *)buf; in aesni_decrypt_cbc() 80 aesni_dec8(rounds - 1, key_schedule, blks->blk[0], blks->blk[1], in aesni_decrypt_cbc() 81 blks->blk[2], blks->blk[3], blks->blk[4], blks->blk[5], in aesni_decrypt_cbc() 82 blks->blk[6], blks->blk[7], &blocks[0]); in aesni_decrypt_cbc() 84 nextiv = blks->blk[j]; in aesni_decrypt_cbc() 85 blks->blk[j] = blocks[j] ^ ivreg; in aesni_decrypt_cbc() 108 const struct blocks8 *blks; in aesni_encrypt_ecb() local 113 blks = (const struct blocks8 *)from; in aesni_encrypt_ecb() 115 aesni_enc8(rounds - 1, key_schedule, blks->blk[0], blks->blk[1], in aesni_encrypt_ecb() [all …]
|
| /freebsd-10-stable/sys/opencrypto/ |
| D | cryptosoft.c | 76 int i, k, j, blks; in swcr_encdec() local 79 blks = exf->blocksize; in swcr_encdec() 82 if (crd->crd_len % blks) in swcr_encdec() 89 bcopy(crd->crd_iv, iv, blks); in swcr_encdec() 91 arc4rand(iv, blks, 0); in swcr_encdec() 95 crypto_copyback(flags, buf, crd->crd_inject, blks, iv); in swcr_encdec() 100 bcopy(crd->crd_iv, iv, blks); in swcr_encdec() 103 crypto_copydata(flags, buf, crd->crd_inject, blks, iv); in swcr_encdec() 142 if (m->m_len < k + blks && m->m_len != k) { in swcr_encdec() 143 m_copydata(m, k, blks, blk); in swcr_encdec() [all …]
|
| /freebsd-10-stable/sys/boot/i386/libi386/ |
| D | biosdisk.c | 94 static int bd_read(struct disk_devdesc *dev, daddr_t dblk, int blks, 96 static int bd_write(struct disk_devdesc *dev, daddr_t dblk, int blks, 366 int blks; in bd_realstrategy() local 378 blks = size / BD(dev).bd_sectorsize; in bd_realstrategy() 384 DEBUG("read %d from %lld to %p", blks, dblk, buf); in bd_realstrategy() 386 if (blks && bd_read(dev, dblk, blks, buf)) { in bd_realstrategy() 392 fragsize, dblk, blks, buf + (blks * BIOSDISK_SECSIZE)); in bd_realstrategy() 393 if (fragsize && bd_read(od, dblk + blks, 1, fragsize)) { in bd_realstrategy() 397 bcopy(fragbuf, buf + (blks * BIOSDISK_SECSIZE), fragsize); in bd_realstrategy() 401 DEBUG("write %d from %d to %p", blks, dblk, buf); in bd_realstrategy() [all …]
|
| D | bioscd.c | 91 static int bc_read(int unit, daddr_t dblk, int blks, caddr_t dest); 219 int blks; in bc_strategy() local 234 blks = size / BIOSCD_SECSIZE; in bc_strategy() 238 DEBUG("read %d from %lld 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, fragbuf)) { in bc_strategy() 253 bcopy(fragbuf, buf + (blks * BIOSCD_SECSIZE), fragsize); in bc_strategy() 264 bc_read(int unit, daddr_t dblk, int blks, caddr_t dest) in bc_read() argument 275 if (blks < 0) in bc_read() [all …]
|
| /freebsd-10-stable/sys/boot/pc98/libpc98/ |
| D | bioscd.c | 90 static int bc_read(int unit, daddr_t dblk, int blks, caddr_t dest); 215 int blks; in bc_strategy() local 230 blks = size / BIOSCD_SECSIZE; in bc_strategy() 234 DEBUG("read %d from %lld to %p", blks, dblk, buf); in bc_strategy() 238 if (blks && bc_read(unit, dblk, blks, buf)) { in bc_strategy() 244 fragsize, dblk, blks, buf + (blks * BIOSCD_SECSIZE)); in bc_strategy() 245 if (fragsize && bc_read(unit, dblk + blks, 1, fragbuf)) { in bc_strategy() 249 bcopy(fragbuf, buf + (blks * BIOSCD_SECSIZE), fragsize); in bc_strategy() 260 bc_read(int unit, daddr_t dblk, int blks, caddr_t dest) in bc_read() argument 270 if (blks < 0) in bc_read() [all …]
|
| D | biosdisk.c | 103 static int bd_read(struct open_disk *od, daddr_t dblk, int blks, 105 static int bd_write(struct open_disk *od, daddr_t dblk, int blks, 732 int blks; in bd_realstrategy() local 744 blks = size / BIOSDISK_SECSIZE; in bd_realstrategy() 750 DEBUG("read %d from %d to %p", blks, dblk, buf); in bd_realstrategy() 752 if (blks && bd_read(od, dblk, blks, buf)) { in bd_realstrategy() 758 fragsize, dblk, blks, buf + (blks * BIOSDISK_SECSIZE)); in bd_realstrategy() 759 if (fragsize && bd_read(od, dblk + blks, 1, fragsize)) { in bd_realstrategy() 763 bcopy(fragbuf, buf + (blks * BIOSDISK_SECSIZE), fragsize); in bd_realstrategy() 767 DEBUG("write %d from %d to %p", blks, dblk, buf); in bd_realstrategy() [all …]
|
| /freebsd-10-stable/lib/libufs/ |
| D | sblock.c | 56 int i, size, blks; in sbread() local 97 blks = howmany(size, fs->fs_fsize); in sbread() 105 for (i = 0; i < blks; i += fs->fs_frag) { in sbread() 107 if (i + fs->fs_frag > blks) in sbread() 108 size = (blks - i) * fs->fs_fsize; in sbread() 128 int blks, size; in sbwrite() local 147 blks = howmany(fs->fs_cssize, fs->fs_fsize); in sbwrite() 149 for (i = 0; i < blks; i += fs->fs_frag) { in sbwrite() 151 if (i + fs->fs_frag > blks) in sbwrite() 152 size = (blks - i) * fs->fs_fsize; in sbwrite()
|
| /freebsd-10-stable/sbin/dump/ |
| D | traverse.c | 630 int i, j, count, blks, tbperdb; in ufs1_blksout() local 632 blks = howmany(frags * sblock->fs_fsize, TP_BSIZE); in ufs1_blksout() 634 for (i = 0; i < blks; i += TP_NINDIR) { in ufs1_blksout() 635 if (i + TP_NINDIR > blks) in ufs1_blksout() 636 count = blks; in ufs1_blksout() 666 int i, j, count, resid, blks, tbperdb, added; in ufs2_blksout() local 674 blks = howmany(frags * sblock->fs_fsize, TP_BSIZE); in ufs2_blksout() 683 blks -= howmany(sblock->fs_fsize, TP_BSIZE) - resid; in ufs2_blksout() 686 for (i = 0; i < blks; i += TP_NINDIR) { in ufs2_blksout() 687 if (i + TP_NINDIR > blks) in ufs2_blksout() [all …]
|
| D | tape.c | 227 int i, blks, got; in flushtape() local 278 blks = 0; in flushtape() 282 blks++; in flushtape() 284 slp->count = lastspclrec + blks + 1 - spcl.c_tapea; in flushtape()
|
| /freebsd-10-stable/sbin/fsck_ffs/ |
| D | main.c | 237 intmax_t blks, files; in checkfilesys() local 510 blks = n_blks + in checkfilesys() 512 blks += cgsblock(&sblock, 0) - cgbase(&sblock, 0); in checkfilesys() 513 blks += howmany(sblock.fs_cssize, sblock.fs_fsize); in checkfilesys() 514 blks = maxfsblock - (n_ffree + sblock.fs_frag * n_bfree) - blks; in checkfilesys() 515 if (bkgrdflag && (files > 0 || blks > 0)) { in checkfilesys() 518 countdirs, files - countdirs, blks); in checkfilesys() 529 if (blks < 0) in checkfilesys() 530 printf("%jd blocks missing\n", -blks); in checkfilesys()
|
| D | gjournal.c | 329 ufs2_daddr_t *blks; in freeindir() local 334 blks = (ufs2_daddr_t *)&sblks; in freeindir() 336 if (blks[i] == 0) in freeindir() 339 blkfree(blks[i], fs->fs_bsize); in freeindir() 341 freeindir(blks[i], level - 1); in freeindir()
|
| D | inode.c | 450 int i, blks; in cacheino() local 453 blks = NDADDR + NIADDR; in cacheino() 455 blks = howmany(DIP(dp, di_size), sblock.fs_bsize); in cacheino() 457 blks = 1; in cacheino() 459 Malloc(sizeof(*inp) + (blks - 1) * sizeof(ufs2_daddr_t)); in cacheino() 469 inp->i_numblks = blks; in cacheino() 470 for (i = 0; i < (blks < NDADDR ? blks : NDADDR); i++) in cacheino() 472 if (blks > NDADDR) in cacheino()
|
| /freebsd-10-stable/sys/boot/efi/include/ |
| D | efifs.h | 105 #define EFI_LBAL_ARRAY_SIZE(lbal,offs,blks) \ argument 106 (((blks) - (offs) - (lbal)->Hdr.HeaderSize) / sizeof(EFI_RL))
|
| /freebsd-10-stable/usr.bin/mkimg/ |
| D | gpt.c | 170 gpt_write_pmbr(lba_t blks, void *bootcode) in gpt_write_pmbr() argument 176 secs = (blks > UINT32_MAX) ? UINT32_MAX : (uint32_t)blks; in gpt_write_pmbr()
|
| /freebsd-10-stable/usr.sbin/quot/ |
| D | quot.c | 325 uses(uid_t uid, daddr_t blks, time_t act) in uses() argument 335 usr->space += blks; in uses() 338 usr->spc90 += blks; in uses() 340 usr->spc60 += blks; in uses() 342 usr->spc30 += blks; in uses()
|
| /freebsd-10-stable/sys/ufs/ffs/ |
| D | ffs_vfsops.c | 617 int i, blks, error; in ffs_reload() local 683 blks = howmany(size, fs->fs_fsize); in ffs_reload() 690 for (i = 0; i < blks; i += fs->fs_frag) { in ffs_reload() 692 if (i + fs->fs_frag > blks) in ffs_reload() 693 size = (blks - i) * fs->fs_fsize; in ffs_reload() 781 int error, i, blks, len, ronly; local 941 blks = howmany(size, fs->fs_fsize); 947 for (i = 0; i < blks; i += fs->fs_frag) { 949 if (i + fs->fs_frag > blks) 950 size = (blks - i) * fs->fs_fsize; [all …]
|
| D | fs.h | 605 #define blkstofrags(fs, blks) /* calculates (blks * fs->fs_frag) */ \ argument 606 ((blks) << (fs)->fs_fragshift)
|
| /freebsd-10-stable/usr.sbin/makefs/ffs/ |
| D | mkfs.c | 122 int size, blks; in ffs_mkfs() local 403 blks = howmany(size, sblock.fs_fsize); in ffs_mkfs() 544 int cylno, size, blks, i, saveflag; in ffs_write_superblock() local 563 blks = howmany(size, fs->fs_fsize); in ffs_write_superblock() 567 for (i = 0; i < blks; i+= fs->fs_frag) { in ffs_write_superblock() 569 if (i + fs->fs_frag > blks) in ffs_write_superblock() 570 size = (blks - i) * fs->fs_fsize; in ffs_write_superblock()
|
| /freebsd-10-stable/sbin/tunefs/ |
| D | tunefs.c | 946 int blks; in journal_alloc() local 1046 blks = indir_fill(blk, i, &resid) + 1; in journal_alloc() 1047 if (blks <= 0) { in journal_alloc() 1053 dp1->di_blocks += blks; in journal_alloc() 1056 dp2->di_blocks += blks; in journal_alloc()
|
| /freebsd-10-stable/sys/netipsec/ |
| D | xform_esp.c | 677 int hlen, rlen, padding, blks, alen, i, roff; in esp_output() local 705 blks = espx->blocksize; /* IV blocksize */ in esp_output() 708 padding = ((blks - ((rlen + 2) % blks)) % blks) + 2; in esp_output()
|
| /freebsd-10-stable/sys/dev/nand/ |
| D | nand.c | 165 uint32_t blks, pgs; in nand_init_stat() local 168 blks = cg->blks_per_lun * cg->luns; in nand_init_stat() 169 blk_stat = malloc(sizeof(struct block_stat) * blks, M_NAND, in nand_init_stat() 174 pgs = blks * cg->pgs_per_blk; in nand_init_stat()
|
| /freebsd-10-stable/sys/contrib/octeon-sdk/ |
| D | cvmx-dma-engine.c | 181 dpi_engx_buf.s.blks = 2; in cvmx_dma_engine_initialize() 187 dpi_engx_buf.s.blks = 6; in cvmx_dma_engine_initialize()
|
| D | cvmx-dpi-defs.h | 1172 uint64_t blks : 4; /**< The size of the engine fifo member 1186 uint64_t blks : 4; 1198 uint64_t blks : 4; /**< The size in 512B blocks of the engine fifo member 1210 uint64_t blks : 4;
|
| /freebsd-10-stable/sbin/restore/ |
| D | tape.c | 1466 long blks, i; in accthdr() local 1502 blks = 0; in accthdr() 1506 blks++; in accthdr() 1507 predict = blks; in accthdr()
|
| /freebsd-10-stable/sys/dev/amr/ |
| D | amrvar.h | 296 extern int amr_dump_blocks(struct amr_softc *sc, int unit, u_int32_t lba, void *data, int blks);
|