Home
last modified time | relevance | path

Searched refs:grow_size (Results 1 – 19 of 19) sorted by relevance

/freebsd/contrib/ofed/opensm/complib/
H A Dcl_pool.c69 IN const size_t grow_size, in cl_qcpool_init() argument
135 p_pool->grow_size = grow_size; in cl_qcpool_init()
326 if (!p_pool->grow_size) in cl_qcpool_get()
330 cl_qcpool_grow(p_pool, p_pool->grow_size); in cl_qcpool_get()
357 if (!p_pool->grow_size) in cl_qcpool_get_tail()
361 cl_qcpool_grow(p_pool, p_pool->grow_size); in cl_qcpool_get_tail()
425 IN const size_t grow_size, in cl_qpool_init() argument
439 status = cl_qcpool_init(&p_pool->qcpool, min_size, max_size, grow_size, in cl_qpool_init()
522 IN const size_t grow_size, in cl_cpool_init() argument
543 status = cl_qcpool_init(&p_pool->qcpool, min_size, max_size, grow_size, in cl_cpool_init()
[all …]
H A Dcl_ptr_vector.c61 IN const size_t grow_size) in cl_ptr_vector_init() argument
69 p_vector->grow_size = grow_size; in cl_ptr_vector_init()
221 if (!p_vector->grow_size) in cl_ptr_vector_set_size()
226 if (size % p_vector->grow_size) { in cl_ptr_vector_set_size()
228 new_capacity += p_vector->grow_size - in cl_ptr_vector_set_size()
229 (size % p_vector->grow_size); in cl_ptr_vector_set_size()
H A Dcl_vector.c190 IN const size_t min_size, IN const size_t grow_size, in cl_vector_init() argument
203 p_vector->grow_size = grow_size; in cl_vector_init()
417 if (!p_vector->grow_size) in cl_vector_set_size()
422 if (size % p_vector->grow_size) { in cl_vector_set_size()
424 new_capacity += p_vector->grow_size - in cl_vector_set_size()
425 (size % p_vector->grow_size); in cl_vector_set_size()
H A Dcl_list.c352 uint32_t grow_size; in cl_list_init() local
361 grow_size = (uint32_t) min_items >> 3; in cl_list_init()
362 if (grow_size < FREE_ITEM_GROW_SIZE) in cl_list_init()
363 grow_size = FREE_ITEM_GROW_SIZE; in cl_list_init()
366 return (cl_qpool_init(&p_list->list_item_pool, min_items, 0, grow_size, in cl_list_init()
H A Dcl_map.c702 uint32_t grow_size; in cl_map_init() local
712 grow_size = min_items >> 3; in cl_map_init()
713 if (grow_size < MAP_GROW_SIZE) in cl_map_init()
714 grow_size = MAP_GROW_SIZE; in cl_map_init()
716 return (cl_qpool_init(&p_map->pool, min_items, 0, grow_size, in cl_map_init()
/freebsd/contrib/ofed/opensm/include/complib/
H A Dcl_ptr_vector.h182 size_t grow_size; member
251 IN const size_t min_size, IN const size_t grow_size);
H A Dcl_qcomppool.h292 size_t grow_size; member
422 IN const size_t grow_size,
H A Dcl_vector.h296 size_t grow_size; member
386 IN const size_t grow_size,
H A Dcl_qpool.h312 IN const size_t grow_size,
H A Dcl_pool.h293 IN const size_t grow_size,
H A Dcl_comppool.h306 IN const size_t grow_size,
/freebsd/crypto/heimdal/lib/com_err/
H A Dlex.c1529 int grow_size = 8 /* arbitrary grow size */; in yyensure_buffer_stack() local
1531 num_to_alloc = (yy_buffer_stack_max) + grow_size; in yyensure_buffer_stack()
1540 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); in yyensure_buffer_stack()
/freebsd/crypto/heimdal/lib/sl/
H A Dslc-lex.c1466 int grow_size = 8 /* arbitrary grow size */; in yyensure_buffer_stack() local
1468 num_to_alloc = (yy_buffer_stack_max) + grow_size; in yyensure_buffer_stack()
1477 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); in yyensure_buffer_stack()
/freebsd/tools/build/bootstrap-m4/
H A Dinittokenizer.c1512 yy_size_t grow_size = 8 /* arbitrary grow size */; in yyensure_buffer_stack() local
1514 num_to_alloc = (yy_buffer_stack_max) + grow_size; in yyensure_buffer_stack()
1523 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); in yyensure_buffer_stack()
/freebsd/crypto/heimdal/lib/asn1/
H A Dlex.c2394 int grow_size = 8 /* arbitrary grow size */; in yyensure_buffer_stack() local
2396 num_to_alloc = (yy_buffer_stack_max) + grow_size; in yyensure_buffer_stack()
2405 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); in yyensure_buffer_stack()
/freebsd/usr.bin/lex/
H A Dinitscan.c4853 yy_size_t grow_size = 8 /* arbitrary grow size */; in yyensure_buffer_stack() local
4855 num_to_alloc = (yy_buffer_stack_max) + grow_size; in yyensure_buffer_stack()
4864 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); in yyensure_buffer_stack()
/freebsd/contrib/unbound/util/
H A Dconfiglexer.c7437 yy_size_t grow_size = 8 /* arbitrary grow size */; in yyensure_buffer_stack() local
7439 num_to_alloc = (yy_buffer_stack_max) + grow_size; in yyensure_buffer_stack()
7448 memset((yy_buffer_stack) + (yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_state*)); in yyensure_buffer_stack()
/freebsd/contrib/flex/src/
H A Dflex.skl2265 yy_size_t grow_size = 8 /* arbitrary grow size */;
2267 num_to_alloc = YY_G(yy_buffer_stack_max) + grow_size;
2276 …memset(YY_G(yy_buffer_stack) + YY_G(yy_buffer_stack_max), 0, grow_size * sizeof(struct yy_buffer_s…
/freebsd/contrib/ofed/librdmacm/
H A Drsocket.c3944 static int rs_svc_grow_sets(struct rs_svc *svc, int grow_size) in rs_svc_grow_sets() argument
3949 set = calloc(svc->size + grow_size, sizeof(*rss) + svc->context_size); in rs_svc_grow_sets()
3953 svc->size += grow_size; in rs_svc_grow_sets()