Home
last modified time | relevance | path

Searched refs:elem_count (Results 1 – 6 of 6) sorted by relevance

/xnu-11215/libkdd/
H A DKCDBasicTypeDescription.m131 uint32_t elem_count = MIN(_count, (length - _subtype_desc.kcs_elem_offset) / (_size / _count)); category
133 if (elem_count == 0) { category
135 } else if (elem_count == 1) { category
139 retval[_name] = [NSString stringWithFormat:@"%.*s", (int)elem_count, s]; category
141 NSMutableArray * objArray = [NSMutableArray arrayWithCapacity:elem_count]; category
142 for (unsigned int i = 0; i < elem_count; i++) { category
H A DKCDStructTypeDescription.m88 … uint32_t elem_count = (length - offsetof(struct kcdata_type_definition, kct_elements))/elem_size; category
89 NSMutableArray * fields_array = [NSMutableArray arrayWithCapacity:elem_count]; category
92 for (i = 0; i < elem_count; i++) { category
/xnu-11215/tools/kt-dump/
H A Dkt-dump.cpp122 elem_count() const in elem_count() function
456 std::cout << indent << " total structs: " << sec.elem_count() << std::endl; in dump()
466 std::cout << indent << " total structs: " << sec.elem_count() << std::endl; in dump()
/xnu-11215/iokit/IOKit/
H A DIOLib.h79 IOMallocArraySize(vm_size_t hdr_size, vm_size_t elem_size, vm_size_t elem_count) in IOMallocArraySize() argument
85 if (os_mul_and_add_overflow(elem_size, elem_count, s, &s) || (s & limit)) { in IOMallocArraySize()
/xnu-11215/tests/
H A Dstackshot_tests.m1479 uint32_t elem_count = kcdata_iter_array_elem_count(iter);
1482 for (j = 0; j < elem_count;) {
1483 T_QUIET; T_ASSERT_LE(j + 4, elem_count, "check for valid page table segment header");
1492 …T_QUIET; T_ASSERT_LE(j + 4 + num_entries, (uint64_t) elem_count, "check for sufficient space in pa…
1513 T_ASSERT_EQ(j, elem_count, "check that page table dump size matches extent of last header");
/xnu-11215/osfmk/kern/
H A Dzalloc.c2544 vm_size_t elem_count, chunks; in zone_alloc_pages_for_nelems() local
2546 elem_count = ptoa(z->z_percpu ? 1 : z->z_chunk_pages) / in zone_alloc_pages_for_nelems()
2548 chunks = (max_elems + elem_count - 1) / elem_count; in zone_alloc_pages_for_nelems()