Home
last modified time | relevance | path

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

1234

/freebsd/sys/kern/
H A Dsubr_boot.c84 * the flags we encounter. Later, to get a howto mask, we grovel through these
90 * @brief convert the env vars in howto_names into a howto mask
95 int i, howto; in boot_env_to_howto()
99 for (howto = 0, i = 0; howto_names[i].ev != NULL; i++) { in boot_env_to_howto()
102 howto |= howto_names[i].mask; in boot_env_to_howto()
106 return (howto); in boot_env_to_howto()
110 * @brief Set env vars from howto_names based on howto passed in
113 boot_howto_to_env(int howto) in boot_howto_to_env()
118 if (howto & howto_names[i].mask) in boot_howto_to_env()
133 int howto; in boot_parse_arg()
94 int i, howto; boot_env_to_howto() local
112 boot_howto_to_env(int howto) boot_howto_to_env() argument
132 int howto; boot_parse_arg() local
195 int howto; boot_parse_cmdline_delim() local
224 int i, howto; boot_parse_args() local
[all...]
H A Dkern_shutdown.c254 static void shutdown_halt(void *junk, int howto);
255 static void shutdown_panic(void *junk, int howto);
256 static void shutdown_reset(void *junk, int howto);
321 int howto; in shutdown_nice_task_fn() local
323 howto = (uintptr_t)arg; in shutdown_nice_task_fn()
326 if ((howto & RB_POWEROFF) != 0) { in shutdown_nice_task_fn()
329 } else if ((howto & RB_POWERCYCLE) != 0) { in shutdown_nice_task_fn()
332 } else if ((howto & RB_HALT) != 0) { in shutdown_nice_task_fn()
349 shutdown_nice(int howto) in shutdown_nice() argument
354 shutdown_nice_task.ta_context = (void *)(uintptr_t)howto; in shutdown_nice()
434 reboottrace(int howto) reboottrace() argument
458 kern_reboot(int howto) kern_reboot() argument
644 shutdown_halt(void * junk,int howto) shutdown_halt() argument
669 shutdown_panic(void * junk,int howto) shutdown_panic() argument
702 shutdown_reset(void * junk,int howto) shutdown_reset() argument
995 poweroff_wait(void * junk,int howto) poweroff_wait() argument
1015 kproc_shutdown(void * arg,int howto) kproc_shutdown() argument
1035 kthread_shutdown(void * arg,int howto) kthread_shutdown() argument
[all...]
/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()
115 file_addmetadata(kfp, MODINFOMD_HOWTO, sizeof howto, &howto); in bi_load32()
169 *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()
147 file_addmetadata(kfp, MODINFOMD_HOWTO, sizeof howto, &howto); in bi_load64()
/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()
136 file_addmetadata(kfp, MODINFOMD_HOWTO, sizeof howto, &howto); in bi_load32()
184 *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()
150 file_addmetadata(kfp, MODINFOMD_HOWTO, sizeof howto, &howto); in bi_load64()
/freebsd/sbin/reboot/
H A Dreboot.c225 int ch, howto = 0, i, sverrno; in main() local
233 howto = RB_HALT; in main()
239 howto = 0; in main()
245 howto |= RB_POWERCYCLE; 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()
297 if (Dflag && ((howto & ~RB_HALT) != 0 || kernel != NULL)) in main()
299 if ((howto & (RB_DUMP | RB_HALT)) == (RB_DUMP | RB_HALT)) 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()
152 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.c77 int howto; in bi_getboothowto() local
79 howto = boot_parse_cmdline(kargs); in bi_getboothowto()
80 howto |= boot_env_to_howto(); in bi_getboothowto()
85 howto |= RB_SERIAL; in bi_getboothowto()
87 howto |= RB_MUTE; in bi_getboothowto()
138 return (howto); in bi_getboothowto()
338 int howto; in bi_load() local
368 howto = bi_getboothowto(args); in bi_load()
431 file_addmetadata(kfp, MODINFOMD_HOWTO, sizeof(howto), &howto); in bi_load()
H A Dmain.c697 int i, howto; in parse_args() local
713 howto = 0; in parse_args()
716 howto |= boot_parse_arg(var); in parse_args()
719 return (howto); in parse_args()
1159 int howto, i, uhowto; in main() local
1251 howto = parse_args(argc, argv); in main()
1252 if (!has_kbd && (howto & RB_PROBE)) in main()
1253 howto |= RB_SERIAL | RB_MULTIPLE; in main()
1254 howto &= ~RB_PROBE; in main()
1284 if ((howto & CON_MASK) == 0) { in main()
[all …]
/freebsd/sys/powerpc/powernv/
H A Dopal_dev.c60 static void opal_shutdown(void *arg, int howto);
344 opal_shutdown(void *arg, int howto) in opal_shutdown() argument
347 if ((howto & RB_POWEROFF) != 0) in opal_shutdown()
349 else if ((howto & RB_HALT) == 0) in opal_shutdown()
360 int howto; in opal_handle_shutdown_message() local
364 howto = RB_POWEROFF; in opal_handle_shutdown_message()
367 howto = RB_REROOT; in opal_handle_shutdown_message()
370 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.c315 xctrl_shutdown_final(void *arg, int howto) in xctrl_shutdown_final() argument
323 else if ((howto & RB_POWEROFF) != 0) in xctrl_shutdown_final()
325 else if ((howto & RB_HALT) == 0) in xctrl_shutdown_final()
/freebsd/sys/dev/psci/
H A Dpsci.c478 psci_shutdown(void *xsc, int howto) in psci_shutdown() argument
485 if ((howto & RB_POWEROFF) != 0) in psci_shutdown()
494 psci_reboot(void *xsc, int howto) in psci_reboot() argument
501 if ((howto & RB_HALT) == 0) in psci_reboot()
/freebsd/sys/arm64/apple/
H A Dapple_wdog.c200 apple_wdog_reboot_system(void *private, int howto) in apple_wdog_reboot_system() argument
205 if ((howto & (RB_HALT | RB_POWEROFF)) != 0) in apple_wdog_reboot_system()
/freebsd/sys/sys/
H A Dboot.h36 void boot_howto_to_env(int howto);
/freebsd/sys/arm/allwinner/
H A Daw_wdog.c259 aw_wdog_shutdown_fn(void *private, int howto) in aw_wdog_shutdown_fn() argument
261 if ((howto & (RB_POWEROFF|RB_HALT)) == 0) in aw_wdog_shutdown_fn()

1234