Home
last modified time | relevance | path

Searched refs:n_alloc (Results 1 – 9 of 9) sorted by relevance

/openbsd-src/lib/libfido2/src/
H A Dcredman.c22 credman_grow_array(void **ptr, size_t *n_alloc, size_t *n_rx, size_t n, in credman_grow_array() argument
34 if (n < *n_alloc) in credman_grow_array()
38 if (*n_rx > 0 || *n_rx > *n_alloc || n < *n_alloc) { in credman_grow_array()
40 *n_rx, *n_alloc); in credman_grow_array()
44 if ((new_ptr = recallocarray(*ptr, *n_alloc, n, size)) == NULL) in credman_grow_array()
48 *n_alloc = n; in credman_grow_array()
286 for (size_t i = 0; i < rk->n_alloc; i++) { in credman_reset_rk()
316 if (credman_grow_array((void **)&rk->ptr, &rk->n_alloc, &rk->n_rx, in credman_parse_rk_count()
347 if (rk->n_alloc == 0) { in credman_rx_rk()
378 if (rk->n_rx >= rk->n_alloc) { in credman_rx_next_rk()
[all …]
H A Dbio.c140 for (size_t i = 0; i < ta->n_alloc; i++) in bio_reset_template_array()
180 if (ta->n_rx >= ta->n_alloc) { in decode_template_array()
214 if (ta->ptr != NULL || ta->n_alloc != 0 || ta->n_rx != 0) { in bio_parse_template_array()
223 ta->n_alloc = cbor_array_size(val); in bio_parse_template_array()
790 if (idx >= ta->n_alloc) in fido_bio_template()
/openbsd-src/usr.bin/lex/
H A Dbuf.c243 int n_alloc = 0; in buf_append() local
252 n_alloc = (n_elem + buf->nelts) * buf->elt_size; in buf_append()
255 if (((n_alloc * buf->elt_size) % 512) != 0 in buf_append()
257 n_alloc += in buf_append()
259 ((n_alloc * buf->elt_size) % 512)) / in buf_append()
264 allocate_array(n_alloc, buf->elt_size); in buf_append()
267 reallocate_array(buf->elts, n_alloc, in buf_append()
270 buf->nmax = n_alloc; in buf_append()
/openbsd-src/lib/libfido2/src/fido/
H A Dcredman.h41 size_t n_alloc; /* number of allocated entries */ member
47 size_t n_alloc; /* number of allocated entries */ member
H A Dbio.h36 size_t n_alloc; /* number of allocated entries */ member
/openbsd-src/gnu/usr.bin/gcc/gcc/
H A Dtree.c4325 int n_alloc = 0; local
4327 n_alloc += o->next_free - chunk->contents;
4332 n_alloc += chunk->limit - &chunk->contents[0];
4336 str, n_alloc, n_chunks);
H A Ddwarf2out.c6124 unsigned int n_alloc; local
6171 n_alloc = abbrev_die_table_allocated + ABBREV_DIE_TABLE_INCREMENT;
6174 sizeof (dw_die_ref) * n_alloc);
6177 (n_alloc - abbrev_die_table_allocated) * sizeof (dw_die_ref));
6178 abbrev_die_table_allocated = n_alloc;
H A DChangeLog.618044 (build_abbrev_table): Declare n_alloc as int.
/openbsd-src/gnu/gcc/gcc/
H A Ddwarf2out.c6513 unsigned int n_alloc; in build_abbrev_table() local
6563 n_alloc = abbrev_die_table_allocated + ABBREV_DIE_TABLE_INCREMENT; in build_abbrev_table()
6565 sizeof (dw_die_ref) * n_alloc); in build_abbrev_table()
6568 (n_alloc - abbrev_die_table_allocated) * sizeof (dw_die_ref)); in build_abbrev_table()
6569 abbrev_die_table_allocated = n_alloc; in build_abbrev_table()