| /kernel/object/include/object/ |
| A D | diagnostics.h | 24 user_out_ptr<zx_info_maps_t> maps, size_t max, 34 user_out_ptr<zx_info_vmo_t> vmos, size_t max, 44 user_out_ptr<zx_info_vmo_t> vmos, size_t max,
|
| A D | process_dispatcher.h | 213 zx_status_t GetAspaceMaps(user_out_ptr<zx_info_maps_t> maps, size_t max, 215 zx_status_t GetVmos(user_out_ptr<zx_info_vmo_t> vmos, size_t max,
|
| /kernel/kernel/ |
| A D | cmdline.cpp | 37 size_t max = CMDLINE_MAX - 2; in cmdline_append() local 40 if (i < max && i > 0 && __kernel_cmdline[i] != 0) { in cmdline_append() 46 while (i < max) { in cmdline_append() 74 if (!found_equal && i < max) { in cmdline_append()
|
| /kernel/lib/hypervisor/include/hypervisor/ |
| A D | interrupt_tracker.h | 64 void Clear(uint32_t min, uint32_t max) { in Clear() argument 65 if (max < min || max >= N) { in Clear() 69 bitmap_.Clear(min * 2, max * 2); in Clear() 113 void Clear(uint32_t min, uint32_t max) { in Clear() argument 115 bitmap_.Clear(min, max); in Clear()
|
| /kernel/lib/ktrace/ |
| A D | ktrace.cpp | 104 uint32_t max; in ktrace_read_user() local 106 max = ks->marker; in ktrace_read_user() 108 max = ks->offset; in ktrace_read_user() 109 if (max > ks->bufsize) { in ktrace_read_user() 110 max = ks->bufsize; in ktrace_read_user() 116 return max; in ktrace_read_user() 120 if (off >= max) { in ktrace_read_user() 123 if (len > (max - off)) { in ktrace_read_user() 124 len = max - off; in ktrace_read_user()
|
| /kernel/platform/pc/ |
| A D | pcie_quirks.cpp | 185 uint64_t max = (1ULL << x86_physical_address_width()); in pcie_amd_topmem_quirk() local 189 zx_status_t res = dev->driver().AddBusRegion(top_mem2, max, PciAddrSpace::MMIO); in pcie_amd_topmem_quirk() 193 top_mem2, max, res); in pcie_amd_topmem_quirk()
|
| A D | platform.cpp | 308 size_t max = bootloader.nvram.length - sizeof(log_hdr_t); in nvram_stow_crashlog() local 315 return max; in nvram_stow_crashlog() 317 if (len > max) { in nvram_stow_crashlog() 318 len = max; in nvram_stow_crashlog() 335 size_t max = bootloader.nvram.length - sizeof(log_hdr_t); in nvram_recover_crashlog() local 342 if ((hdr.magic != NVRAM_MAGIC) || (hdr.length > max) || in nvram_recover_crashlog()
|
| A D | platform_pcie.cpp | 60 res = pcie.SubtractBusRegion(0x0, fbl::numeric_limits<uint64_t>::max(), PciAddrSpace::MMIO); in lockdown_pcie_bus_regions()
|
| /kernel/lib/counters/include/lib/ |
| A D | counters.h | 53 max = 3, enumerator 80 {name, k_counter_type::max}}
|
| /kernel/object/ |
| A D | diagnostics.cpp | 465 VmMapBuilder(user_out_ptr<zx_info_maps_t> maps, size_t max) in VmMapBuilder() argument 466 : maps_(maps), max_(max) {} in VmMapBuilder() 526 user_out_ptr<zx_info_maps_t> maps, size_t max, in GetVmAspaceMaps() argument 534 if (max > 0) { in GetVmAspaceMaps() 546 VmMapBuilder b(maps, max); in GetVmAspaceMaps() 552 *actual = max > 0 ? b.nelem() : 0; in GetVmAspaceMaps() 563 AspaceVmoEnumerator(user_out_ptr<zx_info_vmo_t> vmos, size_t max) in AspaceVmoEnumerator() argument 564 : vmos_(vmos), max_(max) {} in AspaceVmoEnumerator() 599 user_out_ptr<zx_info_vmo_t> vmos, size_t max, in GetVmAspaceVmos() argument 610 AspaceVmoEnumerator ave(vmos, max); in GetVmAspaceVmos() [all …]
|
| A D | process_dispatcher.cpp | 612 user_out_ptr<zx_info_maps_t> maps, size_t max, in GetAspaceMaps() argument 618 return GetVmAspaceMaps(aspace_, maps, max, actual, available); in GetAspaceMaps() 622 user_out_ptr<zx_info_vmo_t> vmos, size_t max, in GetVmos() argument 630 zx_status_t s = GetProcessVmosViaHandles(this, vmos, max, &actual, &available); in GetVmos() 636 DEBUG_ASSERT(max >= actual); in GetVmos() 637 s = GetVmAspaceVmos(aspace_, vmos.element_offset(actual), max - actual, in GetVmos()
|
| /kernel/platform/generic-arm/ |
| A D | platform.cpp | 493 size_t max = lastlog_nvram.length - sizeof(log_hdr_t); in platform_stow_crashlog() local 500 return max; in platform_stow_crashlog() 502 if (len > max) { in platform_stow_crashlog() 503 len = max; in platform_stow_crashlog() 520 size_t max = lastlog_nvram.length - sizeof(log_hdr_t); in platform_recover_crashlog() local 527 if ((hdr.magic != NVRAM_MAGIC) || (hdr.length > max) || in platform_recover_crashlog()
|
| /kernel/tests/ |
| A D | timer_tests.cpp | 52 uint max = arch_max_num_cpus(); in timer_diag_all_cpus() local 55 for (i = 0; i < max; i++) { in timer_diag_all_cpus() 65 for (i = 0; i < max; i++) { in timer_diag_all_cpus() 210 static zx_duration_t rand_duration(zx_duration_t max) { in rand_duration() argument 211 return (zx_duration_mul_int64(max, rand())) / RAND_MAX; in rand_duration()
|
| /kernel/arch/x86/include/arch/ |
| A D | aspace.h | 112 static constexpr size_t kPageTableAlign = fbl::max(alignof(X86PageTableMmu), 114 static constexpr size_t kPageTableSize = fbl::max(sizeof(X86PageTableMmu),
|
| /kernel/lib/crypto/ |
| A D | global_prng.cpp | 77 const size_t entropy_added = fbl::max(hex_len / 2, sizeof(digest)); in IntegrateCmdlineEntropy()
|
| /kernel/arch/arm64/ |
| A D | rules.mk | 91 GLOBAL_LDFLAGS += -z max-page-size=4096
|
| /kernel/arch/x86/ |
| A D | rules.mk | 120 GLOBAL_LDFLAGS += -z max-page-size=4096
|
| /kernel/syscalls/ |
| A D | object.cpp | 46 SimpleJobEnumerator(user_out_ptr<zx_koid_t> ptr, size_t max, bool jobs) in SimpleJobEnumerator() argument 47 : jobs_(jobs), ptr_(ptr), max_(max) {} in SimpleJobEnumerator() 225 size_t max = buffer_size / sizeof(zx_koid_t); in sys_object_get_info() local 227 SimpleJobEnumerator sje(koids, max, topic == ZX_INFO_JOB_CHILDREN); in sys_object_get_info()
|
| A D | ddk_pci.cpp | 306 ASSERT(arg->addr_windows[0].base < fbl::numeric_limits<paddr_t>::max()); in sys_pci_init() 641 fbl::max<uint64_t>(info->size, PAGE_SIZE), &vmo); in sys_pci_get_bar()
|
| /kernel/vm/ |
| A D | vm_address_region.cpp | 701 const vaddr_t unmap_base = fbl::max(curr->base(), base); in UnmapInternalLocked() 832 const vaddr_t protect_base = fbl::max(itr->base(), base); in Protect() 928 align_pow2 = fbl::max(align_pow2, static_cast<uint8_t>(PAGE_SIZE_SHIFT)); in NonCompactRandomizedRegionAllocatorLocked() 998 align_pow2 = fbl::max(align_pow2, static_cast<uint8_t>(PAGE_SIZE_SHIFT)); in CompactRandomizedRegionAllocatorLocked()
|
| /kernel/lib/memory_limit/ |
| A D | memory_limit.cpp | 105 uintptr_t start = fbl::max(range_base, prev.end); in memory_limit_add_range()
|
| /kernel/lib/counters/ |
| A D | counters.cpp | 153 if (desc->type == k_counter_type::max) { in dump_counter()
|
| /kernel/dev/pcie/ |
| A D | pcie_device.cpp | 551 if (inclusive_end <= fbl::numeric_limits<uint32_t>::max()) { in AllocateBarLocked() 554 if (info.bus_addr > fbl::numeric_limits<uint32_t>::max()) { in AllocateBarLocked()
|
| A D | pcie_bus_driver.cpp | 430 constexpr uint64_t U32_MAX = fbl::numeric_limits<uint32_t>::max(); in AddSubtractBusRegion()
|