Lines Matching +full:byte +full:- +full:len

1 /* SPDX-License-Identifier: GPL-2.0-or-later */
45 static inline void *xmalloc(size_t len) in xmalloc() argument
47 void *new = malloc(len); in xmalloc()
55 static inline void *xrealloc(void *p, size_t len) in xrealloc() argument
57 void *new = realloc(p, len); in xrealloc()
60 die("realloc() failed (len=%zd)\n", len); in xrealloc()
66 extern char *xstrndup(const char *s, size_t len);
76 * or multiple strings each of non-zero length.
79 * @param len The string length including terminator
82 bool util_is_printable_string(const void *data, int len);
96 * @param filename The filename to read, or - for stdin
97 * @param len If non-NULL, the amount of data we managed to read
100 char *utilfdt_read(const char *filename, size_t *len);
107 * @param filename The filename to read, or - for stdin
109 * @param len If non-NULL, the amount of data we managed to read
112 int utilfdt_read_err(const char *filename, char **buffp, size_t *len);
118 * @param filename The filename to write, or - for stdout
120 * @return 0 if ok, -1 on error
129 * @param filename The filename to write, or - for stdout
140 * hh or b 1 byte
141 * h 2 byte
142 * l 4 byte, default
157 * @return 0 if ok, -1 on error (no type given, or other invalid format)
162 * This is a usage message fragment for the -t option. It is the format
169 "\t\thh or b=byte, h=2 byte, l=4 byte (default)";
175 * the data will be displayed either as cells (if len is a multiple of 4
178 * If len is 0 then this function does nothing.
181 * @param len Length of property data
183 void utilfdt_print_data(const char *data, int len);
196 * @param errmsg If non-NULL, an error message to display
213 * @param errmsg If non-NULL, an error message to display