Lines Matching refs:err
91 int offset, err; in ft_mac_address_setup() local
93 err = cboot_get_ethaddr(cboot_fdt, local_mac); in ft_mac_address_setup()
94 if (err < 0) in ft_mac_address_setup()
110 err = fdt_setprop(fdt, offset, "local-mac-address", local_mac, in ft_mac_address_setup()
112 if (!err) in ft_mac_address_setup()
118 err = fdt_setprop(fdt, offset, "mac-address", mac, in ft_mac_address_setup()
120 if (!err) in ft_mac_address_setup()
129 int err; in ft_copy_carveout() local
131 err = fdtdec_get_carveout(src, node, "memory-region", 0, &fb); in ft_copy_carveout()
132 if (err < 0) { in ft_copy_carveout()
133 if (err != -FDT_ERR_NOTFOUND) in ft_copy_carveout()
135 err); in ft_copy_carveout()
137 return err; in ft_copy_carveout()
140 err = fdtdec_set_carveout(dst, node, "memory-region", 0, "framebuffer", in ft_copy_carveout()
142 if (err < 0) { in ft_copy_carveout()
143 printf("failed to set carveout for %s: %d\n", node, err); in ft_copy_carveout()
144 return err; in ft_copy_carveout()
158 int err; in ft_carveout_setup() local
161 err = ft_copy_carveout(fdt, cboot_fdt, nodes[i]); in ft_carveout_setup()
162 if (err < 0) { in ft_carveout_setup()
163 if (err != -FDT_ERR_NOTFOUND) in ft_carveout_setup()
165 nodes[i], err); in ft_carveout_setup()