Lines Matching refs:buf

333 	const char *buf = str;
347 while (buf < end) {
350 while (!isxdigit(*buf) && buf < end)
351 buf++;
355 cpu_to_fdt32((uint32_t)strtol(buf, NULL, base));
358 u8buf[cnt] = (uint8_t)strtol(buf, NULL, base);
364 buf++;
366 while ((isxdigit(*buf) || *buf == 'x') && buf < end)
367 buf++;
474 uint8_t *buf, *sb;
526 sb = buf = (uint8_t *)malloc(len);
527 if (!buf)
530 bzero(buf, len);
538 *(uint64_t *)buf =
541 *(uint32_t *)buf =
544 buf += sizeof(uint32_t) * addr_cells;
546 *(uint64_t *)buf =
549 *(uint32_t *)buf =
552 buf += sizeof(uint32_t) * size_cells;
577 sb = buf = (uint8_t *)malloc(len);
578 if (!buf)
581 bzero(buf, len);
588 *(uint64_t *)buf =
591 *(uint32_t *)buf =
594 buf += sizeof(uint32_t) * addr_cells;
596 *(uint64_t *)buf =
599 *(uint32_t *)buf =
602 buf += sizeof(uint32_t) * size_cells;
983 fdt_data_str(const void *data, int len, int count, char **buf)
1037 *buf = b;
1047 fdt_data_cell(const void *data, int len, char **buf)
1091 *buf = b;
1101 fdt_data_bytes(const void *data, int len, char **buf)
1139 *buf = b;
1149 fdt_data_fmt(const void *data, int len, char **buf)
1154 *buf = NULL;
1159 return (fdt_data_str(data, len, count, buf));
1162 return (fdt_data_cell(data, len, buf));
1165 return (fdt_data_bytes(data, len, buf));
1171 char *line, *buf;
1186 buf = NULL;
1203 if (fdt_data_fmt(data, len, &buf) != 0) {
1209 strlen(buf) + 2);
1216 sprintf(line, "%s" FDT_PROP_SEP "%s\n", name, buf);
1224 if (buf)
1225 free(buf);
1237 const char *buf;
1255 buf = value;
1257 switch (*buf) {
1263 len = fdt_strtovect(buf, (void *)&cells, 100,
1271 len = fdt_strtovect(buf, (void *)&cells, 100,
1299 char *buf;
1311 buf = (char *)malloc(sizeof(char) * sz);
1312 if (buf == NULL) {
1317 bzero(buf, sizeof(char) * sz);
1321 strcpy(buf + idx, argv[i]);
1323 buf[idx] = ' ';
1326 buf[sz - 1] = '\0';
1327 *buffer = buf;