Searched refs:chosen (Results 1 - 25 of 47) sorted by relevance

12

/freebsd-11.0-release/sys/dev/uart/
H A Duart_cpu_powerpc.c113 phandle_t input, opts, chosen; local
117 chosen = OF_finddevice("/chosen");
121 if (chosen != -1 && error != 0)
122 error = ofw_get_uart_console(chosen, &input,
124 if (chosen != -1 && error != 0)
125 error = ofw_get_uart_console(chosen, &input,
127 if (chosen != -1 && error != 0)
128 error = ofw_get_console_phandle_path(chosen, &input,
130 if (chosen !
[all...]
H A Duart_cpu_fdt.c74 phandle_chosen_propdev(phandle_t chosen, const char *name, phandle_t *node) argument
78 if (OF_getprop(chosen, name, buf, sizeof(buf)) <= 0)
127 phandle_t node, chosen; local
145 * Retrieve /chosen/std{in,out}.
148 if ((chosen = OF_finddevice("/chosen")) != -1) {
150 if (phandle_chosen_propdev(chosen, *name,
155 if (chosen == -1 || *name == NULL)
H A Duart_cpu_sparc64.c95 * Note that the currently active console (i.e. /chosen/stdout and
96 * /chosen/stdin) may not be the same as the device selected in the
108 phandle_t chosen, input, output; local
118 if ((chosen = OF_finddevice("/chosen")) == -1)
120 if (OF_getprop(chosen, "stdin", &inst, sizeof(inst)) == -1)
124 if (OF_getprop(chosen, "stdout", &inst, sizeof(inst)) == -1)
139 if ((chosen = OF_finddevice("/chosen")) == -1)
141 if (OF_getprop(chosen, "iosra
[all...]
/freebsd-11.0-release/sys/boot/ofw/libofw/
H A Dofw_console.c61 OF_getprop(chosen, "stdin", &stdin, sizeof(stdin));
62 OF_getprop(chosen, "stdout", &stdout, sizeof(stdout));
H A Dopenfirm.h73 extern phandle_t chosen;
H A Dopenfirm.c69 phandle_t chosen; variable
84 if ((chosen = OF_finddevice("/chosen")) == -1)
86 if (OF_getprop(chosen, "memory", &memory, sizeof(memory)) == -1) {
93 if (OF_getprop(chosen, "mmu", &mmu, sizeof(mmu)) == -1)
/freebsd-11.0-release/usr.sbin/pkg/
H A Ddns_utils.c85 int *chosen; local
95 chosen = malloc(sizeof(int) * (last - first + 1));
99 chosen[i] = random() % (d[i]->weight * 100 / totalweight);
101 if (chosen[i] == chosen[j])
105 d[i]->finalweight = chosen[i];
111 free(chosen);
/freebsd-11.0-release/sys/boot/ofw/common/
H A Dmain.c59 OF_getprop(chosen, "stdout", &stdout, sizeof(stdout));
135 OF_getprop(chosen, "bootpath", bootpath, 64);
146 OF_getprop(chosen, "bootargs", bootargs, sizeof(bootargs));
/freebsd-11.0-release/sys/dev/ofw/
H A Dofw_console.c164 int chosen; local
166 if ((chosen = OF_finddevice("/chosen")) == -1) {
171 if (OF_getencprop(chosen, "stdin", &stdin, sizeof(stdin)) == -1) {
176 if (OF_getencprop(chosen, "stdout", &stdout, sizeof(stdout)) == -1) {
/freebsd-11.0-release/contrib/gcc/
H A Dtlink.c52 int chosen;
337 is offered, chosen or provided if CHOSEN is 0, 1 or 2, respectively.
342 freadsym (FILE *stream, file *f, int chosen)
357 sym->chosen = chosen;
359 else if (chosen)
363 if (sym->chosen && sym->file != f)
365 if (sym->chosen == 1)
371 chosen = sym->chosen;
51 int chosen; member in struct:symbol_hash_entry
338 freadsym(FILE *stream, file *f, int chosen) argument
[all...]
/freebsd-11.0-release/sys/dev/fb/
H A Dcreator_vt.c75 phandle_t chosen, node; local
79 chosen = OF_finddevice("/chosen");
80 OF_getprop(chosen, "stdout", &stdout, sizeof(stdout));
84 * The "/chosen/stdout" does not exist try
105 phandle_t chosen; local
116 chosen = OF_finddevice("/chosen");
117 OF_getprop(chosen, "stdout", &handle, sizeof(ihandle_t));
121 * The "/chosen/stdou
[all...]
/freebsd-11.0-release/sys/arm/broadcom/bcm2835/
H A Dbcm2835_fbd.c205 phandle_t chosen; local
213 chosen = OF_finddevice("/chosen");
214 if (chosen != 0 &&
215 OF_getprop(chosen, "bootargs", &bootargs, sizeof(bootargs)) > 0) {
/freebsd-11.0-release/usr.sbin/bsdinstall/partedit/
H A Dpart_wizard.c102 char *chosen; local
158 chosen = (err == 0) ? strdup(disks[selected].name) : NULL;
160 chosen = strdup(disks[0].name);
162 chosen = NULL;
168 return (chosen);
/freebsd-11.0-release/sys/dev/vt/hw/ofwfb/
H A Dofwfb.c90 phandle_t chosen, node; local
94 chosen = OF_finddevice("/chosen");
95 OF_getprop(chosen, "stdout", &stdout, sizeof(stdout));
99 * The "/chosen/stdout" does not exist try
346 phandle_t chosen; local
360 chosen = OF_finddevice("/chosen");
361 OF_getprop(chosen, "stdout", &sc->sc_handle, sizeof(ihandle_t));
365 * The "/chosen/stdou
[all...]
/freebsd-11.0-release/sys/powerpc/powermac/
H A Dplatform_powermac.c317 phandle_t bsp, chosen; local
320 chosen = OF_finddevice("/chosen");
321 if (chosen == -1)
324 res = OF_getprop(chosen, "cpu", &inst, sizeof(inst));
/freebsd-11.0-release/usr.sbin/ppp/
H A Ddatalink.h96 const char *chosen; /* Chosen phone number after DIAL */ member in struct:datalink::__anon14057
/freebsd-11.0-release/sys/dev/vt/hw/fb/
H A Dvt_early_fb.c134 phandle_t chosen, node; local
138 chosen = OF_finddevice("/chosen");
139 OF_getprop(chosen, "stdout", &stdout, sizeof(stdout));
142 /* The "/chosen/stdout" present. */
/freebsd-11.0-release/sys/mips/beri/
H A Dberi_machdep.c218 phandle_t chosen; local
282 chosen = OF_finddevice("/chosen");
283 if (OF_getprop(chosen, "bootargs", buf, sizeof(buf)) != -1)
/freebsd-11.0-release/sys/mips/mediatek/
H A Dmtk_machdep.c258 phandle_t chosen; local
292 chosen = OF_finddevice("/chosen");
293 if (OF_getprop(chosen, "bsdbootargs", buf, sizeof(buf)) != -1)
/freebsd-11.0-release/contrib/gdb/gdb/
H A Darch-utils.c597 const char *chosen = arches[0];
601 if (strcmp (*arch, chosen) < 0)
602 chosen = *arch;
604 if (chosen == NULL)
607 info.bfd_arch_info = bfd_scan_arch (chosen);
595 const char *chosen = arches[0]; local
/freebsd-11.0-release/sys/powerpc/pseries/
H A Dphyp_console.c195 phandle_t input, chosen; local
198 if ((chosen = OF_finddevice("/chosen")) == -1)
203 if (OF_getencprop(chosen, "stdout", &stdout,
H A Dplatform_chrp.c389 phandle_t bsp, chosen; local
392 chosen = OF_finddevice("/chosen");
393 if (chosen == 0)
396 res = OF_getencprop(chosen, "cpu", &inst, sizeof(inst));
/freebsd-11.0-release/sys/sparc64/sparc64/
H A Dvm_machdep.c334 phandle_t chosen; local
347 if ((chosen = OF_finddevice("/chosen")) != -1) {
348 if (OF_getprop(chosen, "bootpath", bspec, sizeof(bspec)) == -1)
/freebsd-11.0-release/sys/powerpc/ofw/
H A Dofw_machdep.c224 phandle_t chosen; local
227 chosen = OF_finddevice("/chosen");
228 fdtmapsize = OF_getprop(chosen, "fdtmemreserv", fdtmap, sizeof(fdtmap));
332 phandle = OF_finddevice("/chosen");
/freebsd-11.0-release/sys/dev/fdt/
H A Dfdt_common.c729 phandle_t chosen; local
731 chosen = OF_finddevice("/chosen");
732 if (chosen == -1)
734 if (OF_getprop(chosen, "bootargs", bootargs, max_size) == -1)

Completed in 303 milliseconds

12