Searched refs:newsize (Results 1 – 7 of 7) sorted by relevance
/xen/tools/libxl/ |
A D | flexarray.c | 50 int newsize; in flexarray_grow() local 53 newsize = array->size + extents; in flexarray_grow() 54 GCREALLOC_ARRAY(array->data, newsize); in flexarray_grow() 61 int newsize; in flexarray_set() local 64 newsize = (array->size * 2 < idx) ? idx + 1 : array->size * 2; in flexarray_set() 65 flexarray_grow(array, newsize - array->size); in flexarray_set()
|
A D | libxl_qmp.c | 1556 size_t newsize = ev->rx_buf_size * 2 + QMP_RECEIVE_BUFFER_SIZE; in qmp_ev_callback_readable() local 1558 if (newsize > QMP_MAX_SIZE_RX_BUF) { in qmp_ev_callback_readable() 1561 newsize, QMP_MAX_SIZE_RX_BUF); in qmp_ev_callback_readable() 1564 ev->rx_buf_size = newsize; in qmp_ev_callback_readable()
|
/xen/tools/xenstore/ |
A D | hashtable.c | 88 unsigned int newsize, i, index; in hashtable_expand() local 91 newsize = primes[++(h->primeindex)]; in hashtable_expand() 93 newtable = (struct entry **)calloc(newsize, sizeof(struct entry*)); in hashtable_expand() 101 index = indexFor(newsize,e->h); in hashtable_expand() 113 realloc(h->table, newsize * sizeof(struct entry *)); in hashtable_expand() 116 memset(newtable[h->tablelength], 0, newsize - h->tablelength); in hashtable_expand() 119 index = indexFor(newsize,e->h); in hashtable_expand() 133 h->tablelength = newsize; in hashtable_expand() 135 (((uint64_t)newsize * max_load_factor) / 100); in hashtable_expand()
|
A D | xenstored_core.c | 289 unsigned long newsize; in set_fd() local 294 newsize = ROUNDUP(nr_fds + 1, 8); in set_fd() 296 new_fds = realloc(fds, sizeof(struct pollfd)*newsize); in set_fd() 302 sizeof(struct pollfd ) * (newsize-current_array_size)); in set_fd() 303 current_array_size = newsize; in set_fd()
|
/xen/xen/common/libfdt/ |
A D | fdt_rw.c | 419 int newsize; in fdt_open_into() local 451 newsize = FDT_ALIGN(sizeof(struct fdt_header), 8) + mem_rsv_size in fdt_open_into() 454 if (bufsize < newsize) in fdt_open_into() 460 if (((tmp + newsize) > fdtstart) && (tmp < fdtend)) { in fdt_open_into() 463 if ((tmp + newsize) > ((char *)buf + bufsize)) in fdt_open_into() 468 memmove(buf, tmp, newsize); in fdt_open_into()
|
/xen/tools/console/daemon/ |
A D | io.c | 1224 unsigned long newsize; in set_fds() local 1229 newsize = ROUNDUP(nr_fds + 1, 8); in set_fds() 1231 new_fds = realloc(fds, sizeof(struct pollfd)*newsize); in set_fds() 1237 sizeof(struct pollfd) * (newsize-current_array_size)); in set_fds() 1238 current_array_size = newsize; in set_fds()
|
/xen/stubdom/ |
A D | lwip.patch-cvs | 431 * @param newsize required size after shrinking (needs to be smaller than or 434 + * or NULL if newsize is > old size, in which case rmem is NOT touched 438 mem_realloc(void *rmem, mem_size_t newsize) 469 - lwip_stats.mem.used -= (size - newsize); 471 + MEM_STATS_DEC_USED(used, (size - newsize));
|
Completed in 18 milliseconds