/barrelfish-2018-10-04/lib/barrelfish/vspace/ |
H A D | mmu_aware.c | 245 offset += fi.bytes; 267 lvaddr_t base, size_t bytes) 280 assert(base + bytes == (lvaddr_t)eaddr); 282 assert(bytes <= state->consumed); 283 assert(bytes <= state->offset); 286 state->offset -= bytes; 287 state->consumed -= bytes; 313 // state->consumed -= bytes; 266 vspace_mmu_aware_unmap(struct vspace_mmu_aware *state, lvaddr_t base, size_t bytes) argument
|
/barrelfish-2018-10-04/lib/devif/backends/net/mlx4/include/linux/ |
H A D | linux_compat.c | 376 ssize_t bytes; local 390 bytes = filp->f_op->read(filp, uio->uio_iov->iov_base, 392 if (bytes >= 0) { 393 uio->uio_iov->iov_base += bytes; 394 uio->uio_iov->iov_len -= bytes; 395 uio->uio_resid -= bytes; 397 error = -bytes; 410 ssize_t bytes; local 424 bytes = filp->f_op->write(filp, uio->uio_iov->iov_base, 426 if (bytes > 529 ssize_t bytes; local [all...] |
/barrelfish-2018-10-04/lib/libc/locale/ |
H A D | gb18030.c | 65 u_char bytes[4]; member in struct:__anon1002 102 if (gs->count < 0 || gs->count > sizeof(gs->bytes)) { 113 ncopy = MIN(MIN(n, MB_CUR_MAX), sizeof(gs->bytes) - gs->count); 114 memcpy(gs->bytes + gs->count, s, ncopy); 117 s = (char *)gs->bytes;
|
/barrelfish-2018-10-04/usr/eclipseclp/Kernel/src/ |
H A D | mem.c | 142 size_t bytes) /* multiple of pagesize */ 149 if (!VirtualFree(addr,bytes,MEM_DECOMMIT)) 164 if (munmap(addr, bytes) == -1) 170 ad = mmap((caddr_t) addr, bytes, PROT_READ|PROT_WRITE, 179 ad = mmap((caddr_t) addr, bytes, PROT_NONE, 200 ad = mmap((caddr_t) addr, bytes, PROT_NONE, 218 size_t bytes) /* multiple of pagesize */ 224 if (!VirtualAlloc(addr,bytes,MEM_COMMIT,PAGE_READWRITE)) 236 if ((char *) mmap(addr, bytes, PROT_READ|PROT_WRITE, 260 if ((char *) mmap(addr, bytes, PROT_REA 141 _unmap_at(char *addr, size_t bytes) argument 217 _map_at(char *addr, size_t bytes) argument 283 _report_adjustment(char *change, char *name, word bytes) argument 399 alloc_stack_pairs(int nstacks, char **names, uword *bytes, struct stack_struct **descr) argument 498 uword bytes = (char*) upper[1].start - (char*) addr; local [all...] |
/barrelfish-2018-10-04/lib/net/ |
H A D | netbufs.c | 109 reg->frame.bytes >> 10, buffersize); 112 size_t numbuf = reg->frame.bytes / reg->buffer_size; 113 assert(numbuf * reg->buffer_size <= reg->frame.bytes); 121 err = vspace_map_one_frame_attr(®->vbase, reg->frame.bytes, reg->framecap, 291 if (reg->frame.bytes < offset) {
|
/barrelfish-2018-10-04/usr/tests/devif/ |
H A D | echo.c | 49 static uint64_t bytes = 0; variable 120 bytes += valid_length; 141 ((double)bytes*8)/(1000*1000*time), time); 159 bytes = 0; 196 err = vspace_map_one_frame_attr(&va_rx, id.bytes, memory_rx,
|
/barrelfish-2018-10-04/usr/bfscope/ |
H A D | bfscope_nfs.c | 125 DEBUG("dumping %zu bytes to NFS share\n", trace_length); 131 size_t bytes = trace_length - total_written; local 133 //bytes = bytes > MAX_NFS_CHUNK ? MAX_NFS_CHUNK : bytes; 134 DEBUG("dumping to NFS share: trying to write %zu bytes\n", bytes); 135 err = vfs_write(dump_file_vh, bufptr, bytes, &written); 140 DEBUG("dumping to NFS share: %zu/%zu bytes written\n", total_written, trace_length);
|
/barrelfish-2018-10-04/usr/pci/ |
H A D | pci_msix.c | 128 struct frame_identity frameid = { .base = 0, .bytes = 0 }; 172 err = vspace_map_one_frame_attr(&virt, frameid.bytes, tablecap, 185 assert(cap[1] + (*count*16) <= frameid.bytes);
|
/barrelfish-2018-10-04/lib/openssl-1.0.0d/crypto/asn1/ |
H A D | x_name.c | 139 if((ret->bytes = BUF_MEM_new()) == NULL) goto memerr; 164 BUF_MEM_free(a->bytes); 195 if(!BUF_MEM_grow(nm.x->bytes, p - q)) goto err; 196 memcpy(nm.x->bytes->data, q, p - q); 234 ret = a->bytes->length; 236 memcpy(*out,a->bytes->data,ret); 277 if (!BUF_MEM_grow(a->bytes,len)) goto memerr; 278 p=(unsigned char *)a->bytes->data;
|
/barrelfish-2018-10-04/usr/drivers/xeon_phi/ |
H A D | sysmem_caps.c | 440 assert((1UL << log2ceil(ret.bytes)) == ret.bytes); 441 err = mm_init(&sysmem_manager, ObjType_DevFrame, ret.base, log2ceil(ret.bytes), 448 XSYSMEM_DEBUG("Adding cap: [0x%016lx, %i]\n", ret.base, log2ceil(ret.bytes)); 449 err = mm_add(&sysmem_manager, sysmem_cap, log2ceil(ret.bytes), ret.base); 484 assert((1UL << log2ceil(id.bytes)) == id.bytes); 485 return mm_free(&sysmem_manager, frame, id.base, log2ceil(id.bytes));
|
/barrelfish-2018-10-04/doc/015-disk-driver-arch/ |
H A D | usage.tex | 118 size_t bytes = block_size*block_count; 119 uint8_t *buf = malloc(bytes); 122 size_t count = bytes / step; 123 assert(bytes % sizeof(pat) == 0); 129 call, pass it the binding, the buffer, the number of bytes to write, the 136 err = ata_rw28_rpc.vtbl.write_dma(&ata_rw28_rpc, buf, bytes, 148 err = ata_rw28_rpc.vtbl.read_dma(&ata_rw28_rpc, bytes, 154 if (bytes_read != bytes) 155 USER_PANIC("read_dma -> bytes_read != bytes");
|
/barrelfish-2018-10-04/usr/monitor/ |
H A D | domain.c | 38 .bytes = 1UL << bits, 109 err = reclaim_memory(u->ram.base, log2ceil(u->ram.bytes));
|
/barrelfish-2018-10-04/usr/skb/ |
H A D | skb_main.c | 38 typedef void *(*alt_malloc_t)(size_t bytes); 42 typedef void *(*alt_realloc_t)(void *p, size_t bytes);
|
/barrelfish-2018-10-04/usr/tests/dma_test/ |
H A D | dma_test.c | 56 assert(frame_size == id.bytes); 121 .bytes = (DMA_BUFFER_SIZE << 20)
|
/barrelfish-2018-10-04/usr/tests/twolevel_cspace/ |
H A D | test_create_l1l2.c | 31 static void setup(size_t bytes) argument 34 err = ram_alloc(&bunch_o_ram, log2ceil(bytes)); 54 printf("...fail: %sexpected %#"PRIxGENPADDR", %s; got %#"PRIxGENPADDR", %zu bytes\n",
|
/barrelfish-2018-10-04/lib/barrelfish/arch/x86_64/ |
H A D | pmap.c | 347 fi.bytes >= X86_64_HUGE_PAGE_SIZE && 359 fi.bytes >= X86_64_LARGE_PAGE_SIZE && 377 if (offset+size > fi.bytes) { 379 offset, size, fi.bytes); 389 "; pte_count = %zd; frame bytes = 0x%zx; page size = 0x%zx\n", 390 vaddr, vend, paddr, pte_count, fi.bytes, page_size); 470 static size_t max_slabs_for_mapping(size_t bytes) argument 472 size_t max_pages = DIVIDE_ROUND_UP(bytes, X86_64_BASE_PAGE_SIZE); 479 static size_t max_slabs_for_mapping_large(size_t bytes) argument 481 size_t max_pages = DIVIDE_ROUND_UP(bytes, X86_64_LARGE_PAGE_SIZ 487 max_slabs_for_mapping_huge(size_t bytes) argument 515 size_t bytes = SLAB_STATIC_SIZE(request - slab_freecount(&pmap->slab), local 631 size_t bytes = SLAB_STATIC_SIZE(max_slabs - slabs_free, local [all...] |
/barrelfish-2018-10-04/lib/vfs/ |
H A D | vfs_ramfs.c | 229 static errval_t read(void *st, vfs_handle_t handle, void *buffer, size_t bytes, argument 240 err = cl->rpc->rpc_tx_vtbl.read(cl->rpc, h->fh, h->pos, bytes, 259 if (*bytes_read < bytes) { // XXX: this can only mean EOF for ramfs 267 size_t bytes, size_t *bytes_written) 277 err = cl->rpc->rpc_tx_vtbl.write(cl->rpc, h->fh, h->pos, buffer, bytes, &msgerr); 293 h->pos += bytes; 295 *bytes_written = bytes; 302 size_t bytes, size_t *ret_bytes_read) 321 while (bytes_read < bytes) { 322 if (bytes 266 write(void *st, vfs_handle_t handle, const void *buffer, size_t bytes, size_t *bytes_written) argument 301 read_bulk(void *st, vfs_handle_t handle, void *buffer, size_t bytes, size_t *ret_bytes_read) argument 373 write_bulk(void *st, vfs_handle_t handle, const void *buffer, size_t bytes, size_t *ret_bytes_written) argument 436 ramfs_truncate(void *st, vfs_handle_t handle, size_t bytes) argument [all...] |
H A D | vfs_blockdevfs_ata.c | 150 size_t bytes, size_t *bytes_read) 154 size_t aligned_bytes = bytes / PR_SIZE * PR_SIZE; 157 //VFS_BLK_DEBUG("bdfs_ahci: read begin: %zu -> %zu\n", bytes, aligned_bytes); 166 size_t bytes, size_t *bytes_written) 171 size_t aligned_bytes = bytes / PR_SIZE * PR_SIZE; 224 VFS_BLK_DEBUG("Disk %" PRIu8 " has %zd sectors of %zd bytes\n", 149 blockdevfs_ata_read(void *handle, size_t pos, void *buffer, size_t bytes, size_t *bytes_read) argument 165 blockdevfs_ata_write(void *handle, size_t pos, const void *buffer, size_t bytes, size_t *bytes_written) argument
|
H A D | vfs_blockdevfs_ahci.c | 163 bytes, size_t *bytes_read) 167 size_t aligned_bytes = bytes / PR_SIZE * PR_SIZE; 169 VFS_BLK_DEBUG("bdfs_ahci: read begin: %zu -> %zu\n", bytes, aligned_bytes); 240 size_t bytes, size_t *bytes_written) 245 size_t aligned_bytes = bytes / PR_SIZE * PR_SIZE; 332 VFS_BLK_DEBUG("Disk %" PRIu8 " has %zd sectors of %zd bytes\n", 162 blockdevfs_ahci_read(void *handle, size_t pos, void *buffer, size_t bytes, size_t *bytes_read) argument 239 blockdevfs_ahci_write(void *handle, size_t pos, const void *buffer, size_t bytes, size_t *bytes_written) argument
|
/barrelfish-2018-10-04/lib/libc/inet/ |
H A D | inet_net_pton.c | 52 * "size" is in bytes and describes "dst". 274 size_t bytes; local 368 bytes = (bits + 7) / 8; 369 if (bytes > size) 371 memcpy(dst, tmp, bytes); 388 * "size" is in bytes and describes "dst".
|
/barrelfish-2018-10-04/kernel/include/arch/armv7/ |
H A D | paging_kernel_arch.h | 39 * @param size the size of the device's address range in bytes 58 void paging_map_memory(uintptr_t ttbase, lpaddr_t paddr, size_t bytes); 65 // both l1_entry and l2_entry are 4 bytes
|
/barrelfish-2018-10-04/include/dmalloc/ |
H A D | dmalloc.h | 41 Returns a pointer to a newly allocated chunk of at least n bytes, or 46 size is 16 bytes on most 32bit systems, and 32 bytes on 64bit 66 Returns a pointer to n_elements * element_size bytes, with all locations 74 as does chunk p up to the minimum of (n, p's size) bytes, or null 86 if n is for fewer bytes than already held by p, the newly unused 112 Returns a pointer to a newly allocated chunk of n bytes, aligned 126 Allocates a chunk of n bytes, aligned in accord with the alignment 166 Returns the number of bytes obtained from the system. The total 167 number of bytes allocate [all...] |
/barrelfish-2018-10-04/usr/vmkitmon/ |
H A D | pci.h | 54 size_t bytes; //size of the bar member in struct:bar_info
|
H A D | pci_ethernet.c | 113 eth->bytes = bar[0].bytes; 115 eth->pci_device->bars[0].bytes = bar[0].bytes; 123 printf("pci_ethernet_init: map_device successful. vaddr: 0x%lx, bytes: %d...\n", (uint64_t)bar[0].vaddr, (int)bar[0].bytes); 130 /* err = guest_vspace_map_wrapper(&guest_info->vspace, bar[0].paddr, bar[0].frame_cap[0], bar[0].bytes); 186 //Patch region. RDLEN is in bytes. each descriptor needs 16 bytes 199 uint32_t rdslots = rdlen / 16; //receive desc size is 16bytes an [all...] |
/barrelfish-2018-10-04/usr/eclipseclp/documents/userman/ |
H A D | umsmemory.tex | 54 global_stack_used: 1936 bytes 55 global_stack_allocated: 4456448 bytes 56 global_stack_peak: 4456448 bytes 57 trail_stack_used: 64 bytes 58 trail_stack_allocated: 262144 bytes 59 trail_stack_peak: 4456448 bytes 60 control_stack_used: 564 bytes 61 control_stack_allocated:262144 bytes 62 control_stack_peak: 262144 bytes 63 local_stack_used: 492 bytes [all...] |