Home
last modified time | relevance | path

Searched refs:new_alloc (Results 1 – 10 of 10) sorted by relevance

/src/contrib/ntp/libntp/
H A Dwork_thread.c195 size_t new_alloc; in ensure_workitems_empty_slot() local
201 new_alloc = c->workitems_alloc + WORKITEMS_ALLOC_INC; in ensure_workitems_empty_slot()
202 c->workitems = erealloc(c->workitems, new_alloc * each); in ensure_workitems_empty_slot()
203 for (sidx = c->workitems_alloc; sidx < new_alloc; ++sidx) in ensure_workitems_empty_slot()
207 c->workitems_alloc = new_alloc; in ensure_workitems_empty_slot()
231 size_t new_alloc; in ensure_workresp_empty_slot() local
237 new_alloc = c->responses_alloc + RESPONSES_ALLOC_INC; in ensure_workresp_empty_slot()
238 c->responses = erealloc(c->responses, new_alloc * each); in ensure_workresp_empty_slot()
239 for (sidx = c->responses_alloc; sidx < new_alloc; ++sidx) in ensure_workresp_empty_slot()
243 c->responses_alloc = new_alloc; in ensure_workresp_empty_slot()
H A Dntp_worker.c134 size_t new_alloc; in available_blocking_child_slot() local
149 new_alloc = blocking_children_alloc + 4; in available_blocking_child_slot()
150 octets = new_alloc * each; in available_blocking_child_slot()
153 blocking_children_alloc = new_alloc; in available_blocking_child_slot()
H A Dntp_intres.c926 u_int new_alloc; in reserve_dnschild_ctx() local
939 new_alloc = dnschild_contexts_alloc + 20; in reserve_dnschild_ctx()
940 new_octets = new_alloc * ps; in reserve_dnschild_ctx()
944 dnschild_contexts_alloc = new_alloc; in reserve_dnschild_ctx()
971 u_int new_alloc; in get_worker_context() local
981 new_alloc = (min_new_alloc + 4) & ~(4 - 1); in get_worker_context()
982 new_octets = new_alloc * sizeof(dnsworker_ctx*); in get_worker_context()
986 dnsworker_contexts_alloc = new_alloc; in get_worker_context()
/src/crypto/krb5/src/util/support/
H A Djson.c233 size_t new_alloc; in k5_json_array_add() local
237 new_alloc = array->len + 1 + (array->len >> 1); in k5_json_array_add()
238 if (new_alloc < MIN_ALLOC_SLOT) in k5_json_array_add()
239 new_alloc = MIN_ALLOC_SLOT; in k5_json_array_add()
240 ptr = realloc(array->values, new_alloc * sizeof(*array->values)); in k5_json_array_add()
244 array->allocated = new_alloc; in k5_json_array_add()
430 size_t new_alloc, i; in k5_json_object_set() local
454 new_alloc = obj->len + 1 + (obj->len >> 1); in k5_json_object_set()
455 if (new_alloc < MIN_ALLOC_SLOT) in k5_json_object_set()
456 new_alloc = MIN_ALLOC_SLOT; in k5_json_object_set()
[all …]
/src/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_malloc_win.cpp159 void *new_alloc = malloc(size); in _recalloc() local
160 if (new_alloc) { in _recalloc()
161 REAL(memcpy)(new_alloc, p, Min<size_t>(size, old_size)); in _recalloc()
163 REAL(memset)(((u8 *)new_alloc) + old_size, 0, size - old_size); in _recalloc()
166 return new_alloc; in _recalloc()
/src/sys/contrib/openzfs/tests/zfs-tests/include/
H A Dtunables.cfg56 LIVELIST_CONDENSE_NEW_ALLOC livelist.condense.new_alloc zfs_livelist_condense_new_alloc
/src/crypto/openssh/
H A Dssh-agent.c1935 u_int i, old_alloc, new_alloc; in new_socket() local
1959 new_alloc = sockets_alloc + 10; in new_socket()
1960 sockets = xrecallocarray(sockets, old_alloc, new_alloc, in new_socket()
1962 for (i = old_alloc; i < new_alloc; i++) in new_socket()
1964 sockets_alloc = new_alloc; in new_socket()
/src/sys/dev/pci/
H A Dpci.c1164 int alloc, new_alloc; in alloc_buffer() local
1167 new_alloc = roundup2(needed + 1, 8); in alloc_buffer()
1168 if (alloc != new_alloc) { in alloc_buffer()
1170 new_alloc * element_size, M_DEVBUF, M_WAITOK | M_ZERO); in alloc_buffer()
/src/sys/dev/ocs_fc/
H A Docs_hw.c9504 uint8_t new_alloc = TRUE; in ocs_hw_setup_io() local
9536 new_alloc = FALSE; in ocs_hw_setup_io()
9539 if (new_alloc) { in ocs_hw_setup_io()
9580 if (new_alloc && ocs_dma_alloc(hw->os, &io->def_sgl, hw->config.n_sgl * sizeof(sli4_sge_t), 64)) { in ocs_hw_setup_io()
/src/sys/contrib/openzfs/module/zfs/
H A Dspa.c11737 ZFS_MODULE_PARAM(zfs_livelist_condense, zfs_livelist_condense_, new_alloc, INT,