Home
last modified time | relevance | path

Searched refs:blocksize (Results 26 – 50 of 201) sorted by relevance

123456789

/freebsd/sys/geom/eli/
H A Dg_eli_key_cache.c200 size_t blocksize; in g_eli_key_init() local
207 blocksize = pp->sectorsize; in g_eli_key_init()
210 blocksize = sc->sc_sectorsize; in g_eli_key_init()
213 ((mediasize - 1) >> G_ELI_KEY_SHIFT) / blocksize + 1; in g_eli_key_init()
255 size_t blocksize; in g_eli_key_resize() local
268 blocksize = pp->sectorsize; in g_eli_key_resize()
271 blocksize = sc->sc_sectorsize; in g_eli_key_resize()
273 new_ekeys_total = ((mediasize - 1) >> G_ELI_KEY_SHIFT) / blocksize + 1; in g_eli_key_resize()
302 g_eli_key_hold(struct g_eli_softc *sc, off_t offset, size_t blocksize) in g_eli_key_hold() argument
311 keyno = (offset >> G_ELI_KEY_SHIFT) / blocksize; in g_eli_key_hold()
/freebsd/contrib/libarchive/libarchive/test/
H A Dtest_write_open_memory.c48 size_t blocksize = 94; in DEFINE_TEST() local
55 archive_write_set_bytes_per_block(a, (int)blocksize)); in DEFINE_TEST()
60 if (i < (511/blocksize)*blocksize) in DEFINE_TEST()
/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dciphercommon_local.h12 void ossl_cipher_padblock(unsigned char *buf, size_t *buflen, size_t blocksize);
13 int ossl_cipher_unpadblock(unsigned char *buf, size_t *buflen, size_t blocksize);
15 unsigned char *buf, size_t *buflen, size_t blocksize,
/freebsd/sbin/swapon/
H A Dswapon.c767 long blocksize) in sizetobuf() argument
776 snprintf(buf, bufsize, "%*lld", hlen, val / blocksize); in sizetobuf()
785 long blocksize; in swaplist() local
795 blocksize = 1024 * 1024 * 1024; in swaplist()
800 blocksize = -1; in swaplist()
805 blocksize = 1024; in swaplist()
810 blocksize = 1024 * 1024; in swaplist()
815 getbsize(&hlen, &blocksize); in swaplist()
816 snprintf(buf, sizeof(buf), "%ld-blocks", blocksize); in swaplist()
845 blocksize); in swaplist()
[all …]
/freebsd/sys/kern/
H A Dkern_shutdown.c1459 if (length % di->blocksize != 0) { in dump_check_bounds()
1464 if (offset % di->blocksize != 0) { in dump_check_bounds()
1540 if (length % di->blocksize != 0) { in kerneldumpcomp_write_cb()
1547 rlength = rounddown(length, di->blocksize); in kerneldumpcomp_write_cb()
1580 if (hdrsz > di->blocksize) in dump_write_headers()
1597 if (hdrsz == di->blocksize) in dump_write_headers()
1601 memset(buf, 0, di->blocksize); in dump_write_headers()
1618 keysize, di->blocksize); in dump_write_headers()
1621 di->blocksize, di->blocksize); in dump_write_headers()
1774 error = _dump_append(di, di->blockbuf, di->blocksize); in dump_finish()
[all …]
/freebsd/sys/opencrypto/
H A Dxform_cbc_mac.c12 .blocksize = CCM_CBC_BLOCK_LEN,
25 .blocksize = CCM_CBC_BLOCK_LEN,
38 .blocksize = CCM_CBC_BLOCK_LEN,
H A Dxform_sha1.c64 .blocksize = SHA1_BLOCK_LEN,
77 .blocksize = SHA1_BLOCK_LEN,
H A Dxform_rmd160.c64 .blocksize = RIPEMD160_BLOCK_LEN,
77 .blocksize = RIPEMD160_BLOCK_LEN,
H A Dxform_null.c68 .blocksize = NULL_BLOCK_LEN,
86 .blocksize = NULL_HMAC_BLOCK_LEN,
/freebsd/sys/contrib/libsodium/src/libsodium/sodium/
H A Dutils.c667 size_t unpadded_buflen, size_t blocksize, size_t max_buflen) in sodium_pad() argument
676 if (blocksize <= 0U) { in sodium_pad()
679 xpadlen = blocksize - 1U; in sodium_pad()
680 if ((blocksize & (blocksize - 1U)) == 0U) { in sodium_pad()
681 xpadlen -= unpadded_buflen & (blocksize - 1U); in sodium_pad()
683 xpadlen -= unpadded_buflen % blocksize; in sodium_pad()
697 for (i = 0; i < blocksize; i++) { in sodium_pad()
707 size_t padded_buflen, size_t blocksize) in sodium_unpad() argument
717 if (padded_buflen < blocksize || blocksize <= 0U) { in sodium_unpad()
722 for (i = 0U; i < blocksize; i++) { in sodium_unpad()
/freebsd/bin/df/
H A Ddf.c461 static long blocksize; in prtstat() local
482 header = getbsize(&headerlen, &blocksize); in prtstat()
528 sfsp->f_bsize, blocksize), in prtstat()
529 mwp->used, fsbtoblk(used, sfsp->f_bsize, blocksize), in prtstat()
531 sfsp->f_bsize, blocksize)); in prtstat()
584 static long blocksize = 0; in update_maxwidths() local
587 if (blocksize == 0) in update_maxwidths()
588 getbsize(&dummy, &blocksize); in update_maxwidths()
593 fsbtoblk((int64_t)sfsp->f_blocks, sfsp->f_bsize, blocksize))); in update_maxwidths()
596 (int64_t)sfsp->f_bfree, sfsp->f_bsize, blocksize))); in update_maxwidths()
[all …]
/freebsd/crypto/heimdal/lib/krb5/
H A Dmit_glue.c184 size_t *blocksize) in krb5_c_block_size() argument
198 ret = krb5_crypto_getblocksize(context, crypto, blocksize); in krb5_c_block_size()
220 size_t blocksize; in krb5_c_decrypt() local
222 ret = krb5_crypto_getblocksize(context, crypto, &blocksize); in krb5_c_decrypt()
228 if (blocksize > ivec->length) { in krb5_c_decrypt()
260 size_t blocksize; in krb5_c_encrypt() local
262 ret = krb5_crypto_getblocksize(context, crypto, &blocksize); in krb5_c_encrypt()
268 if (blocksize > ivec->length) { in krb5_c_encrypt()
H A Dcrypto-aes.c112 if (result.checksum.length < crypto->et->blocksize) in AES_PRF()
121 ret = krb5_data_alloc(out, crypto->et->blocksize); in AES_PRF()
134 crypto->et->blocksize); in AES_PRF()
H A Dcrypto.c196 ipad = malloc(cm->blocksize + len); in _krb5_internal_hmac()
204 memset(ipad, 0x36, cm->blocksize); in _krb5_internal_hmac()
205 memset(opad, 0x5c, cm->blocksize); in _krb5_internal_hmac()
1700 *len = crypto->et->blocksize; in krb5_crypto_length()
1857 if(et->blocksize * 8 < kt->bits || len != et->blocksize) { in _krb5_derive_key()
1858 nblocks = (kt->bits + et->blocksize * 8 - 1) / (et->blocksize * 8); in _krb5_derive_key()
1873 memcpy(k + i * et->blocksize, in _krb5_derive_key()
1875 et->blocksize); in _krb5_derive_key()
1876 (*et->encrypt)(context, key, k + i * et->blocksize, et->blocksize, in _krb5_derive_key()
2135 size_t *blocksize) in krb5_crypto_getblocksize() argument
[all …]
/freebsd/crypto/openssl/crypto/evp/
H A Devp_enc.c654 int blocksize; in EVP_EncryptUpdate() local
677 blocksize = ctx->cipher->block_size; in EVP_EncryptUpdate()
685 inl_ + (size_t)(blocksize == 1 ? 0 : blocksize), in EVP_EncryptUpdate()
716 int blocksize; in EVP_EncryptFinal_ex() local
738 blocksize = EVP_CIPHER_CTX_get_block_size(ctx); in EVP_EncryptFinal_ex()
746 blocksize == 1 ? 0 : blocksize); in EVP_EncryptFinal_ex()
803 int blocksize; in EVP_DecryptUpdate() local
825 blocksize = EVP_CIPHER_CTX_get_block_size(ctx); in EVP_DecryptUpdate()
832 inl_ + (size_t)(blocksize == 1 ? 0 : blocksize), in EVP_DecryptUpdate()
937 int blocksize; in EVP_DecryptFinal_ex() local
[all …]
/freebsd/usr.sbin/pstat/
H A Dpstat.c450 #define CONVERT(v) ((int64_t)(v) * pagesize / blocksize)
459 long blocksize; in print_swap_header() local
466 header = getbsize(&hlen, &blocksize); in print_swap_header()
482 long blocksize; in print_swap_line() local
485 getbsize(&hlen, &blocksize); in print_swap_line()
525 long blocksize; in print_swap_total() local
528 getbsize(&hlen, &blocksize); in print_swap_total()
530 blocksize = 1024 * 1024; in print_swap_total()
/freebsd/sys/dev/sound/usb/
H A Duaudio_pcm.c69 ua_chan_setblocksize(kobj_t obj, void *data, uint32_t blocksize) in ua_chan_setblocksize() argument
71 return (uaudio_chan_set_param_blocksize(data, blocksize)); in ua_chan_setblocksize()
75 ua_chan_setfragments(kobj_t obj, void *data, uint32_t blocksize, uint32_t blockcount) in ua_chan_setfragments() argument
77 return (uaudio_chan_set_param_fragments(data, blocksize, blockcount)); in ua_chan_setfragments()
H A Duaudio.h47 uint32_t blocksize);
49 uint32_t blocksize, uint32_t blockcount);
/freebsd/usr.sbin/camdd/
H A Dcamdd.c108 uint64_t blocksize; member
312 uint32_t blocksize; member
1026 uint64_t blocksize = io_opts->blocksize; in camdd_probe_file() local
1037 if (blocksize == 0) in camdd_probe_file()
1040 dev->blocksize = blocksize; in camdd_probe_file()
1128 dev->blocksize = max_iosize; in camdd_probe_file()
1138 dev->blocksize = min_blk; in camdd_probe_file()
1154 if (dev->blocksize == 0) { in camdd_probe_file()
1599 if (io_opts->blocksize != 0) { in camdd_probe_pass()
1606 dev->blocksize = io_opts->blocksize; in camdd_probe_pass()
[all …]
/freebsd/crypto/openssl/engines/
H A De_devcrypto.c112 unsigned int blocksize, num; member
117 int blocksize; member
223 cipher_ctx->blocksize = cipher_d->blocksize; in cipher_init()
303 nblocks = (inl + cipher_ctx->blocksize - 1) in cipher_do_cipher()
304 / cipher_ctx->blocksize; in cipher_do_cipher()
336 if (inl > (unsigned int) cipher_ctx->blocksize) { in ctr_do_cipher()
337 nblocks = inl/cipher_ctx->blocksize; in ctr_do_cipher()
338 len = nblocks * cipher_ctx->blocksize; in ctr_do_cipher()
348 memset(cipher_ctx->partial, 0, cipher_ctx->blocksize); in ctr_do_cipher()
350 cipher_ctx->blocksize) < 1) in ctr_do_cipher()
[all …]
/freebsd/contrib/llvm-project/lldb/include/lldb/Target/
H A DMemoryRegionInfo.h31 OptionalBool flash, lldb::offset_t blocksize, in MemoryRegionInfo() argument
35 m_blocksize(blocksize), m_memory_tagged(memory_tagged), in MemoryRegionInfo()
76 void SetBlocksize(lldb::offset_t blocksize) { m_blocksize = blocksize; } in SetBlocksize() argument
/freebsd/sys/fs/ext2fs/
H A Dext2_dir.h83 #define EXT2_DIRENT_TAIL(data, blocksize) \ argument
85 (blocksize) - sizeof(struct ext2fs_direct_tail)))
/freebsd/bin/sh/
H A Dnodes.c.pat47 int blocksize; /* size of structures in function */
84 sz.blocksize = offsetof(struct funcdef, n);
87 fn = ckmalloc(sz.blocksize + sz.stringsize);
90 st.string = (char *)fn + sz.blocksize;
115 result->blocksize += ALIGN(sizeof(struct nodelist));
/freebsd/tests/sys/opencrypto/
H A Dcryptotest.py398 blocksize = None
401 blocksize = 64
404 blocksize = 64
407 blocksize = 64
410 blocksize = 128
413 blocksize = 128
427 if len(key) > blocksize:
/freebsd/sys/dev/sound/pci/
H A Dhdspe-pcm.c898 hdspechan_setblocksize(kobj_t obj, void *data, uint32_t blocksize) in hdspechan_setblocksize() argument
913 device_printf(scp->dev, "hdspechan_setblocksize(%d)\n", blocksize); in hdspechan_setblocksize()
919 if (blocksize > HDSPE_LAT_BYTES_MAX) in hdspechan_setblocksize()
920 blocksize = HDSPE_LAT_BYTES_MAX; in hdspechan_setblocksize()
921 else if (blocksize < HDSPE_LAT_BYTES_MIN) in hdspechan_setblocksize()
922 blocksize = HDSPE_LAT_BYTES_MIN; in hdspechan_setblocksize()
924 blocksize /= 4 /* samples */; in hdspechan_setblocksize()
927 blocksize = sc->force_period; in hdspechan_setblocksize()
931 if (latency_map[i].period == blocksize) in hdspechan_setblocksize()
941 if (blocksize < threshold) in hdspechan_setblocksize()

123456789