Lines Matching defs:blob

373 	struct data blob       = empty_data;
385 die("Unknown device tree blob version %d\n", version);
403 "Warning: blob size %d >= minimum size %d\n",
417 * Assemble the blob: start with the header, add with alignment
421 blob = data_append_data(blob, &fdt, vi->hdr_size);
422 blob = data_append_align(blob, 8);
423 blob = data_merge(blob, reservebuf);
424 blob = data_append_zeroes(blob, sizeof(struct fdt_reserve_entry));
425 blob = data_merge(blob, dtbuf);
426 blob = data_merge(blob, strbuf);
429 * If the user asked for more space than is used, pad out the blob.
432 blob = data_append_zeroes(blob, padlen);
434 if (fwrite(blob.val, blob.len, 1, f) != 1) {
436 die("Error writing device tree blob: %s\n",
439 die("Short write on device tree blob\n");
443 * data_merge() frees the right-hand element so only the blob
446 data_free(blob);
476 die("Unknown device tree blob version %d\n", version);
783 die("Premature FDT_END in device tree blob\n");
795 die("Invalid opcode word %08x in device tree blob\n",
810 char *blob;
825 die("Error reading DT blob magic number: %s\n",
829 die("EOF reading DT blob magic number\n");
840 die("Error reading DT blob size: %s\n", strerror(errno));
843 die("EOF reading DT blob size\n");
845 die("Mysterious short read reading blob size\n");
850 die("DT blob size (%d) is too small\n", totalsize);
852 blob = xmalloc(totalsize);
854 fdt = (struct fdt_header *)blob;
859 p = blob + sizeof(magic) + sizeof(totalsize);
863 die("EOF before reading %d bytes of DT blob\n",
868 die("Error reading DT blob: %s\n",
894 inbuf_init(&strbuf, blob + off_str, blob + off_str + size_str);
896 inbuf_init(&strbuf, blob + off_str, blob + totalsize);
912 blob + off_mem_rsvmap, blob + totalsize);
913 inbuf_init(&dtbuf, blob + off_dt, blob + totalsize);
920 die("Device tree blob doesn't begin with FDT_BEGIN_NODE (begins with 0x%08x)\n", val);
926 die("Device tree blob doesn't end with FDT_END\n");
928 free(blob);