Lines Matching refs:err
67 int offset, err; in ft_mac_address_setup() local
69 err = cboot_get_ethaddr(cboot_fdt, local_mac); in ft_mac_address_setup()
70 if (err < 0) in ft_mac_address_setup()
86 err = fdt_setprop(fdt, offset, "local-mac-address", local_mac, in ft_mac_address_setup()
88 if (!err) in ft_mac_address_setup()
94 err = fdt_setprop(fdt, offset, "mac-address", mac, in ft_mac_address_setup()
96 if (!err) in ft_mac_address_setup()
105 int err; in ft_copy_carveout() local
107 err = fdtdec_get_carveout(src, node, "memory-region", 0, &fb); in ft_copy_carveout()
108 if (err < 0) { in ft_copy_carveout()
109 if (err != -FDT_ERR_NOTFOUND) in ft_copy_carveout()
111 err); in ft_copy_carveout()
113 return err; in ft_copy_carveout()
116 err = fdtdec_set_carveout(dst, node, "memory-region", 0, "framebuffer", in ft_copy_carveout()
118 if (err < 0) { in ft_copy_carveout()
119 printf("failed to set carveout for %s: %d\n", node, err); in ft_copy_carveout()
120 return err; in ft_copy_carveout()
135 int err; in ft_carveout_setup() local
140 err = ft_copy_carveout(fdt, cboot_fdt, nodes[i]); in ft_carveout_setup()
141 if (err < 0) { in ft_carveout_setup()
142 if (err != -FDT_ERR_NOTFOUND) in ft_carveout_setup()
144 nodes[i], err); in ft_carveout_setup()