/freebsd-10.0-release/sys/dev/sound/isa/ |
H A D | sndbuf_dma.c | 53 KASSERT(b, ("sndbuf_dmasetdir called with b == NULL")); 54 KASSERT(sndbuf_getflags(b) & SNDBUF_F_DMA, ("sndbuf_dmasetdir called on non-ISA buffer")); 63 KASSERT(b, ("sndbuf_dma called with b == NULL")); 64 KASSERT(sndbuf_getflags(b) & SNDBUF_F_DMA, ("sndbuf_dma called on non-ISA buffer")); 90 KASSERT(b, ("sndbuf_dmaptr called with b == NULL")); 91 KASSERT(sndbuf_getflags(b) & SNDBUF_F_DMA, ("sndbuf_dmaptr called on non-ISA buffer")); 96 KASSERT(i >= 0, ("isa_dmastatus returned %d", i)); 103 KASSERT(b, ("sndbuf_dmabounce called with b == NULL")); 104 KASSERT(sndbuf_getflags(b) & SNDBUF_F_DMA, ("sndbuf_dmabounce called on non-ISA buffer"));
|
/freebsd-10.0-release/sys/sys/ |
H A D | refcount.h | 41 #define KASSERT(exp, msg) /* */ macro 55 KASSERT(*count < UINT_MAX, ("refcount %p overflowed", count)); 66 KASSERT(old > 0, ("negative refcount %p", count));
|
/freebsd-10.0-release/sys/dev/hwpmc/ |
H A D | hwpmc_tsc.c | 76 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 78 KASSERT(ri >= 0 && ri < TSC_NPMCS, 104 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 106 KASSERT(ri == 0, ("[tsc,%d] illegal row-index %d", __LINE__, ri)); 110 KASSERT(pm == NULL || phw->phw_pmc == NULL, 127 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 129 KASSERT(ri == 0, ("[tsc,%d] illegal row-index %d", __LINE__, ri)); 156 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 158 KASSERT(ri == 0, ("[tsc,%d] illegal row-index %d", __LINE__, ri)); 170 KASSERT(r [all...] |
H A D | hwpmc_soft.c | 104 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 106 KASSERT(ri >= 0 && ri < SOFT_NPMCS, 141 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 143 KASSERT(ri >= 0 && ri < SOFT_NPMCS, 148 KASSERT(pm == NULL || phw->phw_pmc == NULL, 165 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 167 KASSERT(ri >= 0 && ri < SOFT_NPMCS, 195 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 197 KASSERT(ri >= 0 && ri < SOFT_NPMCS, 210 KASSERT(cp [all...] |
H A D | hwpmc_xscale.c | 206 KASSERT(pmc < 4, ("[xscale,%d] illegal PMC number %d", __LINE__, pmc)); 230 KASSERT(pmc < 4, ("[xscale,%d] illegal PMC number %d", __LINE__, pmc)); 258 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 260 KASSERT(ri >= 0 && ri < xscale_npmcs, 292 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 294 KASSERT(ri >= 0 && ri < xscale_npmcs, 313 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 315 KASSERT(ri >= 0 && ri < xscale_npmcs, 337 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 339 KASSERT(r [all...] |
H A D | hwpmc_amd.c | 269 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 271 KASSERT(ri >= 0 && ri < AMD_NPMCS, 273 KASSERT(amd_pcpu[cpu], 279 KASSERT(pm != NULL, 288 KASSERT(pd->pm_descr.pd_class == amd_pmc_class, 318 KASSERT(cpu >= 0 && cpu < pmc_cpu_max(), 320 KASSERT(ri >= 0 && ri < AMD_NPMCS, 326 KASSERT(pm != NULL, 333 KASSERT(pd->pm_descr.pd_class == amd_pmc_class, 361 KASSERT(cp [all...] |
/freebsd-10.0-release/sys/net80211/ |
H A D | ieee80211_phy.h | 93 KASSERT(! (rate & 0x80), ("rate %d is basic/mcs?", rate)); 96 KASSERT(cix != (uint8_t)-1, ("rate %d has no info", rate)); 108 KASSERT(! (rate & 0x80), ("rate %d is basic/mcs?", rate)); 111 KASSERT(cix != (uint8_t)-1, ("rate %d has no info", rate)); 123 KASSERT(! (rate & 0x80), ("rate %d is basic/mcs?", rate)); 126 KASSERT(rix != (uint8_t)-1, ("rate %d has no info", rate)); 138 KASSERT(! (rate & 0x80), ("rate %d is basic/mcs?", rate)); 155 KASSERT(rix != (uint8_t)-1, ("rate %d has no info", rate)); 157 KASSERT(rt->info[rix].spAckDuration != 0, 161 KASSERT(r [all...] |
/freebsd-10.0-release/sys/x86/isa/ |
H A D | elcr.c | 100 KASSERT(elcr_found, ("%s: no ELCR was found!", __func__)); 101 KASSERT(irq <= 15, ("%s: invalid IRQ %u", __func__, irq)); 117 KASSERT(elcr_found, ("%s: no ELCR was found!", __func__)); 118 KASSERT(irq <= 15, ("%s: invalid IRQ %u", __func__, irq)); 136 KASSERT(elcr_found, ("%s: no ELCR was found!", __func__));
|
/freebsd-10.0-release/sys/fs/pseudofs/ |
H A D | pseudofs_internal.h | 132 KASSERT(pn->pn_fill != NULL, ("%s(): no callback", __func__)); 146 KASSERT(pn->pn_attr != NULL, ("%s(): no callback", __func__)); 158 KASSERT(pn->pn_vis != NULL, ("%s(): no callback", __func__)); 159 KASSERT(p != NULL, ("%s(): no process", __func__)); 170 KASSERT(pn->pn_ioctl != NULL, ("%s(): no callback", __func__)); 182 KASSERT(pn->pn_getextattr != NULL, ("%s(): no callback", __func__)); 194 KASSERT(pn->pn_close != NULL, ("%s(): no callback", __func__)); 206 KASSERT(pn->pn_destroy != NULL, ("%s(): no callback", __func__));
|
H A D | pseudofs_fileno.c | 98 KASSERT(pn->pn_parent != NULL, 103 KASSERT(pn->pn_parent != NULL, 109 KASSERT(pn->pn_parent->pn_parent != NULL, 114 KASSERT(0, 155 KASSERT(0,
|
/freebsd-10.0-release/sys/dev/sfxge/ |
H A D | sfxge_ev.c | 62 KASSERT(txq->evq_index == index, 93 KASSERT(rxq != NULL, ("rxq == NULL")); 94 KASSERT(evq->index == rxq->index, 114 KASSERT(rx_desc->flags == EFX_DISCARD, 118 KASSERT(size < (1 << 16), ("size > (1 << 16)")); 165 KASSERT(rxq != NULL, ("rxq == NULL")); 171 KASSERT((label & SFXGE_MAGIC_DMAQ_LABEL_MASK) == label, 175 KASSERT(evq->init_state == SFXGE_EVQ_STARTED, 195 KASSERT(rxq != NULL, ("rxq == NULL")); 201 KASSERT((labe [all...] |
H A D | sfxge_mcdi.c | 57 KASSERT(mcdi->state != SFXGE_MCDI_UNINITIALIZED, 73 KASSERT((mcdi->state == SFXGE_MCDI_BUSY || 115 KASSERT(aborted, ("abort failed")); 164 KASSERT(mcdi->state == SFXGE_MCDI_BUSY, ("MCDI not busy")); 203 KASSERT(mcdi->state == SFXGE_MCDI_UNINITIALIZED, 240 KASSERT(mcdi->state == SFXGE_MCDI_INITIALIZED,
|
/freebsd-10.0-release/sys/security/mac/ |
H A D | mac_label.c | 86 KASSERT(label->l_flags & MAC_FLAG_INITIALIZED, 102 KASSERT(size == sizeof(*label), ("mac_labelzone_ctor: wrong size\n")); 113 KASSERT(size == sizeof(*label), ("mac_labelzone_dtor: wrong size\n")); 139 KASSERT(l != NULL, ("mac_label_get: NULL label")); 148 KASSERT(l != NULL, ("mac_label_set: NULL label"));
|
/freebsd-10.0-release/sys/net/ |
H A D | raw_usrreq.c | 135 KASSERT(sotorawcb(so) != NULL, ("raw_uabort: rp == NULL")); 144 KASSERT(sotorawcb(so) != NULL, ("raw_uabort: rp == NULL")); 160 KASSERT(sotorawcb(so) != NULL, ("raw_uattach: so_pcb == NULL")); 192 KASSERT(rp != NULL, ("raw_udetach: rp == NULL")); 201 KASSERT(sotorawcb(so) != NULL, ("raw_udisconnect: rp == NULL")); 212 KASSERT(sotorawcb(so) != NULL, ("raw_upeeraddr: rp == NULL")); 225 KASSERT(sotorawcb(so) != NULL, ("raw_usend: rp == NULL")); 247 KASSERT(sotorawcb(so) != NULL, ("raw_ushutdown: rp == NULL")); 257 KASSERT(sotorawcb(so) != NULL, ("raw_usockaddr: rp == NULL"));
|
H A D | bpf_zerocopy.c | 254 KASSERT(d->bd_bufmode == BPF_BUFMODE_ZBUF, 256 KASSERT(buf != NULL, ("bpf_zerocopy_append_bytes: NULL buf")); 261 KASSERT((zb->zb_flags & ZBUF_FLAG_ASSIGNED) == 0, 272 KASSERT(page < zb->zb_numpages, ("bpf_zerocopy_append_bytes:" 283 KASSERT(poffset < PAGE_SIZE, 306 KASSERT(d->bd_bufmode == BPF_BUFMODE_ZBUF, 308 KASSERT(buf != NULL, ("bpf_zerocopy_append_mbuf: NULL buf")); 313 KASSERT((zb->zb_flags & ZBUF_FLAG_ASSIGNED) == 0, 328 KASSERT(page < zb->zb_numpages, 331 KASSERT( [all...] |
H A D | netisr.c | 258 KASSERT(cpunumber < nws_count, ("%s: %u > %u", __func__, cpunumber, 367 KASSERT(nhp->nh_name != NULL, 369 KASSERT(nhp->nh_handler != NULL, 371 KASSERT(nhp->nh_policy == NETISR_POLICY_SOURCE || 376 KASSERT(nhp->nh_policy == NETISR_POLICY_FLOW || 380 KASSERT(nhp->nh_policy == NETISR_POLICY_CPU || nhp->nh_m2cpuid == NULL, 383 KASSERT(nhp->nh_policy != NETISR_POLICY_CPU || nhp->nh_m2cpuid != NULL, 386 KASSERT(nhp->nh_dispatch == NETISR_DISPATCH_DEFAULT || 392 KASSERT(proto < NETISR_MAXPROT, 399 KASSERT(netisr_prot [all...] |
/freebsd-10.0-release/sys/ia64/ia64/ |
H A D | highfp.c | 74 KASSERT(cpu->pc_fpcurthread == td, 98 KASSERT(cpu->pc_fpcurthread == td, 105 KASSERT(td1->td_pcb->pcb_fpcpu == pcpup, 114 KASSERT(pcb->pcb_fpcpu == NULL, ("pcb->pcb_fpcpu != NULL")); 115 KASSERT(PCPU_GET(fpcurthread) == NULL, 140 KASSERT(cpu->pc_fpcurthread == td, 146 KASSERT(cpu->pc_fpcurthread == td, 167 KASSERT(td->td_pcb->pcb_fpcpu == pcpup,
|
/freebsd-10.0-release/sys/kern/ |
H A D | subr_hash.c | 55 KASSERT(elements > 0, ("%s: bad elements", __func__)); 57 KASSERT((flags & HASH_WAITOK) ^ (flags & HASH_NOWAIT), 96 KASSERT(LIST_EMPTY(hp), ("%s: hash not empty", __func__)); 115 KASSERT(elements > 0, ("%s: bad elements", __func__));
|
H A D | subr_sbuf.c | 58 #define KASSERT(e, m) macro 99 KASSERT(s != NULL, 101 KASSERT(s->s_buf != NULL, 103 KASSERT(s->s_len < s->s_size, 112 KASSERT((s->s_flags & SBUF_FINISHED) == state, 144 KASSERT(newsize >= size, ("%s: %d < %d\n", __func__, newsize, size)); 188 KASSERT(s->s_size >= 0, 214 KASSERT(length >= 0, 216 KASSERT((flags & ~SBUF_USRFLAGMSK) == 0, 242 KASSERT(ui [all...] |
H A D | kern_osd.c | 96 KASSERT(type >= OSD_FIRST && type <= OSD_LAST, ("Invalid type.")); 152 KASSERT(type >= OSD_FIRST && type <= OSD_LAST, ("Invalid type.")); 153 KASSERT(slot > 0, ("Invalid slot.")); 154 KASSERT(osd_destructors[type][slot - 1] != NULL, ("Unused slot.")); 182 KASSERT(osd_destructors[type] != NULL && 200 KASSERT(type >= OSD_FIRST && type <= OSD_LAST, ("Invalid type.")); 201 KASSERT(slot > 0, ("Invalid slot.")); 202 KASSERT(osd_destructors[type][slot - 1] != NULL, ("Unused slot.")); 259 KASSERT(type >= OSD_FIRST && type <= OSD_LAST, ("Invalid type.")); 260 KASSERT(slo [all...] |
/freebsd-10.0-release/sys/geom/bde/ |
H A D | g_bde_work.c | 224 KASSERT(sp->offset == offset, ("wrong offset")); 225 KASSERT(sp->softc == wp->softc, ("wrong softc")); 274 KASSERT(sp->malloc == 2, ("Wrong sector released")); 276 KASSERT(sc != NULL, ("NULL sp->softc")); 277 KASSERT(wp == sp->owner, ("Releasing, not owner")); 286 KASSERT(wp2 != wp, ("Self-reowning")); 292 KASSERT(wp2 != NULL, ("Failed to pick up owner for %p\n", sp)); 380 KASSERT(bp->bio_completed <= bp->bio_length, ("Too large contribution")); 419 KASSERT(sp != NULL, ("NULL sp")); 420 KASSERT(s [all...] |
/freebsd-10.0-release/sys/vm/ |
H A D | vm_pager.c | 294 KASSERT(bp->b_bufobj == NULL, ("initpbuf with bufobj")); 295 KASSERT(bp->b_vp == NULL, ("initpbuf with vp")); 403 KASSERT(bp->b_vp == NULL, ("relpbuf with vp")); 404 KASSERT(bp->b_bufobj == NULL, ("relpbuf with bufobj")); 433 KASSERT(bp->b_vp == NULL, ("pbgetvp: not free")); 434 KASSERT(bp->b_bufobj == NULL, ("pbgetvp: not free (bufobj)")); 452 KASSERT(bp->b_vp == NULL, ("pbgetbo: not free (vnode)")); 453 KASSERT(bp->b_bufobj == NULL, ("pbgetbo: not free (bufobj)")); 466 KASSERT(bp->b_vp != NULL, ("pbrelvp: NULL")); 467 KASSERT(b [all...] |
H A D | vm_reserv.c | 225 KASSERT(rv->object != NULL, 227 KASSERT(rv->popcnt > 0, 277 KASSERT(rv->object != NULL, 279 KASSERT(rv->popcnt < VM_LEVEL_0_NPAGES, 317 KASSERT(npages != 0, ("vm_reserv_alloc_contig: npages is 0")); 348 KASSERT(mpred->pindex < pindex, 357 KASSERT(msucc->pindex > pindex, 426 KASSERT(rv->pages == m, 429 KASSERT(rv->object == NULL, 434 KASSERT(r [all...] |
/freebsd-10.0-release/sys/netatalk/ |
H A D | ddp_usrreq.c | 99 KASSERT(sotoddpcb(so) == NULL, ("ddp_attach: ddp != NULL")); 121 KASSERT(ddp != NULL, ("ddp_detach: ddp == NULL")); 136 KASSERT(ddp != NULL, ("ddp_bind: ddp == NULL")); 153 KASSERT(ddp != NULL, ("ddp_connect: ddp == NULL")); 177 KASSERT(ddp != NULL, ("ddp_disconnect: ddp == NULL")); 196 KASSERT(sotoddpcb(so) != NULL, ("ddp_shutdown: ddp == NULL")); 210 KASSERT(ddp != NULL, ("ddp_send: ddp == NULL")); 252 KASSERT(ddp != NULL, ("ddp_abort: ddp == NULL")); 266 KASSERT(ddp != NULL, ("ddp_close: ddp == NULL")); 310 KASSERT(dd [all...] |
/freebsd-10.0-release/sys/x86/x86/ |
H A D | local_apic.c | 183 KASSERT(pin <= LVT_MAX, ("%s: pin %u out of range", __func__, pin)); 229 KASSERT(trunc_page(addr) == addr, 295 KASSERT(!lapics[apic_id].la_present, ("duplicate local APIC %u", 359 KASSERT(la->la_present, ("missing APIC structure")); 387 KASSERT(la->la_timer_period != 0, ("lapic%u: zero divisor", 485 KASSERT(mp_ncpus == 1 || smp_started, ("hwpmc unloaded too early")); 579 KASSERT(lapic != NULL, ("local APIC is not mapped")); 606 KASSERT(lapics[apic_id].la_present, ("%s: APIC %u doesn't exist", 608 KASSERT(cluster <= APIC_MAX_CLUSTER, ("%s: cluster %u too big", 610 KASSERT(cluster_i [all...] |