Home
last modified time | relevance | path

Searched refs:KASSERT (Results 1 – 25 of 158) sorted by relevance

1234567

/haiku/src/libs/compat/freebsd_wlan/net80211/
H A Dieee80211_phy.h112 KASSERT(! (rate & 0x80), ("rate %d is basic/mcs?", rate)); in ieee80211_ack_rate()
115 KASSERT(cix != (uint8_t)-1, ("rate %d has no info", rate)); in ieee80211_ack_rate()
127 KASSERT(! (rate & 0x80), ("rate %d is basic/mcs?", rate)); in ieee80211_ctl_rate()
130 KASSERT(cix != (uint8_t)-1, ("rate %d has no info", rate)); in ieee80211_ctl_rate()
142 KASSERT(! (rate & 0x80), ("rate %d is basic/mcs?", rate)); in ieee80211_rate2phytype()
145 KASSERT(rix != (uint8_t)-1, ("rate %d has no info", rate)); in ieee80211_rate2phytype()
157 KASSERT(! (rate & 0x80), ("rate %d is basic/mcs?", rate)); in ieee80211_isratevalid()
174 KASSERT(rix != (uint8_t)-1, ("rate %d has no info", rate)); in ieee80211_ack_duration()
176 KASSERT(rt->info[rix].spAckDuration != 0, in ieee80211_ack_duration()
180 KASSERT(rt->info[rix].lpAckDuration != 0, in ieee80211_ack_duration()
H A Dieee80211_ageq.c66 KASSERT(aq->aq_len == 0, ("%d frames on ageq", aq->aq_len)); in ieee80211_ageq_cleanup()
116 KASSERT(age >= 0, ("age %d", age)); in ieee80211_ageq_append()
173 KASSERT(aq->aq_len > 0, ("aq len %d", aq->aq_len)); in ieee80211_ageq_age()
211 KASSERT(aq->aq_len > 0, ("aq len %d", aq->aq_len)); in ieee80211_ageq_remove()
217 KASSERT(m->m_nextpkt == NULL, ("not last")); in ieee80211_ageq_remove()
219 KASSERT(aq->aq_len == 0, in ieee80211_ageq_remove()
H A Dieee80211_power.c121 KASSERT(psq->psq_len == 0, ("%d frames on ps q", psq->psq_len)); in ieee80211_psq_cleanup()
142 KASSERT(qhead->len > 0, ("qhead len %d", qhead->len)); in ieee80211_node_psq_dequeue()
144 KASSERT(psq->psq_len > 0, ("psq len %d", psq->psq_len)); in ieee80211_node_psq_dequeue()
247 KASSERT(qhead->len > 0, ("qhead len %d", qhead->len)); in ieee80211_node_psq_age()
249 KASSERT(psq->psq_len > 0, ("psq len %d", psq->psq_len)); in ieee80211_node_psq_age()
276 KASSERT(vap->iv_opmode == IEEE80211_M_HOSTAP || in ieee80211_update_ps()
292 KASSERT(vap->iv_opmode == IEEE80211_M_HOSTAP || in ieee80211_set_tim()
297 KASSERT(aid < vap->iv_max_aid, in ieee80211_set_tim()
392 KASSERT(age >= 0, ("age %d", age)); in ieee80211_pwrsave()
458 KASSERT((m->m_flags & M_ENCAP), in pwrsave_flushq()
[all …]
H A Dieee80211_phy.c509 KASSERT(rix != (uint8_t)-1, ("rate %d has no info", rate)); in ieee80211_compute_duration()
525 KASSERT(bitsPerSymbol != 0, ("full rate bps")); in ieee80211_compute_duration()
535 KASSERT(bitsPerSymbol != 0, ("1/4 rate bps")); in ieee80211_compute_duration()
545 KASSERT(bitsPerSymbol != 0, ("1/2 rate bps")); in ieee80211_compute_duration()
556 KASSERT(bitsPerSymbol != 0, ("turbo bps")); in ieee80211_compute_duration()
600 KASSERT(rate & IEEE80211_RATE_MCS, ("not mcs %d", rate)); in ieee80211_compute_duration_ht()
601 KASSERT((rate &~ IEEE80211_RATE_MCS) < 31, ("bad mcs 0x%x", rate)); in ieee80211_compute_duration_ht()
/haiku/src/libs/compat/freebsd_network/
H A Dfbsd_subr_sbuf.c63 #define KASSERT(e, m) macro
106 KASSERT(s != NULL, in _assert_sbuf_integrity()
108 KASSERT(s->s_buf != NULL, in _assert_sbuf_integrity()
111 KASSERT(s->s_len <= s->s_size, in _assert_sbuf_integrity()
115 KASSERT(s->s_len < s->s_size, in _assert_sbuf_integrity()
125 KASSERT((s->s_flags & SBUF_FINISHED) == state, in _assert_sbuf_state()
157 KASSERT(newsize >= size, ("%s: %d < %d\n", __func__, newsize, size)); in sbuf_extendsize()
201 KASSERT(s->s_size >= SBUF_MINSIZE, in sbuf_newbuf()
228 KASSERT(length >= 0, in sbuf_new()
230 KASSERT((flags & ~SBUF_USRFLAGMSK) == 0, in sbuf_new()
[all …]
H A Dunit.cpp33 KASSERT(low <= high, in new_unrhdr()
60 KASSERT(idStore != NULL, in delete_unrhdr()
78 KASSERT(idStore != NULL, in alloc_unr()
99 KASSERT(idStore != NULL, in free_unr()
105 KASSERT(slotIndex >= 0, ("ID-Store: %s(%p, %u): second " in free_unr()
H A Dfbsd_subr_taskqueue.c165 KASSERT(((cb_type >= TASKQUEUE_CALLBACK_TYPE_MIN) && in taskqueue_set_callback()
169 KASSERT((queue->tq_callbacks[cb_type] == NULL), in taskqueue_set_callback()
183 KASSERT(TAILQ_EMPTY(&queue->tq_active), ("Tasks still running?")); in taskqueue_free()
184 KASSERT(queue->tq_callouts == 0, ("Armed timeout tasks")); in taskqueue_free()
200 KASSERT(task->ta_func != NULL, ("enqueueing task with NULL func")); in taskqueue_enqueue_locked()
262 KASSERT((timeout_task->f & DT_CALLOUT_ARMED) != 0, ("Stray timeout")); in taskqueue_timeout_func()
276 KASSERT(timeout_task->q == NULL || timeout_task->q == queue, in taskqueue_enqueue_timeout()
278 KASSERT(!queue->tq_spin, ("Timeout for spin-queue")); in taskqueue_enqueue_timeout()
339 KASSERT(queue != NULL, ("tq is NULL")); in taskqueue_run_locked()
351 KASSERT(task != NULL, ("task is NULL")); in taskqueue_run_locked()
[all …]
H A Dusb.cpp215 KASSERT(descriptor != NULL, ("no device")); in usbd_get_speed()
403 KASSERT(n <= uint32_t(xfer->max_frame_count), ("frame index overflow")); in usbd_xfer_set_frames()
412 KASSERT(frindex < uint32_t(xfer->nframes), ("frame index overflow")); in usbd_xfer_set_frame_data()
423 KASSERT(frindex < uint32_t(xfer->nframes), ("frame index overflow")); in usbd_xfer_set_frame_len()
424 KASSERT(len <= uint32_t(xfer->max_data_length), ("length overflow")); in usbd_xfer_set_frame_len()
437 KASSERT(frindex < uint32_t(xfer->max_frame_count), ("frame index overflow")); in usbd_xfer_get_frame()
456 KASSERT((offset + len) < uint32_t(cache->length), ("buffer overflow")); in usbd_frame_zero()
465 KASSERT((offset + len) < uint32_t(cache->length), ("buffer overflow")); in usbd_copy_in()
474 KASSERT((offset + len) < uint32_t(cache->length), ("buffer overflow")); in usbd_copy_out()
533 KASSERT(!xfer->in_progress, ("cannot submit in-progress transfer!")); in usbd_transfer_submit()
[all …]
H A Dmutex.c53 KASSERT(!B_SPINLOCK_IS_LOCKED(&mutex->u.spinlock_.lock), ("spin mutex is locked")); in mtx_destroy()
63 KASSERT(mutex->type == MTX_SPIN, ("not a spin mutex")); in mtx_lock_spin()
74 KASSERT(mutex->type == MTX_SPIN, ("not a spin mutex")); in mtx_unlock_spin()
H A Dfbsd_uipc_mbuf.c186 KASSERT(m->m_flags & M_EXT, ("%s: M_EXT not set on %p", __func__, m)); in mb_dupcl()
187 KASSERT(!(n->m_flags & M_EXT), ("%s: M_EXT set on %p", __func__, n)); in mb_dupcl()
198 KASSERT(m->m_ext.ext_cnt != NULL, in mb_dupcl()
231 KASSERT(m->m_nextpkt == NULL, ("%s: m_nextpkt in m %p, m0 %p", in m_demote()
352 KASSERT(SLIST_EMPTY(&to->m_pkthdr.tags), in m_move_pkthdr()
389 KASSERT(SLIST_EMPTY(&to->m_pkthdr.tags), ("m_dup_pkthdr: to has tags")); in m_dup_pkthdr()
447 KASSERT(off >= 0, ("m_copym, negative off %d", off)); in m_copym()
448 KASSERT(len >= 0, ("m_copym, negative len %d", len)); in m_copym()
453 KASSERT(m != NULL, ("m_copym, offset > size of mbuf chain")); in m_copym()
463 KASSERT(len == M_COPYALL, in m_copym()
[all …]
H A Dfbsd_uipc_mbuf2.c339 KASSERT(m && t, ("m_tag_delete: null argument, m %p t %p", m, t)); in m_tag_delete()
350 KASSERT(m, ("m_tag_delete_chain: null mbuf")); in m_tag_delete_chain()
385 KASSERT(m, ("m_tag_locate: null mbuf")); in m_tag_locate()
405 KASSERT(t, ("m_tag_copy: null tag")); in m_tag_copy()
439 KASSERT(to && from, in m_tag_copy_chain()
H A Dif.c497 KASSERT(ifma->ifma_refcount == 0, ("if_freemulti: refcount %d", in if_freemulti()
499 KASSERT(ifma->ifma_protospec == NULL, in if_freemulti()
575 KASSERT(ifma->ifma_ifp == ifp, in if_delmulti_locked()
615 KASSERT(ifma->ifma_lladdr != NULL, in if_delmulti_locked()
683 KASSERT(ifp != NULL, ("%s: ifnet went away", __func__)); in if_delmulti()
713 KASSERT(cnt < IFCOUNTERS, ("%s: invalid cnt %d", __func__, cnt)); in if_get_counter_default()
741 KASSERT(cnt < IFCOUNTERS, ("%s: invalid cnt %d", __func__, cnt)); in if_get_counter_default()
864 KASSERT(size >= sizeof(struct ifaddr), in ifa_alloc()
923 KASSERT(cnt < IFCOUNTERS, ("%s: invalid cnt %d", __func__, cnt)); in if_inc_counter()
/haiku/src/libs/compat/openbsd_network/compat/sys/
H A Dmbuf.h11 #undef KASSERT
12 #define KASSERT KASSERT_FREEBSD macro
17 #undef KASSERT
18 #define KASSERT KASSERT_OPENBSD macro
H A Drefcnt.h32 KASSERT(refs != 0); in refcnt_take()
42 KASSERT(refs >= 0); in refcnt_rele()
H A Dsystm.h43 #undef KASSERT
44 #define KASSERT KASSERT_OPENBSD macro
/haiku/src/libs/compat/freebsd_network/compat/vm/
H A Dvm_extern.h44 KASSERT(powerof2(alignment), ("%s: alignment is not a power of 2: %#lx", in vm_addr_align_ok()
56 KASSERT(powerof2(boundary), ("%s: boundary is not a power of 2: %#jx", in vm_addr_bound_ok()
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/rtl8188e/
H A Dr88e_chan.c72 KASSERT(0, ("wrong 2GHz channel %d!\n", chan)); in r88e_get_power_group()
76 KASSERT(0, ("wrong channel band (flags %08X)\n", c->ic_flags)); in r88e_get_power_group()
102 KASSERT(max_mcs <= RTWN_RIDX_COUNT, ("increase ridx limit\n")); in r88e_get_txpower()
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/
H A Dif_rtwn_ridx.h83 KASSERT(ridx >= RTWN_RIDX_HT_MCS(0) && ridx != RTWN_RIDX_UNKNOWN, in rtwn_ctl_mcsrate()
88 KASSERT(cix != (uint8_t)-1, ("rate %d (%d) has no info", rate, ridx)); in rtwn_ctl_mcsrate()
H A Dif_rtwn.c408 KASSERT(id == 0 || id == 1, ("wrong vap id %d!\n", id)); in rtwn_vap_decrement_counters()
409 KASSERT(sc->vaps[id] != NULL, ("vap pointer is NULL\n")); in rtwn_vap_decrement_counters()
427 KASSERT(0, ("wrong opmode %d\n", opmode)); in rtwn_vap_decrement_counters()
431 KASSERT(sc->vaps_running >= 0 && sc->monvaps_running >= 0, in rtwn_vap_decrement_counters()
434 KASSERT(sc->vaps_running - sc->monvaps_running <= RTWN_PORT_COUNT, in rtwn_vap_decrement_counters()
438 KASSERT(sc->nvaps >= 0 && sc->nvaps <= RTWN_PORT_COUNT, in rtwn_vap_decrement_counters()
440 KASSERT(sc->mon_vaps >= 0, ("mon_vaps is negative (%d)\n", in rtwn_vap_decrement_counters()
442 KASSERT(sc->bcn_vaps >= 0 && ((RTWN_CHIP_HAS_BCNQ1(sc) && in rtwn_vap_decrement_counters()
445 KASSERT(sc->ap_vaps >= 0 && ((RTWN_CHIP_HAS_BCNQ1(sc) && in rtwn_vap_decrement_counters()
480 KASSERT(sc->nvaps <= RTWN_PORT_COUNT, in rtwn_vap_create()
[all …]
/haiku/src/libs/compat/freebsd_network/compat/sys/
H A Deventhandler.h66 KASSERT((list)->el_flags & EHL_INITTED, \
70 KASSERT((list)->el_runcount > 0, \
83 KASSERT((list)->el_runcount > 0, \
H A Dsystm.h48 #define KASSERT(cond,msg) KASSERT_FREEBSD(cond,msg) macro
51 #define KASSERT(cond,msg) KASSERT_FREEBSD(cond,msg) macro
/haiku/src/add-ons/kernel/drivers/network/wlan/iprowifi3945/dev/wpi/
H A Dif_wpi_debug.h120 KASSERT(0, ("Unknown CSR: %d\n", csr)); in wpi_get_csr_string()
133 KASSERT(0, ("Unknown register: %d\n", prph)); in wpi_get_prph_string()
/haiku/src/add-ons/kernel/file_systems/fat/bsd/sys/
H A Dkassert.h43 #define KASSERT(condition, message) ASSERT(condition) macro
/haiku/src/add-ons/kernel/drivers/network/wlan/realtekwifi/dev/rtwn/pci/
H A Drtwn_pci_rx.c64 KASSERT(nsegs == 1, ("too many DMA segments, %d should be 1", nsegs)); in rtwn_pci_dma_map_addr()
193 KASSERT(sizeof(pc->pc_rx_buf) >= desc_size, in rtwn_pci_rx_buf_copy()
264 KASSERT(data->m != NULL, ("no mbuf")); in rtwn_pci_tx_done()
279 KASSERT(ring->queued >= 0, in rtwn_pci_tx_done()
349 KASSERT(0, ("unknown Rx classification code")); in rtwn_pci_rx_done()
/haiku/src/libs/compat/openbsd_wlan/net80211/
H A Dieee80211_crypto_bip.c97 KASSERT((wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) == in ieee80211_bip_encap()
162 KASSERT((wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK) == in ieee80211_bip_decap()
170 KASSERT(m0->m_len >= sizeof(*wh) + IEEE80211_MMIE_LEN); in ieee80211_bip_decap()

1234567