Home
last modified time | relevance | path

Searched refs:avail (Results 1 – 18 of 18) sorted by relevance

/xen/tools/libvchan/
A Dio.c236 int avail; in libxenvchan_send() local
241 if (size <= avail) in libxenvchan_send()
254 int avail; in libxenvchan_write() local
262 avail = size - pos; in libxenvchan_write()
263 if (avail) in libxenvchan_write()
274 if (size > avail) in libxenvchan_write()
275 size = avail; in libxenvchan_write()
315 if (size <= avail) in libxenvchan_recv()
332 if (avail && size > avail) in libxenvchan_read()
333 size = avail; in libxenvchan_read()
[all …]
/xen/xen/arch/x86/
A Ddom0_build.c40 unsigned long avail) in get_memsize() argument
44 pages = sz->nr_pages + sz->percent * avail / 100; in get_memsize()
45 return sz->minus ? avail - pages : pages; in get_memsize()
330 avail -= (d->max_vcpus - 1UL) in dom0_compute_nr_pages()
334 avail -= d->max_vcpus - 1; in dom0_compute_nr_pages()
342 avail -= max_pdx >> s; in dom0_compute_nr_pages()
349 nr_pages = get_memsize(&dom0_size, avail); in dom0_compute_nr_pages()
350 min_pages = get_memsize(&dom0_min_size, avail); in dom0_compute_nr_pages()
360 nr_pages = avail - (pv_shim ? pv_shim_mem(avail) in dom0_compute_nr_pages()
375 nr_pages = min(nr_pages, avail); in dom0_compute_nr_pages()
[all …]
/xen/xen/drivers/char/
A Dxen_pv_console.c136 size_t sent = 0, avail; in pv_ring_puts() local
151 avail = sizeof(cons_ring->out) - (prod - cons); in pv_ring_puts()
153 if ( avail == 0 ) in pv_ring_puts()
160 while ( avail && (sent < nr || put_r) ) in pv_ring_puts()
177 avail--; in pv_ring_puts()
/xen/xen/include/asm-x86/pv/
A Dshim.h45 uint64_t pv_shim_mem(uint64_t avail);
91 static inline uint64_t pv_shim_mem(uint64_t avail) in pv_shim_mem() argument
/xen/xen/common/
A Dpage_alloc.c454 static unsigned long *avail[MAX_NUMNODES]; variable
582 avail[node] = avail_static; in init_node_heap()
861 if ( !avail[node] || (avail[node][zone] < (1UL << order)) ) in get_free_buddy()
988 ASSERT(avail[node][zone] >= request); in alloc_heap_pages()
989 avail[node][zone] -= request; in alloc_heap_pages()
1151 avail[node][zone]--; in reserve_offlined_page()
1442 avail[node][zone] += 1 << order; in free_heap_pages()
1803 if ( unlikely(!avail[nid]) ) in init_heap_pages()
1840 if ( !avail[i] ) in avail_heap_pages()
2545 if ( !avail[i] ) in dump_heap()
[all …]
/xen/tools/xenstore/
A Dxenstored_domain.c121 uint32_t avail; in writechn() local
136 dest = get_output_chunk(cons, prod, intf->rsp, &avail); in writechn()
137 if (avail < len) in writechn()
138 len = avail; in writechn()
151 uint32_t avail; in readchn() local
166 src = get_input_chunk(cons, prod, intf->req, &avail); in readchn()
167 if (avail < len) in readchn()
168 len = avail; in readchn()
A Dxs.c1359 if (ebuf->avail >= min_avail) in expanding_buffer_ensure()
1365 want = ebuf->avail + min_avail + 10; in expanding_buffer_ensure()
1371 ebuf->avail = want; in expanding_buffer_ensure()
1418 assert(used <= ebuf->avail); in sanitise_value()
/xen/tools/xenstore/include/
A Dxenstore_lib.h83 int avail; member
/xen/xen/arch/arm/
A Dmm.c313 .avail = 0, /* Reference count for domheap mapping */ in mfn_to_xen_entry()
445 if ( map[slot].pt.avail < 0xf && in map_domain_page()
450 map[slot].pt.avail++; in map_domain_page()
453 else if ( map[slot].pt.avail == 0 ) in map_domain_page()
457 pte.pt.avail = 1; in map_domain_page()
507 ASSERT(map[slot].pt.avail != 0); in unmap_domain_page()
509 map[slot].pt.avail--; in unmap_domain_page()
525 ASSERT(map[slot].pt.avail != 0); in domain_page_map_to_mfn()
/xen/xen/arch/x86/pv/
A Dshim.c98 uint64_t pv_shim_mem(uint64_t avail) in pv_shim_mem() argument
103 total_pages - avail + (1UL << (20 - PAGE_SHIFT))); in pv_shim_mem()
108 if ( total_pages - avail > shim_nrpages ) in pv_shim_mem()
110 total_pages - avail, shim_nrpages); in pv_shim_mem()
112 shim_nrpages -= total_pages - avail; in pv_shim_mem()
115 total_pages - avail, shim_nrpages); in pv_shim_mem()
/xen/xen/drivers/passthrough/vtd/
A Dutils.c239 p->remap.vector, p->remap.avail, p->remap.fpd, in vtd_dump_iommu_info()
246 p->post.avail, p->post.fpd, in vtd_dump_iommu_info()
A Diommu.h296 avail : 4, member
312 avail : 4, member
A Dintremap.c383 new_ire.remap.avail = 0; in ioapic_rte_to_remap_entry()
/xen/xen/include/asm-arm/
A Dlpae.h55 unsigned long avail:4; /* Ignored by hardware */ member
/xen/xen/tools/kconfig/lxdialog/
A Dutil.c613 size_t avail; in item_add_str() local
615 avail = sizeof(item_cur->node.str) - strlen(item_cur->node.str); in item_add_str()
619 avail, fmt, ap); in item_add_str()
/xen/xen/arch/x86/hvm/
A Demulate.c1740 unsigned int avail; in hvmemul_rep_outs_set_context() local
1749 avail = ev->emul.read.size; in hvmemul_rep_outs_set_context()
1753 unsigned int size = min(bytes_per_rep, avail); in hvmemul_rep_outs_set_context()
1760 avail -= size; in hvmemul_rep_outs_set_context()
/xen/docs/misc/
A Dvtd-pi.txt185 avail : 4,
200 avail : 4,
/xen/stubdom/
A Dlwip.patch-cvs369 - lwip_stats.mem.avail = MEM_SIZE_ALIGNED;
371 + MEM_STATS_AVAIL(avail, MEM_SIZE_ALIGNED);
691 - lwip_stats.memp[i].avail = memp_num[i];
695 + MEMP_STATS_AVAIL(avail, i, memp_num[i]);
1952 mem_size_t avail;

Completed in 42 milliseconds