Home
last modified time | relevance | path

Searched refs:DEBUG_ASSERT (Results 1 – 25 of 166) sorted by relevance

1234567

/kernel/kernel/
A Dwait.cpp64 DEBUG_ASSERT(arch_ints_disabled()); in wait_queue_validate_queue()
65 DEBUG_ASSERT(spin_lock_held(&thread_lock)); in wait_queue_validate_queue()
233 DEBUG_ASSERT(arch_ints_disabled()); in wait_queue_block_etc()
320 DEBUG_ASSERT(arch_ints_disabled()); in wait_queue_wake_one()
357 DEBUG_ASSERT(arch_ints_disabled()); in wait_queue_dequeue_one()
390 DEBUG_ASSERT(arch_ints_disabled()); in wait_queue_wake_all()
417 DEBUG_ASSERT(ret > 0); in wait_queue_wake_all()
418 DEBUG_ASSERT(wait->count == 0); in wait_queue_wake_all()
434 DEBUG_ASSERT(arch_ints_disabled()); in wait_queue_is_empty()
473 DEBUG_ASSERT(arch_ints_disabled()); in wait_queue_unblock_thread()
[all …]
A Ddpc.cpp21 DEBUG_ASSERT(dpc); in dpc_queue()
22 DEBUG_ASSERT(dpc->func); in dpc_queue()
46 DEBUG_ASSERT(dpc); in dpc_queue_thread_locked()
47 DEBUG_ASSERT(dpc->func); in dpc_queue_thread_locked()
69 DEBUG_ASSERT(cpu_id < SMP_MAX_CPUS); in dpc_shutdown()
91 DEBUG_ASSERT(status == ZX_OK); in dpc_shutdown()
92 DEBUG_ASSERT(ret == 0); in dpc_shutdown()
96 DEBUG_ASSERT(cpu_id < SMP_MAX_CPUS); in dpc_shutdown_transition_off_cpu()
102 DEBUG_ASSERT(cpu_id != cur_cpu); in dpc_shutdown_transition_off_cpu()
105 DEBUG_ASSERT(percpu[cpu_id].dpc_stop); in dpc_shutdown_transition_off_cpu()
[all …]
A Dsched.cpp238 DEBUG_ASSERT(t->state == THREAD_READY); in remove_from_run_queue()
266 DEBUG_ASSERT(newthread); in sched_get_top_thread()
293 DEBUG_ASSERT(spin_lock_held(&thread_lock)); in sched_block()
314 DEBUG_ASSERT(cpu != 0); in find_cpu_and_insert()
334 DEBUG_ASSERT(t->magic == THREAD_MAGIC); in sched_unblock()
355 DEBUG_ASSERT(list); in sched_unblock_list()
366 DEBUG_ASSERT(!thread_is_idle(t)); in sched_unblock_list()
387 DEBUG_ASSERT(thread_is_idle(t)); in sched_unblock_idle()
527 DEBUG_ASSERT(!local_resched); in sched_transition_off_cpu()
783 DEBUG_ASSERT(arch_ints_disabled()); in sched_resched_internal()
[all …]
A Dmutex.cpp46 DEBUG_ASSERT(m->magic == MUTEX_MAGIC); in mutex_destroy()
47 DEBUG_ASSERT(!arch_blocking_disallowed()); in mutex_destroy()
67 DEBUG_ASSERT(m->magic == MUTEX_MAGIC); in mutex_acquire()
68 DEBUG_ASSERT(!arch_blocking_disallowed()); in mutex_acquire()
119 DEBUG_ASSERT(ct == mutex_holder(m)); in mutex_acquire()
159 DEBUG_ASSERT(ct->mutexes_held >= 0); in mutex_release_internal()
213 DEBUG_ASSERT(m->magic == MUTEX_MAGIC); in mutex_release()
214 DEBUG_ASSERT(!arch_blocking_disallowed()); in mutex_release()
221 DEBUG_ASSERT(m->magic == MUTEX_MAGIC); in mutex_release_thread_locked()
222 DEBUG_ASSERT(!arch_blocking_disallowed()); in mutex_release_thread_locked()
[all …]
A Devent.cpp58 DEBUG_ASSERT(e->magic == EVENT_MAGIC); in event_destroy()
74 DEBUG_ASSERT(e->magic == EVENT_MAGIC); in event_wait_worker()
75 DEBUG_ASSERT(!arch_blocking_disallowed()); in event_wait_worker()
160 DEBUG_ASSERT(e->magic == EVENT_MAGIC); in event_signal_internal()
233 DEBUG_ASSERT(arch_ints_disabled()); in event_signal_thread_locked()
234 DEBUG_ASSERT(spin_lock_held(&thread_lock)); in event_signal_thread_locked()
252 DEBUG_ASSERT(e->magic == EVENT_MAGIC); in event_unsignal()
A Dthread.cpp221 DEBUG_ASSERT(status == ZX_OK); in free_thread_resources()
250 DEBUG_ASSERT(t->magic == THREAD_MAGIC); in thread_set_real_time()
274 DEBUG_ASSERT(t->magic == THREAD_MAGIC); in thread_resume()
325 DEBUG_ASSERT(!thread_is_idle(t)); in thread_suspend()
504 DEBUG_ASSERT(status == ZX_OK); in thread_exit_locked()
531 DEBUG_ASSERT(current_thread != t); in thread_forget()
654 DEBUG_ASSERT(arch_ints_disabled()); in check_kill_signal()
970 DEBUG_ASSERT(arch_ints_disabled()); in thread_construct_first()
1058 DEBUG_ASSERT(arch_ints_disabled()); in thread_become_idle()
1103 DEBUG_ASSERT(arch_ints_disabled()); in thread_secondary_cpu_init_early()
[all …]
/kernel/dev/pcie/
A Dpcie_irqs.cpp145 DEBUG_ASSERT(dev); in Handler()
284 DEBUG_ASSERT(!mask || in MaskUnmaskMsiIrqLocked()
329 DEBUG_ASSERT(irq_.msi); in MaskAllMsiVectors()
343 DEBUG_ASSERT(irq_.msi); in SetMsiTarget()
386 DEBUG_ASSERT(irq_.msi); in SetMsiMultiMessageEnb()
392 DEBUG_ASSERT(log2 <= 5); in SetMsiMultiMessageEnb()
493 DEBUG_ASSERT(irq_.msi); in MsiIrqHandler()
520 DEBUG_ASSERT(arg); in MsiIrqHandlerThunk()
536 DEBUG_ASSERT(out_caps); in QueryIrqModeCapabilitiesLocked()
593 DEBUG_ASSERT(out_info); in GetIrqModeLocked()
[all …]
A Dpcie_upstream_node.cpp34 DEBUG_ASSERT(!downstream_[i]); in ~PcieUpstreamNode()
70 DEBUG_ASSERT(driver().RescanLockIsHeld()); in ScanDownstream()
92 DEBUG_ASSERT(ndx < fbl::count_of(downstream_)); in ScanDownstream()
124 DEBUG_ASSERT(cfg); in ScanDevice()
125 DEBUG_ASSERT(dev_id < PCIE_MAX_DEVICES_PER_BUS); in ScanDevice()
126 DEBUG_ASSERT(func_id < PCIE_MAX_FUNCTIONS_PER_DEVICE); in ScanDevice()
127 DEBUG_ASSERT(driver().RescanLockIsHeld()); in ScanDevice()
130 DEBUG_ASSERT(ndx < fbl::count_of(downstream_)); in ScanDevice()
131 DEBUG_ASSERT(downstream_[ndx] == nullptr); in ScanDevice()
A Dpcie_device.cpp90 DEBUG_ASSERT(!upstream_); in ~PcieDevice()
91 DEBUG_ASSERT(!plugged_in_); in ~PcieDevice()
122 DEBUG_ASSERT(dev_lock_.IsHeld()); in InitLocked()
123 DEBUG_ASSERT(cfg_ == nullptr); in InitLocked()
216 DEBUG_ASSERT(ZX_OK == ret); in DoFunctionLevelReset()
360 DEBUG_ASSERT(dev_lock_.IsHeld()); in ModifyCmdLocked()
371 DEBUG_ASSERT(cfg_); in ProbeBarsLocked()
372 DEBUG_ASSERT(dev_lock_.IsHeld()); in ProbeBarsLocked()
411 DEBUG_ASSERT(cfg_); in ProbeBarLocked()
505 DEBUG_ASSERT(plugged_in_); in AllocateBarsLocked()
[all …]
/kernel/arch/x86/
A Duser_copy.cpp30 DEBUG_ASSERT(patch->dest_size == kSize); in fill_out_stac_instruction()
31 DEBUG_ASSERT(kStacInstructionEnd - kStacInstruction == kSize); in fill_out_stac_instruction()
41 DEBUG_ASSERT(patch->dest_size == kSize); in fill_out_clac_instruction()
42 DEBUG_ASSERT(kClacInstructionEnd - kClacInstruction == kSize); in fill_out_clac_instruction()
61 DEBUG_ASSERT(x86_get_cr0() & X86_CR0_WP); in can_access()
66 DEBUG_ASSERT(!ac_flag()); in arch_copy_from_user()
75 DEBUG_ASSERT(!ac_flag()); in arch_copy_from_user()
80 DEBUG_ASSERT(!ac_flag()); in arch_copy_to_user()
89 DEBUG_ASSERT(!ac_flag()); in arch_copy_to_user()
A Dioport.cpp27 DEBUG_ASSERT(arch_ints_disabled()); in x86_reset_tss_io_bitmap()
35 DEBUG_ASSERT(arch_ints_disabled()); in x86_clear_tss_io_bitmap()
40 DEBUG_ASSERT(extent.bitoff + extent.bitlen <= IO_BITMAP_BITS); in x86_clear_tss_io_bitmap()
54 DEBUG_ASSERT(arch_ints_disabled()); in x86_set_tss_io_bitmap()
59 DEBUG_ASSERT(extent.bitoff + extent.bitlen <= IO_BITMAP_BITS); in x86_set_tss_io_bitmap()
85 DEBUG_ASSERT(arch_ints_disabled()); in UpdateTask()
103 DEBUG_ASSERT(!arch_ints_disabled()); in SetIoBitmap()
143 DEBUG_ASSERT(bitmap_); in SetIoBitmap()
A Dmp.cpp81 DEBUG_ASSERT(cpu_count >= 1); in x86_allocate_ap_structures()
111 DEBUG_ASSERT(bootstrap_ap == apic_bsp_id()); in x86_allocate_ap_structures()
118 DEBUG_ASSERT(apic_idx != (uint)(cpu_count - 1)); in x86_allocate_ap_structures()
136 DEBUG_ASSERT(percpu->cpu_num == cpu_num); in x86_init_percpu()
137 DEBUG_ASSERT(percpu->direct == percpu); in x86_init_percpu()
244 DEBUG_ASSERT(percpu->cpu_num == 0); in x86_set_local_apic_id()
262 DEBUG_ASSERT(thread_lock_held()); in arch_mp_reschedule()
292 DEBUG_ASSERT(thread_lock_held()); in arch_prepare_current_cpu_idle_state()
421 DEBUG_ASSERT(dst_apic_id < UINT8_MAX); in arch_mp_cpu_unplug()
433 DEBUG_ASSERT(cpu_id != 0); in arch_mp_cpu_hotplug()
[all …]
/kernel/object/
A Dexcp_port.cpp62 DEBUG_ASSERT(port_ != nullptr); in ExceptionPort()
68 DEBUG_ASSERT(port_ == nullptr); in ~ExceptionPort()
69 DEBUG_ASSERT(!InContainer()); in ~ExceptionPort()
70 DEBUG_ASSERT(!IsBoundLocked()); in ~ExceptionPort()
80 DEBUG_ASSERT(!IsBoundLocked()); in SetTarget()
81 DEBUG_ASSERT(target != nullptr); in SetTarget()
82 DEBUG_ASSERT(port_ != nullptr); in SetTarget()
93 DEBUG_ASSERT(!IsBoundLocked()); in SetTarget()
95 DEBUG_ASSERT(port_ != nullptr); in SetTarget()
106 DEBUG_ASSERT(!IsBoundLocked()); in SetTarget()
[all …]
A Dfutex_context.cpp26 DEBUG_ASSERT(futex_table_.is_empty()); in ~FutexContext()
70 DEBUG_ASSERT(!node.IsInQueue()); in FutexWait()
112 DEBUG_ASSERT((owner_action != OwnerAction::ASSIGN_WOKEN) || (wake_count == 1)); in FutexWake()
129 DEBUG_ASSERT(node->GetKey() == futex_key); in FutexWake()
135 DEBUG_ASSERT(remaining_waiters->GetKey() == futex_key); in FutexWake()
151 DEBUG_ASSERT((owner_action != OwnerAction::ASSIGN_WOKEN) || (wake_count == 1)); in FutexRequeue()
202 DEBUG_ASSERT(requeue_head->GetKey() == requeue_key); in FutexRequeue()
209 DEBUG_ASSERT(node->GetKey() == wake_key); in FutexRequeue()
222 DEBUG_ASSERT(lock_.lock().IsHeld()); in QueueNodesLocked()
238 DEBUG_ASSERT(lock_.lock().IsHeld()); in UnqueueNodeLocked()
[all …]
A Dpci_device_dispatcher.cpp63 DEBUG_ASSERT(device_); in ~PciDeviceDispatcher()
91 DEBUG_ASSERT(device_); in EnableBusMaster()
102 DEBUG_ASSERT(device_); in EnablePio()
113 DEBUG_ASSERT(device_ && device_); in EnableMmio()
122 DEBUG_ASSERT(device_); in GetBar()
129 DEBUG_ASSERT(device_); in GetConfig()
147 DEBUG_ASSERT(device_); in ResetDevice()
158 DEBUG_ASSERT(device_); in MapInterrupt()
187 DEBUG_ASSERT(device_); in QueryIrqModeCaps()
201 DEBUG_ASSERT(device_); in SetIrqMode()
/kernel/lib/libc/string/arch/x86/
A Dselector.cpp29 DEBUG_ASSERT(patch->dest_size == kSize); in x86_memcpy_select()
30 DEBUG_ASSERT(reinterpret_cast<uintptr_t>(patch->dest_addr) == in x86_memcpy_select()
39 DEBUG_ASSERT(offset >= -128 && offset <= 127); in x86_memcpy_select()
51 DEBUG_ASSERT(patch->dest_size == kSize); in x86_memset_select()
52 DEBUG_ASSERT(reinterpret_cast<uintptr_t>(patch->dest_addr) == in x86_memset_select()
61 DEBUG_ASSERT(offset >= -128 && offset <= 127); in x86_memset_select()
/kernel/lib/pow2_range_allocator/
A Dpow2_range_allocator.cpp33 DEBUG_ASSERT(state); in p2ra_get_unused_block()
56 DEBUG_ASSERT(state); in p2ra_return_free_block()
57 DEBUG_ASSERT(block); in p2ra_return_free_block()
111 DEBUG_ASSERT(merge_allowed); in p2ra_return_free_block()
159 DEBUG_ASSERT(state); in p2ra_free()
160 DEBUG_ASSERT(state->bucket_count); in p2ra_free()
258 DEBUG_ASSERT(csize); in p2ra_add_range()
327 DEBUG_ASSERT(bucket >= orig_bucket); in p2ra_allocate_range()
342 DEBUG_ASSERT(bucket); in p2ra_allocate_range()
364 DEBUG_ASSERT(state); in p2ra_free_range()
[all …]
/kernel/vm/
A Dpmm_node.cpp45 DEBUG_ASSERT(arch_ints_disabled()); in AddArena()
49 DEBUG_ASSERT(info->size > 0); in AddArena()
102 DEBUG_ASSERT(free_count_ > 0); in AllocPage()
105 DEBUG_ASSERT(page->is_free()); in AllocPage()
130 DEBUG_ASSERT(list); in AllocPages()
170 DEBUG_ASSERT(list); in AllocRange()
230 DEBUG_ASSERT(pa); in AllocContiguous()
231 DEBUG_ASSERT(list); in AllocContiguous()
273 DEBUG_ASSERT(!page->is_free()); in FreePageLocked()
300 DEBUG_ASSERT(list); in FreeListLocked()
[all …]
A Dvm_mapping.cpp125 DEBUG_ASSERT(object_); in ProtectLocked()
256 DEBUG_ASSERT(parent_); in UnmapLocked()
268 DEBUG_ASSERT(object_); in UnmapLocked()
335 DEBUG_ASSERT(object_); in UnmapVmoRangeLocked()
339 DEBUG_ASSERT(IS_PAGE_ALIGNED(len)); in UnmapVmoRangeLocked()
340 DEBUG_ASSERT(len > 0); in UnmapVmoRangeLocked()
401 DEBUG_ASSERT(!aborted_); in Append()
482 DEBUG_ASSERT(object_); in MapRange()
577 DEBUG_ASSERT(size_ == 0); in DestroyLocked()
733 DEBUG_ASSERT(mapped == 1); in PageFault()
[all …]
/kernel/arch/x86/page_tables/
A Dpage_tables.cpp83 DEBUG_ASSERT(level != 0); in lower_level()
115 DEBUG_ASSERT(count == 0); in ~PendingTlbInvalidation()
260 DEBUG_ASSERT(pte); in UpdateEntry()
279 DEBUG_ASSERT(pte); in UnmapEntry()
307 DEBUG_ASSERT(page_ptr); in _map_alloc_page()
377 DEBUG_ASSERT(table); in GetMapping()
378 DEBUG_ASSERT(ret_level); in GetMapping()
379 DEBUG_ASSERT(mapping); in GetMapping()
435 DEBUG_ASSERT(table); in RemoveMapping()
578 DEBUG_ASSERT(table); in AddMapping()
[all …]
/kernel/lib/crypto/entropy/
A Dcollector.cpp18 DEBUG_ASSERT(entropy_per_1000_bytes_ > 0); in Collector()
19 DEBUG_ASSERT(entropy_per_1000_bytes_ <= 8000); in Collector()
27 DEBUG_ASSERT(bits <= (1024u * 1024u)); in BytesNeeded()
/kernel/lib/cbuf/
A Dcbuf.cpp32 DEBUG_ASSERT(cbuf); in cbuf_initialize_etc()
33 DEBUG_ASSERT(len > 0); in cbuf_initialize_etc()
34 DEBUG_ASSERT(fbl::is_pow2(len)); in cbuf_initialize_etc()
52 DEBUG_ASSERT(cbuf); in cbuf_write_char()
74 DEBUG_ASSERT(cbuf); in cbuf_read_char()
75 DEBUG_ASSERT(c); in cbuf_read_char()
/kernel/dev/pcie/include/dev/
A Dpcie_platform.h73 DEBUG_ASSERT(false); in AllocMsiBlock()
87 DEBUG_ASSERT(false); in FreeMsiBlock()
106 DEBUG_ASSERT(false); in RegisterMsiHandler()
123 DEBUG_ASSERT(false); in MaskUnmaskMsi()
/kernel/lib/watchdog/
A Dwatchdog.cpp35 DEBUG_ASSERT(false); in watchdog_timer_callback()
39 DEBUG_ASSERT(NULL != dog); in watchdog_init()
40 DEBUG_ASSERT(ZX_TIME_INFINITE != timeout); in watchdog_init()
54 DEBUG_ASSERT((NULL != dog) && (WATCHDOG_MAGIC == dog->magic)); in watchdog_set_enabled()
72 DEBUG_ASSERT((NULL != dog) && (WATCHDOG_MAGIC == dog->magic)); in watchdog_pet()
95 DEBUG_ASSERT(ZX_TIME_INFINITE != timeout); in watchdog_hw_init()
/kernel/dev/interrupt/arm_gic/v2/
A Darm_gicv2m_msi.cpp123 DEBUG_ASSERT(ret == ZX_OK); in arm_gicv2m_msi_alloc_block()
150 DEBUG_ASSERT(block); in arm_gicv2m_msi_free_block()
151 DEBUG_ASSERT(block->allocated); in arm_gicv2m_msi_free_block()
163 DEBUG_ASSERT(block && block->allocated); in arm_gicv2m_msi_register_handler()
164 DEBUG_ASSERT(msi_id < block->num_irq); in arm_gicv2m_msi_register_handler()
166 DEBUG_ASSERT(status == ZX_OK); in arm_gicv2m_msi_register_handler()
170 DEBUG_ASSERT(block && block->allocated); in arm_gicv2m_msi_mask_unmask()
171 DEBUG_ASSERT(msi_id < block->num_irq); in arm_gicv2m_msi_mask_unmask()

Completed in 49 milliseconds

1234567