/dragonfly/contrib/cryptsetup/luks/ |
H A D | af.c | 91 int AF_split(char *src, char *dst, size_t blocksize, unsigned int blocknumbers, const char *hash) in AF_split() argument 102 if((bufblock = calloc(blocksize, 1)) == NULL) return -ENOMEM; in AF_split() 106 r = getRandom(dst+(blocksize*i),blocksize); in AF_split() 109 XORblock(dst+(blocksize*i),bufblock,bufblock,blocksize); in AF_split() 110 if(diffuse(bufblock, bufblock, blocksize, hash_id)) in AF_split() 114 XORblock(src,bufblock,dst+(i*blocksize),blocksize); in AF_split() 132 if((bufblock = calloc(blocksize, 1)) == NULL) return -ENOMEM; in AF_merge() 134 memset(bufblock,0,blocksize); in AF_merge() 136 XORblock(src+(blocksize*i),bufblock,bufblock,blocksize); in AF_merge() 137 if(diffuse(bufblock, bufblock, blocksize, hash_id)) in AF_merge() [all …]
|
H A D | af.h | 22 int AF_split(char *src, char *dst, size_t blocksize, unsigned int blocknumbers, const char *hash); 23 int AF_merge(char *src, char *dst, size_t blocksize, unsigned int blocknumbers, const char *hash);
|
/dragonfly/test/stress/stress2/misc/ |
H A D | newfs3.sh | 53 blocksize=4096 54 while [ $blocksize -le 65536 ]; do 56 fragsize=$((blocksize / i)) 57 …echo "newfs -b $blocksize -f $fragsize $opt md${mdstart}${part} on a $((size / 1024 / 1024)) Mb FS" 58 newfs -b $blocksize -f $fragsize $opt md${mdstart}${part} > /dev/null 2>&1 67 blocksize=$((blocksize * 2))
|
H A D | newfs.sh | 48 blocksize=4096 49 while [ $blocksize -le 65536 ]; do 51 fragsize=$((blocksize / i)) 52 echo "newfs $opt -b $blocksize -f $fragsize md${mdstart}${part}" 53 newfs $opt -b $blocksize -f $fragsize md${mdstart}${part} > /dev/null 62 blocksize=$((blocksize * 2))
|
/dragonfly/crypto/libressl/crypto/ec/ |
H A D | ec_mult.c | 114 ret->blocksize = 8; /* default */ in ec_pre_comp_new() 395 blocksize = pre_comp->blocksize; in ec_wNAF_mul() 524 numblocks = (tmp_len + blocksize - 1) / blocksize; in ec_wNAF_mul() 537 wNAF_len[i] = blocksize; in ec_wNAF_mul() 538 if (tmp_len < blocksize) { in ec_wNAF_mul() 542 tmp_len -= blocksize; in ec_wNAF_mul() 568 pp += blocksize; in ec_wNAF_mul() 772 blocksize = 8; in ec_wNAF_precompute_mult() 778 numblocks = (bits + blocksize - 1) / blocksize; /* max. number of blocks in ec_wNAF_precompute_mult() 830 if (blocksize <= 2) { in ec_wNAF_precompute_mult() [all …]
|
/dragonfly/sbin/swapon/ |
H A D | swapon.c | 408 long blocksize) in sizetobuf() argument 417 snprintf(buf, bufsize, "%*lld", hlen, val / blocksize); in sizetobuf() 429 long blocksize; in swaplist() local 436 blocksize = 1024 * 1024 * 1024; in swaplist() 441 blocksize = -1; in swaplist() 446 blocksize = 1024; in swaplist() 451 blocksize = 1024 * 1024; in swaplist() 456 getbsize(&hlen, &blocksize); in swaplist() 457 snprintf(buf, sizeof(buf), "%ld-blocks", blocksize); in swaplist() 503 blocksize); in swaplist() [all …]
|
/dragonfly/lib/libc/gen/ |
H A D | getbsize.c | 43 long n, max, mul, blocksize; in getbsize() local 90 if ((blocksize = n * mul) < 512) { in getbsize() 93 blocksize = n = 512; in getbsize() 96 blocksize = n = 512; in getbsize() 100 *blocksizep = blocksize; in getbsize()
|
/dragonfly/test/testcases/crypto/serpent/ |
H A D | serpent_test.c | 265 int blocksize, keysize, test; in run_file() local 273 blocksize = 128; in run_file() 283 if (blocksize != -1) in run_file() 285 blocksize = (int)strtonum(cp, 128, 128, &errstr); in run_file() 296 key != NULL && blocksize > 0 && keysize > 0) { in run_file() 315 if (tmp * 8 != (u_int)blocksize) in run_file() 317 "blocklen %d", lnum, tmp, blocksize); in run_file() 329 if (tmp * 8 != (u_int)blocksize) in run_file() 331 "blocklen %d", lnum, tmp, blocksize); in run_file() 351 key == NULL || blocksize == -1 || keysize == -1) { in run_file()
|
/dragonfly/test/testcases/crypto/twofish/ |
H A D | twofish_test.c | 265 int blocksize, keysize, test; in run_file() local 273 blocksize = 128; in run_file() 283 if (blocksize != -1) in run_file() 285 blocksize = (int)strtonum(cp, 128, 128, &errstr); in run_file() 296 key != NULL && blocksize > 0 && keysize > 0) { in run_file() 315 if (tmp * 8 != (u_int)blocksize) in run_file() 317 "blocklen %d", lnum, tmp, blocksize); in run_file() 329 if (tmp * 8 != (u_int)blocksize) in run_file() 331 "blocklen %d", lnum, tmp, blocksize); in run_file() 351 key == NULL || blocksize == -1 || keysize == -1) { in run_file()
|
/dragonfly/usr.bin/hexdump/ |
H A D | hexdump.c | 43 int blocksize; /* data block size */ variable 61 for (blocksize = 0, tfs = fshead; tfs; tfs = tfs->nextfs) { in main() 63 if (blocksize < tfs->bcnt) in main() 64 blocksize = tfs->bcnt; in main()
|
H A D | display.c | 234 if ((curp = calloc(1, blocksize)) == NULL) in get() 236 if ((savp = calloc(1, blocksize)) == NULL) in get() 242 address += blocksize; in get() 245 for (need = blocksize, nread = 0;;) { in get() 254 if (need == blocksize) in get() 281 bcmp(curp, savp, blocksize) != 0) { in get() 289 address += blocksize; in get() 290 need = blocksize; in get()
|
/dragonfly/test/testcases/crypto/aes/ |
H A D | aestest.c | 250 int blocksize, keysize, test; in run_file() local 257 blocksize = keysize = test = -1; in run_file() 267 if (blocksize != -1) in run_file() 269 blocksize = (int)strtonum(cp, 128, 128, &errstr); in run_file() 288 if (tmp * 8 != (u_int)blocksize) in run_file() 290 "blocklen %d", lnum, tmp, blocksize); in run_file() 302 if (tmp * 8 != (u_int)blocksize) in run_file() 304 "blocklen %d", lnum, tmp, blocksize); in run_file() 321 key == NULL || blocksize == -1 || keysize == -1) { in run_file()
|
/dragonfly/bin/df/ |
H A D | df.c | 379 static long blocksize; in prtstat() local 391 header = getbsize(&headerlen, &blocksize); in prtstat() 421 fsbtoblk(vsfsp->f_blocks, vsfsp->f_bsize, blocksize), in prtstat() 422 mwp->used, fsbtoblk(used, vsfsp->f_bsize, blocksize), in prtstat() 424 blocksize)); in prtstat() 453 static long blocksize; in update_maxwidths() local 456 if (blocksize == 0) in update_maxwidths() 457 getbsize(&dummy, &blocksize); in update_maxwidths() 462 vsfsp->f_bsize, blocksize))); in update_maxwidths() 464 vsfsp->f_bfree, vsfsp->f_bsize, blocksize))); in update_maxwidths() [all …]
|
/dragonfly/usr.bin/du/ |
H A D | du.c | 88 long blocksize; in main() local 214 (void) getbsize(¬used, &blocksize); in main() 215 blocksize /= 512; in main() 246 (void) prthumanval(howmany(*(du_number_t *)p->fts_pointer, blocksize)); in main() 250 howmany(*(du_number_t *)p->fts_pointer, blocksize), in main() 277 blocksize)); in main() 281 howmany((long long)STBLOCKS(p->fts_statp), blocksize), in main() 302 (void) prthumanval(howmany(savednumber, blocksize)); in main() 305 (void) printf("%lld\ttotal\n", howmany(savednumber, blocksize)); in main()
|
/dragonfly/contrib/gdb-7/gdb/ |
H A D | target-memory.c | 140 unsigned blocksize; in block_boundaries() local 144 blocksize = region->attrib.blocksize; in block_boundaries() 146 *begin = address / blocksize * blocksize; in block_boundaries() 148 *end = (address + blocksize - 1) / blocksize * blocksize; in block_boundaries()
|
H A D | memory-map.c | 74 r->attrib.blocksize = -1; in memory_map_start_memory() 88 if (r->attrib.mode == MEM_FLASH && r->attrib.blocksize == -1) in memory_map_end_memory() 121 r->attrib.blocksize = gdb_xml_parse_ulongest (parser, body_text); in memory_map_end_property()
|
/dragonfly/usr.bin/systat/ |
H A D | swap.c | 53 void showspace(char *header, int hlen, long blocksize); 55 static long blocksize; variable 119 header = getbsize(&hlen, &blocksize); in labelswap() 135 #define CONVERT(v) ((int)((quad_t)(v) * pagesize / blocksize)) in showswap()
|
/dragonfly/contrib/dhcpcd/compat/crypt/ |
H A D | hmac.c | 73 size_t blocksize; member 158 if (klen > h->blocksize) { in hmac() 178 (*h->update)(c, ipad, (unsigned int)h->blocksize); in hmac() 183 (*h->update)(c, opad, (unsigned int)h->blocksize); in hmac()
|
/dragonfly/sys/bus/u4b/audio/ |
H A D | uaudio_pcm.c | 68 ua_chan_setblocksize(kobj_t obj, void *data, uint32_t blocksize) in ua_chan_setblocksize() argument 70 return (uaudio_chan_set_param_blocksize(data, blocksize)); in ua_chan_setblocksize() 74 ua_chan_setfragments(kobj_t obj, void *data, uint32_t blocksize, uint32_t blockcount) in ua_chan_setfragments() argument 76 return (uaudio_chan_set_param_fragments(data, blocksize, blockcount)); in ua_chan_setfragments()
|
/dragonfly/sys/dev/sound/pci/ |
H A D | hdspe-pcm.c | 506 hdspechan_setblocksize(kobj_t obj, void *data, uint32_t blocksize) in hdspechan_setblocksize() argument 516 device_printf(scp->dev, "hdspechan_setblocksize(%d)\n", blocksize); in hdspechan_setblocksize() 522 if (blocksize > HDSPE_LAT_BYTES_MAX) in hdspechan_setblocksize() 523 blocksize = HDSPE_LAT_BYTES_MAX; in hdspechan_setblocksize() 524 else if (blocksize < HDSPE_LAT_BYTES_MIN) in hdspechan_setblocksize() 525 blocksize = HDSPE_LAT_BYTES_MIN; in hdspechan_setblocksize() 527 blocksize /= 4 /* samples */; in hdspechan_setblocksize() 531 if (latency_map[i].period == blocksize) { in hdspechan_setblocksize() 542 if (blocksize < threshold) in hdspechan_setblocksize()
|
H A D | maestro.c | 1411 sndbuf_resize(ch->buffer, blkcnt, blocksize); in aggpch_setblocksize() 1413 blocksize = sndbuf_getblksz(ch->buffer); in aggpch_setblocksize() 1416 sndbuf_setblksz(ch->buffer, blocksize); in aggpch_setblocksize() 1419 ch->blklen = blocksize / 2; in aggpch_setblocksize() 1420 ch->buflen = blkcnt * blocksize / 2; in aggpch_setblocksize() 1421 return blocksize; in aggpch_setblocksize() 1561 blocksize = sndbuf_getblksz(ch->buffer); in aggrch_setblocksize() 1564 sndbuf_setblksz(ch->buffer, blocksize); in aggrch_setblocksize() 1567 ch->blklen = blocksize / 2; in aggrch_setblocksize() 1568 ch->buflen = blkcnt * blocksize / 2; in aggrch_setblocksize() [all …]
|
/dragonfly/bin/sh/pregenerated/ |
H A D | nodes.c | 54 int blocksize; /* size of structures in function */ member 119 sz.blocksize = offsetof(struct funcdef, n); in copyfunc() 122 fn = ckmalloc(sz.blocksize + sz.stringsize); in copyfunc() 125 st.string = (char *)fn + sz.blocksize; in copyfunc() 143 result->blocksize += nodesize[n->type]; in calcsize() 222 result->blocksize += ALIGN(sizeof(struct nodelist)); in sizenodelist()
|
/dragonfly/bin/sh/ |
H A D | nodes.c.pat | 50 int blocksize; /* size of structures in function */ 87 sz.blocksize = offsetof(struct funcdef, n); 90 fn = ckmalloc(sz.blocksize + sz.stringsize); 93 st.string = (char *)fn + sz.blocksize; 118 result->blocksize += ALIGN(sizeof(struct nodelist));
|
/dragonfly/sys/vfs/ext2fs/ |
H A D | ext2_dir.h | 85 #define EXT2_DIRENT_TAIL(data, blocksize) \ argument 87 (blocksize) - sizeof(struct ext2fs_direct_tail)))
|
/dragonfly/sys/dev/disk/nata/ |
H A D | atapi-fd.h | 75 u_int32_t blocksize; member 80 u_int32_t blocksize; member
|