Lines Matching defs:data
54 * guarantees. intp points to the OBP data, and n the number of bytes.
79 * beginning of the data.
115 di_prop_fm_decode_ints(prop_handle_t *ph, void *data, uint_t *nelements)
125 * data without decoding it first and counting.
141 * If we cannot skip through the data, we cannot decode it
147 * Reset the data pointer to the beginning of the encoded data
182 *(int **)data = intp;
191 di_prop_fm_decode_strings(prop_handle_t *ph, void *data, uint_t *nelements)
225 * If we cannot skip through the data, we cannot decode it
261 *(char **)data = strs;
271 di_prop_fm_decode_bytes(prop_handle_t *ph, void *data, uint_t *nelements)
287 data, ph->ph_size);
324 *(uchar_t **)data = tmp;
335 * DDI_PROP_RESULT_ERROR: cannot decode the data
336 * DDI_PROP_RESULT_EOF: end of data
337 * DDI_PROP_OK: data was decoded
341 * DDI_PROP_RESULT_ERROR: cannot encode the data
342 * DDI_PROP_RESULT_EOF: end of data
343 * DDI_PROP_OK: data was encoded
347 * DDI_PROP_RESULT_ERROR: cannot skip the data
348 * DDI_PROP_RESULT_EOF: end of data
349 * DDI_PROP_OK: data was skipped
354 * DDI_PROP_RESULT_EOF: end of data
360 * DDI_PROP_RESULT_EOF: end of data
367 * OBP properties are a byte stream of data, so integers may not be
371 di_prop_1275_int(prop_handle_t *ph, uint_t cmd, int *data)
378 * Check that there is encoded data
399 *data = impl_di_prop_int_from_prom(
404 bcopy(ph->ph_cur_pos, (caddr_t)data, sizeof (int));
409 * bit of undecoded data.
416 * Check that there is room to encoded the data
428 bcopy((caddr_t)data, ph->ph_cur_pos, sizeof (int));
432 * space where we can store encoded data.
439 * Check that there is encoded data
456 * undecoded data.
486 di_prop_int64_op(prop_handle_t *ph, uint_t cmd, int64_t *data)
491 * Check that there is encoded data
507 bcopy(ph->ph_cur_pos, (caddr_t)data, sizeof (int64_t));
511 * bit of undecoded data.
519 * Check that there is room to encoded the data
531 bcopy((caddr_t)data, ph->ph_cur_pos, sizeof (int64_t));
535 * space where we can store encoded data.
543 * Check that there is encoded data
560 * undecoded data.
589 di_prop_1275_string(prop_handle_t *ph, uint_t cmd, char *data)
598 * Check that there is encoded data
613 bcopy((char *)ph->ph_cur_pos, data, n);
617 * undecoded data.
624 * Check that there is room to encoded the data
630 n = strlen(data) + 1;
639 bcopy(data, (char *)ph->ph_cur_pos, n);
643 * space where we can store encoded data.
650 * Check that there is encoded data
660 * since we may be looking up random OBP data.
687 return (strlen(data) + 1);
694 * since we may be looking up random OBP data.
726 di_prop_1275_bytes(prop_handle_t *ph, uint_t cmd, uchar_t *data,
732 * Check that there is encoded data
743 bcopy((char *)ph->ph_cur_pos, (char *)data, nelements);
753 * Check that there is room to encode the data
764 bcopy((char *)data, (char *)ph->ph_cur_pos, nelements);
768 * space where we can store encoded data.
775 * Check that there is encoded data
826 di_prop_decode_common(void *data, int size, int prop_type, int prom)
835 * If the encoded data came from software, no decoding needed
855 cp = *(char **)data;
858 * Don't trust the data passed in by the caller.
894 * Get the encoded data
897 ph.ph_data = *(uchar_t **)data;
901 * The data came from prom, use the 1275 OBP decode/encode routines.
921 if ((*prop_decoder)(&ph, data, (uint_t *)&nelements)
926 * Free the encoded data