Home
last modified time | relevance | path

Searched refs:chunks (Results 1 – 25 of 142) sorted by relevance

123456

/freebsd/contrib/bearssl/src/ssl/
H A Dssl_keyexport.c49 br_tls_prf_seed_chunk chunks[4]; in br_ssl_key_export() local
58 chunks[0].data = cc->client_random; in br_ssl_key_export()
59 chunks[0].len = sizeof cc->client_random; in br_ssl_key_export()
60 chunks[1].data = cc->server_random; in br_ssl_key_export()
61 chunks[1].len = sizeof cc->server_random; in br_ssl_key_export()
64 chunks[2].data = tmp; in br_ssl_key_export()
65 chunks[2].len = 2; in br_ssl_key_export()
66 chunks[3].data = context; in br_ssl_key_export()
67 chunks[3].len = context_len; in br_ssl_key_export()
81 label, num_chunks, chunks); in br_ssl_key_export()
/freebsd/contrib/llvm-project/lld/COFF/
H A DICF.cpp62 std::vector<SectionChunk *> chunks; member in lld::coff::ICF
113 chunks.begin() + begin + 1, chunks.begin() + end, [&](SectionChunk *s) { in segregate()
115 return equalsConstant(chunks[begin], s); in segregate()
116 return equalsVariable(chunks[begin], s); in segregate()
118 size_t mid = bound - chunks.begin(); in segregate()
123 chunks[i]->eqClass[(cnt + 1) % 2] = mid; in segregate()
214 if (chunks[begin]->eqClass[cnt % 2] != chunks[i]->eqClass[cnt % 2]) in findBoundary()
232 if (chunks.size() < 1024) { in forEachClass()
233 forEachClassRange(0, chunks.size(), fn); in forEachClass()
243 size_t step = chunks.size() / numShards; in forEachClass()
[all …]
H A DWriter.cpp227 bool verifyRanges(const std::vector<Chunk *> chunks);
257 void sortCRTSectionChunks(std::vector<Chunk *> &chunks);
259 void sortBySectionOrder(std::vector<Chunk *> &chunks);
345 chunks.push_back(c); in addChunk()
349 chunks.insert(chunks.begin(), c); in insertChunkAtStart()
358 chunks.insert(chunks.end(), other->chunks.begin(), other->chunks.end()); in merge()
359 other->chunks.clear(); in merge()
465 for (size_t i = 0; i != os->chunks.size(); ++i) { in createThunks()
466 SectionChunk *sc = dyn_cast_or_null<SectionChunk>(os->chunks[i]); in createThunks()
504 os->chunks.insert(os->chunks.begin() + thunkInsertionSpot, thunkChunk); in createThunks()
[all …]
H A DDLL.h79 std::vector<Chunk *> chunks; variable
81 uint64_t getRVA() { return chunks[0]->getRVA(); } in getRVA()
83 return chunks.back()->getRVA() + chunks.back()->getSize() - getRVA(); in getSize()
H A DDLL.cpp635 explicit NamePointersChunk(std::vector<Chunk *> &v) : chunks(v) {} in NamePointersChunk()
636 size_t getSize() const override { return chunks.size() * 4; } in getSize()
639 for (Chunk *c : chunks) { in writeTo()
646 std::vector<Chunk *> chunks; member in lld::coff::__anon0bfb8df40111::NamePointersChunk
879 chunks.push_back(dir); in EdataContents()
880 chunks.push_back(dllName); in EdataContents()
881 chunks.push_back(addressTab); in EdataContents()
882 chunks.push_back(nameTab); in EdataContents()
883 chunks.push_back(ordinalTab); in EdataContents()
884 chunks.insert(chunks.end(), names.begin(), names.end()); in EdataContents()
[all …]
H A DWriter.h31 std::vector<Chunk *> chunks; variable
35 // container of chunks. OutputSection and Chunk are 1:N relationship.
79 std::vector<Chunk *> chunks;
73 std::vector<Chunk *> chunks; global() variable
/freebsd/usr.bin/split/
H A Dsplit.c55 static long chunks; /* Chunks count to split into. */ variable
136 chunks = strtonum(optarg, 1, LONG_MAX, &errstr); in main()
138 errx(EX_USAGE, "%s: number of chunks is %s", in main()
179 if (pflag && (numlines != 0 || bytecnt != 0 || chunks != 0)) in main()
184 else if (bytecnt != 0 || chunks != 0) in main()
187 if (bytecnt != 0 && chunks != 0) in main()
196 } else if (chunks != 0) { in main()
230 if (chunks == 0 || nfiles < chunks) { in split1()
242 if (chunks in split1()
[all...]
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_allocator_secondary.h186 Header *const *chunks = AddressSpaceView::Load(chunks_, n_chunks_); in GetBlockBegin() local
189 uptr ch = reinterpret_cast<uptr>(chunks[i]); in GetBlockBegin()
209 Header **chunks = AddressSpaceView::LoadWritable(chunks_, n_chunks_); in EnsureSortedChunks() local
210 Sort(reinterpret_cast<uptr *>(chunks), n_chunks_); in EnsureSortedChunks()
212 AddressSpaceView::LoadWritable(chunks[i])->chunk_idx = i; in EnsureSortedChunks()
224 Header *const *chunks = AddressSpaceView::Load(chunks_, n_chunks_); in GetBlockBeginFastLocked() local
225 auto min_mmap_ = reinterpret_cast<uptr>(chunks[0]); in GetBlockBeginFastLocked()
226 auto max_mmap_ = reinterpret_cast<uptr>(chunks[n - 1]) + in GetBlockBeginFastLocked()
227 AddressSpaceView::Load(chunks[n - 1])->map_size; in GetBlockBeginFastLocked()
235 if (p < reinterpret_cast<uptr>(chunks[mid])) in GetBlockBeginFastLocked()
[all …]
H A Dsanitizer_allocator_local_cache.h43 CompactPtrT chunk = c->chunks[--c->count]; in Allocate()
61 c->chunks[c->count++] = chunk; in Deallocate()
82 CompactPtrT chunks[2 * SizeClassMap::kMaxNumCachedHint]; member
103 if (UNLIKELY(!allocator->GetFromAllocator(&stats_, class_id, c->chunks, in Refill()
122 &c->chunks[first_idx_to_drain], count); in Drain()
/freebsd/contrib/libdiff/lib/
H A Ddiff_output_unidiff.c88 return &r->chunks.head[chunk_idx]; in diff_chunk_get()
107 const struct diff_chunk *c = &r->chunks.head[chunk_idx]; in diff_chunk_context_get()
160 for (i = start_chunk_idx; i < result->chunks.len; i++) { in diff_chunk_context_load_change()
161 struct diff_chunk *chunk = &result->chunks.head[i]; in diff_chunk_context_load_change()
312 first_chunk = &result->chunks.head[cc->chunk.start]; in output_unidiff_chunk()
369 const struct diff_chunk *c = &result->chunks.head[c_idx]; in output_unidiff_chunk()
386 if (cc->chunk.end == result->chunks.len) { in output_unidiff_chunk()
396 last_chunk = &result->chunks.head[cc->chunk.end - 1]; in output_unidiff_chunk()
409 &result->chunks.head[result->chunks.len - 1]); in output_unidiff_chunk()
474 for (i = 0; i < result->chunks.len; i++) { in diff_output_unidiff()
[all …]
/freebsd/contrib/libcbor/src/cbor/
H A Dbytestrings.c56 .chunks = NULL, in cbor_new_indefinite_bytestring()
83 return ((struct cbor_indefinite_string_data *)item->data)->chunks; in cbor_bytestring_chunks_handle()
109 data->chunks, sizeof(cbor_item_t *), new_chunk_capacity); in cbor_bytestring_add_chunk()
115 data->chunks = new_chunks_data; in cbor_bytestring_add_chunk()
117 data->chunks[data->chunk_count++] = cbor_incref(chunk); in cbor_bytestring_add_chunk()
H A Dstrings.c37 .chunks = NULL, in cbor_new_indefinite_string()
84 return ((struct cbor_indefinite_string_data *)item->data)->chunks; in cbor_string_add_chunk()
107 data->chunks, sizeof(cbor_item_t *), new_chunk_capacity); in cbor_string_add_chunk()
114 data->chunks = new_chunks_data;
116 data->chunks[data->chunk_count++] = cbor_incref(chunk); in cbor_string_handle()
H A Dserialization.c89 cbor_item_t **chunks = cbor_bytestring_chunks_handle(item); in cbor_serialized_size() local
92 indef_bytestring_size, cbor_serialized_size(chunks[i])); in cbor_serialized_size()
104 cbor_item_t **chunks = cbor_string_chunks_handle(item); in cbor_serialized_size() local
107 indef_string_size, cbor_serialized_size(chunks[i])); in cbor_serialized_size()
223 cbor_item_t **chunks = cbor_bytestring_chunks_handle(item); in cbor_serialize_bytestring() local
226 chunks[i], buffer + written, buffer_size - written); in cbor_serialize_bytestring()
255 cbor_item_t **chunks = cbor_string_chunks_handle(item); in cbor_serialize_string() local
257 size_t chunk_written = cbor_serialize_string(chunks[i], buffer + written, in cbor_serialize_string()
/freebsd/contrib/libucl/src/
H A Ducl_sexp.c76 assert (parser->chunks != NULL); in ucl_parse_csexp()
77 assert (parser->chunks->begin != NULL); in ucl_parse_csexp()
78 assert (parser->chunks->remain != 0); in ucl_parse_csexp()
80 p = parser->chunks->begin; in ucl_parse_csexp()
81 end = p + parser->chunks->remain; in ucl_parse_csexp()
H A Ducl_parser.c64 struct ucl_chunk *chunk = parser->chunks; in ucl_set_err()
136 struct ucl_chunk *chunk = parser->chunks; in ucl_skip_comments()
644 nobj = ucl_object_new_full (is_array ? UCL_ARRAY : UCL_OBJECT, parser->chunks->priority); in ucl_parser_add_container()
694 st->e.params.line = parser->chunks->line; in ucl_parser_add_container()
695 st->chunk = parser->chunks; in ucl_parser_add_container()
1199 switch (parser->chunks->strategy) { in ucl_parser_process_object_element()
1474 nobj = ucl_object_new_full (UCL_NULL, parser->chunks->priority); in ucl_parse_key()
1645 obj = ucl_object_new_full (UCL_NULL, parser->chunks->priority); in ucl_parser_get_container()
1966 parser->chunks->line, st->e.params.line); in ucl_parse_after_value()
2337 struct ucl_chunk *chunk = parser->chunks; in ucl_state_machine()
[all …]
H A Ducl_msgpack.c781 parser->stack->chunk = parser->chunks; in ucl_msgpack_get_container()
791 stack->chunk = parser->chunks; in ucl_msgpack_get_container()
971 p = parser->chunks->begin; in ucl_msgpack_consume()
972 remain = parser->chunks->remain; in ucl_msgpack_consume()
1072 parser->chunks->priority); in ucl_msgpack_consume()
1103 parser->chunks->priority); in ucl_msgpack_consume()
1257 parser->chunks->priority); in ucl_msgpack_consume()
1340 assert (parser->chunks != NULL); in ucl_parse_msgpack()
1341 assert (parser->chunks->begin != NULL); in ucl_parse_msgpack()
1342 assert (parser->chunks->remain != 0); in ucl_parse_msgpack()
[all …]
/freebsd/sys/netinet/
H A Dsctp_auth.c114 if (list->chunks[chunk] == 0) { in sctp_auth_add_chunk()
115 list->chunks[chunk] = 1; in sctp_auth_add_chunk()
133 if (list->chunks[chunk] == 1) { in sctp_auth_delete_chunk()
134 list->chunks[chunk] = 0; in sctp_auth_delete_chunk()
165 if (list->chunks[i] != 0) { in sctp_serialize_auth_chunks()
184 if (list->chunks[i] != 0) { in sctp_pack_auth_chunks()
194 if (list->chunks[i] != 0) { in sctp_pack_auth_chunks()
1371 struct sctp_auth_chunk_list *chunks = NULL; in sctp_auth_get_cookie_params() local
1431 chunks = (struct sctp_auth_chunk_list *)phdr; in sctp_auth_get_cookie_params()
1432 num_chunks = plen - sizeof(*chunks); in sctp_auth_get_cookie_params()
[all …]
/freebsd/sys/dev/adlink/
H A Dadlink.c111 struct pgstat *chunks; member
180 pg = sc->chunks; in adlink_mmap()
252 sc->chunks = pg; in adlink_ioctl()
263 pg->next = sc->chunks; in adlink_ioctl()
268 sc->next = sc->chunks; in adlink_ioctl()
272 pg = sc->chunks; in adlink_ioctl()
306 pg = sc->next = sc->chunks; in adlink_ioctl()
/freebsd/tests/sys/cddl/zfs/tests/txg_integrity/
H A Dmake_patterns.py36 chunks = random.sample(range(NUM_CHUNKS), NUM_CHUNKS / 2)
37 for chunk in chunks:
/freebsd/usr.sbin/makefs/zfs/
H A Dzap.c63 unsigned long chunks; /* count of chunks needed for fat ZAP */ member
123 zap->chunks = 0; in zap_alloc()
155 zap->chunks += zap_entry_chunks(ent); in zap_add()
268 if (zap->chunks <= ZAP_LEAF_NUMCHUNKS(l)) { in zap_fat_write_prefixlen()
281 uint16_t chunks; in zap_fat_write_prefixlen() local
285 chunks = zap_entry_chunks(ent); in zap_fat_write_prefixlen()
286 if (ZAP_LEAF_NUMCHUNKS(l) - leafchunks[li] < chunks) { in zap_fat_write_prefixlen()
292 leafchunks[li] += chunks; in zap_fat_write_prefixlen()
/freebsd/tools/build/
H A Dcheckstyle9.pl733 my (@chunks);
739 push(@chunks, [ $condition, $statement ]);
741 return ($level, $linenr, @chunks);
752 push(@chunks, [ $condition, $statement ]);
755 return ($level, $linenr, @chunks);
2441 my ($level, $endln, @chunks) =
2445 print "APW: <<$chunks[1][0]>><<$chunks[1][1]>>\n"
2446 if $#chunks >= 1;
2448 if ($#chunks >= 0 && $level == 0) {
2452 for my $chunk (@chunks) {
[all …]
/freebsd/sys/powerpc/powerpc/
H A Dplatform_if.m124 * @param _memp Array of physical memory chunks
125 * @param _memsz Number of physical memory chunks
126 * @param _availp Array of available physical memory chunks
127 * @param _availsz Number of available physical memory chunks
144 * @param _memp Array of physical memory chunks
145 * @param _memsz Number of physical memory chunks
/freebsd/contrib/ofed/infiniband-diags/src/
H A Dibroute.c101 unsigned chunks = ALIGN(nports + 1, 16) / 16; in dump_mlid() local
102 for (i = 0; i < chunks; i++) { in dump_mlid()
147 unsigned block, i, j, e, nports, cap, chunks, startblock, lastblock, in dump_multicast_tables() local
207 chunks = ALIGN(nports + 1, 16) / 16; in dump_multicast_tables()
212 for (j = 0; j < chunks; j++) { in dump_multicast_tables()
H A Ddump_fts.c76 unsigned chunks = ALIGN(nports + 1, 16) / 16; in dump_mlid() local
77 for (i = 0; i < chunks; i++) { in dump_mlid()
122 unsigned block, i, j, e, nports, cap, chunks, startblock, lastblock, in dump_multicast_tables() local
183 chunks = ALIGN(nports + 1, 16) / 16; in dump_multicast_tables()
188 for (j = 0; j < chunks; j++) { in dump_multicast_tables()
/freebsd/sys/contrib/dev/iwlwifi/pcie/
H A Dctxt-info-gen3.c326 len0 = pnvm_data->chunks[0].len; in iwl_pcie_load_payloads_segments()
327 len1 = pnvm_data->chunks[1].len; in iwl_pcie_load_payloads_segments()
342 memcpy(dram->block, pnvm_data->chunks[0].data, len0); in iwl_pcie_load_payloads_segments()
343 memcpy((u8 *)dram->block + len0, pnvm_data->chunks[1].data, len1); in iwl_pcie_load_payloads_segments()
376 len = pnvm_data->chunks[i].len;
377 data = pnvm_data->chunks[i].data; in iwl_trans_pcie_ctx_info_gen3_load_pnvm()

123456