Home
last modified time | relevance | path

Searched refs:chosen (Results 1 – 25 of 1387) sorted by relevance

12345678910>>...56

/kernel/linux/linux-5.10/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
196 static void prep_cmdline(void *chosen) in prep_cmdline() argument
203 n = getprop(chosen, "linux,cmdline-timeout", &v, sizeof(v)); in prep_cmdline()
208 getprop(chosen, "bootargs", cmdline, BOOT_COMMAND_LINE_SIZE-1); in prep_cmdline()
[all …]
Dps3.c41 static void prep_cmdline(void *chosen) in prep_cmdline() argument
44 getprop(chosen, "bootargs", cmdline, BOOT_COMMAND_LINE_SIZE-1); in prep_cmdline()
46 setprop_str(chosen, "bootargs", cmdline); in prep_cmdline()
113 void *chosen; in platform_init() local
125 chosen = finddevice("/chosen"); in platform_init()
131 setprop_val(chosen, "linux,initrd-start", (u32)(_initrd_start)); in platform_init()
132 setprop_val(chosen, "linux,initrd-end", (u32)(_initrd_end)); in platform_init()
135 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.c115 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()
136 if (of_getprop(chosen, "mmu", &chosen_mmu, sizeof(chosen_mmu)) <= 0) { in check_of_version()
/kernel/linux/linux-5.10/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 {
/kernel/linux/linux-5.10/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
/kernel/linux/linux-5.10/mm/
Doom_kill.c346 if (oc->chosen) in oom_evaluate_task()
347 put_task_struct(oc->chosen); in oom_evaluate_task()
349 oc->chosen = task; in oom_evaluate_task()
354 if (oc->chosen) in oom_evaluate_task()
355 put_task_struct(oc->chosen); in oom_evaluate_task()
356 oc->chosen = (void *)-1UL; in oom_evaluate_task()
983 struct task_struct *victim = oc->chosen; in oom_kill_process()
1122 oc->chosen = current; in out_of_memory()
1129 if (!oc->chosen) { in out_of_memory()
1140 if (oc->chosen && oc->chosen != (void *)-1UL) in out_of_memory()
[all …]
/kernel/linux/linux-5.10/arch/arm/boot/compressed/
Dkaslr.c333 int chosen, len; in kaslr_early_init() local
339 chosen = fdt_path_offset(fdt, "/chosen"); in kaslr_early_init()
340 if (chosen < 0) in kaslr_early_init()
343 command_line = fdt_getprop(fdt, chosen, "bootargs", &len); in kaslr_early_init()
391 prop = fdt_getprop(fdt, chosen, "linux,initrd-start", &len); in kaslr_early_init()
398 prop = fdt_getprop(fdt, chosen, "linux,initrd-end", &len); in kaslr_early_init()
/kernel/linux/linux-5.10/arch/powerpc/mm/
Dinit_64.c397 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()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/input/
Dinput-reset.txt11 The /chosen node should contain a 'linux,sysrq-reset-seq' child node to define
24 chosen {
/kernel/linux/linux-5.10/drivers/pwm/
Dcore.c1005 struct pwm_lookup *p, *chosen = NULL; in pwm_get() local
1060 chosen = p; in pwm_get()
1071 if (!chosen) in pwm_get()
1074 chip = pwmchip_find_by_name(chosen->provider); in pwm_get()
1082 if (!chip && chosen->module) { in pwm_get()
1083 err = request_module(chosen->module); in pwm_get()
1085 chip = pwmchip_find_by_name(chosen->provider); in pwm_get()
1091 pwm = pwm_request_from_chip(chip, chosen->index, con_id ?: dev_id); in pwm_get()
1101 pwm->args.period = chosen->period; in pwm_get()
1102 pwm->args.polarity = chosen->polarity; in pwm_get()
/kernel/linux/linux-5.10/drivers/net/phy/
Ddp83640.c136 struct dp83640_private *chosen; member
299 struct dp83640_private *dp83640 = clock->chosen; in periodic_output()
370 struct phy_device *phydev = clock->chosen->phydev; in ptp_dp83640_adjfine()
403 struct phy_device *phydev = clock->chosen->phydev; in ptp_dp83640_adjtime()
425 struct phy_device *phydev = clock->chosen->phydev; in ptp_dp83640_gettime()
450 struct phy_device *phydev = clock->chosen->phydev; in ptp_dp83640_settime()
467 struct phy_device *phydev = clock->chosen->phydev; in ptp_dp83640_enable()
627 struct phy_device *master = clock->chosen->phydev; in recalibrate()
1036 if (chosen_phy == -1 && !clock->chosen) in choose_this_phy()
1120 if (clock->chosen && !list_empty(&clock->phylist)) in dp83640_config_init()
[all …]
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dprom_init.c119 phandle chosen; member
777 if (!IS_ENABLED(CONFIG_CMDLINE_FORCE) && (long)prom.chosen > 0) in early_cmdline_parse()
778 l = prom_getprop(prom.chosen, "bootargs", p, COMMAND_LINE_SIZE-1); in early_cmdline_parse()
1313 int prop_len = prom_getproplen(prom.chosen, in prom_check_platform_support()
1333 prom_getprop(prom.chosen, "ibm,arch-vec-5-platform-support", &vec, sizeof(vec)); in prom_check_platform_support()
1749 if (prom_getprop(prom.chosen, "stdin", &val, sizeof(val)) > 0) { in prom_close_stdin()
2186 prom.chosen = call_prom("finddevice", 1, 1, ADDR("/chosen")); in prom_init_client_services()
2187 if (!PHANDLE_VALID(prom.chosen)) in prom_init_client_services()
2224 prom_getprop(prom.chosen, "mmu", &prom.mmumap, in prom_find_mmu()
2241 if (prom_getprop(prom.chosen, "stdout", &val, sizeof(val)) <= 0) in prom_init_stdout()
[all …]
/kernel/linux/linux-5.10/arch/mips/boot/dts/ralink/
Dvocore2.dts14 chosen {
Domega2p.dts14 chosen {
Drt3883_eval.dts15 chosen {
Dmt7620a_eval.dts15 chosen {
/kernel/linux/linux-5.10/arch/arm64/boot/dts/qcom/
Dmsm8996-mtp.dtsi13 chosen {
Dmsm8916-mtp.dtsi14 chosen {
Dsdm630-sony-xperia-nile-voyager.dts14 chosen {
/kernel/linux/linux-5.10/arch/mips/boot/dts/brcm/
Dbcm93384wvg.dts10 chosen {
Dbcm3368-netgear-cvg834g.dts15 chosen {
Dbcm9ejtagprb.dts15 chosen {
Dbcm6362-neufbox6-sercomm.dts15 chosen {
/kernel/linux/linux-5.10/arch/riscv/boot/dts/kendryte/
Dk210.dts14 chosen {

12345678910>>...56