Searched refs:alloc (Results 1 - 25 of 209) sorted by relevance

123456789

/freebsd-current/sys/dev/cxgbe/iw_cxgbe/
H A Did_table.c49 u32 c4iw_id_alloc(struct c4iw_id_table *alloc) argument
54 spin_lock_irqsave(&alloc->lock, flags);
56 obj = find_next_zero_bit(alloc->table, alloc->max, alloc->last);
57 if (obj >= alloc->max)
58 obj = find_first_zero_bit(alloc->table, alloc->max);
60 if (obj < alloc->max) {
61 if (alloc
76 c4iw_id_free(struct c4iw_id_table *alloc, u32 obj) argument
88 c4iw_id_table_alloc(struct c4iw_id_table *alloc, u32 start, u32 num, u32 reserved, u32 flags) argument
114 c4iw_id_table_free(struct c4iw_id_table *alloc) argument
[all...]
/freebsd-current/contrib/unbound/util/
H A Dalloc.c2 * util/alloc.c - memory allocation service.
43 #include "util/alloc.h"
64 * @param alloc: the structure to fill up.
67 prealloc_setup(struct alloc_cache* alloc) argument
78 alloc_set_special_next(p, alloc->quar);
79 alloc->quar = p;
80 alloc->num_quar++;
86 prealloc_blocks(struct alloc_cache* alloc, size_t num) argument
96 r->next = (char*)alloc->reg_list;
97 alloc
103 alloc_init(struct alloc_cache* alloc, struct alloc_cache* super, int thread_num) argument
131 alloc_clear_special_list(struct alloc_cache* alloc) argument
146 alloc_clear_special(struct alloc_cache* alloc) argument
160 alloc_clear(struct alloc_cache* alloc) argument
195 alloc_get_id(struct alloc_cache* alloc) argument
214 alloc_special_obtain(struct alloc_cache* alloc) argument
254 pushintosuper(struct alloc_cache* alloc, alloc_special_type* mem) argument
279 alloc_special_release(struct alloc_cache* alloc, alloc_special_type* mem) argument
304 alloc_stats(struct alloc_cache* alloc) argument
310 alloc_get_mem(struct alloc_cache* alloc) argument
329 alloc_reg_obtain(struct alloc_cache* alloc) argument
342 alloc_reg_release(struct alloc_cache* alloc, struct regional* r) argument
357 alloc_set_id_cleanup(struct alloc_cache* alloc, void (*cleanup)(void*), void* arg) argument
[all...]
H A Dalloc.h2 * util/alloc.h - memory allocation service.
101 * Init alloc (zeroes the struct).
102 * @param alloc: this parameter is allocated by the caller.
104 * Pass this argument NULL to init the toplevel alloc structure.
107 void alloc_init(struct alloc_cache* alloc, struct alloc_cache* super,
111 * Free the alloc. Pushes all the cached items into the super structure.
112 * Or deletes them if alloc->super is NULL.
113 * Does not free the alloc struct itself (it was also allocated by caller).
114 * @param alloc: is almost zeroed on exit (except some stats).
116 void alloc_clear(struct alloc_cache* alloc);
[all...]
/freebsd-current/sys/dev/mthca/
H A Dmthca_pd.c46 pd->pd_num = mthca_alloc(&dev->pd_table.alloc);
56 mthca_free(&dev->pd_table.alloc, pd->pd_num);
66 mthca_free(&dev->pd_table.alloc, pd->pd_num);
71 return mthca_alloc_init(&dev->pd_table.alloc,
80 mthca_alloc_cleanup(&dev->pd_table.alloc);
H A Dmthca_uar.c38 uar->index = mthca_alloc(&dev->uar_table.alloc);
49 mthca_free(&dev->uar_table.alloc, uar->index);
56 ret = mthca_alloc_init(&dev->uar_table.alloc,
65 mthca_alloc_cleanup(&dev->uar_table.alloc);
75 mthca_alloc_cleanup(&dev->uar_table.alloc);
H A Dmthca_allocator.c40 u32 mthca_alloc(struct mthca_alloc *alloc) argument
45 spin_lock_irqsave(&alloc->lock, flags);
47 obj = find_next_zero_bit(alloc->table, alloc->max, alloc->last);
48 if (obj >= alloc->max) {
49 alloc->top = (alloc->top + alloc->max) & alloc
64 mthca_free(struct mthca_alloc *alloc, u32 obj) argument
79 mthca_alloc_init(struct mthca_alloc *alloc, u32 num, u32 mask, u32 reserved) argument
105 mthca_alloc_cleanup(struct mthca_alloc *alloc) argument
[all...]
/freebsd-current/sys/contrib/zstd/lib/compress/
H A Dzstd_cwksp.h208 * Returns an adjusted alloc size that is the nearest larger multiple of 64 bytes.
254 void* const alloc = (BYTE*)ws->allocStart - bytes; local
257 alloc, bytes, ZSTD_cwksp_available_space(ws) - bytes);
259 assert(alloc >= bottom);
260 if (alloc < bottom) {
261 DEBUGLOG(4, "cwksp: alloc failed!");
267 if (alloc < ws->tableValidEnd) {
268 ws->tableValidEnd = alloc;
270 ws->allocStart = alloc;
271 return alloc;
302 void* const alloc = ws->objectEnd; local
333 void* alloc; local
386 void* alloc; local
427 void* alloc = ws->objectEnd; local
[all...]
/freebsd-current/sys/sys/
H A D_unrhdr.h43 u_int alloc; /* Count of memory allocations */ member in struct:unrhdr
/freebsd-current/share/doc/papers/kernmalloc/
H A DMakefile5 EXTRA= alloc.fig usage.tbl
/freebsd-current/crypto/heimdal/kuser/
H A Dgenerate-requests.c39 unsigned n, alloc; local
47 alloc = n = 0;
50 if (n >= alloc) {
51 alloc += 16;
52 w = erealloc (w, alloc * sizeof(char **));
/freebsd-current/sys/contrib/openzfs/module/zstd/lib/compress/
H A Dzstd_cwksp.h199 * unaligned, we need to realign our alloc ptr. Technically, this
226 void* alloc; local
229 alloc = (BYTE *)ws->allocStart - bytes;
233 alloc = (BYTE *)alloc - 2 * ZSTD_CWKSP_ASAN_REDZONE_SIZE;
237 alloc, bytes, ZSTD_cwksp_available_space(ws) - bytes);
239 assert(alloc >= bottom);
240 if (alloc < bottom) {
241 DEBUGLOG(4, "cwksp: alloc failed!");
245 if (alloc < w
282 void* alloc = ws->tableEnd; local
311 void* alloc = ws->objectEnd; local
[all...]
/freebsd-current/crypto/openssh/
H A Dsshbuf.c33 printf("%s:%d %s: %s size %zu alloc %zu off %zu max %zu\n", \
35 buf->size, buf->alloc, buf->off, buf->max_size); \
48 size_t alloc; /* Total bytes allocated to buf->d */ member in struct:sshbuf
63 buf->alloc > buf->max_size ||
64 buf->size > buf->alloc ||
98 ret->alloc = SSHBUF_SIZE_INIT;
103 if ((ret->cd = ret->d = calloc(1, ret->alloc)) == NULL) {
118 ret->alloc = ret->size = ret->max_size = len;
189 explicit_bzero(buf->d, buf->alloc);
208 if (buf->alloc !
[all...]
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_symbolizer_libbacktrace.h33 static LibbacktraceSymbolizer *get(LowLevelAllocator *alloc);
/freebsd-current/contrib/unbound/services/cache/
H A Drrset.h64 * @param alloc: initial default rrset key allocation.
68 struct alloc_cache* alloc);
82 * @param alloc: initial default rrset key allocation.
86 struct config_file* cfg, struct alloc_cache* alloc);
125 * @param alloc: how to allocate (and deallocate) the special rrset key.
134 struct alloc_cache* alloc, time_t timenow);
147 * @param alloc: how to allocate (and deallocate) the special rrset key.
152 struct alloc_cache* alloc, time_t timenow);
/freebsd-current/crypto/heimdal/kadmin/
H A Dadd-random-users.c45 unsigned n, alloc; local
54 alloc = n = 0;
59 if (n >= alloc) {
60 alloc = max(alloc + 16, alloc * 2);
61 w = erealloc (w, alloc * sizeof(char **));
/freebsd-current/crypto/openssl/crypto/rsa/
H A Drsa_acvp_test_params.c19 OSSL_PARAM *d, *alloc = NULL; local
38 alloc = OPENSSL_zalloc(sizeof(settable));
39 if (alloc == NULL)
42 d = alloc;
56 ossl_rsa_acvp_test_gen_params_free(alloc);
57 alloc = NULL;
61 *dst = alloc;
/freebsd-current/contrib/ntp/sntp/libevent/
H A Devthread.c106 if (target->alloc)
112 if (target->alloc) {
116 target->alloc == cbs->alloc &&
127 if (cbs->alloc && cbs->free && cbs->lock && cbs->unlock) {
200 if (original_lock_fns_.alloc) {
201 if (!(result->lock = original_lock_fns_.alloc(
374 if (!enable_locks && original_lock_fns_.alloc == NULL) {
378 } else if (!enable_locks && original_lock_fns_.alloc != NULL) {
401 return evthread_lock_fns_.alloc(locktyp
[all...]
/freebsd-current/contrib/libevent/
H A Devthread.c106 if (target->alloc)
112 if (target->alloc) {
116 target->alloc == cbs->alloc &&
127 if (cbs->alloc && cbs->free && cbs->lock && cbs->unlock) {
200 if (original_lock_fns_.alloc) {
201 if (!(result->lock = original_lock_fns_.alloc(
374 if (!enable_locks && original_lock_fns_.alloc == NULL) {
378 } else if (!enable_locks && original_lock_fns_.alloc != NULL) {
401 return evthread_lock_fns_.alloc(locktyp
[all...]
/freebsd-current/contrib/llvm-project/lld/include/lld/Common/
H A DMemory.h40 llvm::SpecificBumpPtrAllocator<T> alloc; member in struct:lld::SpecificAlloc
55 return ((SpecificAlloc<T> *)instance)->alloc;
69 return instance.alloc;
/freebsd-current/contrib/jemalloc/include/jemalloc/
H A Djemalloc_typedefs.h68 extent_alloc_t *alloc; member in struct:extent_hooks_s
/freebsd-current/contrib/mandoc/
H A Dcompat_ohash.h32 void *(*alloc)(size_t, void *); member in struct:ohash_info
H A Dtest-ohash.c33 i.alloc = xmalloc;
/freebsd-current/sbin/dhclient/tests/
H A DMakefile10 SRCS.option-domain-search_test= alloc.c convert.c hash.c options.c \
/freebsd-current/share/man/man1/
H A DMakefile15 builtin.1 alloc.1 \
/freebsd-current/contrib/llvm-project/compiler-rt/lib/BlocksRuntime/
H A DBlock_private.h138 BLOCK_EXPORT void _Block_use_GC( void *(*alloc)(const unsigned long, const bool isOne, const bool isObject),
145 BLOCK_EXPORT void _Block_use_GC5( void *(*alloc)(const unsigned long, const bool isOne, const bool isObject),

Completed in 309 milliseconds

123456789