BHND_NV_ASSERT
BHND_NV_ASSERT(sizeof(struct bhnd_nvram_data) <= cls->size,
BHND_NV_ASSERT(bhnd_nvram_data_caps(nv) & BHND_NVRAM_DATA_CAP_READ_PTR,
BHND_NV_ASSERT(vdefn->fmt != NULL,
BHND_NV_ASSERT(bhnd_nvram_data_caps(nv) & BHND_NVRAM_DATA_CAP_READ_PTR,
BHND_NV_ASSERT(bhnd_nvram_data_caps(nv) & BHND_NVRAM_DATA_CAP_READ_PTR,
BHND_NV_ASSERT(cookiep != NULL, ("NULL cookiep"));
BHND_NV_ASSERT((ptr - base) % sizeof(bcm->hvars[0]) == 0,
BHND_NV_ASSERT(bhnd_nvram_bcm_to_hdrvar(bcm, (void *)hdrvar) != NULL,
BHND_NV_ASSERT(bufpos <= buflen,
BHND_NV_ASSERT(buflen <= sizeof(buf),
BHND_NV_ASSERT(offset < limit, ("offset overrun"));
BHND_NV_ASSERT(buflen - bufpos > 0, ("empty buffer!"));
BHND_NV_ASSERT(buflen - bufpos > 0, ("empty buffer!"));
BHND_NV_ASSERT(vlen <= buflen, ("value buf overrun"));
BHND_NV_ASSERT(nbytes >= BCM_NVRAM_CRC_SKIP, ("invalid output size"));
BHND_NV_ASSERT(nbytes >= sizeof(hdr), ("invalid output size"));
BHND_NV_ASSERT(data != NULL, \
BHND_NV_ASSERT(bhnd_nvram_value_check_aligned(&hvar->value,
BHND_NV_ASSERT(offset < capacity,
BHND_NV_ASSERT(bufpos <= buflen,
BHND_NV_ASSERT(buflen <= sizeof(buf),
BHND_NV_ASSERT(offset < limit, ("offset overrun"));
BHND_NV_ASSERT(bufpos < buflen, ("empty buffer!"));
BHND_NV_ASSERT(bufpos < buflen, ("empty buffer!"));
BHND_NV_ASSERT(vlen <= buflen, ("value buf overrun"));
BHND_NV_ASSERT(value_len > 0, ("string length missing "
BHND_NV_ASSERT(btxt->data == NULL, ("btxt data already allocated"));
BHND_NV_ASSERT(io_offset == io_size,
BHND_NV_ASSERT(io_offset < bhnd_nvram_io_getsize(btxt->data),
BHND_NV_ASSERT(io_offset < UINTPTR_MAX,
BHND_NV_ASSERT(cookiep != NULL, ("null cookiep"));
BHND_NV_ASSERT(offset >= 0, ("invalid cookiep"));
BHND_NV_ASSERT((uintptr_t)offset < SIZE_MAX, ("cookiep > SIZE_MAX)"));
BHND_NV_ASSERT((uintptr_t)offset <= io_size, ("cookiep > io_size)"));
BHND_NV_ASSERT(itype == BHND_NVRAM_TYPE_STRING, ("non-string value"));
BHND_NV_ASSERT(var != NULL, ("invalid entry"));
BHND_NV_ASSERT(
BHND_NV_ASSERT(state->var.have_bind, ("invalid bind state"));
BHND_NV_ASSERT(error != 0, ("loop terminated early"));
BHND_NV_ASSERT(cookiep != NULL, ("NULL variable cookiep"));
BHND_NV_ASSERT(var != NULL, ("invalid cookiep %p", cookiep));
BHND_NV_ASSERT(cookiep != NULL, ("NULL variable cookiep"));
BHND_NV_ASSERT(var != NULL, ("invalid cookiep %p", cookiep));
BHND_NV_ASSERT(var != NULL, ("missing variable definition"));
BHND_NV_ASSERT(var != NULL, ("missing variable definition"));
BHND_NV_ASSERT(var != NULL, ("missing variable definition"));
BHND_NV_ASSERT(nelem <= var->nelem, ("SPROM nelem=%zu exceeds maximum "
BHND_NV_ASSERT(
BHND_NV_ASSERT(state->var.have_bind, ("invalid bind state"));
BHND_NV_ASSERT(error != 0, ("loop terminated early"));
BHND_NV_ASSERT(var != NULL, ("missing variable definition"));
BHND_NV_ASSERT(var != NULL, ("invalid cookiep %p", cookiep));
BHND_NV_ASSERT(error == ENOENT, ("unexpected "
BHND_NV_ASSERT(state->var_state == SPROM_OPCODE_VAR_STATE_DONE,
BHND_NV_ASSERT(
BHND_NV_ASSERT(
BHND_NV_ASSERT(state->var.have_bind, ("missing bind"));
BHND_NV_ASSERT(
BHND_NV_ASSERT(idxpos < state->num_idx,
BHND_NV_ASSERT(entry->opcodes < state->layout->bindings_size,
BHND_NV_ASSERT(state->var_state == SPROM_OPCODE_VAR_STATE_DONE,
BHND_NV_ASSERT(!state->var.have_bind, ("stale bind state"));
BHND_NV_ASSERT(state->var_state == SPROM_OPCODE_VAR_STATE_NONE,
BHND_NV_ASSERT(tlv->data == NULL, ("tlv data already initialized"));
BHND_NV_ASSERT(next <= bhnd_nvram_io_getsize(io),
BHND_NV_ASSERT(io_offset < bhnd_nvram_io_getsize(tlv->data),
BHND_NV_ASSERT(io_offset < UINTPTR_MAX,
BHND_NV_ASSERT(cookiep != NULL, ("null cookiep"));
BHND_NV_ASSERT(offset >= 0, ("invalid cookiep"));
BHND_NV_ASSERT((uintptr_t)offset < SIZE_MAX, ("cookiep > SIZE_MAX)"));
BHND_NV_ASSERT((uintptr_t)offset <= io_size, ("cookiep > io_size)"));
BHND_NV_ASSERT(plist->refs >= 1, ("plist over-released"));
BHND_NV_ASSERT(plist->num_entries > 0, ("entry count over-release"));
BHND_NV_ASSERT(prop->refs >= 1, ("prop over-released"));
BHND_NV_ASSERT(prop->refs >= 1, ("prop over-released"));
BHND_NV_ASSERT(*otype == bhnd_nvram_prop_type(prop), ("type mismatch"));
BHND_NV_ASSERT(plist->refs >= 1, ("plist over-released"));
BHND_NV_ASSERT(sc->root_path, ("missing root path"));
BHND_NV_ASSERT(path != NULL,
BHND_NV_ASSERT(sc->root_path != NULL, ("missing root path"));
BHND_NV_ASSERT(error != EEXIST, ("reserved alias %lu:%s in use",
BHND_NV_ASSERT(bhnd_nvstore_is_root_path(sc, path),
BHND_NV_ASSERT(index_ref > path->index->cookiep,
BHND_NV_ASSERT(bhnd_nvstore_is_root_path(sc, path),
BHND_NV_ASSERT(index != NULL, ("NULL index"));
BHND_NV_ASSERT(path != NULL, ("missing registered path"));
BHND_NV_ASSERT(bhnd_nvram_is_int_type(type), ("non-int type?"));
BHND_NV_ASSERT(
BHND_NV_ASSERT(bhnd_nvram_is_int_type(itype), ("non-integer type"));
BHND_NV_ASSERT(sizeof(value->data) >= ilen,
BHND_NV_ASSERT(value->refs == 1, ("non-allocated value has "
BHND_NV_ASSERT(value->refs >= 1, ("value over-released"));
BHND_NV_ASSERT(itype == BHND_NVRAM_TYPE_NULL,
BHND_NV_ASSERT(itype == BHND_NVRAM_TYPE_BOOL,
BHND_NV_ASSERT(itype == BHND_NVRAM_TYPE_DATA,
BHND_NV_ASSERT(
BHND_NV_ASSERT( \
BHND_NV_ASSERT(bhnd_nvram_is_int_type(itype), ("invalid type"));
BHND_NV_ASSERT(bhnd_nvram_is_int_type(itype), ("invalid type"));
BHND_NV_ASSERT(stype == BHND_NVRAM_TYPE_STRING,
BHND_NV_ASSERT(base <= 16, ("invalid base"));
BHND_NV_ASSERT(arg_size == sizeof(c),
BHND_NV_ASSERT(inp != NULL, ("NULL inp"));
BHND_NV_ASSERT(width != 0, ("invalid width"));
BHND_NV_ASSERT(prev >= (const void *)inp, ("invalid cookiep"));
BHND_NV_ASSERT(align != 0, ("invalid zero alignment"));