Lines Matching defs:data
48 int util_is_printable_string(const void *data, int len)
50 const char *s = data;
80 * * Displays data of a given length according to selected options
82 * * If a specific data type is provided in disp, then this is used. Otherwise
83 * * we try to guess the data type / size from the contents.
86 * * @param data Data to display
88 * * @return 0 if ok, -1 if data does not match format
90 int show_data(struct display_info *disp, const char *data, int len)
93 const uint8_t *p = (const uint8_t *)data;
99 /* no data, don't print */
104 (!disp->type && util_is_printable_string(data, len));
106 if (data[len - 1] != '\0') {
110 for (s = data; s - data < len; s += strlen(s) + 1) {
111 if (s != data)
122 "selected data size\n");
148 const struct fdt_property *data;
157 data = fdt_get_property_by_offset(blob, prop, NULL);
158 name = fdt_string(blob, fdt32_to_cpu(data->nameoff));
221 * * Show the data for a given node (and perhaps property) according to the
313 "\t-t <type>\tType of data\n"