/freebsd/sys/dev/bhnd/nvram/ |
H A D | bhnd_nvram_data_btxt.c | 161 BHND_NV_ASSERT(bufpos <= buflen, in bhnd_nvram_btxt_getvar_direct() 163 BHND_NV_ASSERT(buflen <= sizeof(buf), in bhnd_nvram_btxt_getvar_direct() 168 BHND_NV_ASSERT(offset < limit, ("offset overrun")); in bhnd_nvram_btxt_getvar_direct() 182 BHND_NV_ASSERT(bufpos < buflen, ("empty buffer!")); in bhnd_nvram_btxt_getvar_direct() 235 BHND_NV_ASSERT(bufpos < buflen, ("empty buffer!")); in bhnd_nvram_btxt_getvar_direct() 327 BHND_NV_ASSERT(vlen <= buflen, ("value buf overrun")); in bhnd_nvram_btxt_getvar_direct() 403 BHND_NV_ASSERT(value_len > 0, ("string length missing " in bhnd_nvram_btxt_serialize() 452 BHND_NV_ASSERT(btxt->data == NULL, ("btxt data already allocated")); in bhnd_nvram_btxt_init() 497 BHND_NV_ASSERT(io_offset == io_size, in bhnd_nvram_btxt_init() 754 BHND_NV_ASSERT(io_offset < bhnd_nvram_io_getsize(btxt->data), in bhnd_nvram_btxt_offset_to_cookiep() [all …]
|
H A D | bhnd_nvram_data_sprom.c | 412 BHND_NV_ASSERT(var != NULL, ("missing variable definition")); in bhnd_nvram_sprom_write_var() 421 BHND_NV_ASSERT(nelem <= var->nelem, ("SPROM nelem=%zu exceeds maximum " in bhnd_nvram_sprom_write_var() 535 BHND_NV_ASSERT( in bhnd_nvram_sprom_write_var() 538 BHND_NV_ASSERT(state->var.have_bind, ("invalid bind state")); in bhnd_nvram_sprom_write_var() 601 BHND_NV_ASSERT(error != 0, ("loop terminated early")); in bhnd_nvram_sprom_write_var() 693 BHND_NV_ASSERT(var != NULL, ("missing variable definition")); in bhnd_nvram_sprom_serialize() 833 BHND_NV_ASSERT(var != NULL, ("invalid cookiep %p", cookiep)); in bhnd_nvram_sprom_next() 844 BHND_NV_ASSERT(error == ENOENT, ("unexpected " in bhnd_nvram_sprom_next() 1079 BHND_NV_ASSERT(var != NULL, ("invalid entry")); in bhnd_nvram_sprom_read_var() 1148 BHND_NV_ASSERT( in bhnd_nvram_sprom_read_var() [all …]
|
H A D | bhnd_nvram_data_bcm.c | 210 BHND_NV_ASSERT(bufpos <= buflen, in bhnd_nvram_bcm_getvar_direct_common() 212 BHND_NV_ASSERT(buflen <= sizeof(buf), in bhnd_nvram_bcm_getvar_direct_common() 217 BHND_NV_ASSERT(offset < limit, ("offset overrun")); in bhnd_nvram_bcm_getvar_direct_common() 231 BHND_NV_ASSERT(buflen - bufpos > 0, ("empty buffer!")); in bhnd_nvram_bcm_getvar_direct_common() 269 BHND_NV_ASSERT(buflen - bufpos > 0, ("empty buffer!")); in bhnd_nvram_bcm_getvar_direct_common() 356 BHND_NV_ASSERT(vlen <= buflen, ("value buf overrun")); in bhnd_nvram_bcm_getvar_direct_common() 539 BHND_NV_ASSERT(nbytes >= BCM_NVRAM_CRC_SKIP, ("invalid output size")); in bhnd_nvram_bcm_serialize() 544 BHND_NV_ASSERT(nbytes >= sizeof(hdr), ("invalid output size")); in bhnd_nvram_bcm_serialize() 620 BHND_NV_ASSERT(data != NULL, \ in bhnd_nvram_bcm_init() 996 BHND_NV_ASSERT(bhnd_nvram_value_check_aligned(&hvar->value, in bhnd_nvram_bcm_getvar_ptr() [all …]
|
H A D | bhnd_nvram_data_sprom_subr.c | 273 BHND_NV_ASSERT(idxpos < state->num_idx, in bhnd_sprom_opcode_index_next() 346 BHND_NV_ASSERT(entry->opcodes < state->layout->bindings_size, in bhnd_sprom_opcode_seek() 658 BHND_NV_ASSERT(state->var_state == SPROM_OPCODE_VAR_STATE_DONE, in bhnd_sprom_opcode_clear_var() 660 BHND_NV_ASSERT(!state->var.have_bind, ("stale bind state")); in bhnd_sprom_opcode_clear_var() 743 BHND_NV_ASSERT(state->var_state == SPROM_OPCODE_VAR_STATE_NONE, in bhnd_sprom_opcode_set_var() 1289 BHND_NV_ASSERT(state->var_state == SPROM_OPCODE_VAR_STATE_DONE, in bhnd_sprom_opcode_eval_var() 1321 BHND_NV_ASSERT( in bhnd_sprom_opcode_next_var() 1363 BHND_NV_ASSERT( in bhnd_sprom_opcode_next_binding() 1366 BHND_NV_ASSERT(state->var.have_bind, ("missing bind")); in bhnd_sprom_opcode_next_binding() 1372 BHND_NV_ASSERT( in bhnd_sprom_opcode_next_binding()
|
H A D | bhnd_nvram_data.c | 289 BHND_NV_ASSERT(sizeof(struct bhnd_nvram_data) <= cls->size, in bhnd_nvram_data_new() 538 BHND_NV_ASSERT(bhnd_nvram_data_caps(nv) & BHND_NVRAM_DATA_CAP_READ_PTR, in bhnd_nvram_data_getvar_ptr_info() 560 BHND_NV_ASSERT(vdefn->fmt != NULL, in bhnd_nvram_data_getvar_ptr_info() 596 BHND_NV_ASSERT(bhnd_nvram_data_caps(nv) & BHND_NVRAM_DATA_CAP_READ_PTR, in bhnd_nvram_data_generic_rp_getvar() 661 BHND_NV_ASSERT(bhnd_nvram_data_caps(nv) & BHND_NVRAM_DATA_CAP_READ_PTR, in bhnd_nvram_data_generic_rp_copy_val()
|
H A D | bhnd_nvram_plist.c | 95 BHND_NV_ASSERT(plist->refs >= 1, ("plist over-released")); in bhnd_nvram_plist_retain() 113 BHND_NV_ASSERT(plist->refs >= 1, ("plist over-released")); in bhnd_nvram_plist_release() 344 BHND_NV_ASSERT(plist->num_entries > 0, ("entry count over-release")); in bhnd_nvram_plist_remove() 860 BHND_NV_ASSERT(prop->refs >= 1, ("prop over-released")); in bhnd_nvram_prop_retain() 876 BHND_NV_ASSERT(prop->refs >= 1, ("prop over-released")); in bhnd_nvram_prop_release() 947 BHND_NV_ASSERT(*otype == bhnd_nvram_prop_type(prop), ("type mismatch")); in bhnd_nvram_prop_bytes()
|
H A D | bhnd_nvram_data_tlv.c | 367 BHND_NV_ASSERT(tlv->data == NULL, ("tlv data already initialized")); in bhnd_nvram_tlv_init() 731 BHND_NV_ASSERT(next <= bhnd_nvram_io_getsize(io), in bhnd_nvram_tlv_parse_size() 846 BHND_NV_ASSERT(io_offset < bhnd_nvram_io_getsize(tlv->data), in bhnd_nvram_tlv_to_cookie() 848 BHND_NV_ASSERT(io_offset < UINTPTR_MAX, in bhnd_nvram_tlv_to_cookie() 868 BHND_NV_ASSERT(cookiep != NULL, ("null cookiep")); in bhnd_nvram_tlv_to_offset() 877 BHND_NV_ASSERT(offset >= 0, ("invalid cookiep")); in bhnd_nvram_tlv_to_offset() 878 BHND_NV_ASSERT((uintptr_t)offset < SIZE_MAX, ("cookiep > SIZE_MAX)")); in bhnd_nvram_tlv_to_offset() 879 BHND_NV_ASSERT((uintptr_t)offset <= io_size, ("cookiep > io_size)")); in bhnd_nvram_tlv_to_offset()
|
H A D | bhnd_nvram_value_subr.c | 77 BHND_NV_ASSERT(align != 0, ("invalid zero alignment")); in bhnd_nvram_value_check_aligned() 121 BHND_NV_ASSERT(inp != NULL, ("NULL inp")); in bhnd_nvram_value_nelem() 191 BHND_NV_ASSERT(width != 0, ("invalid width")); in bhnd_nvram_value_nelem() 488 BHND_NV_ASSERT(prev >= (const void *)inp, ("invalid cookiep")); in bhnd_nvram_value_array_next()
|
H A D | bhnd_nvram_value.c | 96 BHND_NV_ASSERT( \ 585 BHND_NV_ASSERT(value->refs == 1, ("non-allocated value has " in bhnd_nvram_val_copy() 631 BHND_NV_ASSERT(value->refs >= 1, ("value over-released")); in bhnd_nvram_val_release() 668 BHND_NV_ASSERT(itype == BHND_NVRAM_TYPE_NULL, in bhnd_nvram_val_encode_null() 713 BHND_NV_ASSERT(itype == BHND_NVRAM_TYPE_BOOL, in bhnd_nvram_val_encode_bool() 787 BHND_NV_ASSERT(itype == BHND_NVRAM_TYPE_DATA, in bhnd_nvram_val_encode_data() 825 BHND_NV_ASSERT( in bhnd_nvram_val_encode_string() 1058 BHND_NV_ASSERT(bhnd_nvram_is_int_type(itype), ("non-integer type")); in bhnd_nvram_val_encode_int() 1907 BHND_NV_ASSERT(sizeof(value->data) >= ilen, in bhnd_nvram_val_alloc_bytes()
|
H A D | bhnd_nvram_store_subr.c | 453 BHND_NV_ASSERT(bhnd_nvstore_is_root_path(sc, path), in bhnd_nvstore_path_data_next() 479 BHND_NV_ASSERT(index_ref > path->index->cookiep, in bhnd_nvstore_path_data_next() 518 BHND_NV_ASSERT(bhnd_nvstore_is_root_path(sc, path), in bhnd_nvstore_path_data_lookup() 551 BHND_NV_ASSERT(index != NULL, ("NULL index")); in bhnd_nvstore_index_lookup() 970 BHND_NV_ASSERT(path != NULL, ("missing registered path")); in bhnd_nvstore_register_alias()
|
H A D | bhnd_nvram_private.h | 123 #define BHND_NV_ASSERT(expr, ...) KASSERT(expr, __VA_ARGS__) macro 166 #define BHND_NV_ASSERT(expr, msg) do { \ macro 177 #define BHND_NV_ASSERT(expr, msg) macro
|
H A D | bhnd_nvram_store.c | 154 BHND_NV_ASSERT(sc->root_path, ("missing root path")); in bhnd_nvram_store_new() 353 BHND_NV_ASSERT(path != NULL, in bhnd_nvstore_parse_data() 405 BHND_NV_ASSERT(sc->root_path != NULL, ("missing root path")); in bhnd_nvstore_parse_path_entries() 558 BHND_NV_ASSERT(error != EEXIST, ("reserved alias %lu:%s in use", in bhnd_nvstore_export_devpath_alias()
|
H A D | bhnd_nvram_value_fmts.c | 286 BHND_NV_ASSERT(bhnd_nvram_is_int_type(itype), ("invalid type")); in bhnd_nvram_val_bcm_hex_encode_elem() 338 BHND_NV_ASSERT(bhnd_nvram_is_int_type(itype), ("invalid type")); in bhnd_nvram_val_bcm_decimal_encode_elem() 796 BHND_NV_ASSERT(stype == BHND_NVRAM_TYPE_STRING, in bhnd_nvram_val_bcm_macaddr_string_next()
|
H A D | bhnd_nvram_value_prf.c | 679 BHND_NV_ASSERT(base <= 16, ("invalid base")); in bhnd_nvram_val_vprintf() 843 BHND_NV_ASSERT(arg_size == sizeof(c), in bhnd_nvram_val_vprintf()
|
H A D | bhnd_nvram_subr.c | 185 BHND_NV_ASSERT(bhnd_nvram_is_int_type(type), ("non-int type?")); in bhnd_nvram_is_signed_type() 584 BHND_NV_ASSERT( in bhnd_nvram_get_vardefn_id()
|
H A D | bhnd_nvram_data_bcmraw.c | 307 BHND_NV_ASSERT(offset < capacity, in bhnd_nvram_bcmraw_init()
|