/fuchsia/zircon/kernel/vm/ |
H A D | pmm_arena.h | 31 size_t size() const { return info_.size; } function in class:PmmArena 50 return (page->paddr() >= base() && page->paddr() < (base() + size())); 54 return (address >= info_.base && address <= info_.base + info_.size - 1);
|
/fuchsia/zircon/system/dev/audio/usb-audio/ |
H A D | usb-audio-descriptors.h | 31 bool valid() const { return (offset_ < mem_->size()); } 47 ZX_DEBUG_ASSERT(offset_ <= mem_->size()); 48 return ((h != nullptr) && (h->bLength <= (mem_->size() - offset_))) 67 size_t size() const { return size_; } function in class:audio::usb::DescriptorListMemory
|
/fuchsia/zircon/system/dev/tee/optee/ |
H A D | util.h | 18 explicit UuidView(const uint8_t* data, size_t size);
|
H A D | shared-memory.h | 18 // query OP-TEE to discover the physical start address and size of the memory to be used for inter 38 // by the SharedMemoryPool. The region object represents the offset and size within the memory pool 58 size_t size() const { return region_->size; } function in class:optee::SharedMemory 71 explicit SharedMemoryPool(zx_vaddr_t vaddr, zx_paddr_t paddr, size_t size) argument 76 region_allocator_.AddRegion({.base = 0, .size = size}); 79 zx_status_t Allocate(size_t size, fbl::unique_ptr<SharedMemory>* out_shared_memory) { argument 84 auto region = region_allocator_.GetRegion(size, kAlignment);
|
/fuchsia/zircon/system/host/bootserver/ |
H A D | bootserver.h | 7 void initialize_status(const char* name, size_t size);
|
/fuchsia/zircon/system/ulib/fs-test-utils/include/fs-test-utils/ |
H A D | unittest.h | 34 #define RUN_FS_TEST_F_TYPE(test_fn, size) \ 45 size, false) \ 49 fs_test_utils::fs_test_utils_internal::Fail, size, false) \ 59 fs_test_utils::fs_test_utils_internal::Fail, size, false) \
|
/fuchsia/zircon/system/ulib/zircon/ |
H A D | data.S | 15 .size DATA_CONSTANTS, VDSO_CONSTANTS_SIZE
|
/fuchsia/zircon/system/utest/libfzl/ |
H A D | vmo-probe.cpp | 40 bool probe_verify_region(void* start, size_t size, uint32_t access) { argument 46 reinterpret_cast<void*>(uint_base + (size / 2)), 47 reinterpret_cast<void*>(uint_base + size - sizeof(uint32_t)), 50 unittest_printf("prove_verify_region for addr: %lu, size: %lu\n", (size_t)start, size);
|
H A D | vmo-probe.h | 17 // |start| + |size|. 18 bool probe_verify_region(void* start, size_t size, uint32_t access);
|
/fuchsia/zircon/third_party/ulib/jemalloc/include/jemalloc/internal/ |
H A D | base_structs.h | 6 /* Total size of block's virtual memory mapping. */ 7 size_t size; member in struct:base_block_s
|
H A D | arena_inlines_b.h | 14 void *arena_malloc(tsdn_t *tsdn, arena_t *arena, size_t size, szind_t ind, 20 void arena_sdalloc(tsdn_t *tsdn, extent_t *extent, void *ptr, size_t size, 91 arena_malloc(tsdn_t *tsdn, arena_t *arena, size_t size, szind_t ind, bool zero, argument 95 assert(size != 0); 98 if (likely(size <= SMALL_MAXCLASS)) { 100 tcache, size, ind, zero, slow_path)); 102 if (likely(size <= tcache_maxclass)) { 104 tcache, size, ind, zero, slow_path)); 106 /* (size > tcache_maxclass) case falls through. */ 107 assert(size > tcache_maxclas 169 arena_sdalloc(tsdn_t *tsdn, extent_t *extent, void *ptr, size_t size, tcache_t *tcache, bool slow_path) argument 193 size, slow_path); local [all...] |
/fuchsia/zircon/third_party/ulib/musl/src/stdio/ |
H A D | fread.c | 6 size_t fread(void* restrict destv, size_t size, size_t nmemb, FILE* restrict f) { argument 8 size_t len = size * nmemb, l = len, k; 9 if (!size) 30 return (len - l) / size;
|
H A D | fwrite.c | 31 size_t fwrite(const void* restrict src, size_t size, size_t nmemb, FILE* restrict f) { argument 32 size_t k, l = size * nmemb; 33 if (!size) 38 return k == l ? nmemb : k / size;
|
H A D | setvbuf.c | 12 int setvbuf(FILE* restrict f, char* restrict buf, int type, size_t size) { argument
|
/fuchsia/zircon/system/ulib/fvm/include/fvm/ |
H A D | fvm-lz4.h | 46 return offset == 0 && size == 0; 56 size = length; 62 size_t cp_sz = fbl::min(length, size); 69 size -= cp_sz; 71 if (size == 0) { 80 // Actual size of data contained within buffer 81 size_t size; member in struct:fvm::SparseReader::buffer 84 // Maximum size allocated for buffer 91 // Initialize buffer with a given |size| 92 static zx_status_t InitializeBuffer(size_t size, buffer_ [all...] |
/fuchsia/zircon/system/ulib/ldmsg/ |
H A D | ldmsg.c | 46 req->common.string.size = len; 89 size_t size = req->common.string.size; local 90 if (LDMSG_MAX_PAYLOAD - offset - 1 < size 91 || req_len != FidlAlign(sizeof(fidl_message_header_t) + offset + size)) 97 req->data[offset + size] = '\0'; 100 *len_out = size;
|
/fuchsia/zircon/kernel/syscalls/ |
H A D | socket.cpp | 48 user_in_ptr<const void> buffer, size_t size, 52 if ((size > 0u) && !buffer) 65 status = socket->Write(buffer, size, &nwritten); 68 status = socket->WriteControl(buffer, size); 70 nwritten = size; 75 if (size == 0) 90 user_out_ptr<void> buffer, size_t size, 94 if (!buffer && size > 0) 108 status = socket->Read(buffer, size, &nread); 111 status = socket->ReadControl(buffer, size, 47 sys_socket_write(zx_handle_t handle, uint32_t options, user_in_ptr<const void> buffer, size_t size, user_out_ptr<size_t> actual) argument 89 sys_socket_read(zx_handle_t handle, uint32_t options, user_out_ptr<void> buffer, size_t size, user_out_ptr<size_t> actual) argument [all...] |
/fuchsia/zircon/third_party/ulib/jemalloc/src/ |
H A D | extent_dss.c | 97 extent_alloc_dss(tsdn_t *tsdn, arena_t *arena, void *new_addr, size_t size, argument 103 assert(size > 0); 110 if ((intptr_t)size < 0) 146 dss_next = (void *)((uintptr_t)ret + size); 150 incr = gap_size + size; 170 *commit = pages_decommit(ret, size); 176 extent_init(&extent, arena, ret, size, 177 size, 0, true, false, true, false); 180 size)) 181 memset(ret, 0, size); [all...] |
/fuchsia/zircon/kernel/dev/udisplay/ |
H A D | udisplay.cpp | 58 const size_t size = vmo->size(); local 61 0 /* ignored */, size, 0 /* align pow2 */, 0 /* vmar flags */, 66 status = mapping->MapRange(0, size, true); 73 g_udisplay.framebuffer_size = size;
|
/fuchsia/zircon/kernel/object/ |
H A D | pinned_memory_token_dispatcher.cpp | 25 size_t size, uint32_t perms, 29 DEBUG_ASSERT(IS_PAGE_ALIGNED(offset) && IS_PAGE_ALIGNED(size)); 33 zx_status_t status = vmo->CommitRange(offset, size, nullptr); 41 status = vmo->Pin(offset, size); 50 auto unpin_vmo = fbl::MakeAutoCall([vmo, offset, size]() { 52 vmo->Unpin(offset, size); 60 const size_t num_addrs = ROUNDUP(size, min_contig) / min_contig; 68 offset, size, is_contiguous, 117 for (size_t i = 1; i < mapped_addrs_.size(); ++i) { 154 DEBUG_ASSERT(next_addr_idx == mapped_addrs_.size()); 23 Create(fbl::RefPtr<BusTransactionInitiatorDispatcher> bti, fbl::RefPtr<VmObject> vmo, size_t offset, size_t size, uint32_t perms, fbl::RefPtr<Dispatcher>* dispatcher, zx_rights_t* rights) argument 180 size_t size = fbl::min(remaining, min_contig); local 254 PinnedMemoryTokenDispatcher( fbl::RefPtr<BusTransactionInitiatorDispatcher> bti, fbl::RefPtr<VmObject> vmo, size_t offset, size_t size, bool is_contiguous, fbl::Array<dev_vaddr_t> mapped_addrs) argument [all...] |
/fuchsia/zircon/system/ulib/region-alloc/include/region-alloc/ |
H A D | region-alloc.h | 24 // size. A Region is considered valid iff its size is non-zero, and it does not 32 // requesting that a region be allocated with a particular size/alignment, or 33 // by asking for a specific base/size. The RegionAllocator will manage all of 44 // created with a defined slab size as well as a maximum memory limit. The pool 69 // cannot know the size of a RegionAllocator object, it is not possible to 100 // alloc.AddRegion({ .base = 0xC0000000, . size = 0x40000000 }); // [3GB, 4GB) 101 // alloc.AddRegion({ .base = 0x4000000000, .size = 0x40000000 }); // [256GB, 257GB) 122 // printf("R3 base %llx size %llx\n", r3->base, r3->size) 152 uint64_t size; member in struct:ralloc_region 199 ralloc_get_sized_region( ralloc_allocator_t* allocator, uint64_t size, uint64_t alignment) argument [all...] |
/fuchsia/zircon/system/utest/region-alloc/ |
H A D | region-alloc.cpp | 66 .size = GOOD_MERGE_REGION_SIZE }; 69 tmp.base += tmp.size; 85 .size = BAD_MERGE_REGION_SIZE }; 95 tmp.base += tmp.size + 1; 122 // Run the alloc by size tests. Hold onto the regions it allocates so they 128 zx_status_t res = alloc.GetRegion(TEST->size, TEST->align, regions[i]); 186 EXPECT_EQ(TEST->req.size, regions[i]->size); 245 { .base = 0x00000000, .size = 1 << 20 }, 246 { .base = 0x10000000, .size [all...] |
/fuchsia/zircon/kernel/object/include/object/ |
H A D | buffer_chain.h | 22 // BufferChain is a list of fixed-size buffers allocated from the PMM. 62 // Copies |size| bytes from this chain starting at offset |src_offset| to |dst|. 65 zx_status_t CopyOut(user_out_ptr<void> dst, size_t src_offset, size_t size) { argument 66 DEBUG_ASSERT(src_offset < buffers_.front().size()); 68 size_t rem = size; 71 const size_t copy_len = fbl::min(rem, iter->size() - copy_offset); 84 // Creates a BufferChain with enough buffers to store |size| bytes. 89 static BufferChain* Alloc(size_t size) { argument 90 size += sizeof(BufferChain); 91 const size_t num_buffers = (size 137 CopyIn(user_in_ptr<const void> src, size_t dst_offset, size_t size) argument 154 size_t size() const { return sizeof(raw_data_) - reserved_; } function in class:BufferChain::final [all...] |
/fuchsia/zircon/system/ulib/perftest/ |
H A D | results.cpp | 19 return sum / static_cast<double>(values.size()); 36 return sqrt(sum_of_squared_diffs / static_cast<double>(values.size())); 55 copy.reserve(values.size()); 59 qsort(copy.get(), copy.size(), sizeof(copy[0]), CompareDoubles); 61 size_t index = copy.size() / 2; 63 if (copy.size() % 2 == 0) { 72 ZX_ASSERT(values.size() > 0); 144 return &results_[results_.size() - 1]; 177 if (results_.size() == 0) {
|
/fuchsia/zircon/system/utest/launchpad/ |
H A D | launchpad.c | 82 static bool run_one_argument_size_test(size_t size) { argument 86 ASSERT_EQ(launchpad_create(ZX_HANDLE_INVALID, "argument size test", &lp), 89 char* big = malloc(size + 3); 92 memset(&big[2], 'x', size); 93 big[2 + size] = '\0'; 118 for (size_t size = 0; size < 2 * PAGE_SIZE; size += 1024) { 119 if (!run_one_argument_size_test(size)) { 122 " argument size tes [all...] |