Home
last modified time | relevance | path

Searched full:chosen (Results 1 – 25 of 2032) sorted by relevance

12345678910>>...82

/Linux-v5.15/arch/powerpc/boot/
Dmain.c101 static struct addr_range prep_initrd(struct addr_range vmlinux, void *chosen, in prep_initrd() argument
143 setprop_val(chosen, "linux,initrd-start", (u32)(initrd_addr)); in prep_initrd()
144 setprop_val(chosen, "linux,initrd-end", (u32)(initrd_addr+initrd_size)); in prep_initrd()
150 static void prep_esm_blob(struct addr_range vmlinux, void *chosen) in prep_esm_blob() argument
182 setprop_val(chosen, "linux,esm-blob-start", (u32)(esm_blob_addr)); in prep_esm_blob()
183 setprop_val(chosen, "linux,esm-blob-end", (u32)(esm_blob_addr + esm_blob_size)); in prep_esm_blob()
186 static inline void prep_esm_blob(struct addr_range vmlinux, void *chosen) { } in prep_esm_blob() argument
190 * edit the command line passed to vmlinux (by setting /chosen/bootargs).
196 static void prep_cmdline(void *chosen) in prep_cmdline() argument
203 n = getprop(chosen, "linux,cmdline-timeout", &v, sizeof(v)); in prep_cmdline()
[all …]
Dps3.c27 * edit the command line passed to vmlinux (by setting /chosen/bootargs).
34 static void prep_cmdline(void *chosen) in prep_cmdline() argument
37 getprop(chosen, "bootargs", cmdline, BOOT_COMMAND_LINE_SIZE-1); in prep_cmdline()
39 setprop_str(chosen, "bootargs", cmdline); in prep_cmdline()
106 void *chosen; in platform_init() local
118 chosen = finddevice("/chosen"); in platform_init()
124 setprop_val(chosen, "linux,initrd-start", (u32)(_initrd_start)); in platform_init()
125 setprop_val(chosen, "linux,initrd-end", (u32)(_initrd_end)); in platform_init()
128 prep_cmdline(chosen); in platform_init()
Dplanetcore.c108 void *node, *chosen; in planetcore_set_stdout_path() local
123 chosen = finddevice("/chosen"); in planetcore_set_stdout_path()
124 if (!chosen) in planetcore_set_stdout_path()
125 chosen = create_node(NULL, "chosen"); in planetcore_set_stdout_path()
126 if (!chosen) in planetcore_set_stdout_path()
129 setprop_str(chosen, "linux,stdout-path", path); in planetcore_set_stdout_path()
Doflib.c106 * space in the chosen mmu node, and then do a map operation to
115 phandle oprom, chosen; in check_of_version() local
128 chosen = of_finddevice("/chosen"); in check_of_version()
129 if (chosen == (phandle) -1) { in check_of_version()
130 chosen = of_finddevice("/chosen@0"); in check_of_version()
131 if (chosen == (phandle) -1) { in check_of_version()
132 printf("no chosen\n"); in check_of_version()
136 if (of_getprop(chosen, "mmu", &chosen_mmu, sizeof(chosen_mmu)) <= 0) { in check_of_version()
/Linux-v5.15/Documentation/devicetree/bindings/arm/
Dsecure.txt56 The secure-chosen node
59 Similar to the /chosen node which serves as a place for passing data
60 between firmware and the operating system, the /secure-chosen node may
62 below may appear in the /secure-chosen node.
65 its console output. The syntax is the same as for /chosen/stdout-path.
66 If the /secure-chosen node exists but the stdout-path property is not
68 /secure-chosen does not exist, the Secure OS should use the value of
69 /chosen/stdout-path instead (that is, use the same device as the
/Linux-v5.15/Documentation/devicetree/bindings/
Dchosen.txt1 The chosen node
4 The chosen node does not represent a real device, but serves as a place
6 arguments. Data in the chosen node does not represent the hardware.
21 chosen {
35 with a stdout-path property under /chosen, as described in the Devicetree
39 chosen {
93 chosen {
115 chosen {
133 chosen {
/Linux-v5.15/arch/mips/generic/
Dyamon-dt.c24 /* find or add chosen node */ in yamon_dt_append_cmdline()
25 chosen_off = fdt_path_offset(fdt, "/chosen"); in yamon_dt_append_cmdline()
27 chosen_off = fdt_add_subnode(fdt, 0, "chosen"); in yamon_dt_append_cmdline()
29 pr_err("Unable to find or add DT chosen node: %d\n", in yamon_dt_append_cmdline()
215 /* find or add chosen node */ in yamon_dt_serial_config()
216 chosen_off = fdt_path_offset(fdt, "/chosen"); in yamon_dt_serial_config()
218 chosen_off = fdt_add_subnode(fdt, 0, "chosen"); in yamon_dt_serial_config()
220 pr_err("Unable to find or add DT chosen node: %d\n", in yamon_dt_serial_config()
/Linux-v5.15/arch/mips/include/asm/
Dyamon-dt.h25 * yamon_dt_append_cmdline() - Append YAMON-provided command line to /chosen
29 * /chosen node in @fdt.
49 * yamon_dt_serial_config() - Append YAMON-provided serial config to /chosen
52 * Generate a stdout-path property in the /chosen node of @fdt, based upon
/Linux-v5.15/Documentation/devicetree/bindings/regulator/
Dfixed-regulator.yaml55 the compatible is chosen to regulator-fixed-clock. The clock binding
56 is mandatory if compatible is chosen to regulator-fixed-clock.
63 available if the compatible is chosen to regulator-fixed-domain.
70 available if the compatible is chosen to regulator-fixed-domain. The
71 power-domain binding is mandatory if compatible is chosen to
/Linux-v5.15/arch/arm/boot/compressed/
Datags_to_fdt.c80 fdt_bootargs = getprop(fdt, "/chosen", "bootargs", &len); in merge_fdt_bootargs()
100 setprop_string(fdt, "/chosen", "bootargs", cmdline); in merge_fdt_bootargs()
163 * tags will be chosen. in atags_to_fdt()
169 setprop_string(fdt, "/chosen", "bootargs", in atags_to_fdt()
199 setprop_cell(fdt, "/chosen", "linux,initrd-start", in atags_to_fdt()
201 setprop_cell(fdt, "/chosen", "linux,initrd-end", in atags_to_fdt()
/Linux-v5.15/arch/powerpc/mm/
Dinit_64.c392 * /chosen/ibm,architecture-vec-5 to see if the hypervisor is willing to do
397 unsigned long root, chosen; in early_check_vec5() local
403 chosen = of_get_flat_dt_subnode_by_name(root, "chosen"); in early_check_vec5()
404 if (chosen == -FDT_ERR_NOTFOUND) { in early_check_vec5()
408 vec5 = of_get_flat_dt_prop(chosen, "ibm,architecture-vec-5", &size); in early_check_vec5()
447 * Check /chosen/ibm,architecture-vec-5 if running as a guest. in mmu_early_init_devtree()
/Linux-v5.15/Documentation/devicetree/bindings/input/
Dinput-reset.txt11 The /chosen node should contain a 'linux,sysrq-reset-seq' child node to define
24 chosen {
/Linux-v5.15/drivers/firmware/efi/libstub/
Dfdt.c79 node = fdt_subnode_offset(fdt, 0, "chosen"); in update_fdt()
81 node = fdt_add_subnode(fdt, 0, "chosen"); in update_fdt()
111 /* Add FDT entries for EFI runtime services in chosen node. */ in update_fdt()
112 node = fdt_subnode_offset(fdt, 0, "chosen"); in update_fdt()
165 int node = fdt_path_offset(fdt, "/chosen"); in update_fdt_memmap()
Driscv-stub.c38 chosen_node = fdt_path_offset(fdt, "/chosen"); in get_boot_hartid_from_fdt()
53 efi_err("/chosen/boot-hartid missing or invalid!\n"); in check_platform_features()
/Linux-v5.15/mm/
Doom_kill.c349 if (oc->chosen) in oom_evaluate_task()
350 put_task_struct(oc->chosen); in oom_evaluate_task()
352 oc->chosen = task; in oom_evaluate_task()
357 if (oc->chosen) in oom_evaluate_task()
358 put_task_struct(oc->chosen); in oom_evaluate_task()
359 oc->chosen = (void *)-1UL; in oom_evaluate_task()
365 * 'points'. In case scan was aborted, oc->chosen is set to -1.
959 struct task_struct *victim = oc->chosen; in oom_kill_process()
1098 oc->chosen = current; in out_of_memory()
1105 if (!oc->chosen) { in out_of_memory()
[all …]
/Linux-v5.15/drivers/of/
Dkexec.c181 * @chosen_node: Offset to the chosen node in the device tree
215 * @chosen_node: Offset to the chosen node.
296 chosen_node = fdt_path_offset(fdt, "/chosen"); in of_kexec_alloc_and_setup_fdt()
299 "chosen"); in of_kexec_alloc_and_setup_fdt()
439 ret = setup_ima_buffer(image, fdt, fdt_path_offset(fdt, "/chosen")); in of_kexec_alloc_and_setup_fdt()
Dfdt.c916 * @node: reference to node containing initrd location ('chosen')
949 * @node: reference to node containing elfcorehdr location ('chosen')
978 * @node: reference to node containing usable memory range location ('chosen')
1008 offset = fdt_path_offset(fdt, "/chosen"); in early_init_dt_scan_chosen_stdout()
1010 offset = fdt_path_offset(fdt, "/chosen@0"); in early_init_dt_scan_chosen_stdout()
1138 pr_debug("search \"chosen\", depth: %d, uname: %s\n", depth, uname); in early_init_dt_scan_chosen()
1141 (strcmp(uname, "chosen") != 0 && strcmp(uname, "chosen@0") != 0)) in early_init_dt_scan_chosen()
1273 /* Retrieve various information from the /chosen node */ in early_init_dt_scan_nodes()
1276 pr_warn("No chosen node found, continuing without\n"); in early_init_dt_scan_nodes()
1310 /* Get pointer to "/chosen" and "/aliases" nodes for use everywhere */ in unflatten_device_tree()
/Linux-v5.15/lib/
DKconfig.kcsan108 due to reducing cache-line contention. The chosen default is a
131 If false, the chosen delays are always the KCSAN_UDELAY_* values
149 KCSAN_WATCH_SKIP. If false, the chosen value is always
176 # The defaults are chosen to be conservative, and can miss certain bugs.
/Linux-v5.15/Documentation/security/
DIMA-templates.rst35 parameter. At boot time, IMA initializes the chosen template descriptor
42 descriptor chosen through the kernel configuration or through the newly
47 fields associated to the chosen template descriptor and store the result
/Linux-v5.15/arch/arm64/boot/dts/rockchip/
Drk3568-evb1-v10.dts16 chosen: chosen { label
/Linux-v5.15/include/uapi/linux/
Dkcov.h30 * In new KCOV version the mode is chosen by calling
33 * compatibility, we have chosen the value KCOV_TRACE_PC to be 0.
/Linux-v5.15/drivers/net/phy/
Ddp83640.c144 struct dp83640_private *chosen; member
145 /* list of the other attached phyters, not chosen */
307 struct dp83640_private *dp83640 = clock->chosen; in periodic_output()
378 struct phy_device *phydev = clock->chosen->phydev; in ptp_dp83640_adjfine()
411 struct phy_device *phydev = clock->chosen->phydev; in ptp_dp83640_adjtime()
433 struct phy_device *phydev = clock->chosen->phydev; in ptp_dp83640_gettime()
458 struct phy_device *phydev = clock->chosen->phydev; in ptp_dp83640_settime()
475 struct phy_device *phydev = clock->chosen->phydev; in ptp_dp83640_enable()
636 struct phy_device *master = clock->chosen->phydev; in recalibrate()
1042 if (chosen_phy == -1 && !clock->chosen) in choose_this_phy()
[all …]
/Linux-v5.15/Documentation/devicetree/bindings/display/
Dsimple-framebuffer.yaml20 sub-nodes of the chosen node (*). Simplefb nodes must be named
37 interaction, then the chosen node stdout-path property should point
166 chosen {
/Linux-v5.15/tools/testing/selftests/sparc64/drivers/
Dadi-test.c319 /* somewhat arbitrarily chosen address */ in test0_prpw_aligned_1byte()
353 /* somewhat arbitrarily chosen address */ in test1_prpw_aligned_4096bytes()
393 /* somewhat arbitrarily chosen address */ in test2_prpw_aligned_10327bytes()
433 /* somewhat arbitrarily chosen address */ in test3_prpw_unaligned_12541bytes()
521 /* somewhat arbitrarily chosen address */ in test5_rw_aligned_1byte()
566 /* somewhat arbitrarily chosen address */ in test6_rw_aligned_9434bytes()
618 /* somewhat arbitrarily chosen address */ in test7_rw_aligned_14963bytes()
/Linux-v5.15/arch/powerpc/kernel/
Dprom_init.c121 phandle chosen; member
797 if (!IS_ENABLED(CONFIG_CMDLINE_FORCE) && (long)prom.chosen > 0) in early_cmdline_parse()
798 l = prom_getprop(prom.chosen, "bootargs", p, COMMAND_LINE_SIZE-1); in early_cmdline_parse()
1344 int prop_len = prom_getproplen(prom.chosen, in prom_check_platform_support()
1366 prom_getprop(prom.chosen, "ibm,arch-vec-5-platform-support", &vec, sizeof(vec)); in prom_check_platform_support()
1782 if (prom_getprop(prom.chosen, "stdin", &val, sizeof(val)) > 0) { in prom_close_stdin()
2221 prom.chosen = call_prom("finddevice", 1, 1, ADDR("/chosen")); in prom_init_client_services()
2222 if (!PHANDLE_VALID(prom.chosen)) in prom_init_client_services()
2223 prom_panic("cannot find chosen"); /* msg won't be printed :( */ in prom_init_client_services()
2259 prom_getprop(prom.chosen, "mmu", &prom.mmumap, in prom_find_mmu()
[all …]

12345678910>>...82