Home
last modified time | relevance | path

Searched refs:storage (Results 1 – 25 of 380) sorted by relevance

12345678910>>...16

/src/contrib/expat/tests/
H A Dchardata.c61 CharData_Init(CharData *storage) { in CharData_Init() argument
62 assert(storage != NULL); in CharData_Init()
63 storage->count = -1; in CharData_Init()
67 CharData_AppendXMLChars(CharData *storage, const XML_Char *s, int len) { in CharData_AppendXMLChars() argument
70 assert(storage != NULL); in CharData_AppendXMLChars()
72 maxchars = sizeof(storage->data) / sizeof(storage->data[0]); in CharData_AppendXMLChars()
73 if (storage->count < 0) in CharData_AppendXMLChars()
74 storage->count = 0; in CharData_AppendXMLChars()
77 if ((len + storage->count) > maxchars) { in CharData_AppendXMLChars()
78 len = (maxchars - storage->count); in CharData_AppendXMLChars()
[all …]
H A Dstructdata.c72 StructData_Init(StructData *storage) { in StructData_Init() argument
73 assert(storage != NULL); in StructData_Init()
74 storage->count = 0; in StructData_Init()
75 storage->max_count = 0; in StructData_Init()
76 storage->entries = NULL; in StructData_Init()
80 StructData_AddItem(StructData *storage, const XML_Char *s, int data0, int data1, in StructData_AddItem() argument
84 assert(storage != NULL); in StructData_AddItem()
86 if (storage->count == storage->max_count) { in StructData_AddItem()
89 storage->max_count += STRUCT_EXTENSION_COUNT; in StructData_AddItem()
91 storage->entries, storage->max_count * sizeof(StructDataEntry)); in StructData_AddItem()
[all …]
H A Dbasic_tests.c395 CharData storage; in START_TEST() local
397 CharData_Init(&storage); in START_TEST()
398 XML_SetUserData(g_parser, &storage); in START_TEST()
403 CharData_CheckXMLChars(&storage, expected); in START_TEST()
655 StructData storage; in START_TEST() local
657 StructData_Init(&storage); in START_TEST()
658 XML_SetUserData(g_parser, &storage); in START_TEST()
665 StructData_CheckItems(&storage, expected, expected_count); in START_TEST()
666 StructData_Dispose(&storage); in START_TEST()
796 CharData storage; in START_TEST() local
[all …]
H A Dcommon.c236 CharData storage; in _run_character_check() local
238 CharData_Init(&storage); in _run_character_check()
239 XML_SetUserData(g_parser, &storage); in _run_character_check()
244 CharData_CheckXMLChars(&storage, expected); in _run_character_check()
250 CharData storage; in _run_attribute_check() local
252 CharData_Init(&storage); in _run_attribute_check()
253 XML_SetUserData(g_parser, &storage); in _run_attribute_check()
258 CharData_CheckXMLChars(&storage, expected); in _run_attribute_check()
264 CharData *const storage = (CharData *)malloc(sizeof(CharData)); in _run_ext_character_check() local
266 CharData_Init(storage); in _run_ext_character_check()
[all …]
H A Dhandlers.c82 CharData *storage = (CharData *)userData; in end_element_event_handler() local
83 CharData_AppendXMLChars(storage, XCS("/"), 1); in end_element_event_handler()
84 CharData_AppendXMLChars(storage, name, -1); in end_element_event_handler()
90 StructData *storage = (StructData *)userData; in start_element_event_handler2() local
92 StructData_AddItem(storage, name, (int)XML_GetCurrentColumnNumber(g_parser), in start_element_event_handler2()
98 StructData *storage = (StructData *)userData; in end_element_event_handler2() local
99 StructData_AddItem(storage, name, (int)XML_GetCurrentColumnNumber(g_parser), in end_element_event_handler2()
221 CharData *storage = (CharData *)userData; in overwrite_start_checker() local
222 CharData_AppendXMLChars(storage, XCS("start "), 6); in overwrite_start_checker()
223 CharData_AppendXMLChars(storage, name, -1); in overwrite_start_checker()
[all …]
H A Dns_tests.c123 CharData storage; in run_ns_tagname_overwrite_test() local
124 CharData_Init(&storage); in run_ns_tagname_overwrite_test()
125 XML_SetUserData(g_parser, &storage); in run_ns_tagname_overwrite_test()
131 CharData_CheckXMLChars(&storage, result); in run_ns_tagname_overwrite_test()
598 CharData storage; in START_TEST() local
600 CharData_Init(&storage); in START_TEST()
602 XML_SetUserData(g_parser, &storage); in START_TEST()
606 CharData_CheckXMLChars(&storage, expected); in START_TEST()
621 CharData storage; in START_TEST() local
623 CharData_Init(&storage); in START_TEST()
[all …]
H A Dstructdata.h55 void StructData_Init(StructData *storage);
57 void StructData_AddItem(StructData *storage, const XML_Char *s, int data0,
60 void StructData_CheckItems(StructData *storage, const StructDataEntry *expected,
63 void StructData_Dispose(StructData *storage);
H A Dchardata.h51 void CharData_Init(CharData *storage);
53 void CharData_AppendXMLChars(CharData *storage, const XML_Char *s, int len);
55 int CharData_CheckXMLChars(CharData *storage, const XML_Char *s);
H A Dmisc_tests.c276 CharData storage; in START_TEST() local
282 CharData_Init(&storage); in START_TEST()
283 XML_SetUserData(g_parser, &storage); in START_TEST()
288 CharData_CheckXMLChars(&storage, expected); in START_TEST()
503 CharData storage; in START_TEST() local
504 CharData_Init(&storage); in START_TEST()
507 XML_SetUserData(parser, &storage); in START_TEST()
521 CharData_CheckXMLChars(&storage, in START_TEST()
588 CharData_AppendXMLChars(test_data->storage, s, len); in accumulate_characters_ext_handler()
594 CharData storage; in START_TEST() local
[all …]
/src/crypto/openssl/crypto/
H A Dex_data.c223 EX_CALLBACK **storage = NULL; in ossl_crypto_new_ex_data_ex() local
240 storage = stack; in ossl_crypto_new_ex_data_ex()
242 storage = OPENSSL_malloc(sizeof(*storage) * mx); in ossl_crypto_new_ex_data_ex()
243 if (storage != NULL) in ossl_crypto_new_ex_data_ex()
245 storage[i] = sk_EX_CALLBACK_value(ip->meth, i); in ossl_crypto_new_ex_data_ex()
249 if (mx > 0 && storage == NULL) in ossl_crypto_new_ex_data_ex()
252 if (storage[i] != NULL && storage[i]->new_func != NULL) { in ossl_crypto_new_ex_data_ex()
254 storage[i]->new_func(obj, ptr, ad, i, in ossl_crypto_new_ex_data_ex()
255 storage[i]->argl, storage[i]->argp); in ossl_crypto_new_ex_data_ex()
258 if (storage != stack) in ossl_crypto_new_ex_data_ex()
[all …]
/src/contrib/llvm-project/llvm/lib/Object/
H A DIRSymtab.cpp91 std::vector<storage::Comdat> Comdats;
92 std::vector<storage::Module> Mods;
93 std::vector<storage::Symbol> Syms;
94 std::vector<storage::Uncommon> Uncommons;
99 std::vector<storage::Str> DependentLibraries;
101 void setStr(storage::Str &S, StringRef Value) { in setStr()
107 void writeRange(storage::Range<T> &R, const std::vector<T> &Objs) { in writeRange()
148 storage::Module Mod; in addModule()
172 storage::Str Specifier; in addModule()
207 storage::Comdat Comdat; in getComdatIndex()
[all …]
/src/contrib/llvm-project/llvm/include/llvm/Object/
H A DIRSymtab.h46 namespace storage {
192 using S = storage::Symbol;
239 ArrayRef<storage::Module> Modules;
240 ArrayRef<storage::Comdat> Comdats;
241 ArrayRef<storage::Symbol> Symbols;
242 ArrayRef<storage::Uncommon> Uncommons;
243 ArrayRef<storage::Str> DependentLibraries;
245 StringRef str(storage::Str S) const { return S.get(Strtab); } in str()
247 template <typename T> ArrayRef<T> range(storage::Range<T> R) const { in range()
251 const storage::Header &header() const { in header()
[all …]
/src/contrib/llvm-project/lldb/source/Plugins/Trace/intel-pt/
H A DTraceIntelPT.cpp182 Storage &storage = GetUpdatedStorage(); in Decode() local
183 if (storage.multicpu_decoder) in Decode()
184 return storage.multicpu_decoder->Decode(thread); in Decode()
186 auto it = storage.thread_decoders.find(thread.GetID()); in Decode()
187 if (it == storage.thread_decoders.end()) in Decode()
193 Storage &storage = GetUpdatedStorage(); in FindBeginningOfTimeNanos() local
194 if (storage.beginning_of_time_nanos_calculated) in FindBeginningOfTimeNanos()
195 return storage.beginning_of_time_nanos; in FindBeginningOfTimeNanos()
196 storage.beginning_of_time_nanos_calculated = true; in FindBeginningOfTimeNanos()
198 if (!storage.tsc_conversion) in FindBeginningOfTimeNanos()
[all …]
/src/crypto/krb5/src/util/support/
H A Dt_k5buf.c60 char storage[1024]; in test_basic() local
62 k5_buf_init_fixed(&buf, storage, sizeof(storage)); in test_basic()
138 char storage[10]; in test_overflow() local
141 k5_buf_init_fixed(&buf, storage, sizeof(storage)); in test_overflow()
148 k5_buf_init_fixed(&buf, storage, sizeof(storage)); in test_overflow()
159 char storage[1]; in test_error() local
162 k5_buf_init_fixed(&buf, storage, sizeof(storage)); in test_error()
211 char storage[10], data[1024]; in test_fmt() local
219 k5_buf_init_fixed(&buf, storage, sizeof(storage)); in test_fmt()
/src/contrib/llvm-project/lldb/source/Target/
H A DTrace.cpp189 Storage &storage = GetUpdatedStorage(); in GetLiveThreadBinaryDataSize() local
190 return Lookup(storage.live_thread_data, tid, ConstString(kind)); in GetLiveThreadBinaryDataSize()
195 Storage &storage = GetUpdatedStorage(); in GetLiveCpuBinaryDataSize() local
196 return Lookup(storage.live_cpu_data_sizes, cpu_id, ConstString(kind)); in GetLiveCpuBinaryDataSize()
201 Storage &storage = GetUpdatedStorage(); in GetLiveProcessBinaryDataSize() local
202 return Lookup(storage.live_process_data, ConstString(kind)); in GetLiveProcessBinaryDataSize()
376 Storage &storage = GetUpdatedStorage(); in GetPostMortemThreadDataFile() local
378 Lookup(storage.postmortem_thread_data, tid, ConstString(kind))) in GetPostMortemThreadDataFile()
389 Storage &storage = GetUpdatedStorage(); in GetPostMortemCpuDataFile() local
391 Lookup(storage.postmortem_cpu_data, cpu_id, ConstString(kind))) in GetPostMortemCpuDataFile()
[all …]
/src/sys/contrib/vchiq/interface/vchiq_arm/
H A Dvchiq_util.c53 queue->storage = kzalloc(size * sizeof(VCHIQ_HEADER_T *), GFP_KERNEL); in vchiu_queue_init()
54 if (queue->storage == NULL) { in vchiu_queue_init()
63 if (queue->storage != NULL) in vchiu_queue_delete()
64 kfree(queue->storage); in vchiu_queue_delete()
94 queue->storage[queue->write & (queue->size - 1)] = header; in vchiu_queue_push()
123 return queue->storage[queue->read & (queue->size - 1)]; in vchiu_queue_peek()
142 header = queue->storage[queue->read & (queue->size - 1)]; in vchiu_queue_pop()
/src/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_ring_buffer.h98 void Init(void *storage, uptr size) { in Init() argument
105 uptr st = (uptr)storage; in Init()
116 CompactRingBuffer(void *storage, uptr size) { in CompactRingBuffer() argument
117 Init(storage, size); in CompactRingBuffer()
121 CompactRingBuffer(const CompactRingBuffer &other, void *storage) { in CompactRingBuffer() argument
123 internal_memcpy(storage, other.StartOfStorage(), size); in CompactRingBuffer()
124 Init(storage, size); in CompactRingBuffer()
126 SetNext((const T *)storage + Idx); in CompactRingBuffer()
/src/crypto/krb5/src/lib/krb5/krb/
H A Dgic_pwd.c60 ret = alloc_data(&gp->storage, strlen(rpass)); in krb5_get_as_key_password()
63 memcpy(gp->storage.data, rpass, strlen(rpass)); in krb5_get_as_key_password()
64 gp->password = &gp->storage; in krb5_get_as_key_password()
92 ret = krb5int_copy_data_contents(context, &pw, &gp->storage); in krb5_get_as_key_password()
96 gp->password = &gp->storage; in krb5_get_as_key_password()
128 zapfree(ctx->gakpw.storage.data, ctx->gakpw.storage.length); in krb5_init_creds_set_password()
129 ctx->gakpw.storage = string2data(s); in krb5_init_creds_set_password()
130 ctx->gakpw.password = &ctx->gakpw.storage; in krb5_init_creds_set_password()
342 zapfree(gakpw.storage.data, gakpw.storage.length); in krb5_get_init_creds_password()
407 zapfree(gakpw.storage.data, gakpw.storage.length); in krb5_get_in_tkt_with_password()
/src/contrib/unbound/
H A DMakefile.in131 util/rtt.c util/siphash.c util/edns.c util/storage/dnstree.c util/storage/lookup3.c \
132 util/storage/lruhash.c util/storage/slabhash.c util/tcp_conn_limit.c \
483 $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \
728 $(srcdir)/util/data/packed_rrset.h $(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h \
730 $(srcdir)/util/data/msgreply.h $(srcdir)/services/cache/rrset.h $(srcdir)/util/storage/slabhash.h \
735 …$(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/util/storag…
738 …$(srcdir)/util/data/msgreply.h $(srcdir)/util/data/packed_rrset.h $(srcdir)/util/storage/slabhash.…
739 …$(srcdir)/util/storage/lookup3.h $(srcdir)/util/data/dname.h $(srcdir)/util/net_help.h $(srcdir)/u…
743 …$(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/util/storag…
750 …$(srcdir)/util/storage/lruhash.h $(srcdir)/util/locks.h $(srcdir)/util/log.h $(srcdir)/util/data/m…
[all …]
/src/crypto/openssl/crypto/bn/
H A Drsaz_exp_x2.c232 BN_ULONG *storage = NULL;
248 storage = (BN_ULONG *)OPENSSL_malloc(storage_len_bytes);
249 if (storage == NULL)
251 storage_aligned = (BN_ULONG *)ALIGN_OF(storage, 64);
315 bn_reduce_once_in_place(res1, /*carry=*/0, m1, storage, factor_size);
316 bn_reduce_once_in_place(res2, /*carry=*/0, m2, storage, factor_size);
319 if (storage != NULL) {
320 OPENSSL_cleanse(storage, storage_len_bytes);
321 OPENSSL_free(storage);
370 BN_ULONG *storage = NULL;
[all …]
H A Drsaz_exp.c55 unsigned char storage[320 * 3 + 32 * 9 * 16 + 64]; /* 5.5KB */
56 unsigned char *p_str = storage + (64 - ((size_t)storage % 64));
236 OPENSSL_cleanse(storage, sizeof(storage));
259 unsigned char storage[16 * 8 * 8 + 64 * 2 + 64]; /* 1.2KB */
260 unsigned char *table = storage + (64 - ((size_t)storage % 64));
312 OPENSSL_cleanse(storage, sizeof(storage));
/src/sys/net/route/
H A Dnhgrp_ctl.c123 wn[0].storage = wn[0].weight; in sort_weightened_nhops_weights()
127 for (j = i - 1; j >= 0 && wn[j].storage > weight; j--) in sort_weightened_nhops_weights()
128 wn[j + 1].storage = wn[j].storage; in sort_weightened_nhops_weights()
129 wn[j + 1].storage = weight; in sort_weightened_nhops_weights()
157 xmin = wn[0].storage; in calc_min_mpath_slots_fast()
159 total += wn[i].storage; in calc_min_mpath_slots_fast()
160 if ((wn[i].storage != last) && in calc_min_mpath_slots_fast()
161 ((wn[i].storage - last < xmin) || xmin == 0)) { in calc_min_mpath_slots_fast()
162 xmin = wn[i].storage - last; in calc_min_mpath_slots_fast()
164 last = wn[i].storage; in calc_min_mpath_slots_fast()
[all …]
/src/contrib/wpa/src/utils/
H A Dtrace.c100 long storage, symcount; in read_syms() local
111 storage = bfd_get_symtab_upper_bound(abfd); in read_syms()
112 if (storage == 0) { in read_syms()
113 storage = bfd_get_dynamic_symtab_upper_bound(abfd); in read_syms()
116 if (storage < 0) { in read_syms()
121 syms = malloc(storage); in read_syms()
124 "(%ld bytes)", storage); in read_syms()
/src/tools/test/stress2/misc/
H A Dnullfs32.sh23 mkdir storage test1 test2
24 mount_nullfs -o rw,noatime ./storage ./test1
25 mount_nullfs -o rw,noatime ./storage ./test2
/src/sys/ddb/
H A Ddb_break.c206 #define BKPT_WRITE(addr, storage) \ argument
208 *storage = db_get_value(addr, BKPT_SIZE, false); \
209 db_put_value(addr, BKPT_SIZE, BKPT_SET(*storage)); \
214 #define BKPT_CLEAR(addr, storage) \ argument
215 db_put_value(addr, BKPT_SIZE, *storage)

12345678910>>...16