| /kernel/lib/pci/include/lib/pci/ |
| A D | pio.h | 12 constexpr uint32_t PciBdfRawAddr(uint8_t bus, uint8_t dev, uint8_t func, uint8_t off) { in PciBdfRawAddr() argument 15 ((func & 0x7) << 8) | // bifs 10-8 func in PciBdfRawAddr() 20 constexpr uint32_t PciBdfAddr(uint8_t bus, uint8_t dev, uint8_t func, uint8_t off) { in PciBdfAddr() argument 22 return PciBdfRawAddr(bus, dev, func, off) & ~0x3; in PciBdfAddr() 27 zx_status_t PioCfgRead(uint8_t bus, uint8_t dev, uint8_t func, uint8_t offset, 32 zx_status_t PioCfgWrite(uint8_t bus, uint8_t dev, uint8_t func, uint8_t offset,
|
| /kernel/lib/console/include/lib/ |
| A D | console.h | 57 #define STATIC_COMMAND(command_str, help_str, func) {command_str, help_str, func, CMD_AVAIL_NORMAL}, argument 58 …fine STATIC_COMMAND_MASKED(command_str, help_str, func, availability_mask) {command_str, help_str,… argument
|
| /kernel/lib/libc/ |
| A D | eabi.c | 44 extern int __cxa_atexit(void (*func)(void *), void *arg, void *d); 46 int __aeabi_atexit(void *arg, void (*func)(void *), void *d); 47 int __aeabi_atexit(void *arg, void (*func)(void *), void *d) in __aeabi_atexit() 49 return __cxa_atexit(func, arg, d); in __aeabi_atexit()
|
| A D | atexit.c | 10 int atexit(void (*func)(void)); 11 int atexit(void (*func)(void)) in atexit()
|
| /kernel/lib/pci/ |
| A D | pio.cpp | 49 zx_status_t PioCfgRead(uint8_t bus, uint8_t dev, uint8_t func, in PioCfgRead() argument 51 return PioCfgRead(PciBdfRawAddr(bus, dev, func, offset), val, width); in PioCfgRead() 75 zx_status_t PioCfgWrite(uint8_t bus, uint8_t dev, uint8_t func, in PioCfgWrite() argument 77 return PioCfgWrite(PciBdfRawAddr(bus, dev, func, offset), val, width); in PioCfgWrite() 85 zx_status_t PioCfgRead(uint8_t bus, uint8_t dev, uint8_t func, uint8_t offset, 94 zx_status_t PioCfgWrite(uint8_t bus, uint8_t dev, uint8_t func, uint8_t offset,
|
| /kernel/include/kernel/ |
| A D | dpc.h | 24 dpc_func_t func; member 31 .func = 0, \
|
| A D | mp.h | 88 mp_ipi_task_func_t func; member
|
| /kernel/kernel/ |
| A D | dpc.cpp | 22 DEBUG_ASSERT(dpc->func); in dpc_queue() 47 DEBUG_ASSERT(dpc->func); in dpc_queue_thread_locked() 154 dpc_local.func = NULL; in dpc_thread() 162 if (dpc_local.func) { in dpc_thread() 163 dpc_local.func(&dpc_local); in dpc_thread()
|
| A D | mp.cpp | 149 sync_tasks[i].func = mp_sync_task; in mp_sync_exec() 409 task->func(task->context); in mp_mbx_generic_irq()
|
| /kernel/vm/include/vm/ |
| A D | vm_page_list.h | 34 zx_status_t ForEveryPage(T func, uint64_t start_offset, uint64_t end_offset) { in ForEveryPage() argument 48 zx_status_t status = func(pages_[i], obj_offset_ + i * PAGE_SIZE); in ForEveryPage() 59 zx_status_t ForEveryPage(T func, uint64_t start_offset, uint64_t end_offset) const { in ForEveryPage() argument 73 zx_status_t status = func(pages_[i], obj_offset_ + i * PAGE_SIZE); in ForEveryPage()
|
| A D | vm_object.h | 209 static zx_status_t ForEach(T func) { in ForEach() argument 212 zx_status_t s = func(iter); in ForEach()
|
| A D | vm_address_region.h | 343 void ForEachGap(F func, uint8_t align_pow2);
|
| /kernel/include/ |
| A D | platform.h | 115 … void (*func)(const void* data, size_t off, size_t len, void* cookie));
|
| /kernel/object/include/object/ |
| A D | resource_dispatcher.h | 57 static zx_status_t ForEachResource(T func, ResourceList* resource_list = &static_resource_list_) 60 return ForEachResourceLocked(func, resource_list); in TA_EXCL()
|
| A D | job_dispatcher.h | 117 static zx_status_t ForEachJob(T func) { in ForEachJob() argument 120 zx_status_t s = func(&job); in ForEachJob() 164 T& children, zx_status_t* status, Fn func) TA_REQ(get_lock());
|
| A D | process_dispatcher.h | 170 zx_status_t ForEachHandle(T func) const { in ForEachHandle() argument 174 zx_status_t s = func(MapHandleToValue(&handle), handle.rights(), in ForEachHandle()
|
| /kernel/syscalls/ |
| A D | ddk_pci.cpp | 98 for (size_t func = 0; func < fbl::count_of((*lut)[dev]); ++func) { in pci_irq_swizzle_lut_remove_irq() local 99 for (size_t pin = 0; pin < fbl::count_of((*lut)[dev][func]); ++pin) { in pci_irq_swizzle_lut_remove_irq() 100 uint32_t* assigned_irq = &(*lut)[dev][func][pin]; in pci_irq_swizzle_lut_remove_irq() 538 zx_status_t sys_pci_cfg_pio_rw(zx_handle_t handle, uint8_t bus, uint8_t dev, uint8_t func, in sys_pci_cfg_pio_rw() argument 549 status = Pci::PioCfgWrite(bus, dev, func, offset, val_, width); in sys_pci_cfg_pio_rw() 551 status = Pci::PioCfgRead(bus, dev, func, offset, &val_, width); in sys_pci_cfg_pio_rw() 787 zx_status_t sys_pci_cfg_pio_rw(zx_handle_t handle, uint8_t bus, uint8_t dev, uint8_t func, in sys_pci_cfg_pio_rw() argument
|
| /kernel/lib/unittest/ |
| A D | unittest.cpp | 55 const char* func, in unittest_expect_bytes() argument 61 func, line, msg, in unittest_expect_bytes()
|
| /kernel/platform/pc/ |
| A D | platform.cpp | 334 … void (*func)(const void* data, size_t, size_t len, void* cookie)) { in nvram_recover_crashlog() 354 func(static_cast<char*>(nvram) + sizeof(hdr), 0, len, cookie); in nvram_recover_crashlog() 431 void (*func)(const void* data, size_t, size_t len, void* cookie)) { in platform_recover_crashlog() 433 return nvram_recover_crashlog(len, cookie, func); in platform_recover_crashlog() 436 func(last_crashlog, 0, last_crashlog_len, cookie); in platform_recover_crashlog()
|
| /kernel/dev/iommu/intel/ |
| A D | device_context.cpp | 282 LTRACEF("Map(%02x:%02x.%1x): -> [%p, %p) %#x\n", bdf_.bus(), bdf_.dev(), bdf_.func(), in SecondLevelMapDiscontiguous() 339 LTRACEF("Map(%02x:%02x.%1x): [%p, %p) -> %p %#x\n", bdf_.bus(), bdf_.dev(), bdf_.func(), in SecondLevelMapContiguous() 404 LTRACEF("Unmap(%02x:%02x.%1x): [%p, %p)\n", bdf_.bus(), bdf_.dev(), bdf_.func(), in SecondLevelUnmap()
|
| /kernel/object/ |
| A D | job_dispatcher.cpp | 58 T& children, zx_status_t* result, Fn func) { in ForEachChildInLocked() argument 92 *result = func(cref); in ForEachChildInLocked()
|
| /kernel/platform/generic-arm/ |
| A D | platform.cpp | 519 void (*func)(const void* data, size_t, size_t len, void* cookie)) { in platform_recover_crashlog() 539 func(static_cast<char*>(nvram) + sizeof(hdr), 0, len, cookie); in platform_recover_crashlog()
|
| /kernel/lib/unittest/include/lib/unittest/ |
| A D | unittest.h | 290 const char* func,
|
| /kernel/vm/ |
| A D | vm_address_region.cpp | 883 void VmAddressRegion::ForEachGap(F func, uint8_t align_pow2) { in ForEachGap() argument 893 if (!func(prev_region_end, gap)) { in ForEachGap() 905 func(prev_region_end, gap); in ForEachGap()
|
| /kernel/tests/ |
| A D | thread_tests.cpp | 692 static void spin_while(zx_time_t t, T func) { in spin_while() argument 696 func(); in spin_while()
|