Searched refs:bytes (Results 1 - 25 of 327) sorted by last modified time

1234567891011>>

/barrelfish-2018-10-04/usr/vnode_map_test/
H A Dvnode_map_test.c64 size_t bytes = DEFAULT_SIZE; local
73 err = frame_alloc(&frame, bytes, &bytes);
75 assert(bytes >= DEFAULT_SIZE);
192 bytes = DEFAULT_SIZE;
193 err = frame_alloc(&frame, bytes, &bytes);
195 assert(bytes >= DEFAULT_SIZE);
201 err = pmap->f.map(pmap, SAFE_PMAP_ADDR, frame, 0, bytes, PMAP_DEFAULT_ACCESS | 0x0100, NULL, &bytes);
[all...]
/barrelfish-2018-10-04/usr/vnode_map_32/
H A Dvnode_map_32.c55 size_t bytes = DEFAULT_SIZE; local
60 printf("\tpagesize: %i, \taddr: %i\n", (int)bytes, (int)SAFE_VADDR);
67 err = frame_alloc(&frame, bytes, &bytes);
69 assert(bytes >= DEFAULT_SIZE);
108 bytes = DEFAULT_SIZE;
109 err = frame_alloc(&frame, bytes, &bytes);
111 assert(bytes >= DEFAULT_SIZE);
113 a.size = bytes;
[all...]
/barrelfish-2018-10-04/usr/vmkitmon/
H A Dpci_vmkitmon_eth.c60 val = ~h->pci_device->bars[addr.d.doubleword - 4].bytes + 1; //~0x100000 + 1
342 dev->bars[0].bytes = 0x100000; //1 MB
H A Dpci_ethernet.h15 #define ETH_MMIO_MASK(eth) (~(~eth->bytes + 1)) // I think ~(-eth->bytes) is also correct
20 #define ETH_MMIO_ADDR_CHECK(eth,addr) ( eth->phys_base_addr <= addr && addr <= eth->phys_base_addr + eth->bytes )
28 size_t bytes; member in struct:pci_ethernet
H A Dpci_ethernet.c113 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...]
H A Dpci.h54 size_t bytes; //size of the bar member in struct:bar_info
H A Dguest.c214 // allocates some bytes of memory for the guest starting at a specific addr
217 alloc_guest_mem(struct guest *g, lvaddr_t guest_paddr, size_t bytes) argument
222 assert(bytes > 0 && (bytes & BASE_PAGE_MASK) == 0);
224 assert(guest_paddr + bytes <= g->mem_high_va);
236 err = frame_create(cap, bytes, NULL);
242 err = guest_vspace_map_wrapper(&g->vspace, guest_paddr, cap, bytes);
259 err = vspace_map_wrapper(guest_to_host(guest_paddr), host_cap, bytes);
264 struct frame_identity frameid = { .base = 0, .bytes = 0 };
267 VMKIT_PCI_DEBUG("alloc_guest_mem: frameid.base: 0x%lx, frameid.bytes
[all...]
H A Dguest.h522 alloc_guest_mem(struct guest *g, lvaddr_t guest_paddr, size_t bytes);
/barrelfish-2018-10-04/usr/tests/xeon_phi_test/
H A Dmain_card.c95 .bytes = size
211 id.bytes);
217 host_frame_sz = id.bytes;
219 err = vspace_map_one_frame(&host_buf, id.bytes, msgframe, NULL, NULL);
H A Dmain_host.c89 .bytes = size
H A Dmain_inter_card.c138 id.bytes, usrdata);
144 remote_frame_sz = id.bytes;
H A Dbenchmark.c30 printf("Buffer size = %lu bytes, processing runs %u\n",
101 debug_printf(" > run %u of %u memwrite of %lu bytes..\n", rep_counter++,
206 //debug_printf("Benchmark: Run %u, size = %lu bytes, [%016lx] -> [%016lx]\n", idx, size, src, dst);
252 //debug_printf("Benchmark: Run %u, size = %lu bytes, [%016lx] -> [%016lx]\n", idx, size, src, dst);
306 //debug_printf("Benchmark: Run %u, size = %lu bytes, [%016lx] -> [%016lx]\n", idx, size, src, dst);
318 .bytes = size
366 debug_printf("Starting memcpy benchmark. tsc/us=%lu, cpysize=%lu bytes\n",
/barrelfish-2018-10-04/usr/tests/twolevel_cspace/
H A Dtest_create_l1l2.c31 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/usr/tests/nkm/
H A Dvspace_dump.c114 fi.base, info->offset, fi.bytes);
H A Dmap_offset.c53 printf("base = %" PRIxGENPADDR ", bytes = %" PRIuGENSIZE "\n", id.base, id.bytes);
54 assert(id.bytes == 4096);
75 assert(id.bytes == 4096);
76 printf("base = %" PRIxGENPADDR ", bytes = %" PRIuGENSIZE "\n", id.base, id.bytes);
/barrelfish-2018-10-04/usr/tests/mdbtests/
H A Dtest_range_query.c71 out[gencount].cap.u.ram = (struct RAM) { .base = begin, .bytes = 1UL << sizebits };
195 ranges[i].cap.u.ram.base, ranges[i].cap.u.ram.bytes);
239 PRIxGENVADDR", .bytes = 0x%"PRIxGENSIZE") (expected (.base = 0x%"
240 PRIxGENVADDR", .bytes = 0x%"PRIxGENSIZE"))\n",
241 retcap->cap.u.ram.base, retcap->cap.u.ram.bytes,
242 q->target->cap.u.ram.base, q->target->cap.u.ram.bytes);
H A Dtest_addr_zero.c30 cap->u.ram.bytes = 1UL << (BASE_BITS + i);
44 cap->u.devframe.bytes = 1UL << BASE_BITS;
/barrelfish-2018-10-04/usr/tests/dma_test/
H A Ddma_test.c56 assert(frame_size == id.bytes);
121 .bytes = (DMA_BUFFER_SIZE << 20)
/barrelfish-2018-10-04/usr/tests/devif/
H A Dudp_queue.c238 err = vspace_map_one_frame_attr(&va_rx, id.bytes, memory_rx,
250 err = vspace_map_one_frame_attr(&va_tx, id.bytes, memory_tx,
H A Dqueue_interface.c501 err = vspace_map_one_frame_attr(&va_rx, id.bytes, memory_rx,
515 err = vspace_map_one_frame_attr(&va_tx, id.bytes, memory_tx,
H A Ddebug_test.c347 err = vspace_map_one_frame_attr(&va, id.bytes, memory,
H A Decho.c49 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,
H A Dbench.c97 size_t bytes; local
103 err = vfs_write(handle, buffer, strlen(buffer), &bytes);
105 assert(bytes == strlen(buffer));
314 err = vspace_map_one_frame_attr(&va, id.bytes, memory,
H A Dclient.c82 err = vspace_map_one_frame_attr(&va_rx, id.bytes, memory_rx,
/barrelfish-2018-10-04/usr/tests/capops/
H A Dretype.c40 static void setup(size_t bytes) argument
43 err = ram_alloc(&bunch_o_ram, log2ceil(bytes));
62 printf("...fail: %sexpected %#"PRIxGENPADDR", %s; got %#"PRIxGENPADDR", %zu bytes\n",
94 if (bor_id.base != fi.base || fi.bytes != BASE_PAGE_SIZE) {
95 print_unexpected("", bor_id.base, "4kB", fi.base, fi.bytes);
108 if (bor_id.base + BASE_PAGE_SIZE != fi.base || fi.bytes != 4*BASE_PAGE_SIZE) {
109 print_unexpected("", bor_id.base + BASE_PAGE_SIZE, "16kB", fi.base, fi.bytes);
131 fi.bytes != BASE_PAGE_SIZE)
136 "4kB", fi.base, fi.bytes);
180 if (bor_id.base != fi.base || fi.bytes !
[all...]

Completed in 249 milliseconds

1234567891011>>