| /freebsd/sys/crypto/aesni/ |
| H A D | aesni_wrap.c | 77 struct blocks8 *blks; in aesni_decrypt_cbc() local 84 blks = (struct blocks8 *)buf; in aesni_decrypt_cbc() 85 aesni_dec8(rounds - 1, key_schedule, blks->blk[0], blks->blk[1], in aesni_decrypt_cbc() 86 blks->blk[2], blks->blk[3], blks->blk[4], blks->blk[5], in aesni_decrypt_cbc() 87 blks->blk[6], blks->blk[7], &blocks[0]); in aesni_decrypt_cbc() 89 nextiv = blks->blk[j]; in aesni_decrypt_cbc() 90 blks->blk[j] = blocks[j] ^ ivreg; in aesni_decrypt_cbc() 113 const struct blocks8 *blks; in aesni_encrypt_ecb() local 118 blks = (const struct blocks8 *)from; in aesni_encrypt_ecb() 120 aesni_enc8(rounds - 1, key_schedule, blks->blk[0], blks->blk[1], in aesni_encrypt_ecb() [all …]
|
| /freebsd/sys/vm/ |
| H A D | swap_pager.c | 571 swblk_iter_lookup_ge(struct pctrie_iter *blks, vm_pindex_t pindex) in swblk_iter_lookup_ge() argument 573 return (SWAP_PCTRIE_ITER_LOOKUP_GE(blks, in swblk_iter_lookup_ge() 578 swblk_iter_init_only(struct pctrie_iter *blks, vm_object_t object) in swblk_iter_init_only() argument 582 pctrie_iter_init(blks, &object->un_pager.swp.swp_blks); in swblk_iter_init_only() 587 swblk_iter_init(struct pctrie_iter *blks, vm_object_t object, in swblk_iter_init() argument 590 swblk_iter_init_only(blks, object); in swblk_iter_init() 591 return (swblk_iter_lookup_ge(blks, pindex)); in swblk_iter_init() 595 swblk_iter_reinit(struct pctrie_iter *blks, vm_object_t object, in swblk_iter_reinit() argument 598 swblk_iter_init_only(blks, object); in swblk_iter_reinit() 599 return (SWAP_PCTRIE_ITER_LOOKUP(blks, in swblk_iter_reinit() [all …]
|
| /freebsd/sbin/dump/ |
| H A D | traverse.c | 616 int i, j, count, blks, tbperdb; 618 blks = howmany(frags * sblock->fs_fsize, TP_BSIZE); in ufs1_blksout() 620 for (i = 0; i < blks; i += TP_NINDIR) { in ufs1_blksout() local 621 if (i + TP_NINDIR > blks) in ufs1_blksout() 622 count = blks; in ufs1_blksout() 653 int i, j, count, resid, blks, tbperdb, added; in ufs2_blksout() 661 blks = howmany(frags * sblock->fs_fsize, TP_BSIZE); in ufs2_blksout() 670 blks -= howmany(sblock->fs_fsize, TP_BSIZE) - resid; in ufs2_blksout() 673 for (i = 0; i < blks; i += TP_NINDIR) { in ufs2_blksout() 674 if (i + TP_NINDIR > blks) in ufs2_blksout() 657 int i, j, count, resid, blks, tbperdb, added; ufs2_blksout() local 722 int i, blks, tbperdb; appendextdata() local 766 int i, frags, blks, tbperdb, last; writeextdata() local [all...] |
| H A D | tape.c | 225 int i, blks, got; in flushtape() local 276 blks = 0; in flushtape() 282 blks++; in flushtape() 284 wp->count = lastspclrec + blks + 1 - spcl.c_tapea; in flushtape()
|
| /freebsd/stand/libsa/geli/ |
| H A D | geliboot_crypto.c | 43 int err, blks; in geliboot_crypt() local 62 blks = rijndael_blockDecrypt(&cipher, &aeskey, data, in geliboot_crypt() 66 blks = rijndael_blockEncrypt(&cipher, &aeskey, data, in geliboot_crypt() 70 if (datasize != (blks / 8)) { in geliboot_crypt() 73 blks, datasize); in geliboot_crypt()
|
| /freebsd/stand/i386/libi386/ |
| H A D | biosdisk.c | 972 size_t blks, blkoff, bsize, bio_size, rest; in bd_realstrategy() local 1009 blks = size / bd->bd_sectorsize; in bd_realstrategy() 1010 if (blks == 0 || (size % bd->bd_sectorsize) != 0) in bd_realstrategy() 1011 blks++; in bd_realstrategy() 1013 if (dblk > dblk + blks) in bd_realstrategy() 1043 if (dblk + blks >= d_offset + disk_blocks) { in bd_realstrategy() 1044 blks = d_offset + disk_blocks - dblk; in bd_realstrategy() 1045 size = blks * bd->bd_sectorsize; in bd_realstrategy() 1046 DPRINTF("short I/O %d", blks); in bd_realstrategy() 1066 while (blks > 0) { in bd_realstrategy() [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/zvol/zvol_swap/ |
| H A D | zvol_swap_002_pos.ksh | 67 typeset -i count blks volsize=$(get_prop volsize $vol) 68 ((blks = (volsize / 512) * 80 / 100)) 70 ((count = blks / 2048))
|
| /freebsd/sbin/fsck_ffs/ |
| H A D | main.c | 230 intmax_t blks, files; in checkfilesys() local 503 blks = n_blks + in checkfilesys() 505 blks += cgsblock(&sblock, 0) - cgbase(&sblock, 0); in checkfilesys() 506 blks += howmany(sblock.fs_cssize, sblock.fs_fsize); in checkfilesys() 507 blks = maxfsblock - (n_ffree + sblock.fs_frag * n_bfree) - blks; in checkfilesys() 508 if (bkgrdflag && (files > 0 || blks > 0)) { in checkfilesys() 511 countdirs, files - countdirs, blks); in checkfilesys() 522 if (blks < 0) in checkfilesys() 523 printf("%jd blocks missing\n", -blks); in checkfilesys()
|
| H A D | inode.c | 1146 int i, blks; in cacheino() local 1152 blks = UFS_NDADDR + UFS_NIADDR; in cacheino() 1154 blks = howmany(DIP(dp, di_size), sblock.fs_bsize); in cacheino() 1156 blks = 1; in cacheino() 1158 Malloc(sizeof(*inp) + (blks - 1) * sizeof(ufs2_daddr_t)); in cacheino() 1168 inp->i_numblks = blks; in cacheino() 1169 for (i = 0; i < MIN(blks, UFS_NDADDR); i++) in cacheino() 1171 if (blks > UFS_NDADDR) in cacheino()
|
| /freebsd/sys/netinet/tcp_stacks/ |
| H A D | sack_filter.c | 694 struct sackblk blks[TCP_MAX_SACK]; in main() local 748 memset(blks, 0, sizeof(blks)); in main() 769 nn = sack_filter_blks(&tp, &sf, blks, numblks, th_ack); in main() 773 szof = blks[ii].end - blks[ii].start; in main() 776 blks[ii].start, in main() 777 blks[ii].end, szof); in main() 786 memset(blks, 0, sizeof(blks)); in main() 835 blks[numblks].start = start; in main() 836 blks[numblks].end = endv; in main()
|
| /freebsd/sys/contrib/openzfs/module/icp/include/sha2/ |
| H A D | sha2_impl.h | 38 typedef void (*sha256_f)(uint32_t state[8], const void *data, size_t blks); 39 typedef void (*sha512_f)(uint64_t state[8], const void *data, size_t blks);
|
| /freebsd/crypto/openssl/crypto/ |
| H A D | params_dup.c | 63 size_t param_sz, blks; in ossl_param_dup() local 84 blks = ossl_param_bytes_to_blocks(param_sz); in ossl_param_dup() 88 buf[is_secure].cur += blks; in ossl_param_dup() 90 buf[is_secure].blocks += blks; in ossl_param_dup()
|
| /freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_copies/ |
| H A D | zfs_copies_002_pos.ksh | 94 blks=`$LS -lsk /$TESTPOOL/fs_$val/$FILE | $AWK '{print $1}'` 95 (( used = blks / 1024 ))
|
| /freebsd/tools/test/stress2/lib/ |
| H A D | resources.c | 212 reservedf(int64_t blks, int64_t inos) in reservedf() argument 230 getprogname(), blks/1024, inos, blocks/1024, in reservedf() 232 blocks -= blks; in reservedf()
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_copies/ |
| H A D | zfs_copies_002_pos.ksh | 90 blks=`ls -ls /$TESTPOOL/fs_$val/$FILE | awk '{print $1}'` 91 (( used = blks * $blksize )) # bytes
|
| /freebsd/usr.sbin/quot/ |
| H A D | quot.c | 264 uses(uid_t uid, daddr_t blks, time_t act) in uses() argument 274 usr->space += blks; in uses() 277 usr->spc90 += blks; in uses() 279 usr->spc60 += blks; in uses() 281 usr->spc30 += blks; in uses()
|
| /freebsd/usr.bin/mkimg/ |
| H A D | gpt.c | 164 gpt_write_pmbr(lba_t blks, void *bootcode) in gpt_write_pmbr() argument 170 secs = (blks > UINT32_MAX) ? UINT32_MAX : (uint32_t)blks - 1; in gpt_write_pmbr()
|
| /freebsd/sys/ufs/ffs/ |
| H A D | ffs_subr.c | 159 uint64_t size, blks; in ffs_sbget() local 198 blks = howmany(size, fs->fs_fsize); in ffs_sbget() 214 for (i = 0; i < blks; i += fs->fs_frag) { in ffs_sbget() 216 if (i + fs->fs_frag > blks) in ffs_sbget() 217 size = (blks - i) * fs->fs_fsize; in ffs_sbget() 958 int i, error, blks, size; in ffs_sbput() local 966 blks = howmany(fs->fs_cssize, fs->fs_fsize); in ffs_sbput() 968 for (i = 0; i < blks; i += fs->fs_frag) { in ffs_sbput() 970 if (i + fs->fs_frag > blks) in ffs_sbput() 971 size = (blks - i) * fs->fs_fsize; in ffs_sbput()
|
| /freebsd/sys/fs/ext2fs/ |
| H A D | ext2_balloc.c | 63 int blks, error, allocated; in ext2_ext_balloc() local 66 blks = howmany(size, fs->e2fs_bsize); in ext2_ext_balloc() 68 error = ext4_ext_get_blocks(ip, lbn, blks, cred, NULL, &allocated, &newblk); in ext2_ext_balloc()
|
| /freebsd/sys/contrib/zlib/ |
| H A D | crc32.c | 641 z_size_t blks; in crc32_z() local 653 blks = len / (N * W); in crc32_z() 654 len -= blks * N * W; in crc32_z() 710 while (--blks) { in crc32_z() 832 while (--blks) { in crc32_z()
|
| /freebsd/sys/netipsec/ |
| H A D | xform_esp.c | 713 int hlen, rlen, padding, blks, alen, i, roff; in esp_output() local 739 blks = MAX(4, espx->native_blocksize); /* Cipher blocksize */ in esp_output() 741 blks = MAX(4, espx->blocksize); in esp_output() 744 padding = ((blks - ((rlen + 2) % blks)) % blks) + 2; in esp_output()
|
| H A D | ipsec_offload.c | 860 int alen, blks, hlen, padding, rlen; in ipsec_accel_output_pad() local 865 blks = MAX(4, SAV_ISCTR(sav) && VNET(esp_ctr_compatibility) ? in ipsec_accel_output_pad() 868 padding = ((blks - ((rlen + 2) % blks)) % blks) + 2; in ipsec_accel_output_pad()
|
| /freebsd/sbin/tunefs/ |
| H A D | tunefs.c | 933 int blks; in journal_alloc() local 1033 blks = indir_fill(blk, i, &resid) + 1; in journal_alloc() 1034 if (blks <= 0) { in journal_alloc() 1040 dp.dp1->di_blocks += blks; in journal_alloc() 1043 dp.dp2->di_blocks += blks; in journal_alloc()
|
| /freebsd/usr.sbin/makefs/ffs/ |
| H A D | mkfs.c | 580 int size, blks, i, saveflag; in ffs_write_superblock() local 608 blks = howmany(size, fs->fs_fsize); in ffs_write_superblock() 611 for (i = 0; i < blks; i+= fs->fs_frag) { in ffs_write_superblock() 613 if (i + fs->fs_frag > blks) in ffs_write_superblock() 614 size = (blks - i) * fs->fs_fsize; in ffs_write_superblock()
|
| /freebsd/sbin/restore/ |
| H A D | tape.c | 1408 long blks, i; in accthdr() 1444 blks = 0; in accthdr() 1448 blks++; in accthdr() 1449 predict = blks; in accthdr() 1407 long blks, i; accthdr() local
|