Home
last modified time | relevance | path

Searched refs:num_alloc (Results 1 – 8 of 8) sorted by relevance

/third_party/node/deps/openssl/openssl/crypto/stack/
Dstack.c28 int num_alloc; member
63 ret->num_alloc = 0; in OPENSSL_sk_dup()
68 ret->data = OPENSSL_malloc(sizeof(*ret->data) * sk->num_alloc); in OPENSSL_sk_dup()
102 ret->num_alloc = 0; in OPENSSL_sk_deep_copy()
106 ret->num_alloc = sk->num > min_nodes ? sk->num : min_nodes; in OPENSSL_sk_deep_copy()
107 ret->data = OPENSSL_zalloc(sizeof(*ret->data) * ret->num_alloc); in OPENSSL_sk_deep_copy()
176 int num_alloc; in sk_reserve() local
185 num_alloc = st->num + n; in sk_reserve()
186 if (num_alloc < min_nodes) in sk_reserve()
187 num_alloc = min_nodes; in sk_reserve()
[all …]
/third_party/openssl/crypto/stack/
Dstack.c28 int num_alloc; member
63 ret->num_alloc = 0; in OPENSSL_sk_dup()
68 ret->data = OPENSSL_malloc(sizeof(*ret->data) * sk->num_alloc); in OPENSSL_sk_dup()
102 ret->num_alloc = 0; in OPENSSL_sk_deep_copy()
106 ret->num_alloc = sk->num > min_nodes ? sk->num : min_nodes; in OPENSSL_sk_deep_copy()
107 ret->data = OPENSSL_zalloc(sizeof(*ret->data) * ret->num_alloc); in OPENSSL_sk_deep_copy()
176 int num_alloc; in sk_reserve() local
185 num_alloc = st->num + n; in sk_reserve()
186 if (num_alloc < min_nodes) in sk_reserve()
187 num_alloc = min_nodes; in sk_reserve()
[all …]
/third_party/ltp/testcases/kernel/mem/mtest07/
Dmallocstress.c74 int num_alloc; in allocate_free() local
82 for (num_alloc = 0; num_alloc < MAXPTRS; num_alloc++) { in allocate_free()
86 ptrs[num_alloc] = malloc(size); in allocate_free()
88 if (!ptrs[num_alloc]) in allocate_free()
90 ptrs[num_alloc][0] = num_alloc; in allocate_free()
118 for (i = 0; i < num_alloc; i++) { in allocate_free()
/third_party/ltp/testcases/kernel/syscalls/madvise/
Dmadvise11.c121 int num_alloc; in allocate_offline() local
124 for (num_alloc = 0; num_alloc < NUM_PAGES; num_alloc++) { in allocate_offline()
126 ptrs[num_alloc] = allocate_write((tnum << NUM_PAGES_OFFSET) | num_alloc); in allocate_offline()
127 if (ptrs[num_alloc] == NULL) in allocate_offline()
130 if (madvise(ptrs[num_alloc], pagesize, MADV_SOFT_OFFLINE) == -1) { in allocate_offline()
139 for (i = 0; i < num_alloc; i++) { in allocate_offline()
/third_party/mesa3d/src/util/
Du_idalloc.c105 unsigned num_alloc = DIV_ROUND_UP(num, 32); in util_idalloc_alloc_range() local
112 i < num_elements && i - base < num_alloc && !buf->data[i]; i++); in util_idalloc_alloc_range()
114 if (i - base == num_alloc) in util_idalloc_alloc_range()
125 util_idalloc_resize(buf, num_elements * 2 + num_alloc); in util_idalloc_alloc_range()
129 for (unsigned i = base; i < base + num_alloc - (num % 32 != 0); i++) in util_idalloc_alloc_range()
132 buf->data[base + num_alloc - 1] |= BITFIELD_MASK(num % 32); in util_idalloc_alloc_range()
/third_party/libwebsockets/lib/tls/mbedtls/wrapper/library/
Dssl_stack.c48 stack->num_alloc = MIN_NODES; in OPENSSL_sk_new()
/third_party/rust/crates/rust-openssl/openssl-sys/src/handwritten/
Dstack.rs12 pub num_alloc: c_int,
/third_party/libwebsockets/lib/tls/mbedtls/wrapper/include/internal/
Dssl_types.h106 int num_alloc; member