Lines Matching refs:olen
68 bhnd_nvram_type itype, void *outp, size_t *olen,
71 bhnd_nvram_type itype, void *outp, size_t *olen,
74 bhnd_nvram_type itype, void *outp, size_t *olen,
77 bhnd_nvram_type itype, void *outp, size_t *olen,
80 bhnd_nvram_type itype, void *outp, size_t *olen,
279 size_t olen; in bhnd_nvram_val_init_common() local
312 error = bhnd_nvram_value_coerce(inp, ilen, itype, NULL, &olen, otype); in bhnd_nvram_val_init_common()
317 outp = bhnd_nvram_val_alloc_bytes(value, olen, otype, flags); in bhnd_nvram_val_init_common()
322 error = bhnd_nvram_value_coerce(inp, ilen, itype, outp, &olen, otype); in bhnd_nvram_val_init_common()
421 size_t ilen, olen; in bhnd_nvram_val_convert_common() local
457 if ((error = bhnd_nvram_val_encode(src, NULL, &olen, otype))) in bhnd_nvram_val_convert_common()
461 outp = bhnd_nvram_val_alloc_bytes(value, olen, otype, flags); in bhnd_nvram_val_convert_common()
466 if ((error = bhnd_nvram_val_encode(src, outp, &olen, otype))) in bhnd_nvram_val_convert_common()
664 void *outp, size_t *olen, bhnd_nvram_type otype) in bhnd_nvram_val_encode_null() argument
673 limit = *olen; in bhnd_nvram_val_encode_null()
691 *olen = nbytes; in bhnd_nvram_val_encode_null()
692 if (limit < *olen) { in bhnd_nvram_val_encode_null()
707 void *outp, size_t *olen, bhnd_nvram_type otype) in bhnd_nvram_val_encode_bool() argument
718 limit = *olen; in bhnd_nvram_val_encode_bool()
761 BHND_NVRAM_TYPE_UINT8, outp, olen, otype)); in bhnd_nvram_val_encode_bool()
769 *olen = nbytes; in bhnd_nvram_val_encode_bool()
770 if (limit < *olen) { in bhnd_nvram_val_encode_bool()
785 void *outp, size_t *olen, bhnd_nvram_type otype) in bhnd_nvram_val_encode_data() argument
798 BHND_NVRAM_TYPE_UINT8_ARRAY, outp, olen, "")); in bhnd_nvram_val_encode_data()
804 BHND_NVRAM_TYPE_UINT8_ARRAY, outp, olen, otype)); in bhnd_nvram_val_encode_data()
818 bhnd_nvram_type itype, void *outp, size_t *olen, bhnd_nvram_type otype) in bhnd_nvram_val_encode_string() argument
838 limit = *olen; in bhnd_nvram_val_encode_string()
852 *olen = 0; in bhnd_nvram_val_encode_string()
872 *olen = nbytes; in bhnd_nvram_val_encode_string()
873 if (limit < *olen && outp != NULL) in bhnd_nvram_val_encode_string()
910 *olen = nbytes; in bhnd_nvram_val_encode_string()
911 if (limit < *olen && outp != NULL) in bhnd_nvram_val_encode_string()
964 *olen = nbytes; in bhnd_nvram_val_encode_string()
965 if (limit < *olen && outp != NULL) in bhnd_nvram_val_encode_string()
997 olen, otype_base); in bhnd_nvram_val_encode_string()
1019 *olen = cstr_size; in bhnd_nvram_val_encode_string()
1023 (*olen)++; in bhnd_nvram_val_encode_string()
1030 if (limit < *olen) in bhnd_nvram_val_encode_string()
1048 void *outp, size_t *olen, bhnd_nvram_type otype) in bhnd_nvram_val_encode_int() argument
1062 limit = *olen; in bhnd_nvram_val_encode_int()
1297 *olen = nbytes; in bhnd_nvram_val_encode_int()
1298 if (limit < *olen) { in bhnd_nvram_val_encode_int()
1328 bhnd_nvram_val_encode(bhnd_nvram_val *value, void *outp, size_t *olen, in bhnd_nvram_val_encode() argument
1333 return (value->fmt->op_encode(value, outp, olen, otype)); in bhnd_nvram_val_encode()
1335 return (bhnd_nvram_val_generic_encode(value, outp, olen, otype)); in bhnd_nvram_val_encode()
1364 size_t ilen, void *outp, size_t *olen, bhnd_nvram_type otype) in bhnd_nvram_val_encode_elem() argument
1369 olen, otype)); in bhnd_nvram_val_encode_elem()
1373 olen, otype)); in bhnd_nvram_val_encode_elem()
1385 bhnd_nvram_val_bytes(bhnd_nvram_val *value, size_t *olen, in bhnd_nvram_val_bytes() argument
1390 *olen = value->data_len; in bhnd_nvram_val_bytes()
1427 bhnd_nvram_val_next(bhnd_nvram_val *value, const void *prev, size_t *olen) in bhnd_nvram_val_next() argument
1431 return (value->fmt->op_next(value, prev, olen)); in bhnd_nvram_val_next()
1433 return (bhnd_nvram_val_generic_next(value, prev, olen)); in bhnd_nvram_val_next()
1509 bhnd_nvram_val_generic_encode(bhnd_nvram_val *value, void *outp, size_t *olen, in bhnd_nvram_val_generic_encode() argument
1543 return (bhnd_nvram_val_encode_elem(value, inp, ilen, outp, olen, in bhnd_nvram_val_generic_encode()
1556 return (bhnd_nvram_val_encode_elem(value, inp, ilen, outp, olen, in bhnd_nvram_val_generic_encode()
1562 limit = *olen; in bhnd_nvram_val_generic_encode()
1606 *olen = nbytes; in bhnd_nvram_val_generic_encode()
1626 size_t ilen, void *outp, size_t *olen, bhnd_nvram_type otype) in bhnd_nvram_val_generic_encode_elem() argument
1633 return (bhnd_nvram_val_encode_null(inp, ilen, itype, outp, olen, in bhnd_nvram_val_generic_encode_elem()
1638 olen, otype)); in bhnd_nvram_val_generic_encode_elem()
1643 olen, otype)); in bhnd_nvram_val_generic_encode_elem()
1646 return (bhnd_nvram_val_encode_bool(inp, ilen, itype, outp, olen, in bhnd_nvram_val_generic_encode_elem()
1657 return (bhnd_nvram_val_encode_int(inp, ilen, itype, outp, olen, in bhnd_nvram_val_generic_encode_elem()
1670 size_t *olen) in bhnd_nvram_val_generic_next() argument
1678 return (bhnd_nvram_value_array_next(inp, ilen, itype, prev, olen)); in bhnd_nvram_val_generic_next()