/freebsd-11-stable/crypto/heimdal/lib/krb5/ |
H A D | crypto-evp.c | 99 size_t i, blocksize; local 107 blocksize = EVP_CIPHER_CTX_block_size(c); 109 if (len < blocksize) { 113 } else if (len == blocksize) { 127 i = ((len - 1) / blocksize) * blocksize; 129 p += i - blocksize; 131 memcpy(ivec2, p, blocksize); 134 tmp[i] = p[i + blocksize] ^ ivec2[i]; 135 for (; i < blocksize; [all...] |
H A D | crypto-aes.c | 112 if (result.checksum.length < crypto->et->blocksize) 121 ret = krb5_data_alloc(out, crypto->et->blocksize); 132 crypto->et->blocksize);
|
/freebsd-11-stable/contrib/libarchive/libarchive/test/ |
H A D | test_write_format_tar.c | 37 size_t blocksize; local 40 for (blocksize = 1; blocksize < 100000; blocksize += blocksize + 3) { 48 archive_write_set_bytes_per_block(a, (int)blocksize)); 50 archive_write_set_bytes_in_last_block(a, (int)blocksize)); 51 assertEqualInt(blocksize, 55 assertEqualInt(blocksize, 84 failure("blocksize [all...] |
H A D | test_write_open_memory.c | 49 size_t blocksize = 94; local 56 archive_write_set_bytes_per_block(a, (int)blocksize)); 61 if (i < (511/blocksize)*blocksize)
|
H A D | test_write_format_tar_sparse.c | 37 size_t blocksize; local 46 for (blocksize = 1; blocksize < 100000; blocksize += blocksize + 3) { 54 archive_write_set_bytes_per_block(a, (int)blocksize)); 56 archive_write_set_bytes_in_last_block(a, (int)blocksize)); 57 assertEqualInt(blocksize, 61 assertEqualInt(blocksize, 97 failure("blocksize 180 size_t blocksize = 20 * 512; local [all...] |
H A D | test_write_filter_program.c | 37 int blocksize = 1024; local 44 /* NOTE: Setting blocksize=1024 will cause gunzip failure because 46 * exit code 1. So we should set blocksize=1 in order not to 51 blocksize = 1; 65 assertA(0 == archive_write_set_bytes_per_block(a, blocksize)); 66 assertA(0 == archive_write_set_bytes_in_last_block(a, blocksize)); 67 assertA(blocksize == archive_write_get_bytes_in_last_block(a)); 69 assertA(blocksize == archive_write_get_bytes_in_last_block(a));
|
/freebsd-11-stable/usr.bin/hexdump/ |
H A D | hexdump.c | 52 int blocksize; /* data block size */ variable 70 for (blocksize = 0, tfs = fshead; tfs; tfs = tfs->nextfs) { 72 if (blocksize < tfs->bcnt) 73 blocksize = tfs->bcnt;
|
H A D | display.c | 95 * blocksize, and no partial block ever found. 136 blocksize - address % blocksize); 243 if ((curp = calloc(1, blocksize)) == NULL) 245 if ((savp = calloc(1, blocksize)) == NULL) 251 address += blocksize; 254 for (need = blocksize, nread = 0;;) { 263 if (need == blocksize) 298 bcmp(curp, savp, blocksize) != 0) { 306 address += blocksize; [all...] |
/freebsd-11-stable/lib/libc/gen/ |
H A D | getbsize.c | 45 long n, max, mul, blocksize; local 82 fmterr: warnx("%s: unknown blocksize", p); 89 warnx("maximum blocksize is %ldG", MAXB / GB); 92 if ((blocksize = n * mul) < 512) { 93 underflow: warnx("minimum blocksize is 512"); 95 blocksize = n = 512; 98 blocksize = n = 512; 102 *blocksizep = blocksize;
|
/freebsd-11-stable/crypto/heimdal/appl/rsh/ |
H A D | common.c | 48 size_t blocksize; local 50 krb5_crypto_getblocksize(context, crypto, &blocksize); 52 ivec_in[0] = malloc(blocksize); 53 memset(ivec_in[0], client, blocksize); 56 ivec_in[1] = malloc(blocksize); 57 memset(ivec_in[1], 2 | client, blocksize); 61 ivec_out[0] = malloc(blocksize); 62 memset(ivec_out[0], !client, blocksize); 65 ivec_out[1] = malloc(blocksize); 66 memset(ivec_out[1], 2 | !client, blocksize); [all...] |
/freebsd-11-stable/sbin/newfs_nandfs/ |
H A D | newfs_nandfs.c | 121 static size_t blocksize = NANDFS_DEF_BLOCKSIZE; variable 137 #define SIZE_TO_BLOCK(size) howmany(size, blocksize) 228 new_block->data = malloc(blocksize); 232 memset(new_block->data, 0, blocksize); 250 *blk = off / blocksize; 251 *offset = (off % blocksize) / seg_size; 263 if (size > blocksize) 264 err(1, "segsum info bigger that blocksize"); 277 entries = blocksize / sizeof(struct nandfs_block_group_desc); 279 desc[i].bg_nfrees = blocksize * [all...] |
/freebsd-11-stable/stand/usb/storage/ |
H A D | umass_loader.c | 115 uint32_t blocksize; local 117 if (usb_msc_read_capacity(umass_uaa.device, 0, &nblock, &blocksize) != 0) 120 return (disk_open(dev, ((uint64_t)nblock + 1) * (uint64_t)blocksize, blocksize)); 145 uint32_t blocksize; local 160 &nblock, &blocksize) != 0) 166 *(uint32_t*)buf = blocksize;
|
/freebsd-11-stable/contrib/subversion/subversion/libsvn_subr/ |
H A D | spillbuf.c | 45 apr_size_t blocksize; member in struct:svn_spillbuf_t 119 apr_size_t blocksize, 127 buf->blocksize = blocksize; 138 apr_size_t blocksize, 142 init_spillbuf_extended(buf, blocksize, maxsize, 148 svn_spillbuf__create(apr_size_t blocksize, argument 153 init_spillbuf(buf, blocksize, maxsize, result_pool); 159 svn_spillbuf__create_extended(apr_size_t blocksize, argument 167 init_spillbuf_extended(buf, blocksize, maxsiz 118 init_spillbuf_extended(svn_spillbuf_t *buf, apr_size_t blocksize, apr_size_t maxsize, svn_boolean_t delete_on_close, svn_boolean_t spill_all_contents, const char *dirpath, apr_pool_t *result_pool) argument 137 init_spillbuf(svn_spillbuf_t *buf, apr_size_t blocksize, apr_size_t maxsize, apr_pool_t *result_pool) argument 532 svn_spillbuf__reader_create(apr_size_t blocksize, apr_size_t maxsize, apr_pool_t *result_pool) argument [all...] |
/freebsd-11-stable/sys/fs/nandfs/ |
H A D | nandfs_dir.c | 60 uint32_t blocksize = dir_node->nn_nandfsdev->nd_blocksize; local 79 while (off < blocksize) { 92 rest = blocksize; 125 dirent->rec_len = blocksize - off; 158 uint32_t blocksize, limit, off; local 177 blocksize = dir_node->nn_nandfsdev->nd_blocksize; 178 blocknr = offset / blocksize; 192 limit = offset % blocksize; 227 filesize = blocknr * blocksize + 267 uint32_t blocksize, of local [all...] |
/freebsd-11-stable/bin/ls/ |
H A D | ls.h | 42 extern long blocksize; /* block size units */
|
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/ |
H A D | dmu_object.c | 35 dmu_object_alloc_ibs(objset_t *os, dmu_object_type_t ot, int blocksize, argument 96 dnode_allocate(dn, ot, blocksize, indirect_blockshift, 107 dmu_object_alloc(objset_t *os, dmu_object_type_t ot, int blocksize, argument 110 return (dmu_object_alloc_ibs(os, ot, blocksize, 0, 116 int blocksize, dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx) 127 dnode_allocate(dn, ot, blocksize, 0, bonustype, bonuslen, tx); 137 int blocksize, dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx) 150 dnode_reallocate(dn, ot, blocksize, bonustype, bonuslen, tx); 115 dmu_object_claim(objset_t *os, uint64_t object, dmu_object_type_t ot, int blocksize, dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx) argument 136 dmu_object_reclaim(objset_t *os, uint64_t object, dmu_object_type_t ot, int blocksize, dmu_object_type_t bonustype, int bonuslen, dmu_tx_t *tx) argument
|
/freebsd-11-stable/sys/dev/sound/usb/ |
H A D | uaudio.h | 46 uint32_t blocksize); 48 uint32_t blocksize, uint32_t blockcount);
|
H A D | uaudio_pcm.c | 70 ua_chan_setblocksize(kobj_t obj, void *data, uint32_t blocksize) argument 72 return (uaudio_chan_set_param_blocksize(data, blocksize)); 76 ua_chan_setfragments(kobj_t obj, void *data, uint32_t blocksize, uint32_t blockcount) argument 78 return (uaudio_chan_set_param_fragments(data, blocksize, blockcount));
|
/freebsd-11-stable/sys/kern/ |
H A D | kern_dump.c | 122 len = di->blocksize - fragsz; 129 if (fragsz == di->blocksize) { 131 di->blocksize); 134 dumplo += di->blocksize; 149 error = dump_write(di, di->blockbuf, 0, dumplo, di->blocksize); 150 dumplo += di->blocksize; 319 hdrgap = fileofs - roundup2((off_t)hdrsz, di->blocksize); 322 if (di->mediasize < SIZEOF_METADATA + dumpsize + di->blocksize * 2) { 327 dumplo -= di->blocksize * 2; 330 di->blocksize); [all...] |
/freebsd-11-stable/usr.bin/du/ |
H A D | du.c | 85 static long blocksize, cblocksize; variable 118 blocksize = 0; 172 blocksize = 1073741824; 179 blocksize = 1024; 186 blocksize = 1048576; 250 if (blocksize == 0) 251 (void)getbsize(¬used, &blocksize); 255 blocksize /= DEV_BSIZE; 260 blocksize); 287 cblocksize, blocksize)) { [all...] |
/freebsd-11-stable/contrib/apr/file_io/unix/ |
H A D | readwrite.c | 33 apr_uint64_t blocksize; local 71 blocksize = size > thefile->dataRead - thefile->bufpos ? thefile->dataRead - thefile->bufpos : size; 72 memcpy(pos, thefile->buffer + thefile->bufpos, blocksize); 73 thefile->bufpos += blocksize; 74 pos += blocksize; 75 size -= blocksize; 153 int blocksize; local 174 blocksize = size > thefile->bufsize - thefile->bufpos ? 176 memcpy(thefile->buffer + thefile->bufpos, pos, blocksize); 177 thefile->bufpos += blocksize; [all...] |
/freebsd-11-stable/sys/cam/ctl/ |
H A D | ctl_backend_ramdisk.c | 372 lbas = io->scsiio.kern_data_len / cbe_lun->blocksize; 379 page += lbaoff * cbe_lun->blocksize; 381 cbe_lun->blocksize); 383 if (res < cbe_lun->blocksize) 461 lbas = MIN(lbas, 131072 / cbe_lun->blocksize); 462 len = lbas * cbe_lun->blocksize; 492 off = lbaoff * cbe_lun->blocksize; 498 len = lbas * cbe_lun->blocksize; 524 io->scsiio.kern_data_len = lbas * cbe_lun->blocksize; 658 memset(page + lbaoff * cbe_lun->blocksize, 1173 uint32_t blocksize; local [all...] |
/freebsd-11-stable/contrib/llvm-project/lldb/include/lldb/Target/ |
H A D | MemoryRegionInfo.h | 27 OptionalBool flash, lldb::offset_t blocksize) 29 m_mapped(mapped), m_name(name), m_flash(flash), m_blocksize(blocksize) { 67 void SetBlocksize(lldb::offset_t blocksize) { m_blocksize = blocksize; } argument 25 MemoryRegionInfo(RangeType range, OptionalBool read, OptionalBool write, OptionalBool execute, OptionalBool mapped, ConstString name, OptionalBool flash, lldb::offset_t blocksize) argument
|
/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/ |
H A D | bpobj.h | 70 uint64_t bpobj_alloc(objset_t *mos, int blocksize, dmu_tx_t *tx); 71 uint64_t bpobj_alloc_empty(objset_t *os, int blocksize, dmu_tx_t *tx);
|
/freebsd-11-stable/sys/dev/ocs_fc/ |
H A D | ocs_utils.c | 1308 * @brief Return blocksize given SCSI API DIF block size 1315 * @return returns block size, or 0 if SCSI API DIF blocksize is invalid 1321 uint32_t blocksize = 0; local 1324 case OCS_SCSI_DIF_BK_SIZE_512: blocksize = 512; break; 1325 case OCS_SCSI_DIF_BK_SIZE_1024: blocksize = 1024; break; 1326 case OCS_SCSI_DIF_BK_SIZE_2048: blocksize = 2048; break; 1327 case OCS_SCSI_DIF_BK_SIZE_4096: blocksize = 4096; break; 1328 case OCS_SCSI_DIF_BK_SIZE_520: blocksize = 520; break; 1329 case OCS_SCSI_DIF_BK_SIZE_4104: blocksize = 4104; break; 1334 return blocksize; 1350 ocs_scsi_dif_set_blocksize(ocs_scsi_dif_info_t *dif_info, uint32_t blocksize) argument 1387 uint32_t blocksize; local 1444 uint32_t blocksize; local 1498 uint32_t blocksize = 0; local 1532 uint32_t blocksize; local 1589 uint32_t blocksize; local [all...] |