Home
last modified time | relevance | path

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

12345678910>>...21

/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.c43 static int blocksize = 131072; /* 128K */ variable
62 "usage %s -f filename [-b blocksize] [-e wr_error_expected]\n" in usage()
70 " blocksize: Size of each block to write (must be at \n" in usage()
91 " blocksize -> 131072\n" in usage()
111 blocksize = atoi(optarg); in parse_options()
157 if (blocksize < 512 || filename == NULL || numblocks <= 0 || in parse_options()
166 * Write blocksize * numblocks to the file using O_DIRECT.
172 int total_data = blocksize * numblocks; in write_thread()
178 wrote = pwrite(fd, buf, blocksize, offset); in write_thread()
179 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/sys/contrib/openzfs/tests/zfs-tests/cmd/file/
H A Dfile_append.c32 static int blocksize = 131072; /* 128KiB */ variable
41 "usage %s -f filename -e expected_offset [-b blocksize] \n" in usage()
44 "Opens a file using O_APPEND and writes numblocks blocksize\n" in usage()
50 " blocksize numblocks to filename\n" in usage()
51 " blocksize: Size of each block to writei (must be at\n" in usage()
64 " blocksize -> 131072 (128 KiB)\n" in usage()
82 blocksize = atoi(optarg); in parse_options()
117 if (use_odirect && ((blocksize % sysconf(_SC_PAGE_SIZE)) != 0)) { in parse_options()
119 "blocksize parameter invalid when using O_DIRECT.\n"); in parse_options()
123 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()
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 in test_1()
37 size_t blocksize; test_1() local
180 size_t blocksize = 20 * 512; test_2() local
[all...]
H A Dtest_write_filter_program.c36 int blocksize = 1024; in DEFINE_TEST()
43 /* NOTE: Setting blocksize=1024 will cause gunzip failure because in DEFINE_TEST()
45 * exit code 1. So we should set blocksize=1 in order not to in DEFINE_TEST()
50 blocksize = 1; in DEFINE_TEST()
64 assertA(0 == archive_write_set_bytes_per_block(a, blocksize)); in DEFINE_TEST()
65 assertA(0 == archive_write_set_bytes_in_last_block(a, blocksize)); in DEFINE_TEST()
66 assertA(blocksize == archive_write_get_bytes_in_last_block(a)); in DEFINE_TEST()
68 assertA(blocksize == archive_write_get_bytes_in_last_block(a)); in DEFINE_TEST()
37 int blocksize = 1024; DEFINE_TEST() local
/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/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/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/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/contrib/openzfs/module/zfs/
H A Ddmu_object.c47 dmu_object_alloc_impl(objset_t *os, dmu_object_type_t ot, int blocksize, in dmu_object_alloc_impl() argument
191 dnode_allocate(dn, ot, blocksize, in dmu_object_alloc_impl()
226 dmu_object_alloc(objset_t *os, dmu_object_type_t ot, int blocksize, in dmu_object_alloc() argument
229 return dmu_object_alloc_impl(os, ot, blocksize, 0, bonustype, in dmu_object_alloc()
234 dmu_object_alloc_ibs(objset_t *os, dmu_object_type_t ot, int blocksize, in dmu_object_alloc_ibs() argument
238 return dmu_object_alloc_impl(os, ot, blocksize, indirect_blockshift, in dmu_object_alloc_ibs()
243 dmu_object_alloc_dnsize(objset_t *os, dmu_object_type_t ot, int blocksize, in dmu_object_alloc_dnsize() argument
246 return (dmu_object_alloc_impl(os, ot, blocksize, 0, bonustype, in dmu_object_alloc_dnsize()
256 dmu_object_alloc_hold(objset_t *os, dmu_object_type_t ot, int blocksize, in dmu_object_alloc_hold() argument
260 return (dmu_object_alloc_impl(os, ot, blocksize, indirect_blockshift, in dmu_object_alloc_hold()
[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/tools/test/stress2/misc/
H A Dwrite.sh103 off_t blocksize;
128 if ((buf = malloc(t[indx].blocksize)) == NULL)
144 if ((r = write(fd, buf, t[indx].blocksize)) !=
145 t[indx].blocksize) {
177 t[i].blocksize = (arc4random() + 1) % MAXBLK;
179 t[i].blocksize = 2 << (arc4random() % 20);
184 if (t[i].blocks * t[i].blocksize > MAXSIZ)
185 t[i].blocks = MAXSIZ / t[i].blocksize;
187 fprintf(stderr, "%3d: blocksize %7lld, sequential %d, "
189 i, (long long)t[i].blocksize, t[i].sequential, t[i].mindelay,
[all …]
H A Dnewfs.sh54 blocksize=4096
55 while [ $blocksize -le 65536 ]; do
57 fragsize=$((blocksize / i))
58 echo "newfs $opt -b $blocksize -f $fragsize"\
60 newfs $opt -b $blocksize -f $fragsize \
79 blocksize=$((blocksize * 2))
/freebsd/sys/contrib/libsodium/test/default/
H A Dsodium_utils.c18 size_t blocksize; in main() local
147 blocksize = 1U + randombytes_uniform(100U); in main()
148 bin_padded_maxlen = bin_len + (blocksize - bin_len % blocksize); in main()
153 blocksize, bin_padded_maxlen - 1U) == -1); in main()
155 blocksize, bin_padded_maxlen + 1U) == 0); in main()
157 blocksize, bin_padded_maxlen + 1U) == 0); in main()
161 blocksize, bin_padded_maxlen) == 0); in main()
169 blocksize) == 0); in main()
/freebsd/crypto/openssl/crypto/ec/
H A Dec_mult.c39 size_t blocksize; /* block size for wNAF splitting */ member
65 ret->blocksize = 8; /* default */ in ec_pre_comp_new()
417 size_t blocksize = 0, numblocks = 0; /* for wNAF splitting */ in ossl_ec_wNAF_mul() local
481 blocksize = pre_comp->blocksize; in ossl_ec_wNAF_mul()
487 numblocks = (BN_num_bits(scalar) / blocksize) + 1; in ossl_ec_wNAF_mul()
600 if (tmp_len < numblocks * blocksize) { in ossl_ec_wNAF_mul()
604 numblocks = (tmp_len + blocksize - 1) / blocksize; in ossl_ec_wNAF_mul()
619 wNAF_len[i] = blocksize; in ossl_ec_wNAF_mul()
620 if (tmp_len < blocksize) { in ossl_ec_wNAF_mul()
625 tmp_len -= blocksize; in ossl_ec_wNAF_mul()
[all …]

12345678910>>...21