Searched defs:KASSERT (Results 1 - 21 of 21) sorted by relevance

/freebsd-head/sys/sys/
H A Drefcount.h39 #define KASSERT(exp, msg) /* */ macro
64 KASSERT(!REFCOUNT_SATURATED(value),
86 KASSERT(n < REFCOUNT_SATURATION_VALUE / 2,
141 KASSERT(n < REFCOUNT_SATURATION_VALUE / 2,
175 KASSERT(n > 0,
H A Dsystm.h87 * These functions need to be declared before the KASSERT macro is invoked in
104 #define KASSERT(exp,msg) do { \ macro
124 #define KASSERT(exp,msg) do { \ macro
152 KASSERT(sizeof(var) == sizeof(void *) && \
159 KASSERT((td)->td_critnest >= 1, ("Not in critical section"));
282 KASSERT(td->td_critnest != 0,
/freebsd-head/sys/dev/random/
H A Dunit_test.h86 #define KASSERT(exp,msg) do { \ macro
H A Dhash.c48 #define KASSERT(x, y) assert(x) macro
176 KASSERT(bytecount % RANDOM_BLOCKSIZE == 0,
/freebsd-head/tests/sys/kern/acct/
H A Dacct_test.c45 #define KASSERT(val, msg) assert(val) macro
/freebsd-head/sys/crypto/rijndael/
H A Drijndael-alg-fst.c37 #define KASSERT(exp, msg) assert(exp) macro
739 KASSERT(keyBits == 128 || keyBits == 192 || keyBits == 256,
/freebsd-head/sys/netpfil/ipfw/test/
H A Ddn_test.h143 #define KASSERT(x, y) do { if (!(x)) printf y ; exit(0); } while (0) macro
/freebsd-head/sys/geom/bde/
H A Dg_bde_lock.c54 #define KASSERT(foo, bar) do { if(!(foo)) { warn bar ; exit (1); } } while (0) macro
/freebsd-head/sys/crypto/camellia/
H A Dcamellia.c43 #define KASSERT(exp, msg) assert(exp) macro
1253 KASSERT(keyBitLength == 128 || keyBitLength == 192 || keyBitLength == 256,
/freebsd-head/tools/tools/net80211/wlantxtime/
H A Dwlantxtime.c70 #define KASSERT(c, msg) do { \ macro
336 KASSERT(rix != (uint8_t)-1, ("rate %d has no info", rate));
352 KASSERT(bitsPerSymbol != 0, ("full rate bps"));
362 KASSERT(bitsPerSymbol != 0, ("1/4 rate bps"));
372 KASSERT(bitsPerSymbol != 0, ("1/2 rate bps"));
383 KASSERT(bitsPerSymbol != 0, ("turbo bps"));
413 KASSERT(rate & IEEE80211_RATE_MCS, ("not mcs %d", rate));
414 KASSERT((rate &~ IEEE80211_RATE_MCS) < 16, ("bad mcs 0x%x", rate));
/freebsd-head/contrib/netbsd-tests/sys/uvm/
H A Dt_uvm_physseg_load.c89 #define KASSERT(e) /* NOTHING */ macro
91 #define KASSERT(a) assert(a) macro
150 KASSERT(false);
H A Dt_uvm_physseg.c89 #define KASSERT(e) /* NOTHING */ macro
91 #define KASSERT(a) assert(a) macro
171 KASSERT(false);
/freebsd-head/sys/kern/
H A Dsubr_acl_nfs4.c55 #define KASSERT(a, b) assert(a) macro
121 KASSERT(aclp->acl_cnt <= ACL_MAX_ENTRIES,
150 KASSERT(entry->ae_tag == ACL_EVERYONE,
182 KASSERT((accmode & ~(VEXEC | VWRITE | VREAD | VADMIN | VAPPEND |
187 KASSERT((accmode & VAPPEND) == 0 || (accmode & VWRITE),
335 KASSERT(aclp->acl_cnt + 1 <= ACL_MAX_ENTRIES,
355 KASSERT(aclp->acl_cnt + 1 <= ACL_MAX_ENTRIES,
378 KASSERT(aclp->acl_cnt <= ACL_MAX_ENTRIES,
648 KASSERT(aclp->acl_cnt + 6 <= ACL_MAX_ENTRIES,
664 KASSERT(a
[all...]
H A Dsubr_blist.c125 #define KASSERT(a,b) assert(a) macro
249 KASSERT(blocks > 0, ("invalid block count"));
301 KASSERT(*count <= maxcount,
303 KASSERT(*count <= BLIST_MAX_ALLOC,
345 KASSERT(blkno >= 0 && blkno + count <= bl->bl_blocks,
363 KASSERT(blkno >= 0 && blkno + count <= bl->bl_blocks,
886 KASSERT((scan->bm_bitmap & mask) == 0,
H A Dsubr_sbuf.c62 #define KASSERT(e, m) macro
110 KASSERT(s != NULL,
112 KASSERT(s->s_buf != NULL,
115 KASSERT(s->s_len <= s->s_size,
119 KASSERT(s->s_len < s->s_size,
129 KASSERT((s->s_flags & SBUF_FINISHED) == state,
161 KASSERT(newsize >= size, ("%s: %d < %d\n", __func__, newsize, size));
199 KASSERT(length >= 0,
201 KASSERT((flags & ~SBUF_USRFLAGMSK) == 0,
203 KASSERT((flag
[all...]
H A Dsubr_unit.c125 #define KASSERT(cond, arg) \ macro
139 KASSERT(no_alloc == 0, ("malloc in wrong place() line %d", line));
153 KASSERT(mp->state == 0, ("mutex already locked"));
160 KASSERT(mp->state == 1, ("mutex not locked"));
170 KASSERT(mp->state == 1, ("mtx_assert(MA_OWNED) not true"));
249 KASSERT (up->len <= NBITS,
259 KASSERT (y == uh->busy,
262 KASSERT (z == uh->alloc,
288 KASSERT(*p1 != NULL || *p2 != NULL, ("Out of cached memory"));
338 KASSERT(lo
[all...]
H A Dsubr_stats.c185 #define KASSERT(cond, msg) do {} while (0) macro
188 #define KASSERT(cond, msg) do { \ macro
350 KASSERT(Q_PRECEQ(c1->mu, c2->mu),
362 KASSERT(Q_PRECEQ(c1->mu, c2->mu),
1071 KASSERT(cum_pct <= 100, ("%s cum_pct %u > 100", __func__,
1353 KASSERT(tmpstat->stype < 0, ("voistat %p "
1463 KASSERT(!error,
1484 KASSERT(newvoibytes % sizeof(struct voi) == 0,
1486 KASSERT(newvoistatbytes % sizeof(struct voistat) == 0,
2461 KASSERT(
[all...]
/freebsd-head/sbin/gbde/
H A Dgbde.c94 #define KASSERT(foo, bar) do { if(!(foo)) { warn bar ; exit (1); } } while (0) macro
/freebsd-head/sys/contrib/ncsw/Peripherals/BM/
H A Dbm.h398 KASSERT(ans < UINT32_MAX, ("Oops, %jx > UINT32_MAX!\n", (uintmax_t)ans)); function
/freebsd-head/sys/amd64/vmm/
H A Dvmm_instruction_emul.c59 #define KASSERT(exp,msg) assert((exp)) macro
425 KASSERT(opsize == 1 || opsize == 2 || opsize == 4 || opsize == 8,
460 KASSERT(opsize == 1 || opsize == 2 || opsize == 4 || opsize == 8,
495 KASSERT(opsize == 1 || opsize == 2 || opsize == 4 || opsize == 8,
721 KASSERT(error == 0, ("%s: error %d getting cr0", __func__, error));
724 KASSERT(error == 0, ("%s: error %d getting rflags", __func__, error));
727 KASSERT(error == 0, ("%s: error %d getting segment descriptor %d",
731 KASSERT(error == 0, ("%s: error %d getting register %d", __func__,
793 KASSERT(!error, ("%s: error %d getting rcx", __func__, error));
904 KASSERT(erro
[all...]
/freebsd-head/stand/kshim/
H A Dbsd_kernel.h76 #define KASSERT(...) macro

Completed in 147 milliseconds