Lines Matching refs:outp

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,
277 void *outp;
317 outp = bhnd_nvram_val_alloc_bytes(value, olen, otype, flags);
318 if (outp == NULL)
322 error = bhnd_nvram_value_coerce(inp, ilen, itype, outp, &olen, otype);
419 void *outp;
461 outp = bhnd_nvram_val_alloc_bytes(value, olen, otype, flags);
462 if (outp == NULL)
466 if ((error = bhnd_nvram_val_encode(src, outp, &olen, otype)))
664 void *outp, size_t *olen, bhnd_nvram_type otype)
672 if (outp != NULL)
693 if (outp == NULL)
707 void *outp, size_t *olen, bhnd_nvram_type otype)
717 if (outp != NULL)
749 strcpy(outp, str);
761 BHND_NVRAM_TYPE_UINT8, outp, olen, otype));
771 if (outp == NULL)
785 void *outp, size_t *olen, bhnd_nvram_type otype)
798 BHND_NVRAM_TYPE_UINT8_ARRAY, outp, olen, ""));
804 BHND_NVRAM_TYPE_UINT8_ARRAY, outp, olen, otype));
818 bhnd_nvram_type itype, void *outp, size_t *olen, bhnd_nvram_type otype)
837 if (outp != NULL)
867 *((uint8_t *)outp + nbytes) = cstr[i];
873 if (limit < *olen && outp != NULL)
907 *((bhnd_nvram_bool_t *)outp) = bval;
911 if (limit < *olen && outp != NULL)
955 *((uint8_t *)outp + nbytes) = byte;
965 if (limit < *olen && outp != NULL)
996 error = bhnd_nvram_parse_int(p, plen, 0, &parsed_len, outp,
1026 if (outp == NULL)
1034 strncpy(outp, cstr, cstr_len);
1035 *((char *)outp + cstr_len) = '\0';
1048 void *outp, size_t *olen, bhnd_nvram_type otype)
1061 if (outp != NULL)
1187 *((bhnd_nvram_bool_t *)outp) = bval;
1202 *((uint8_t *)outp) = (uint8_t)intv.u64;
1212 *((uint16_t *)outp) = (uint16_t)intv.u64;
1222 *((uint32_t *)outp) = (uint32_t)intv.u64;
1229 *((uint64_t *)outp) = intv.u64;
1239 *((int8_t *)outp) = (int8_t)intv.i64;
1249 *((int16_t *)outp) = (int16_t)intv.i64;
1259 *((int32_t *)outp) = (int32_t)intv.i64;
1266 *((int64_t *)outp) = intv.i64;
1275 len = snprintf(outp, limit, "%" PRId64, intv.i64);
1277 len = snprintf(outp, limit, "%" PRIu64, intv.u64);
1299 if (outp == NULL)
1309 * Encode the given @p value as @p otype, writing the result to @p outp.
1312 * @param[out] outp On success, the value will be written to this
1315 * @param[in,out] olen The capacity of @p outp. On success, will be set
1317 * @param otype The data type to be written to @p outp.
1320 * @retval ENOMEM If the @p outp is non-NULL, and the provided @p olen
1328 bhnd_nvram_val_encode(bhnd_nvram_val *value, void *outp, size_t *olen,
1333 return (value->fmt->op_encode(value, outp, olen, otype));
1335 return (bhnd_nvram_val_generic_encode(value, outp, olen, otype));
1340 * @p outp.
1347 * @param[out] outp On success, the value will be written to this
1350 * @param[in,out] olen The capacity of @p outp. On success, will be set
1352 * @param otype The data type to be written to @p outp.
1355 * @retval ENOMEM If the @p outp is non-NULL, and the provided @p olen
1364 size_t ilen, void *outp, size_t *olen, bhnd_nvram_type otype)
1368 return (value->fmt->op_encode_elem(value, inp, ilen, outp,
1372 return (bhnd_nvram_val_generic_encode_elem(value, inp, ilen, outp,
1509 bhnd_nvram_val_generic_encode(bhnd_nvram_val *value, void *outp, size_t *olen,
1543 return (bhnd_nvram_val_encode_elem(value, inp, ilen, outp, olen,
1556 return (bhnd_nvram_val_encode_elem(value, inp, ilen, outp, olen,
1561 if (outp != NULL)
1586 elem_outp = (uint8_t *)outp + nbytes;
1609 if (outp == NULL)
1626 size_t ilen, void *outp, size_t *olen, bhnd_nvram_type otype)
1633 return (bhnd_nvram_val_encode_null(inp, ilen, itype, outp, olen,
1637 return (bhnd_nvram_val_encode_data(inp, ilen, itype, outp,
1642 return (bhnd_nvram_val_encode_string(inp, ilen, itype, outp,
1646 return (bhnd_nvram_val_encode_bool(inp, ilen, itype, outp, olen,
1657 return (bhnd_nvram_val_encode_int(inp, ilen, itype, outp, olen,