Lines Matching refs:err
39 int err; in fdt_get_string() local
50 err = totalsize; in fdt_get_string()
54 err = -FDT_ERR_BADOFFSET; in fdt_get_string()
78 err = -FDT_ERR_INTERNAL; in fdt_get_string()
86 err = -FDT_ERR_TRUNCATED; in fdt_get_string()
96 *lenp = err; in fdt_get_string()
145 int err; in fdt_generate_phandle() local
147 err = fdt_find_max_phandle(fdt, &max); in fdt_generate_phandle()
148 if (err < 0) in fdt_generate_phandle()
149 return err; in fdt_generate_phandle()
304 int err; in fdt_get_name() local
306 if (((err = fdt_ro_probe_(fdt)) < 0) in fdt_get_name()
307 || ((err = fdt_check_node_offset_(fdt, nodeoffset)) < 0)) in fdt_get_name()
321 err = -FDT_ERR_BADSTRUCTURE; in fdt_get_name()
334 *len = err; in fdt_get_name()
360 int err; in fdt_get_property_by_offset_() local
364 (err = fdt_check_prop_offset_(fdt, offset)) < 0) { in fdt_get_property_by_offset_()
366 *lenp = err; in fdt_get_property_by_offset_()
635 int err; in fdt_node_depth() local
637 err = fdt_supernode_atdepth_offset(fdt, nodeoffset, 0, &nodedepth); in fdt_node_depth()
638 if (err) in fdt_node_depth()
639 return (can_assume(LIBFDT_FLAWLESS) || err < 0) ? err : in fdt_node_depth()
839 int offset, err; in fdt_node_offset_by_compatible() local
851 err = fdt_node_check_compatible(fdt, offset, compatible); in fdt_node_offset_by_compatible()
852 if ((err < 0) && (err != -FDT_ERR_NOTFOUND)) in fdt_node_offset_by_compatible()
853 return err; in fdt_node_offset_by_compatible()
854 else if (err == 0) in fdt_node_offset_by_compatible()