Searched refs:chunk_count (Results 1 – 15 of 15) sorted by relevance
/freebsd/contrib/libcbor/src/cbor/ |
H A D | bytestrings.c | 54 .chunk_count = 0, in cbor_new_indefinite_bytestring() 89 return ((struct cbor_indefinite_string_data *)item->data)->chunk_count; in cbor_bytestring_chunk_count() 99 if (data->chunk_count == data->chunk_capacity) { in cbor_bytestring_add_chunk() 117 data->chunks[data->chunk_count++] = cbor_incref(chunk); in cbor_bytestring_add_chunk()
|
H A D | strings.c | 35 .chunk_count = 0, in cbor_new_indefinite_string() 90 return ((struct cbor_indefinite_string_data *)item->data)->chunk_count; in cbor_string_add_chunk() 98 if (data->chunk_count == data->chunk_capacity) { in cbor_string_add_chunk() 116 data->chunks[data->chunk_count++] = cbor_incref(chunk); in cbor_string_handle()
|
H A D | serialization.c | 219 size_t chunk_count = cbor_bytestring_chunk_count(item); in cbor_serialize_bytestring() local 224 for (size_t i = 0; i < chunk_count; i++) { in cbor_serialize_bytestring() 251 size_t chunk_count = cbor_string_chunk_count(item); in cbor_serialize_string() local 256 for (size_t i = 0; i < chunk_count; i++) { in cbor_serialize_string()
|
H A D | data.h | 187 size_t chunk_count; member
|
/freebsd/lib/geom/virstor/ |
H A D | geom_virstor.c | 230 off_t chunk_count = md.md_virsize / md.md_chunk_size; in virstor_label() local 231 md.md_virsize = chunk_count * md.md_chunk_size; in virstor_label() 392 md.chunk_count = md.provsize / md.md_chunk_size; in virstor_label() 394 printf("(%u chunks) ", md.chunk_count); in virstor_label() 396 if ((off_t)(md.chunk_count * md.md_chunk_size) > (off_t)(msize-ssize)) in virstor_label() 397 md.chunk_count--; in virstor_label() 501 printf(" Chunks on provider: %u\n", md->chunk_count); in virstor_metadata_dump() 502 printf(" Chunks free: %u\n", md->chunk_count - md->chunk_next); in virstor_metadata_dump()
|
/freebsd/sys/geom/virstor/ |
H A D | g_virstor.c | 379 sc->components[nc].chunk_count = cp->provider->mediasize / in virstor_ctl_add() 384 if (sc->components[nc].chunk_count < 4) { in virstor_ctl_add() 507 md->chunk_count = c->chunk_count; in fill_metadata() 699 for (n = 0; n < sc->chunk_count; n++) { in g_virstor_destroy_geom() 719 while (n < sc->chunk_count) { in g_virstor_destroy_geom() 1173 component->chunk_count = md->chunk_count; in add_provider_to_geom() 1210 sc->chunk_count = sc->virsize / sc->chunk_size; in virstor_check_and_run() 1211 if (sc->chunk_count * (off_t)sc->chunk_size != sc->virsize) { in virstor_check_and_run() 1214 sc->chunk_count * (off_t)sc->chunk_size); in virstor_check_and_run() 1216 sc->map_size = sc->chunk_count * sizeof *(sc->map); in virstor_check_and_run() [all …]
|
H A D | g_virstor.h | 75 unsigned int chunk_count; member 92 size_t chunk_count; /* governs map_size */ member
|
H A D | g_virstor_md.c | 57 bs_write_u32(&bs, md->chunk_count); in virstor_metadata_encode() 85 md->chunk_count = bs_read_u32(&bs); in virstor_metadata_decode()
|
H A D | g_virstor_md.h | 59 uint32_t chunk_count; /* Number of chunks in this pr. */ member
|
/freebsd/contrib/llvm-project/libcxx/src/pstl/ |
H A D | libdispatch.cpp | 17 void __dispatch_apply(size_t chunk_count, void* context, void (*func)(void* context, size_t chunk))… in __dispatch_apply() argument 18 ::dispatch_apply_f(chunk_count, DISPATCH_APPLY_AUTO, context, func); in __dispatch_apply()
|
/freebsd/contrib/libcbor/test/ |
H A D | string_test.c | 282 metadata->chunk_count = SIZE_MAX; in main() 288 metadata->chunk_count = 0; in main()
|
H A D | bytestring_test.c | 314 metadata->chunk_count = SIZE_MAX; in test_add_chunk_reallocation_overflow() 320 metadata->chunk_count = 0; in test_add_chunk_reallocation_overflow()
|
/freebsd/contrib/libcbor/doc/source/api/ |
H A D | type_3.rst | 12 Storage requirements (indefinite) ``sizeof(cbor_item_t) * (1 + chunk_count) + chunks``
|
H A D | type_2.rst | 26 Storage requirements (indefinite) ``sizeof(cbor_item_t) * (1 + chunk_count) + chunks``
|
/freebsd/sys/netinet/libalias/ |
H A D | alias_sctp.c | 1059 int chunk_count; in sctp_PktParser() local 1119 chunk_count = 1; in sctp_PktParser() 1225 if ((*passoc == NULL) && (chunk_count >= sysctl_initialising_chunk_proc_limit)) in sctp_PktParser() 1245 if (++chunk_count > sysctl_chunk_proc_limit) in sctp_PktParser()
|