Lines Matching refs:blob

28 char *of_fdt_get_string(struct boot_param_header *blob, u32 offset)  in of_fdt_get_string()  argument
30 return ((char *)blob) + in of_fdt_get_string()
31 be32_to_cpu(blob->off_dt_strings) + offset; in of_fdt_get_string()
38 void *of_fdt_get_property(struct boot_param_header *blob, in of_fdt_get_property() argument
58 if (be32_to_cpu(blob->version) < 0x10) in of_fdt_get_property()
61 nstr = of_fdt_get_string(blob, noff); in of_fdt_get_property()
86 int of_fdt_is_compatible(struct boot_param_header *blob, in of_fdt_is_compatible() argument
92 cp = of_fdt_get_property(blob, node, "compatible", &cplen); in of_fdt_is_compatible()
110 int of_fdt_match(struct boot_param_header *blob, unsigned long node, in of_fdt_match() argument
119 tmp = of_fdt_is_compatible(blob, node, *compat); in of_fdt_match()
149 static unsigned long unflatten_dt_node(struct boot_param_header *blob, in unflatten_dt_node() argument
251 if (be32_to_cpu(blob->version) < 0x10) in unflatten_dt_node()
254 pname = of_fdt_get_string(blob, noff); in unflatten_dt_node()
333 mem = unflatten_dt_node(blob, mem, p, np, allnextpp, in unflatten_dt_node()
357 static void __unflatten_device_tree(struct boot_param_header *blob, in __unflatten_device_tree() argument
366 if (!blob) { in __unflatten_device_tree()
372 pr_debug("magic: %08x\n", be32_to_cpu(blob->magic)); in __unflatten_device_tree()
373 pr_debug("size: %08x\n", be32_to_cpu(blob->totalsize)); in __unflatten_device_tree()
374 pr_debug("version: %08x\n", be32_to_cpu(blob->version)); in __unflatten_device_tree()
376 if (be32_to_cpu(blob->magic) != OF_DT_HEADER) { in __unflatten_device_tree()
382 start = ((unsigned long)blob) + in __unflatten_device_tree()
383 be32_to_cpu(blob->off_dt_struct); in __unflatten_device_tree()
384 size = unflatten_dt_node(blob, 0, &start, NULL, NULL, 0); in __unflatten_device_tree()
398 start = ((unsigned long)blob) + in __unflatten_device_tree()
399 be32_to_cpu(blob->off_dt_struct); in __unflatten_device_tree()
400 unflatten_dt_node(blob, mem, &start, NULL, &allnextp, 0); in __unflatten_device_tree()
424 void of_fdt_unflatten_tree(unsigned long *blob, in of_fdt_unflatten_tree() argument
428 (struct boot_param_header *)blob; in of_fdt_unflatten_tree()