Home
last modified time | relevance | path

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

12345678910>>...52

/freebsd/sys/dev/uart/
H A Duart_cpu_powerpc.c113 phandle_t input, opts, chosen; in uart_cpu_getdev() local
117 chosen = OF_finddevice("/chosen"); in uart_cpu_getdev()
121 if (chosen != -1 && error != 0) in uart_cpu_getdev()
122 error = ofw_get_uart_console(chosen, &input, in uart_cpu_getdev()
124 if (chosen != -1 && error != 0) in uart_cpu_getdev()
125 error = ofw_get_uart_console(chosen, &input, in uart_cpu_getdev()
127 if (chosen != -1 && error != 0) in uart_cpu_getdev()
128 error = ofw_get_console_phandle_path(chosen, &input, in uart_cpu_getdev()
130 if (chosen != -1 && error != 0) in uart_cpu_getdev()
131 error = ofw_get_uart_console(chosen, &input, in uart_cpu_getdev()
[all …]
H A Duart_bus_fdt.c116 phandle_chosen_propdev(phandle_t chosen, const char *name, phandle_t *node) in phandle_chosen_propdev() argument
121 if (OF_getprop(chosen, name, buf, sizeof(buf)) <= 0) in phandle_chosen_propdev()
182 phandle_t node, chosen; in uart_cpu_fdt_probe() local
206 if ((chosen = OF_finddevice("/chosen")) != -1) { in uart_cpu_fdt_probe()
208 if (phandle_chosen_propdev(chosen, *name, in uart_cpu_fdt_probe()
213 if (chosen == -1 || *name == NULL) in uart_cpu_fdt_probe()
/freebsd/sys/powerpc/ofw/
H A Dofw_initrd.c56 phandle_t chosen; in ofw_initrd_probe_and_attach() local
66 chosen = OF_finddevice("/chosen"); in ofw_initrd_probe_and_attach()
67 if (chosen <= 0) in ofw_initrd_probe_and_attach()
70 if (!OF_hasprop(chosen, "linux,initrd-start") || in ofw_initrd_probe_and_attach()
71 !OF_hasprop(chosen, "linux,initrd-end")) in ofw_initrd_probe_and_attach()
74 size = OF_getencprop(chosen, "linux,initrd-start", cell, sizeof(cell)); in ofw_initrd_probe_and_attach()
84 size = OF_getencprop(chosen, "linux,initrd-end", cell, sizeof(cell)); in ofw_initrd_probe_and_attach()
H A Dofw_machdep.c353 phandle_t chosen; in excise_initrd_region() local
359 chosen = OF_finddevice("/chosen"); in excise_initrd_region()
361 size = OF_getencprop(chosen, "linux,initrd-start", cell, sizeof(cell)); in excise_initrd_region()
374 size = OF_getencprop(chosen, "linux,initrd-end", cell, sizeof(cell)); in excise_initrd_region()
431 phandle_t chosen; in excise_fdt_reserved() local
434 chosen = OF_finddevice("/chosen"); in excise_fdt_reserved()
435 fdtmapsize = OF_getprop(chosen, "fdtmemreserv", fdtmap, sizeof(fdtmap)); in excise_fdt_reserved()
545 phandle = OF_finddevice("/chosen"); in ofw_mem_regions()
[all...]
/freebsd/usr.sbin/pkg/
H A Ddns_utils.c85 int *chosen; in compute_weight() local
95 chosen = malloc(sizeof(int) * (last - first + 1)); in compute_weight()
99 chosen[i] = arc4random_uniform(d[i]->weight * 100 / in compute_weight()
102 if (chosen[i] == chosen[j]) in compute_weight()
106 d[i]->finalweight = chosen[i]; in compute_weight()
112 free(chosen); in compute_weight()
/freebsd/sys/contrib/device-tree/Bindings/
H A 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 {
/freebsd/sys/contrib/device-tree/Bindings/arm/
H A 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
/freebsd/sys/dev/ofw/
H A Dofw_subr.c196 phandle_t chosen; in ofw_parse_bootargs() local
200 chosen = OF_finddevice("/chosen"); in ofw_parse_bootargs()
201 if (chosen == -1) in ofw_parse_bootargs()
202 return (chosen); in ofw_parse_bootargs()
204 if ((err = OF_getprop(chosen, "bootargs", buf, sizeof(buf))) != -1) { in ofw_parse_bootargs()
H A Dofw_console.c164 int chosen; in ofw_cnprobe() local
166 if ((chosen = OF_finddevice("/chosen")) == -1) { in ofw_cnprobe()
171 if (OF_getencprop(chosen, "stdin", &stdin, sizeof(stdin)) == -1) { in ofw_cnprobe()
176 if (OF_getencprop(chosen, "stdout", &stdout, sizeof(stdout)) == -1) { in ofw_cnprobe()
/freebsd/sys/dev/vt/hw/simplefb/
H A Dsimplefb.c125 phandle_t chosen, node; in vt_simplefb_node()
127 chosen = OF_finddevice("/chosen"); in vt_simplefb_node()
128 if (chosen == -1) in vt_simplefb_node()
131 for (node = OF_child(chosen); node != 0; node = OF_peer(node)) { in vt_simplefb_node()
123 phandle_t chosen, node; vt_simplefb_node() local
/freebsd/sys/dev/vt/hw/ofwfb/
H A Dofwfb.c97 phandle_t chosen, node; in ofwfb_probe()
106 chosen = OF_finddevice("/chosen"); in ofwfb_probe()
107 if (chosen == -1) in ofwfb_probe()
111 if (OF_getencprop(chosen, "stdout", &stdout, sizeof(stdout)) == in ofwfb_probe()
115 if (OF_getprop(chosen, "stdout-path", buf, sizeof(buf)) > 0) in ofwfb_probe()
119 * The "/chosen/stdout" does not exist try in ofwfb_probe()
493 phandle_t chosen; in ofwfb_init()
507 chosen = OF_finddevice("/chosen"); in ofwfb_init()
95 phandle_t chosen, node; ofwfb_probe() local
481 phandle_t chosen; ofwfb_init() local
[all...]
/freebsd/sys/powerpc/pseries/
H A Dplatform_chrp.c398 phandle_t cpu, dev, chosen, pbsp; in chrp_cpuref_init() local
429 chosen = OF_finddevice("/chosen"); in chrp_cpuref_init()
430 if (chosen == -1) in chrp_cpuref_init()
436 if (OF_getproplen(chosen, "cpu") == sizeof(ihandle_t)) { in chrp_cpuref_init()
437 OF_getprop(chosen, "cpu", &ibsp, sizeof(ibsp)); in chrp_cpuref_init()
445 if (OF_getproplen(chosen, "fdtbootcpu") == sizeof(cell_t)) in chrp_cpuref_init()
446 OF_getprop(chosen, "fdtbootcpu", &bsp_reg, sizeof(bsp_reg)); in chrp_cpuref_init()
H A Dphyp_console.c196 phandle_t input, chosen; in uart_phyp_cnprobe() local
199 if ((chosen = OF_finddevice("/chosen")) == -1) in uart_phyp_cnprobe()
204 if (OF_getencprop(chosen, "stdout", &stdout, in uart_phyp_cnprobe()
/freebsd/sys/powerpc/powerpc/
H A Dmachdep.c522 phandle_t chosen; in load_external_symtab() local
540 chosen = OF_finddevice("/chosen"); in load_external_symtab()
541 if (chosen <= 0) in load_external_symtab()
544 if (!OF_hasprop(chosen, "linux,initrd-start") || in load_external_symtab()
545 !OF_hasprop(chosen, "linux,initrd-end")) in load_external_symtab()
548 size = OF_getencprop(chosen, "linux,initrd-start", cell, sizeof(cell)); in load_external_symtab()
556 size = OF_getencprop(chosen, "linux,initrd-end", cell, sizeof(cell)); in load_external_symtab()
/freebsd/sys/arm/broadcom/bcm2835/
H A Dbcm2835_fbd.c224 phandle_t chosen; in bcm_fb_attach() local
232 chosen = OF_finddevice("/chosen"); in bcm_fb_attach()
233 if (chosen != -1 && in bcm_fb_attach()
234 OF_getprop(chosen, "bootargs", &bootargs, sizeof(bootargs)) > 0) { in bcm_fb_attach()
/freebsd/stand/libofw/
H A Dofw_console.c57 OF_getprop(chosen, "stdin", &stdin, sizeof(stdin)); in ofw_cons_probe()
58 OF_getprop(chosen, "stdout", &stdout, sizeof(stdout)); in ofw_cons_probe()
/freebsd/usr.sbin/bsdinstall/partedit/
H A Dpart_wizard.c111 char *chosen; in boot_disk_select() local
183 chosen = (button == BSDDIALOG_OK) ? in boot_disk_select()
186 chosen = strdup(disks[0].name); in boot_disk_select()
188 chosen = NULL; in boot_disk_select()
194 return (chosen); in boot_disk_select()
/freebsd/sys/dev/vt/hw/fb/
H A Dvt_early_fb.c134 phandle_t chosen, node; in vt_efb_get_fbnode()
138 chosen = OF_finddevice("/chosen"); in vt_efb_get_fbnode()
139 OF_getprop(chosen, "stdout", &stdout, sizeof(stdout)); in vt_efb_get_fbnode()
142 /* The "/chosen/stdout" present. */ in vt_efb_get_fbnode()
133 phandle_t chosen, node; vt_efb_get_fbnode() local
/freebsd/sys/powerpc/powermac/
H A Dplatform_powermac.c326 phandle_t bsp, chosen; in powermac_smp_get_bsp() local
329 chosen = OF_finddevice("/chosen"); in powermac_smp_get_bsp()
330 if (chosen == -1) in powermac_smp_get_bsp()
333 res = OF_getprop(chosen, "cpu", &inst, sizeof(inst)); in powermac_smp_get_bsp()
/freebsd/sys/contrib/device-tree/Bindings/input/
H A Dinput-reset.txt11 The /chosen node should contain a 'linux,sysrq-reset-seq' child node to define
24 chosen {
/freebsd/sys/contrib/device-tree/src/arm64/broadcom/
H A Dbcm2712-rpi-5-b.dts15 chosen: chosen { label
/freebsd/crypto/openssl/doc/man7/
H A DEVP_KDF-KRB5KDF.pod51 length for the chosen cipher or an error is returned. Moreover, the
53 Since the KRB5KDF output length depends on the chosen cipher, calling
56 The caller must allocate a buffer of the correct length for the chosen
/freebsd/stand/powerpc/ofw/
H A Dmain.c187 OF_getprop(chosen, "bootpath", bootpath, 64); in main()
198 OF_getprop(chosen, "bootargs", bootargs, sizeof(bootargs)); in main()
/freebsd/sys/contrib/openzfs/config/
H A Duser-libfetch.m469 …AC_DEFINE_UNQUOTED([LIBFETCH_DYNAMIC], [$LIBFETCH_DYNAMIC], [whether the chosen libfetch is to be …
70 AC_DEFINE_UNQUOTED([LIBFETCH_SONAME], ["$LIBFETCH_SONAME"], [soname of chosen libfetch])
/freebsd/sys/dev/fdt/
H A Dfdt_common.c611 phandle_t chosen; in fdt_get_chosen_bootargs() local
613 chosen = OF_finddevice("/chosen"); in fdt_get_chosen_bootargs()
614 if (chosen == -1) in fdt_get_chosen_bootargs()
616 if (OF_getprop(chosen, "bootargs", bootargs, max_size) == -1) in fdt_get_chosen_bootargs()

12345678910>>...52