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

12

/freebsd-11-stable/sys/dev/uart/
H A Duart_cpu_powerpc.c114 phandle_t input, opts, chosen; local
118 chosen = OF_finddevice("/chosen");
122 if (chosen != -1 && error != 0)
123 error = ofw_get_uart_console(chosen, &input,
125 if (chosen != -1 && error != 0)
126 error = ofw_get_uart_console(chosen, &input,
128 if (chosen != -1 && error != 0)
129 error = ofw_get_console_phandle_path(chosen, &input,
131 if (chosen !
[all...]
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...]
H A Duart_bus_fdt.c117 phandle_chosen_propdev(phandle_t chosen, const char *name, phandle_t *node) argument
121 if (OF_getprop(chosen, name, buf, sizeof(buf)) <= 0)
172 phandle_t node, chosen; local
181 * Retrieve /chosen/std{in,out}.
184 if ((chosen = OF_finddevice("/chosen")) != -1) {
186 if (phandle_chosen_propdev(chosen, *name,
191 if (chosen == -1 || *name == NULL)
/freebsd-11-stable/stand/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;
/freebsd-11-stable/usr.sbin/pkg/
H A Ddns_utils.c87 int *chosen; local
97 chosen = malloc(sizeof(int) * (last - first + 1));
101 chosen[i] = random() % (d[i]->weight * 100 / totalweight);
103 if (chosen[i] == chosen[j])
107 d[i]->finalweight = chosen[i];
113 free(chosen);
/freebsd-11-stable/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-stable/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-stable/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-stable/stand/powerpc/ofw/
H A Dmain.c135 OF_getprop(chosen, "bootpath", bootpath, 64);
146 OF_getprop(chosen, "bootargs", bootargs, sizeof(bootargs));
/freebsd-11-stable/sys/arm/broadcom/bcm2835/
H A Dbcm2835_fbd.c216 phandle_t chosen; local
224 chosen = OF_finddevice("/chosen");
225 if (chosen != 0 &&
226 OF_getprop(chosen, "bootargs", &bootargs, sizeof(bootargs)) > 0) {
/freebsd-11-stable/usr.sbin/bsdinstall/partedit/
H A Dpart_wizard.c104 char *chosen; local
160 chosen = (err == 0) ? strdup(disks[selected].name) : NULL;
162 chosen = strdup(disks[0].name);
164 chosen = NULL;
170 return (chosen);
/freebsd-11-stable/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-stable/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-stable/usr.sbin/ppp/
H A Ddatalink.h98 const char *chosen; /* Chosen phone number after DIAL */ member in struct:datalink::__anon8852
/freebsd-11-stable/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-stable/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-stable/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-stable/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-stable/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-stable/sys/powerpc/ofw/
H A Dofw_machdep.c236 phandle_t chosen; local
239 chosen = OF_finddevice("/chosen");
240 fdtmapsize = OF_getprop(chosen, "fdtmemreserv", fdtmap, sizeof(fdtmap));
344 phandle = OF_finddevice("/chosen");
/freebsd-11-stable/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-stable/sys/mips/nlm/
H A Dxlp_machdep.c298 phandle_t chosen; local
316 chosen = OF_finddevice("/chosen");
317 if (OF_getprop(chosen, "cpumask", &mask, sizeof(mask)) != -1) {
321 if (OF_getprop(chosen, "bootargs", buf, sizeof(buf)) != -1)
/freebsd-11-stable/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 180 milliseconds

12