Home
last modified time | relevance | path

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

12

/freebsd/sys/crypto/aesni/
H A Daesni_wrap.c77 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 Dswap_pager.c562 swblk_iter_lookup_ge(struct pctrie_iter *blks, vm_pindex_t pindex) in swblk_iter_lookup_ge() argument
564 return (SWAP_PCTRIE_ITER_LOOKUP_GE(blks, in swblk_iter_lookup_ge()
569 swblk_iter_init_only(struct pctrie_iter *blks, vm_object_t object) in swblk_iter_init_only() argument
573 pctrie_iter_init(blks, &object->un_pager.swp.swp_blks); in swblk_iter_init_only()
578 swblk_iter_init(struct pctrie_iter *blks, vm_object_t object, in swblk_iter_init() argument
581 swblk_iter_init_only(blks, object); in swblk_iter_init()
582 return (swblk_iter_lookup_ge(blks, pindex)); in swblk_iter_init()
586 swblk_iter_reinit(struct pctrie_iter *blks, vm_object_t object, in swblk_iter_reinit() argument
589 swblk_iter_init_only(blks, object); in swblk_iter_reinit()
590 return (SWAP_PCTRIE_ITER_LOOKUP(blks, in swblk_iter_reinit()
[all …]
/freebsd/sbin/dump/
H A Dtraverse.c620 int i, j, count, blks, tbperdb; in ufs1_blksout() local
622 blks = howmany(frags * sblock->fs_fsize, TP_BSIZE); in ufs1_blksout()
624 for (i = 0; i < blks; i += TP_NINDIR) { in ufs1_blksout()
625 if (i + TP_NINDIR > blks) in ufs1_blksout()
626 count = blks; in ufs1_blksout()
657 int i, j, count, resid, blks, tbperdb, added; in ufs2_blksout() local
665 blks = howmany(frags * sblock->fs_fsize, TP_BSIZE); in ufs2_blksout()
674 blks -= howmany(sblock->fs_fsize, TP_BSIZE) - resid; in ufs2_blksout()
677 for (i = 0; i < blks; i += TP_NINDIR) { in ufs2_blksout()
678 if (i + TP_NINDIR > blks) in ufs2_blksout()
[all …]
H A Dtape.c225 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 Dgeliboot_crypto.c43 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 Dbiosdisk.c972 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 Dzvol_swap_002_pos.ksh66 typeset -i count blks volsize=$(get_prop volsize $vol)
67 ((blks = (volsize / 512) * 80 / 100))
69 ((count = blks / 2048))
/freebsd/sbin/fsck_ffs/
H A Dmain.c230 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 Dinode.c1122 int i, blks; in cacheino() local
1128 blks = UFS_NDADDR + UFS_NIADDR; in cacheino()
1130 blks = howmany(DIP(dp, di_size), sblock.fs_bsize); in cacheino()
1132 blks = 1; in cacheino()
1134 Malloc(sizeof(*inp) + (blks - 1) * sizeof(ufs2_daddr_t)); in cacheino()
1144 inp->i_numblks = blks; in cacheino()
1145 for (i = 0; i < MIN(blks, UFS_NDADDR); i++) in cacheino()
1147 if (blks > UFS_NDADDR) in cacheino()
/freebsd/sys/netinet/tcp_stacks/
H A Dsack_filter.c692 struct sackblk blks[TCP_MAX_SACK]; in main()
746 memset(blks, 0, sizeof(blks)); in main()
767 nn = sack_filter_blks(&tp, &sf, blks, numblks, th_ack); in main()
771 szof = blks[ii].end - blks[ii].start; in main()
774 blks[ii].start, in main()
775 blks[ii].end, szof); in main()
784 memset(blks, 0, sizeof(blks)); in main()
626 struct sackblk blks[TCP_MAX_SACK]; main() local
[all...]
/freebsd/sys/contrib/openzfs/module/icp/include/sha2/
H A Dsha2_impl.h37 typedef void (*sha256_f)(uint32_t state[8], const void *data, size_t blks);
38 typedef void (*sha512_f)(uint64_t state[8], const void *data, size_t blks);
/freebsd/crypto/openssl/crypto/
H A Dparams_dup.c66 size_t param_sz, blks; in ossl_param_dup() local
87 blks = ossl_param_bytes_to_blocks(param_sz); in ossl_param_dup()
91 buf[is_secure].cur += blks; in ossl_param_dup()
93 buf[is_secure].blocks += blks; in ossl_param_dup()
/freebsd/stand/efi/include/
H A Defifs.h104 #define EFI_LBAL_ARRAY_SIZE(lbal,offs,blks) \ argument
105 (((blks) - (offs) - (lbal)->Hdr.HeaderSize) / sizeof(EFI_RL))
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_copies/
H A Dzfs_copies_002_pos.ksh94 blks=`$LS -lsk /$TESTPOOL/fs_$val/$FILE | $AWK '{print $1}'`
95 (( used = blks / 1024 ))
/freebsd/tools/test/stress2/lib/
H A Dresources.c212 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 Dzfs_copies_002_pos.ksh89 blks=`ls -ls /$TESTPOOL/fs_$val/$FILE | awk '{print $1}'`
90 (( used = blks * $blksize )) # bytes
/freebsd/sys/ufs/ffs/
H A Dffs_subr.c156 uint64_t size, blks; in ffs_sbget() local
195 blks = howmany(size, fs->fs_fsize); in ffs_sbget()
211 for (i = 0; i < blks; i += fs->fs_frag) { in ffs_sbget()
213 if (i + fs->fs_frag > blks) in ffs_sbget()
214 size = (blks - i) * fs->fs_fsize; in ffs_sbget()
794 int i, error, blks, size; in ffs_sbput() local
802 blks = howmany(fs->fs_cssize, fs->fs_fsize); in ffs_sbput()
804 for (i = 0; i < blks; i += fs->fs_frag) { in ffs_sbput()
806 if (i + fs->fs_frag > blks) in ffs_sbput()
807 size = (blks - i) * fs->fs_fsize; in ffs_sbput()
/freebsd/usr.bin/mkimg/
H A Dgpt.c156 gpt_write_pmbr(lba_t blks, void *bootcode) in gpt_write_pmbr() argument
162 secs = (blks > UINT32_MAX) ? UINT32_MAX : (uint32_t)blks - 1; in gpt_write_pmbr()
/freebsd/usr.sbin/quot/
H A Dquot.c325 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/sys/fs/ext2fs/
H A Dext2_balloc.c63 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 Dcrc32.c710 z_size_t blks; in crc32_z() local
722 blks = len / (N * W); in crc32_z()
723 len -= blks * N * W; in crc32_z()
779 while (--blks) { in crc32_z()
901 while (--blks) { in crc32_z()
/freebsd/sys/netipsec/
H A Dxform_esp.c707 int hlen, rlen, padding, blks, alen, i, roff; in esp_output() local
733 blks = MAX(4, espx->native_blocksize); /* Cipher blocksize */ in esp_output()
735 blks = MAX(4, espx->blocksize); in esp_output()
738 padding = ((blks - ((rlen + 2) % blks)) % blks) + 2; in esp_output()
H A Dipsec_offload.c833 int alen, blks, hlen, padding, rlen; in ipsec_accel_output_pad() local
838 blks = MAX(4, SAV_ISCTR(sav) && VNET(esp_ctr_compatibility) ? in ipsec_accel_output_pad()
841 padding = ((blks - ((rlen + 2) % blks)) % blks) + 2; in ipsec_accel_output_pad()
/freebsd/sbin/tunefs/
H A Dtunefs.c914 int blks; in journal_alloc() local
1014 blks = indir_fill(blk, i, &resid) + 1; in journal_alloc()
1015 if (blks <= 0) { in journal_alloc()
1021 dp.dp1->di_blocks += blks; in journal_alloc()
1024 dp.dp2->di_blocks += blks; in journal_alloc()
/freebsd/usr.sbin/makefs/ffs/
H A Dmkfs.c580 int size, blks, i, saveflag; in ffs_write_superblock() local
600 blks = howmany(size, fs->fs_fsize); in ffs_write_superblock()
603 for (i = 0; i < blks; i+= fs->fs_frag) { in ffs_write_superblock()
605 if (i + fs->fs_frag > blks) in ffs_write_superblock()
606 size = (blks - i) * fs->fs_fsize; in ffs_write_superblock()

12