Home
last modified time | relevance | path

Searched refs:howto (Results 1 – 25 of 91) sorted by relevance

1234

/freebsd/sys/kern/
H A Dsubr_boot.c94 int i, howto; in boot_env_to_howto() local
105 return (howto); in boot_env_to_howto()
132 int howto; in boot_parse_arg() local
153 howto = 0; in boot_parse_arg()
185 return (howto); in boot_parse_arg()
195 int howto; in boot_parse_cmdline_delim() local
198 howto = 0; in boot_parse_cmdline_delim()
205 return (howto); in boot_parse_cmdline_delim()
224 int i, howto; in boot_parse_args() local
226 howto = 0; in boot_parse_args()
[all …]
H A Dkern_shutdown.c321 int howto; in shutdown_nice_task_fn() local
323 howto = (uintptr_t)arg; in shutdown_nice_task_fn()
349 shutdown_nice(int howto) in shutdown_nice() argument
434 reboottrace(int howto) in reboottrace() argument
437 if ((howto & RB_HALT) != 0) in reboottrace()
444 if ((howto & RB_HALT) != 0) in reboottrace()
458 kern_reboot(int howto) in kern_reboot() argument
494 reboottrace(howto); in kern_reboot()
538 shutdown_reset(NULL, howto); in kern_reboot()
647 if (howto & RB_HALT) { in shutdown_halt()
[all …]
/freebsd/stand/i386/libi386/
H A Dbootinfo.c42 int howto; in bi_getboothowto() local
45 howto = boot_parse_cmdline(kargs); in bi_getboothowto()
46 howto |= boot_env_to_howto(); in bi_getboothowto()
58 howto |= RB_SERIAL; in bi_getboothowto()
60 howto |= RB_MUTE; in bi_getboothowto()
63 if (vidconsole && (howto & RB_SERIAL)) in bi_getboothowto()
64 howto |= RB_MULTIPLE; in bi_getboothowto()
71 howto &= ~RB_SERIAL; in bi_getboothowto()
75 return(howto); in bi_getboothowto()
79 bi_setboothowto(int howto) in bi_setboothowto() argument
[all …]
H A Dbootinfo32.c65 int bootdevnr, i, howto; in bi_load32() local
69 howto = bi_getboothowto(args); in bi_load32()
138 file_addmetadata(kfp, MODINFOMD_HOWTO, sizeof howto, &howto); in bi_load32()
186 *howtop = howto | RB_BOOTINFO; in bi_load32()
H A Dbootinfo64.c108 int howto; in bi_load64() local
115 howto = bi_getboothowto(args); in bi_load64()
152 file_addmetadata(kfp, MODINFOMD_HOWTO, sizeof howto, &howto); in bi_load64()
/freebsd/stand/userboot/userboot/
H A Dbootinfo.c40 int howto; in bi_getboothowto() local
43 howto = boot_parse_cmdline(kargs); in bi_getboothowto()
44 howto |= boot_env_to_howto(); in bi_getboothowto()
56 howto |= RB_SERIAL; in bi_getboothowto()
58 howto |= RB_MUTE; in bi_getboothowto()
61 if (vidconsole && (howto & RB_SERIAL)) in bi_getboothowto()
62 howto |= RB_MULTIPLE; in bi_getboothowto()
70 howto &= ~RB_SERIAL; in bi_getboothowto()
74 return(howto); in bi_getboothowto()
78 bi_setboothowto(int howto) in bi_setboothowto() argument
[all …]
H A Dbootinfo32.c64 int bootdevnr, howto; in bi_load32() local
69 howto = bi_getboothowto(args); in bi_load32()
117 file_addmetadata(kfp, MODINFOMD_HOWTO, sizeof howto, &howto); in bi_load32()
171 *howtop = howto | RB_BOOTINFO; in bi_load32()
H A Dbootinfo64.c103 int howto; in bi_load64() local
110 howto = bi_getboothowto(args); in bi_load64()
149 file_addmetadata(kfp, MODINFOMD_HOWTO, sizeof howto, &howto); in bi_load64()
H A Dlibuserboot.h60 void bi_setboothowto(int howto);
/freebsd/sbin/reboot/
H A Dreboot.c233 howto = RB_HALT; in main()
239 howto = 0; in main()
251 howto |= RB_DUMP; in main()
268 howto |= RB_NOSYNC; in main()
278 howto |= RB_POWEROFF; in main()
284 howto |= RB_REROOT; in main()
303 if ((howto & RB_POWEROFF) && (howto & RB_POWERCYCLE)) in main()
305 if ((howto & RB_REROOT) != 0 && howto != RB_REROOT) in main()
322 reboot(howto); in main()
401 if (howto & RB_REROOT) { in main()
[all …]
/freebsd/stand/common/
H A Dmetadata.c53 int howto; in md_getboothowto() local
56 howto = boot_parse_cmdline(kargs); in md_getboothowto()
57 howto |= boot_env_to_howto(); in md_getboothowto()
59 howto |= RB_SERIAL; in md_getboothowto()
61 howto |= RB_MUTE; in md_getboothowto()
62 return(howto); in md_getboothowto()
88 int howto; in md_load_dual() local
106 howto = md_getboothowto(args); in md_load_dual()
154 file_addmetadata(kfp, MODINFOMD_HOWTO, sizeof howto, &howto); in md_load_dual()
/freebsd/sys/dev/gpio/
H A Dgpiopower.c50 static void gpiopower_assert(device_t dev, int howto);
107 gpiopower_assert(device_t dev, int howto) in gpiopower_assert() argument
113 do_assert = sc->sc_rbmask ? (sc->sc_rbmask & howto) : in gpiopower_assert()
114 ((howto & RB_HALT) == 0); in gpiopower_assert()
119 if (howto & RB_POWEROFF) in gpiopower_assert()
121 else if ((howto & RB_HALT) == 0) in gpiopower_assert()
135 (howto & RB_POWEROFF) != 0 ? "power off" : "reset"); in gpiopower_assert()
/freebsd/stand/efi/loader/
H A Dbootinfo.c80 int howto; in bi_getboothowto() local
82 howto = boot_parse_cmdline(kargs); in bi_getboothowto()
83 howto |= boot_env_to_howto(); in bi_getboothowto()
88 howto |= RB_SERIAL; in bi_getboothowto()
90 howto |= RB_MUTE; in bi_getboothowto()
141 return (howto); in bi_getboothowto()
341 int howto; in bi_load() local
362 howto = bi_getboothowto(args); in bi_load()
422 file_addmetadata(kfp, MODINFOMD_HOWTO, sizeof(howto), &howto); in bi_load()
H A Dmain.c688 int i, howto; in parse_args() local
704 howto = 0; in parse_args()
707 howto |= boot_parse_arg(var); in parse_args()
710 return (howto); in parse_args()
949 int howto, i, uhowto; in main() local
1041 howto = parse_args(argc, argv); in main()
1044 howto &= ~RB_PROBE; in main()
1074 if ((howto & CON_MASK) == 0) { in main()
1076 howto = howto | (uhowto & CON_MASK); in main()
1091 switch (howto & CON_MASK) { in main()
[all …]
/freebsd/sys/powerpc/powernv/
H A Dopal_dev.c60 static void opal_shutdown(void *arg, int howto);
343 opal_shutdown(void *arg, int howto) in opal_shutdown() argument
346 if ((howto & RB_POWEROFF) != 0) in opal_shutdown()
348 else if ((howto & RB_HALT) == 0) in opal_shutdown()
359 int howto; in opal_handle_shutdown_message() local
363 howto = RB_POWEROFF; in opal_handle_shutdown_message()
366 howto = RB_REROOT; in opal_handle_shutdown_message()
369 shutdown_nice(howto); in opal_handle_shutdown_message()
/freebsd/sys/powerpc/pseries/
H A Drtas_dev.c54 static void rtas_shutdown(void *arg, int howto);
153 rtas_shutdown(void *arg, int howto) in rtas_shutdown() argument
157 if ((howto & RB_POWEROFF) != 0) { in rtas_shutdown()
163 } else if ((howto & RB_HALT) == 0) { in rtas_shutdown()
/freebsd/sys/dev/iicbus/pmic/rockchip/
H A Drk8xx.c105 rk8xx_poweroff(void *arg, int howto) in rk8xx_poweroff() argument
111 if ((howto & (RB_POWEROFF | RB_POWERCYCLE)) == 0) in rk8xx_poweroff()
117 if (howto & RB_POWEROFF) in rk8xx_poweroff()
119 else if (howto & RB_POWERCYCLE) { in rk8xx_poweroff()
/freebsd/sys/dev/syscon/
H A Dsyscon_power.c63 syscon_power_shutdown_final(device_t dev, int howto) in syscon_power_shutdown_final() argument
70 write = (howto & RB_HALT) == 0; in syscon_power_shutdown_final()
72 write = (howto & RB_POWEROFF) != 0; in syscon_power_shutdown_final()
/freebsd/sys/security/mac/
H A Dmac_system.c174 mac_system_check_reboot(struct ucred *cred, int howto) in mac_system_check_reboot() argument
178 MAC_POLICY_CHECK_NOSLEEP(system_check_reboot, cred, howto); in mac_system_check_reboot()
179 MAC_CHECK_PROBE2(system_check_reboot, error, cred, howto); in mac_system_check_reboot()
/freebsd/contrib/ntp/html/scripts/
H A Drefclock.txt3 <li class='inline'><a href='howto.html'>How to Write a Reference Clock Driver</a></li>\
4 <li class='inline'><a href='howto.html'>How to build new PARSE clocks</a></li>\
/freebsd/sys/arm/broadcom/bcm2835/
H A Dbcm2835_wdog.c225 bcmwd_reboot_system(void *sc, int howto) in bcmwd_reboot_system() argument
230 if (howto & RB_HALT || howto & RB_POWEROFF) in bcmwd_reboot_system()
/freebsd/sys/dev/xen/control/
H A Dcontrol.c348 xctrl_shutdown_final(void *arg, int howto) in xctrl_shutdown_final() argument
356 else if ((howto & RB_POWEROFF) != 0) in xctrl_shutdown_final()
358 else if ((howto & RB_HALT) == 0) in xctrl_shutdown_final()
/freebsd/sys/dev/psci/
H A Dpsci.c466 psci_shutdown(void *xsc, int howto) in psci_shutdown() argument
473 if ((howto & RB_POWEROFF) != 0) in psci_shutdown()
482 psci_reboot(void *xsc, int howto) in psci_reboot() argument
489 if ((howto & RB_HALT) == 0) in psci_reboot()
/freebsd/sys/sys/
H A Dboot.h36 void boot_howto_to_env(int howto);
/freebsd/sys/arm/allwinner/
H A Daw_wdog.c256 aw_wdog_shutdown_fn(void *private, int howto) in aw_wdog_shutdown_fn() argument
258 if ((howto & (RB_POWEROFF|RB_HALT)) == 0) in aw_wdog_shutdown_fn()

1234