| /f-stack/freebsd/net/ |
| H A D | bpf_zerocopy.c | 248 KASSERT(d->bd_bufmode == BPF_BUFMODE_ZBUF, in bpf_zerocopy_append_bytes() 277 KASSERT(poffset < PAGE_SIZE, in bpf_zerocopy_append_bytes() 300 KASSERT(d->bd_bufmode == BPF_BUFMODE_ZBUF, in bpf_zerocopy_append_mbuf() 322 KASSERT(page < zb->zb_numpages, in bpf_zerocopy_append_mbuf() 325 KASSERT(m != NULL, in bpf_zerocopy_append_mbuf() 338 KASSERT(poffset < PAGE_SIZE, in bpf_zerocopy_append_mbuf() 361 KASSERT(d->bd_bufmode == BPF_BUFMODE_ZBUF, in bpf_zerocopy_buffull() 388 KASSERT(d->bd_bufmode == BPF_BUFMODE_ZBUF, in bpf_zerocopy_bufheld() 411 KASSERT(d->bd_bufmode == BPF_BUFMODE_ZBUF, in bpf_zerocopy_buf_reclaimed() 414 KASSERT(d->bd_fbuf != NULL, in bpf_zerocopy_buf_reclaimed() [all …]
|
| H A D | netisr.c | 399 KASSERT(nhp->nh_name != NULL, in netisr_register() 424 KASSERT(proto < NETISR_MAXPROT, in netisr_register() 492 KASSERT(proto < NETISR_MAXPROT, in netisr_clearqdrops() 525 KASSERT(proto < NETISR_MAXPROT, in netisr_getqdrops() 556 KASSERT(proto < NETISR_MAXPROT, in netisr_getqlimit() 588 KASSERT(proto < NETISR_MAXPROT, in netisr_setqlimit() 648 KASSERT(proto < NETISR_MAXPROT, in netisr_unregister() 689 KASSERT(proto < NETISR_MAXPROT, in netisr_register_vnet() 922 KASSERT(local_npw.nw_len == 0, in netisr_process_workstream_proto() 949 KASSERT(nws_count == 1, in swi_net() [all …]
|
| H A D | raw_usrreq.c | 137 KASSERT(sotorawcb(so) != NULL, ("raw_uabort: rp == NULL")); in raw_uabort() 146 KASSERT(sotorawcb(so) != NULL, ("raw_uabort: rp == NULL")); in raw_uclose() 162 KASSERT(sotorawcb(so) != NULL, ("raw_uattach: so_pcb == NULL")); in raw_uattach() 194 KASSERT(rp != NULL, ("raw_udetach: rp == NULL")); in raw_udetach() 203 KASSERT(sotorawcb(so) != NULL, ("raw_udisconnect: rp == NULL")); in raw_udisconnect() 214 KASSERT(sotorawcb(so) != NULL, ("raw_upeeraddr: rp == NULL")); in raw_upeeraddr() 227 KASSERT(sotorawcb(so) != NULL, ("raw_usend: rp == NULL")); in raw_usend() 250 KASSERT(sotorawcb(so) != NULL, ("raw_ushutdown: rp == NULL")); in raw_ushutdown() 260 KASSERT(sotorawcb(so) != NULL, ("raw_usockaddr: rp == NULL")); in raw_usockaddr()
|
| /f-stack/freebsd/arm64/arm64/ |
| H A D | vfp.c | 171 KASSERT(pcb != NULL, ("NULL vfp pcb")); in vfp_save_state() 192 KASSERT(PCPU_GET(fpcurthread) == td, in vfp_save_state() 276 KASSERT((flags & FPU_KERN_NOCTX) != 0 || ctx != NULL, in fpu_kern_enter() 280 KASSERT((pcb->pcb_fpflags & PCB_FP_NOSAVE) == 0, in fpu_kern_enter() 304 KASSERT((pcb->pcb_fpflags & PCB_FP_KERN) != 0 || in fpu_kern_enter() 326 KASSERT(PCPU_GET(fpcurthread) == NULL, in fpu_kern_leave() 334 KASSERT((ctx->flags & FPU_KERN_CTX_INUSE) != 0, in fpu_kern_leave() 352 KASSERT((pcb->pcb_fpflags & PCB_FP_KERN) != 0, in fpu_kern_leave() 364 KASSERT((curthread->td_pflags & TDP_KTHREAD) != 0, in fpu_kern_thread() 366 KASSERT(pcb->pcb_fpusaved == &pcb->pcb_fpustate, in fpu_kern_thread() [all …]
|
| /f-stack/freebsd/vm/ |
| H A D | vm_pager.c | 269 KASSERT(count > 0, ("%s: 0 count", __func__)); in vm_pager_assert_in() 272 KASSERT(i != 0 && i != count - 1, in vm_pager_assert_in() 277 KASSERT(!pmap_page_is_mapped(m[i]), in vm_pager_assert_in() 279 KASSERT(m[i]->valid != VM_PAGE_BITS_ALL, in vm_pager_assert_in() 281 KASSERT(m[i]->dirty == 0, in vm_pager_assert_in() 283 KASSERT(m[i]->object == object, in vm_pager_assert_in() 285 KASSERT(m[i]->pindex == m[0]->pindex + i, in vm_pager_assert_in() 318 KASSERT(m[i] == vm_page_lookup(object, pindex++), in vm_pager_get_pages() 442 KASSERT(bp->b_vp == NULL, ("pbgetvp: not free")); in pbgetvp() 475 KASSERT(bp->b_vp != NULL, ("pbrelvp: NULL")); in pbrelvp() [all …]
|
| H A D | vm_page.c | 984 KASSERT(x != VPB_FREED, in vm_page_sunbusy() 1522 KASSERT(m->object == NULL, in vm_page_insert_after() 1858 KASSERT(mret == mold, in vm_page_replace_hold() 3537 KASSERT(queue < PQ_COUNT, in vm_pqbatch_process_page() 3938 KASSERT(old > 0, in vm_page_wire_mapped() 4260 KASSERT(old != 0, in vm_page_try_blocked_op() 4592 KASSERT((allocflags & in vm_page_grab_valid() 4699 KASSERT((allocflags & in vm_page_grab_valid_unlocked() 4767 KASSERT(count > 0, in vm_page_grab_pages() 4825 KASSERT(count > 0, in vm_page_grab_pages_unlocked() [all …]
|
| H A D | vm_phys.c | 210 KASSERT(p2->end != 0, in vm_phys_fictitious_cmp() 459 KASSERT((end & PAGE_MASK) == 0, in vm_phys_add_seg() 558 KASSERT(flind >= 0, in vm_phys_init() 565 KASSERT(flind >= 0, in vm_phys_init() 571 KASSERT(flind >= 0, in vm_phys_init() 735 KASSERT(pool < VM_NFREEPOOL, in vm_phys_alloc_npages() 834 KASSERT(pool < VM_NFREEPOOL, in vm_phys_alloc_freelist_pages() 836 KASSERT(order < VM_NFREEORDER, in vm_phys_alloc_freelist_pages() 943 KASSERT(start < end, in vm_phys_fictitious_reg_range() 1024 KASSERT(start < end, in vm_phys_fictitious_unreg_range() [all …]
|
| H A D | vm_object.c | 184 KASSERT(object->ref_count == 0, in vm_object_zdtor() 186 KASSERT(TAILQ_EMPTY(&object->memq), in vm_object_zdtor() 191 KASSERT(LIST_EMPTY(&object->rvq), in vm_object_zdtor() 195 KASSERT(!vm_object_busied(object), in vm_object_zdtor() 200 KASSERT(object->shadow_count == 0, in vm_object_zdtor() 203 KASSERT(object->type == OBJT_DEAD, in vm_object_zdtor() 648 KASSERT(object->ref_count > 0, in vm_object_deallocate() 894 KASSERT(p->object == object && in vm_object_terminate_pages() 947 KASSERT(object->ref_count == 0, in vm_object_terminate() 2313 KASSERT(prev_object->charge >= in vm_object_coalesce() [all …]
|
| /f-stack/freebsd/x86/iommu/ |
| H A D | intel_idpgtbl.c | 377 KASSERT(lvl > 0, in domain_pgtbl_map_pte() 402 KASSERT(m->pindex != 0, in domain_pgtbl_map_pte() 475 KASSERT(size >= pg_sz, in domain_map_buf_locked() 520 KASSERT((base & DMAR_PAGE_MASK) == 0, in domain_map_buf() 534 KASSERT(base + size > base, in domain_map_buf() 602 KASSERT(lvl != 0, in domain_unmap_clear_pte() 605 KASSERT(m->pindex != 0, in domain_unmap_clear_pte() 643 KASSERT(base + size > base, in domain_unmap_buf_locked() 662 KASSERT(pte != NULL, in domain_unmap_buf_locked() 672 KASSERT(size >= pg_sz, in domain_unmap_buf_locked() [all …]
|
| /f-stack/freebsd/net80211/ |
| H A D | ieee80211_phy.h | 114 KASSERT(! (rate & 0x80), ("rate %d is basic/mcs?", rate)); in ieee80211_ack_rate() 117 KASSERT(cix != (uint8_t)-1, ("rate %d has no info", rate)); in ieee80211_ack_rate() 129 KASSERT(! (rate & 0x80), ("rate %d is basic/mcs?", rate)); in ieee80211_ctl_rate() 132 KASSERT(cix != (uint8_t)-1, ("rate %d has no info", rate)); in ieee80211_ctl_rate() 144 KASSERT(! (rate & 0x80), ("rate %d is basic/mcs?", rate)); in ieee80211_rate2phytype() 147 KASSERT(rix != (uint8_t)-1, ("rate %d has no info", rate)); in ieee80211_rate2phytype() 159 KASSERT(! (rate & 0x80), ("rate %d is basic/mcs?", rate)); in ieee80211_isratevalid() 176 KASSERT(rix != (uint8_t)-1, ("rate %d has no info", rate)); in ieee80211_ack_duration() 178 KASSERT(rt->info[rix].spAckDuration != 0, in ieee80211_ack_duration() 182 KASSERT(rt->info[rix].lpAckDuration != 0, in ieee80211_ack_duration()
|
| /f-stack/freebsd/kern/ |
| H A D | subr_trap.c | 103 KASSERT((p->p_flag & P_WEXIT) == 0, in userret() 158 KASSERT(td->td_critnest == 0, in userret() 160 KASSERT(td->td_locks == 0, in userret() 162 KASSERT(td->td_rw_rlocks == 0, in userret() 165 KASSERT(td->td_sx_slocks == 0, in userret() 168 KASSERT(td->td_lk_slocks == 0, in userret() 171 KASSERT((td->td_pflags & TDP_NOFAULTING) == 0, in userret() 177 KASSERT(0, ("userret: Returning with sleep disabled")); in userret() 181 KASSERT(td->td_vp_reserved == NULL, in userret() 185 KASSERT(td->td_vslock_sz == 0, in userret() [all …]
|
| H A D | subr_sbuf.c | 62 #define KASSERT(e, m) macro 110 KASSERT(s != NULL, in _assert_sbuf_integrity() 112 KASSERT(s->s_buf != NULL, in _assert_sbuf_integrity() 199 KASSERT(length >= 0, in sbuf_new() 264 KASSERT(uio != NULL, in sbuf_uionew() 266 KASSERT(error != NULL, in sbuf_uionew() 338 KASSERT(pos >= 0, in sbuf_setpos() 340 KASSERT(pos < s->s_size, in sbuf_setpos() 343 KASSERT(!SBUF_ISSECTION(s), in sbuf_setpos() 629 KASSERT(fmt != NULL, in sbuf_vprintf() [all …]
|
| H A D | kern_osd.c | 101 KASSERT(type >= OSD_FIRST && type <= OSD_LAST, ("Invalid type.")); in osd_register() 157 KASSERT(type >= OSD_FIRST && type <= OSD_LAST, ("Invalid type.")); in osd_deregister() 158 KASSERT(slot > 0, ("Invalid slot.")); in osd_deregister() 187 KASSERT(osdm[type].osd_destructors != NULL && in osd_deregister() 211 KASSERT(slot > 0, ("Invalid slot.")); in osd_reserve() 224 KASSERT(slot > 0, ("Invalid slot.")); in osd_set_reserved() 302 KASSERT(slot > 0, ("Invalid slot.")); in osd_get() 334 KASSERT(slot > 0, ("Invalid slot.")); in do_osd_del() 373 KASSERT(osd->osd_slots != NULL, ("realloc() failed")); in do_osd_del() 387 KASSERT(method < osdm[type].osd_nmethods, ("Invalid method.")); in osd_call() [all …]
|
| H A D | kern_synch.c | 153 KASSERT(ident != NULL, ("_sleep: NULL ident")); in _sleep() 156 KASSERT(lock != NULL && lock != &Giant.lock_object, in _sleep() 171 KASSERT(!TD_ON_SLEEPQ(td), ("recursive sleep")); in _sleep() 245 KASSERT(mtx != NULL, ("sleeping without a mutex")); in msleep_spin_sbt() 352 KASSERT(ident != &proc0, in wakeup() 395 KASSERT(_BLOCKCOUNT_WAITERS(old), in _blockcount_wakeup() 420 KASSERT(lock != &Giant.lock_object, in _blockcount_sleep() 500 KASSERT(td->td_critnest == 1 || KERNEL_PANICKED(), in mi_switch() 502 KASSERT((flags & (SW_INVOL | SW_VOL)) != 0, in mi_switch() 569 KASSERT(td->td_proc->p_state != PRS_ZOMBIE, in setrunnable() [all …]
|
| H A D | subr_hash.c | 63 KASSERT(elements > 0, ("%s: bad elements", __func__)); in hashinit_flags() 65 KASSERT((flags & HASH_WAITOK) ^ (flags & HASH_NOWAIT), in hashinit_flags() 99 KASSERT(LIST_EMPTY(hp), ("%s: hashtbl %p not empty " in hashdestroy() 119 KASSERT(elements > 0, ("%s: bad elements", __func__)); in phashinit_flags() 121 KASSERT((flags & HASH_WAITOK) ^ (flags & HASH_NOWAIT), in phashinit_flags()
|
| /f-stack/freebsd/opencrypto/ |
| H A D | crypto.c | 311 KASSERT(cap->cc_sessions == 0, in cap_rele() 313 KASSERT(cap->cc_koperations == 0, in cap_rele() 1241 KASSERT(cb->cb_buf_len >= 0, in cb_sanity() 1245 KASSERT(CRYPTO_HAS_VMPAGE, in cb_sanity() 1247 KASSERT(cb->cb_vm_page_len >= 0, in cb_sanity() 1308 KASSERT(crp->crp_op == in crp_sanity() 1321 KASSERT(crp->crp_op == in crp_sanity() 1355 KASSERT(crp->crp_iv_start == 0, in crp_sanity() 1358 KASSERT(crp->crp_iv_start == 0, in crp_sanity() 1744 KASSERT(crp2 != crp, in crypto_destroyreq() [all …]
|
| /f-stack/freebsd/sys/ |
| H A D | smr.h | 113 KASSERT((smr->c_flags & SMR_LAZY) == 0, in smr_enter() 115 KASSERT(smr->c_seq == 0, in smr_enter() 148 KASSERT((smr->c_flags & SMR_LAZY) == 0, in smr_exit() 150 KASSERT(smr->c_seq != SMR_SEQ_INVALID, in smr_exit() 174 KASSERT((smr->c_flags & SMR_LAZY) != 0, in smr_lazy_enter() 176 KASSERT(smr->c_seq == 0, in smr_lazy_enter() 199 KASSERT((smr->c_flags & SMR_LAZY) != 0, in smr_lazy_exit() 201 KASSERT(smr->c_seq != SMR_SEQ_INVALID, in smr_lazy_exit()
|
| /f-stack/freebsd/x86/isa/ |
| H A D | elcr.c | 98 KASSERT(elcr_found, ("%s: no ELCR was found!", __func__)); in elcr_read_trigger() 99 KASSERT(irq <= 15, ("%s: invalid IRQ %u", __func__, irq)); in elcr_read_trigger() 115 KASSERT(elcr_found, ("%s: no ELCR was found!", __func__)); in elcr_write_trigger() 116 KASSERT(irq <= 15, ("%s: invalid IRQ %u", __func__, irq)); in elcr_write_trigger() 134 KASSERT(elcr_found, ("%s: no ELCR was found!", __func__)); in elcr_resume()
|
| /f-stack/freebsd/security/mac/ |
| H A D | mac_label.c | 86 KASSERT(label->l_flags & MAC_FLAG_INITIALIZED, in mac_destroy_label() 101 KASSERT(size == sizeof(*label), ("mac_labelzone_ctor: wrong size\n")); in mac_labelzone_ctor() 112 KASSERT(size == sizeof(*label), ("mac_labelzone_dtor: wrong size\n")); in mac_labelzone_dtor() 138 KASSERT(l != NULL, ("mac_label_get: NULL label")); in mac_label_get() 147 KASSERT(l != NULL, ("mac_label_set: NULL label")); in mac_label_set()
|
| /f-stack/freebsd/netinet/ |
| H A D | tcp_offload.c | 72 KASSERT(nam->sa_family == AF_INET || nam->sa_family == AF_INET6, in tcp_offload_connect() 136 KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp)); in tcp_offload_input() 148 KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp)); in tcp_offload_output() 172 KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp)); in tcp_offload_rcvd() 183 KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp)); in tcp_offload_ctloutput() 194 KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp)); in tcp_offload_tcp_info() 206 KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp)); in tcp_offload_alloc_tls_session() 217 KASSERT(tod != NULL, ("%s: tp->tod is NULL, tp %p", __func__, tp)); in tcp_offload_detach()
|
| H A D | tcp_pcap.c | 165 KASSERT(th, ("%s: called with th == NULL", __func__)); in tcp_pcap_copy_bestfit() 166 KASSERT(m, ("%s: called with m == NULL", __func__)); in tcp_pcap_copy_bestfit() 167 KASSERT(n, ("%s: called with n == NULL", __func__)); in tcp_pcap_copy_bestfit() 170 KASSERT(n->m_len == 0, ("%s: called with n->m_len=%d (expected 0)", in tcp_pcap_copy_bestfit() 172 KASSERT(n->m_data == M_START(n), in tcp_pcap_copy_bestfit() 268 KASSERT(th, ("%s: called with th == NULL", __func__)); in tcp_pcap_add() 269 KASSERT(m, ("%s: called with m == NULL", __func__)); in tcp_pcap_add() 270 KASSERT(queue, ("%s: called with queue == NULL", __func__)); in tcp_pcap_add() 385 KASSERT((n->m_flags & (M_EXT | M_PKTHDR)) == 0, in tcp_pcap_add() 420 KASSERT(0, ("%s: mbufq was unexpectedly full!", __func__)); in tcp_pcap_add()
|
| H A D | in_jail.c | 191 KASSERT(cred != NULL, ("%s: cred is NULL", __func__)); in prison_get_ip4() 192 KASSERT(ia != NULL, ("%s: ia is NULL", __func__)); in prison_get_ip4() 226 KASSERT(cred != NULL, ("%s: cred is NULL", __func__)); in prison_saddrsel_ip4() 227 KASSERT(ia != NULL, ("%s: ia is NULL", __func__)); in prison_saddrsel_ip4() 291 KASSERT(cred != NULL, ("%s: cred is NULL", __func__)); in prison_local_ip4() 292 KASSERT(ia != NULL, ("%s: ia is NULL", __func__)); in prison_local_ip4() 340 KASSERT(cred != NULL, ("%s: cred is NULL", __func__)); in prison_remote_ip4() 341 KASSERT(ia != NULL, ("%s: ia is NULL", __func__)); in prison_remote_ip4() 412 KASSERT(cred != NULL, ("%s: cred is NULL", __func__)); in prison_check_ip4() 413 KASSERT(ia != NULL, ("%s: ia is NULL", __func__)); in prison_check_ip4()
|
| /f-stack/freebsd/x86/x86/ |
| H A D | local_apic.c | 464 KASSERT(pin <= APIC_LVT_MAX, in lvt_mode() 479 KASSERT(idx <= APIC_ELVT_MAX, in elvt_mode() 484 KASSERT(elvt->lvt_edgetrigger, in elvt_mode() 486 KASSERT(elvt->lvt_activehi, in elvt_mode() 513 KASSERT(trunc_page(addr) == addr, in native_lapic_init() 1621 KASSERT(vector != IDT_DTRACE_RET, in native_apic_enable_vector() 1634 KASSERT(vector != IDT_DTRACE_RET, in native_apic_disable_vector() 1662 KASSERT(vector != IDT_DTRACE_RET, in native_apic_free_vector() 1698 KASSERT(vector != IDT_DTRACE_RET, in apic_idt_to_irq() 2014 KASSERT(x2apic_mode || in native_lapic_ipi_raw() [all …]
|
| /f-stack/freebsd/amd64/vmm/io/ |
| H A D | vrtc.c | 155 KASSERT(VRTC_LOCKED(vrtc), ("%s: vrtc not locked", __func__)); in vrtc_curtime() 162 KASSERT(delta >= 0, ("vrtc_curtime: uptime went backwards: " in vrtc_curtime() 189 KASSERT(VRTC_LOCKED(vrtc), ("%s: vrtc not locked", __func__)); in secs_to_rtc() 192 KASSERT(rtctime == VRTC_BROKEN_TIME, in secs_to_rtc() 291 KASSERT(VRTC_LOCKED(vrtc), ("%s: vrtc not locked", __func__)); in rtc_to_secs() 561 KASSERT((vrtc->rtcdev.reg_b & RTCSB_ALL_INTRS) != 0, in vrtc_callout_handler() 570 KASSERT(error == 0, ("%s: vrtc_time_update error %d", in vrtc_callout_handler() 587 KASSERT((freq == 0 && !active) || (freq != 0 && active), in vrtc_callout_check() 662 KASSERT(curtime == vrtc->base_rtctime, ("%s: mismatch " in vrtc_set_reg_b() 681 KASSERT(error == 0, ("vrtc_time_update error %d", error)); in vrtc_set_reg_b() [all …]
|
| /f-stack/freebsd/mips/broadcom/ |
| H A D | bcm_mips74k.c | 213 KASSERT(isrc->cpuirq != NULL, ("no assigned MIPS IRQ")); in bcm_mips74k_pic_disable_intr() 228 KASSERT(isrc->cpuirq != NULL, ("no assigned MIPS IRQ")); in bcm_mips74k_pic_enable_intr() 262 KASSERT(mips_irq < sc->bcm_mips.num_cpuirqs, ("invalid MIPS IRQ %u", in bcm_mips74k_mask_irq() 264 KASSERT(mips_irq < BCM_MIPS74K_NUM_INTR, ("unsupported MIPS IRQ %u", in bcm_mips74k_mask_irq() 266 KASSERT(ivec < BCMA_OOB_NUM_BUSLINES, ("invalid backplane ivec")); in bcm_mips74k_mask_irq() 281 KASSERT(mips_irq < sc->bcm_mips.num_cpuirqs, ("invalid MIPS IRQ %u", in bcm_mips74k_unmask_irq() 283 KASSERT(mips_irq < BCM_MIPS74K_NUM_INTR, ("unsupported MIPS IRQ %u", in bcm_mips74k_unmask_irq() 285 KASSERT(ivec < BCMA_OOB_NUM_BUSLINES, ("invalid backplane ivec")); in bcm_mips74k_unmask_irq() 310 KASSERT(cpuirq->mips_irq < BCM_MIPS74K_NUM_INTR, in bcm_mips74k_pic_intr() 354 KASSERT(i < nitems(sc->bcm_mips.isrcs), ("invalid ivec %u", i)); in bcm_mips74k_pic_intr()
|