Lines Matching +full:stdout +full:- +full:path
1 // SPDX-License-Identifier: GPL-2.0-or-later
7 #define pr_fmt(fmt) "yamon-dt: " fmt
16 #include <asm/yamon-dt.h>
26 if (chosen_off == -FDT_ERR_NOTFOUND) in yamon_dt_append_cmdline()
53 for (mr = regions; mr->size && memsize; ++mr) { in gen_fdt_mem_array()
61 size = min_t(unsigned long, memsize, mr->size); in gen_fdt_mem_array()
62 memsize -= size; in gen_fdt_mem_array()
65 *(mem_array++) = cpu_to_be32(mr->start); in gen_fdt_mem_array()
69 /* Discard the next mr->discard bytes */ in gen_fdt_mem_array()
70 memsize -= min_t(unsigned long, memsize, mr->discard); in gen_fdt_mem_array()
123 if (mem_off == -FDT_ERR_NOTFOUND) in yamon_dt_append_memory()
147 err = fdt_setprop(fdt, mem_off, "linux,usable-memory", in yamon_dt_append_memory()
150 pr_err("Unable to set linux,usable-memory property: %d\n", err); in yamon_dt_append_memory()
160 char mode_var_name[9], path[20], parity; in yamon_dt_serial_config() local
185 baud += mode_var[0] - '0'; in yamon_dt_serial_config()
195 stop_bits = mode_var[0] - '0'; in yamon_dt_serial_config()
211 WARN_ON(snprintf(path, sizeof(path), "serial%u:%u%c%u%s", in yamon_dt_serial_config()
213 hw_flow ? "r" : "") >= sizeof(path)); in yamon_dt_serial_config()
217 if (chosen_off == -FDT_ERR_NOTFOUND) in yamon_dt_serial_config()
225 err = fdt_setprop_string(fdt, chosen_off, "stdout-path", path); in yamon_dt_serial_config()
227 pr_err("Unable to set stdout-path property: %d\n", err); in yamon_dt_serial_config()