Searched refs:blocksize (Results 1 - 19 of 19) sorted by relevance

/barrelfish-master/include/barrelfish/
H A Dslab.h38 size_t blocksize; ///< Size of blocks managed by this allocator member in struct:slab_allocator
42 void slab_init(struct slab_allocator *slabs, size_t blocksize,
53 #define SLAB_REAL_BLOCKSIZE(blocksize) \
54 (((blocksize) > SLAB_BLOCK_HDRSIZE) ? (blocksize) : SLAB_BLOCK_HDRSIZE)
57 #define SLAB_STATIC_SIZE(nblocks, blocksize) \
58 ((nblocks) * SLAB_REAL_BLOCKSIZE(blocksize) + sizeof(struct slab_head))
/barrelfish-master/usr/bench/ahci/
H A Dmain.c42 dd_bench(char *source, char *target, size_t blocksize, size_t count) argument
71 uint8_t *buffer = malloc(blocksize);
81 printf("failed to allocate buffer of size %zd\n", blocksize);
87 err = vfs_read(source_vh, buffer, blocksize, &rsize);
151 fill_bench(char *target, uint8_t *buffer, size_t blocksize, size_t count, struct bench_res *result) argument
180 printf("failed to allocate buffer of size %zd\n", blocksize);
187 for (size_t i = 0; i < blocksize; i += sizeof(size_t))
192 while (wpos < blocksize) {
194 printf("was unable to write the whole chunk of size %zd. Now at pos: %zd of buffer\n", blocksize, wpos);
196 err = vfs_write(target_vh, &buffer[wpos], blocksize
305 size_t blocksize, count = 16; local
335 size_t blocksize, count = 256; local
382 size_t blocksize = atoi(argv[3]); local
482 rand_bench(char *target, uint8_t *buffer, size_t filesize, size_t blocksize, size_t count, size_t randval, struct bench_res *result) argument
590 size_t blocksize, count = 256; local
623 rand_bench_time(char *target, uint8_t *buffer, size_t filesize, size_t blocksize, size_t count, size_t randval, struct bench_res *result) argument
733 size_t blocksize, count = 256; local
779 size_t blocksize = atoi(argv[2]); local
[all...]
/barrelfish-master/lib/libc/gen/
H A Dgetbsize.c45 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;
/barrelfish-master/lib/barrelfish/
H A Dslab.c32 * \param blocksize Size of blocks to be allocated by this allocator
35 void slab_init(struct slab_allocator *slabs, size_t blocksize, argument
39 slabs->blocksize = SLAB_REAL_BLOCKSIZE(blocksize);
66 size_t blocksize = slabs->blocksize; local
67 assert(buflen / blocksize <= UINT32_MAX);
68 head->free = head->total = buflen / blocksize;
74 buf = (char *)buf + blocksize;
122 memset(bh, 0, slabs->blocksize);
143 size_t blocksize = slabs->blocksize; local
[all...]
H A Dpmap_slab_mgmt.c107 slab->blocksize);
111 debug_printf("%s: req=%zu, bytes=%zu, slab->blocksize=%zu, slab->freecount=%zu\n",
112 __FUNCTION__, slabs_req, bytes, slab->blocksize, slab_freecount(slab));
193 slab->blocksize);
H A Dthreads.c213 size_t blocksize = sizeof(struct thread) + tls_block_total_len; local
214 err = vspace_mmu_aware_map(&thread_slabs_vm, blocksize, &buf, &size);
1132 size_t blocksize = sizeof(struct thread) + tls_block_total_len + THREAD_ALIGNMENT; local
1133 err = vspace_mmu_aware_init(&thread_slabs_vm, MAX_THREADS * blocksize);
1142 slab_init(&thread_slabs, blocksize, refill_thread_slabs);
1256 size_t blocksize = sizeof(struct thread) + tls_block_total_len; local
1257 err = vspace_mmu_aware_map(&thread_slabs_vm, 64 * blocksize,
/barrelfish-master/include/storage/
H A Dvsic.h19 STORAGE_ROUNDUP(s, (vsic)->blocksize)
38 size_t blocksize; member in struct:storage_vsic
/barrelfish-master/lib/openssl-1.0.0d/crypto/ec/
H A Dec_mult.c84 size_t blocksize; /* block size for wNAF splitting */ member in struct:ec_pre_comp_st
112 ret->blocksize = 8; /* default */
353 size_t blocksize = 0, numblocks = 0; /* for wNAF splitting */ local
414 blocksize = pre_comp->blocksize;
418 numblocks = (BN_num_bits(scalar) / blocksize) + 1;
529 if (tmp_len < numblocks * blocksize)
532 numblocks = (tmp_len + blocksize - 1) / blocksize;
549 wNAF_len[i] = blocksize;
771 size_t i, bits, w, pre_points_per_block, blocksize, numblocks, num; local
[all...]
/barrelfish-master/usr/eclipseclp/Shm/src/
H A Dalloc.c782 register int blocksize = SMALLEST_POWER_BLOCK; local
784 while (units_needed > blocksize)
786 blocksize <<= 1;
789 heap->used += blocksize;
796 else if (blocksize <= heap->alloc_free) /* get from allocation block */
799 heap->alloc_free -= blocksize;
801 ((char *) heap->alloc_ptr + blocksize*BYTES_PER_UNIT);
803 else /* get a fresh page and split into blocks of blocksize */
808 initptr = (unit_type *) ptr + UNITS_PER_PAGE - blocksize;
810 initptr -= blocksize;
859 register int blocksize = SMALLEST_POWER_BLOCK; local
889 register int blocksize = SMALLEST_POWER_BLOCK; local
1013 int i, j, blocksize; local
[all...]
/barrelfish-master/lib/tenaciousd/
H A Dqueue.c37 uint32_t blocksize; member in struct:queue_header
129 assert(header->blocksize == vsic->blocksize);
157 header->blocksize = vsic->blocksize;
192 header->blocksize = queue->vsic->blocksize;
H A Dlog.c35 uint32_t blocksize; member in struct:log_header
112 assert(header->blocksize == vsic->blocksize);
136 header->blocksize = vsic->blocksize;
169 header->blocksize = log->vsic->blocksize;
H A Daio_vsic.c160 vsic->blocksize = 512; // XXX: Determine from drive?
H A Dram_vsic.c236 vsic->blocksize = 512; // XXX: Determine from drive?
/barrelfish-master/lib/barrelfish/slot_alloc/
H A Dtwolevel_slot_alloc.c98 err = vspace_mmu_aware_map(&mca->mmu_state, mca->slab.blocksize,
119 size_t bufsize = mca->slab.blocksize - sizeof(struct slot_allocator_list);
/barrelfish-master/usr/fish/
H A Dfish_common.c773 size_t blocksize = 512; local
793 blocksize = atoi(argv[i] + 3);
813 size_t one_per_cent = (blocksize * count) / 100;
815 printf("from: %s to: %s bs=%zd count=%zd seek=%zd skip=%zd\n", source, target, blocksize, count, seek, skip);
852 uint8_t * buffer = malloc(blocksize);
866 printf("failed to allocate buffer of size %zd\n", blocksize);
875 err = vfs_read(source_vh, buffer, blocksize, &rsize);
899 } while(read_bytes < blocksize);
/barrelfish-master/lib/ahci/
H A Dstorage_vsic.c137 vsic->blocksize = 512; // XXX: Determine from drive?
/barrelfish-master/lib/barrelfish/arch/x86/
H A Dpmap.c345 buf->vnode_used = used_slabs * pmap->m.slab.blocksize;
346 buf->vnode_free = free_slabs * pmap->m.slab.blocksize;
/barrelfish-master/lib/openssl-1.0.0d/ssl/
H A Dd1_both.c228 unsigned int len, frag_off, mac_size, blocksize; local
283 blocksize = 2 * EVP_CIPHER_block_size(s->enc_write_ctx->cipher);
285 blocksize = 0;
291 DTLS1_RT_HEADER_LENGTH - mac_size - blocksize;
300 mac_size - blocksize;
/barrelfish-master/usr/drivers/megaraid/
H A Dmegaraid_vsic.c398 vsic->blocksize = BLOCK_SIZE; // XXX: Determine from drive?

Completed in 137 milliseconds