Home
last modified time | relevance | path

Searched full:blocksize (Results 1 – 25 of 579) sorted by relevance

12345678910>>...24

/freebsd/tests/sys/file/
H A Dfspacectl_test.c50 blksize_t blocksize; in fill() local
54 blocksize = statbuf.st_blksize; in fill()
56 buf = malloc(blocksize); in fill()
61 blen = len < (off_t)blocksize ? len : blocksize; in fill()
93 blksize_t blocksize; in check_content_dealloc() local
95 blocksize = fd_get_blksize(); in check_content_dealloc()
96 if (blocksize == -1) in check_content_dealloc()
99 buf = malloc(blocksize * 2); in check_content_dealloc()
102 sblk = buf + blocksize; in check_content_dealloc()
104 memset(sblk, 0, blocksize); in check_content_dealloc()
[all …]
/freebsd/crypto/heimdal/lib/krb5/
H A Dcrypto-evp.c101 size_t i, blocksize; in _krb5_evp_encrypt_cts() local
109 blocksize = EVP_CIPHER_CTX_block_size(c); in _krb5_evp_encrypt_cts()
111 if (len < blocksize) { in _krb5_evp_encrypt_cts()
115 } else if (len == blocksize) { in _krb5_evp_encrypt_cts()
129 i = ((len - 1) / blocksize) * blocksize; in _krb5_evp_encrypt_cts()
131 p += i - blocksize; in _krb5_evp_encrypt_cts()
133 memcpy(ivec2, p, blocksize); in _krb5_evp_encrypt_cts()
136 tmp[i] = p[i + blocksize] ^ ivec2[i]; in _krb5_evp_encrypt_cts()
137 for (; i < blocksize; i++) in _krb5_evp_encrypt_cts()
141 EVP_Cipher(c, p, tmp, blocksize); in _krb5_evp_encrypt_cts()
[all …]
/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dciphercommon_block.c38 * of data remaining in the input that is a multiple of the blocksize. The buffer
42 * buf: a buffer of blocksize bytes
45 * less than the blocksize
46 * blocksize: size of a block. Must be greater than 0 and a power of 2
54 * which is a multiple of the blocksize.
57 size_t blocksize, in ossl_cipher_fillblock() argument
60 size_t blockmask = ~(blocksize - 1); in ossl_cipher_fillblock()
61 size_t bufremain = blocksize - *buflen; in ossl_cipher_fillblock()
63 assert(*buflen <= blocksize); in ossl_cipher_fillblock()
64 assert(blocksize > 0 && (blocksize & (blocksize - 1)) == 0); in ossl_cipher_fillblock()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/MSF/
H A DMappedBlockStream.cpp43 MappedBlockStream::MappedBlockStream(uint32_t BlockSize,
47 : BlockSize(BlockSize), StreamLayout(Layout), MsfData(MsfData), in MappedBlockStream()
51 uint32_t BlockSize, const MSFStreamLayout &Layout, BinaryStreamRef MsfData, in createStream()
54 BlockSize, Layout, MsfData, Allocator); in createStream()
65 Layout.SB->BlockSize, SL, MsfData, Allocator); in createIndexedStream()
75 return createStream(Layout.SB->BlockSize, SL, MsfData, Allocator); in createDirectoryStream()
83 return createStream(Layout.SB->BlockSize, SL, MsfData, Allocator); in createFpmStream()
170 uint64_t First = Offset / BlockSize; in readLongestContiguousChunk()
179 uint64_t OffsetInFirstBlock = Offset % BlockSize; in readLongestContiguousChunk()
44 MappedBlockStream(uint32_t BlockSize,const MSFStreamLayout & Layout,BinaryStreamRef MsfData,BumpPtrAllocator & Allocator) MappedBlockStream() argument
52 createStream(uint32_t BlockSize,const MSFStreamLayout & Layout,BinaryStreamRef MsfData,BumpPtrAllocator & Allocator) createStream() argument
310 WritableMappedBlockStream(uint32_t BlockSize,const MSFStreamLayout & Layout,WritableBinaryStreamRef MsfData,BumpPtrAllocator & Allocator) WritableMappedBlockStream() argument
316 createStream(uint32_t BlockSize,const MSFStreamLayout & Layout,WritableBinaryStreamRef MsfData,BumpPtrAllocator & Allocator) createStream() argument
[all...]
H A DMSFBuilder.cpp40 MSFBuilder::MSFBuilder(uint32_t BlockSize, uint32_t MinBlockCount, bool CanGrow, in MSFBuilder()
43 FreePageMap(kDefaultFreePageMap), BlockSize(BlockSize), in MSFBuilder()
52 uint32_t BlockSize, in create()
54 if (!isValidBlockSize(BlockSize)) in create()
58 return MSFBuilder(BlockSize, in create()
116 uint32_t NextFpmBlock = alignTo(OldBlockCount, BlockSize) + 1; in allocateBlocks()
129 NextFpmBlock += BlockSize; in allocateBlocks()
161 uint32_t ReqBlocks = bytesToBlocks(Size, BlockSize); in addStream()
184 uint32_t ReqBlocks = bytesToBlocks(Size, BlockSize); in addStream()
39 MSFBuilder(uint32_t BlockSize,uint32_t MinBlockCount,bool CanGrow,BumpPtrAllocator & Allocator) MSFBuilder() argument
51 create(BumpPtrAllocator & Allocator,uint32_t BlockSize,uint32_t MinBlockCount,bool CanGrow) create() argument
348 __anon2d896c140102(uint32_t BlockSize) commit() argument
[all...]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/
H A Dmanipulate_user_buffer.c44 static int blocksize = 131072; /* 128K */ variable
63 "usage %s -f filename [-b blocksize] [-e wr_error_expected]\n" in usage()
71 " blocksize: Size of each block to write (must be at \n" in usage()
92 " blocksize -> 131072\n" in usage()
112 blocksize = atoi(optarg); in parse_options()
158 if (blocksize < 512 || filename == NULL || numblocks <= 0 || in parse_options()
167 * Write blocksize * numblocks to the file using O_DIRECT.
173 int total_data = blocksize * numblocks; in write_thread()
179 wrote = pwrite(fd, buf, blocksize, offset); in write_thread()
180 if (wrote != blocksize) { in write_thread()
[all …]
/freebsd/sbin/dump/
H A Dcache.c46 static int BlockSize; variable
57 if ((BlockSize = sblock->fs_bsize * BLKFACTOR) > MAXBSIZE) in cinit()
58 BlockSize = MAXBSIZE; in cinit()
59 NBlocks = cachesize / BlockSize; in cinit()
62 msg("Cache %d MB, blocksize = %d\n", in cinit()
63 NBlocks * BlockSize / (1024 * 1024), BlockSize); in cinit()
67 DataBase = mmap(NULL, NBlocks * BlockSize, in cinit()
70 base[i].b_Data = DataBase + i * BlockSize; in cinit()
104 mask = ~(off_t)(BlockSize - 1); in cread()
105 if (nbytes >= BlockSize || in cread()
[all …]
/freebsd/crypto/krb5/src/lib/crypto/builtin/
H A Dkdf.c79 size_t blocksize, keybytes, n; in k5_sp800_108_feedback_cmac() local
86 blocksize = enc->block_size; in k5_sp800_108_feedback_cmac()
93 ret = alloc_data(&prf, blocksize); in k5_sp800_108_feedback_cmac()
127 if (keybytes - n <= blocksize) { in k5_sp800_108_feedback_cmac()
131 memcpy(rnd_out->data + n, prf.data, blocksize); in k5_sp800_108_feedback_cmac()
132 n += blocksize; in k5_sp800_108_feedback_cmac()
136 zapfree(prf.data, blocksize); in k5_sp800_108_feedback_cmac()
144 size_t blocksize, keybytes, n; in k5_derive_random_rfc3961() local
148 blocksize = enc->block_size; in k5_derive_random_rfc3961()
151 if (blocksize == 1) in k5_derive_random_rfc3961()
[all …]
H A Dhmac.c47 * ipad is the byte 0x36 repeated blocksize times
48 * opad is the byte 0x5c repeated blocksize times
64 if (keyblock->length > hash->blocksize) in krb5int_hmac_keyblock()
70 xorkey = k5alloc(hash->blocksize, &ret); in krb5int_hmac_keyblock()
81 memset(xorkey, 0x36, hash->blocksize); in krb5int_hmac_keyblock()
87 ihash_iov[0].data = make_data(xorkey, hash->blocksize); in krb5int_hmac_keyblock()
95 memset(xorkey, 0x5c, hash->blocksize); in krb5int_hmac_keyblock()
101 ohash_iov[0].data = make_data(xorkey, hash->blocksize); in krb5int_hmac_keyblock()
110 zapfree(xorkey, hash->blocksize); in krb5int_hmac_keyblock()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/cmd/file/
H A Dfile_append.c33 static int blocksize = 131072; /* 128KiB */ variable
42 "usage %s -f filename -e expected_offset [-b blocksize] \n" in usage()
45 "Opens a file using O_APPEND and writes numblocks blocksize\n" in usage()
51 " blocksize numblocks to filename\n" in usage()
52 " blocksize: Size of each block to writei (must be at\n" in usage()
65 " blocksize -> 131072 (128 KiB)\n" in usage()
83 blocksize = atoi(optarg); in parse_options()
118 if (use_odirect && ((blocksize % sysconf(_SC_PAGE_SIZE)) != 0)) { in parse_options()
120 "blocksize parameter invalid when using O_DIRECT.\n"); in parse_options()
124 if (blocksize < 512 || expected_offset < 0 || filename == NULL || in parse_options()
[all …]
/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_write_format_tar.c36 size_t blocksize; in DEFINE_TEST()
39 for (blocksize = 1; blocksize < 100000; blocksize += blocksize + 3) { in DEFINE_TEST()
47 archive_write_set_bytes_per_block(a, (int)blocksize)); in DEFINE_TEST()
49 archive_write_set_bytes_in_last_block(a, (int)blocksize)); in DEFINE_TEST()
50 assertEqualInt(blocksize, in DEFINE_TEST()
54 assertEqualInt(blocksize, in DEFINE_TEST()
83 failure("blocksize in DEFINE_TEST()
37 size_t blocksize; DEFINE_TEST() local
[all...]
H A Dtest_write_format_tar_sparse.c36 size_t blocksize; in test_1() local
45 for (blocksize = 1; blocksize < 100000; blocksize += blocksize + 3) { in test_1()
53 archive_write_set_bytes_per_block(a, (int)blocksize)); in test_1()
55 archive_write_set_bytes_in_last_block(a, (int)blocksize)); in test_1()
56 assertEqualInt(blocksize, in test_1()
60 assertEqualInt(blocksize, in test_1()
96 failure("blocksize=%zu", blocksize); in test_1()
97 assertEqualInt(((11264 - 1)/blocksize+1)*blocksize, used); in test_1()
179 size_t blocksize = 20 * 512; in test_2() local
194 archive_write_set_bytes_per_block(a, (int)blocksize)); in test_2()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/
H A Drelease.h389 PageReleaseContext(uptr BlockSize, uptr NumberOfRegions, uptr ReleaseSize, in BlockSize()
391 : BlockSize(BlockSize), NumberOfRegions(NumberOfRegions) { in BlockSize()
393 if (BlockSize <= PageSize) { in BlockSize()
394 if (PageSize % BlockSize == 0) { in BlockSize()
396 FullPagesBlockCountMax = PageSize / BlockSize; in BlockSize()
398 } else if (BlockSize % (PageSize % BlockSize) == 0) { in BlockSize()
402 FullPagesBlockCountMax = PageSize / BlockSize + 1; in BlockSize()
407 FullPagesBlockCountMax = PageSize / BlockSize in BlockSize()
376 : BlockSize(BlockSize), NumberOfRegions(NumberOfRegions) { BlockSize() function
596 uptr BlockSize; global() member
617 const uptr BlockSize = Context.BlockSize; releaseFreeMemoryToOS() local
[all...]
/freebsd/tools/test/stress2/misc/
H A Dnewfs8.sh30 blocksize=4096
31 while [ $blocksize -le 65536 ]; do
33 fragsize=$((blocksize / i))
34 echo "`date +%T` newfs $opt -b $blocksize -f $fragsize"\
36 newfs $opt -b $blocksize -f $fragsize \
46 ../tools/killall.sh || { echo "Failed at $opt -b $blocksize -f $fragsize$"; \
59 blocksize=$((blocksize * 2))
62 echo "Timed out in $opt -b $blocksize -f $fragsize$"
/freebsd/usr.sbin/camdd/
H A Dcamdd.840 .Aq Fl i|o Ar pass=pass_dev|file=filename,bs=blocksize,[...]
125 blocksize and maximum transfer size information.
131 For tape devices, the specified blocksize will be the size that
134 When writing to a tape device, the blocksize is treated like a disk sector
145 Specify the blocksize to use for transfers.
147 will attempt to read or write using the requested blocksize.
149 Note that the blocksize given only applies to either the input or the
151 To use the same blocksize for the input and output transfers, you must
152 specify that blocksize with both the
158 The blocksize may be specified in bytes, or using any suffix (e.g. k, M, G)
[all …]
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/MSF/
H A DMSFCommon.h36 support::ulittle32_t BlockSize; member
40 // practice, NumBlocks * BlockSize is equivalent to the size of the MSF
131 inline uint64_t bytesToBlocks(uint64_t NumBytes, uint64_t BlockSize) { in bytesToBlocks() argument
132 return divideCeil(NumBytes, BlockSize); in bytesToBlocks()
135 inline uint64_t blockToOffset(uint64_t BlockNumber, uint64_t BlockSize) { in blockToOffset() argument
136 return BlockNumber * BlockSize; in blockToOffset()
140 return L.SB->BlockSize; in getFpmIntervalLength()
145 /// \p BlockSize - the block size of the MSF
155 inline uint32_t getNumFpmIntervals(uint32_t BlockSize, uint32_t NumBlocks, in getNumFpmIntervals() argument
160 // BlockSize * k + N appears in the range [0, NumBlocks). We only need to in getNumFpmIntervals()
[all …]
/freebsd/crypto/krb5/src/lib/crypto/krb/
H A Denc_raw.c49 unsigned int blocksize, plainlen = 0, padsize = 0; in krb5int_raw_encrypt() local
51 blocksize = ktp->crypto_length(ktp, KRB5_CRYPTO_TYPE_PADDING); in krb5int_raw_encrypt()
60 if (blocksize != 0) { in krb5int_raw_encrypt()
62 if (plainlen % blocksize) in krb5int_raw_encrypt()
63 padsize = blocksize - (plainlen % blocksize); in krb5int_raw_encrypt()
84 unsigned int blocksize = 0; /* enc block size, not confounder len */ in krb5int_raw_decrypt() local
89 blocksize = ktp->crypto_length(ktp, KRB5_CRYPTO_TYPE_PADDING); in krb5int_raw_decrypt()
98 if (blocksize == 0) { in krb5int_raw_decrypt()
104 if (cipherlen % blocksize != 0) in krb5int_raw_decrypt()
/freebsd/lib/libc/gen/
H A Dgetbsize.c41 long n, max, mul, blocksize; in getbsize() local
50 if ((p = getenv("BLOCKSIZE")) != NULL && *p != '\0') { in getbsize()
78 fmterr: warnx("%s: unknown blocksize", p); in getbsize()
85 warnx("maximum blocksize is %ldG", MAXB / GB); in getbsize()
88 if ((blocksize = n * mul) < 512) { in getbsize()
89 underflow: warnx("minimum blocksize is 512"); in getbsize()
91 blocksize = n = 512; in getbsize()
94 blocksize = n = 512; in getbsize()
98 *blocksizep = blocksize; in getbsize()
/freebsd/crypto/krb5/src/lib/krad/
H A Dattr.c36 #define BLOCKSIZE 16 macro
141 len = (in->length + BLOCKSIZE - 1) / BLOCKSIZE * BLOCKSIZE; in user_password_encode()
149 retval = alloc_data(&tmp, seclen + BLOCKSIZE); in user_password_encode()
154 for (blck = 0, indx = auth; blck * BLOCKSIZE < len; blck++) { in user_password_encode()
155 memcpy(tmp.data + seclen, indx, BLOCKSIZE); in user_password_encode()
166 for (i = 0; i < BLOCKSIZE; i++) in user_password_encode()
167 outbuf[blck * BLOCKSIZE + i] ^= sum.contents[i]; in user_password_encode()
170 indx = &outbuf[blck * BLOCKSIZE]; in user_password_encode()
192 if (in->length % BLOCKSIZE != 0) in user_password_decode()
199 retval = alloc_data(&tmp, seclen + BLOCKSIZE); in user_password_decode()
[all …]
/freebsd/usr.bin/du/
H A Ddu.141 .Op Fl B Ar blocksize
66 .It Fl B Ar blocksize
68 .Ar blocksize
76 .Ev BLOCKSIZE
79 .Ar blocksize .
83 .Ar blocksize
186 .Bl -tag -width BLOCKSIZE
187 .It Ev BLOCKSIZE
189 .Ev BLOCKSIZE
197 .Ev BLOCKSIZE
[all …]
/freebsd/crypto/heimdal/appl/rsh/
H A Dcommon.c48 size_t blocksize; in init_ivecs() local
50 krb5_crypto_getblocksize(context, crypto, &blocksize); in init_ivecs()
52 ivec_in[0] = malloc(blocksize); in init_ivecs()
53 memset(ivec_in[0], client, blocksize); in init_ivecs()
56 ivec_in[1] = malloc(blocksize); in init_ivecs()
57 memset(ivec_in[1], 2 | client, blocksize); in init_ivecs()
61 ivec_out[0] = malloc(blocksize); in init_ivecs()
62 memset(ivec_out[0], !client, blocksize); in init_ivecs()
65 ivec_out[1] = malloc(blocksize); in init_ivecs()
66 memset(ivec_out[1], 2 | !client, blocksize); in init_ivecs()
/freebsd/crypto/openssl/test/recipes/30-test_evp_data/
H A Devpmac_common.txt24 BlockSize = 64
40 BlockSize = 64
52 BlockSize = 64
66 BlockSize = 64
76 BlockSize = 64
96 BlockSize = 64
116 BlockSize = 128
136 BlockSize = 128
160 BlockSize = 144
180 BlockSize = 136
[all …]
/freebsd/sys/cam/ctl/
H A Dctl_backend_block.c823 off = roff = ((off_t)lbalen->lba) * be_lun->cbe_lun.blocksize; in ctl_be_block_gls_file()
843 scsi_ulto4b(MIN(UINT32_MAX, off / be_lun->cbe_lun.blocksize - in ctl_be_block_gls_file()
865 val = vattr.va_bytes / be_lun->cbe_lun.blocksize; in ctl_be_block_getattr_file()
872 be_lun->cbe_lun.blocksize; in ctl_be_block_getattr_file()
908 be_lun->cbe_lun.blocksize; in ctl_be_block_unmap_file()
910 be_lun->cbe_lun.blocksize; in ctl_be_block_unmap_file()
1081 off = roff = ((off_t)lbalen->lba) * be_lun->cbe_lun.blocksize; in ctl_be_block_gls_zvol()
1101 scsi_ulto4b(MIN(UINT32_MAX, off / be_lun->cbe_lun.blocksize - in ctl_be_block_gls_zvol()
1163 maxlen = LONG_MAX - (LONG_MAX % be_lun->cbe_lun.blocksize); in ctl_be_block_unmap_dev_range()
1173 bio->bio_pblkno = off / be_lun->cbe_lun.blocksize; in ctl_be_block_unmap_dev_range()
[all …]
H A Dctl_backend_ramdisk.c370 lbas = ctl_kern_data_len(io) / cbe_lun->blocksize; in ctl_backend_ramdisk_cmp()
377 page += lbaoff * cbe_lun->blocksize; in ctl_backend_ramdisk_cmp()
379 cbe_lun->blocksize); in ctl_backend_ramdisk_cmp()
381 if (res < cbe_lun->blocksize) in ctl_backend_ramdisk_cmp()
433 lbas = MIN(lbas, 131072 / cbe_lun->blocksize); in ctl_backend_ramdisk_compare()
434 len = lbas * cbe_lun->blocksize; in ctl_backend_ramdisk_compare()
461 off = lbaoff * cbe_lun->blocksize; in ctl_backend_ramdisk_rw()
467 len = lbas * cbe_lun->blocksize; in ctl_backend_ramdisk_rw()
493 ctl_set_kern_data_len(io, lbas * cbe_lun->blocksize); in ctl_backend_ramdisk_rw()
622 nsdata->ncap = htole64(be_lun->cap_bytes / cbe_lun->blocksize); in ramdisk_namespace_data()
[all …]
/freebsd/sys/contrib/openzfs/module/zfs/
H A Ddmu_object.c48 dmu_object_alloc_impl(objset_t *os, dmu_object_type_t ot, int blocksize, in dmu_object_alloc_impl() argument
192 dnode_allocate(dn, ot, blocksize, in dmu_object_alloc_impl()
227 dmu_object_alloc(objset_t *os, dmu_object_type_t ot, int blocksize, in dmu_object_alloc() argument
230 return dmu_object_alloc_impl(os, ot, blocksize, 0, bonustype, in dmu_object_alloc()
235 dmu_object_alloc_ibs(objset_t *os, dmu_object_type_t ot, int blocksize, in dmu_object_alloc_ibs() argument
239 return dmu_object_alloc_impl(os, ot, blocksize, indirect_blockshift, in dmu_object_alloc_ibs()
244 dmu_object_alloc_dnsize(objset_t *os, dmu_object_type_t ot, int blocksize, in dmu_object_alloc_dnsize() argument
247 return (dmu_object_alloc_impl(os, ot, blocksize, 0, bonustype, in dmu_object_alloc_dnsize()
257 dmu_object_alloc_hold(objset_t *os, dmu_object_type_t ot, int blocksize, in dmu_object_alloc_hold() argument
261 return (dmu_object_alloc_impl(os, ot, blocksize, indirect_blockshift, in dmu_object_alloc_hold()
[all …]

12345678910>>...24