Lines Matching +full:power +full:- +full:down

1 // SPDX-License-Identifier: GPL-2.0+
30 /* Definitions for controlling power off (if the system supports it). It
32 #define IPMI_CHASSIS_POWER_DOWN 0 /* power down, the default. */
33 #define IPMI_CHASSIS_POWER_CYCLE 0x02 /* power cycle */
38 /* Which interface to use, -1 means the first we see. */
39 static int ifnum_to_use = -1;
66 "timer. Setting to -1 defaults to the first registered "
69 /* parameter definition to allow user to flag power cycle */
72 " Set to non-zero to enable power cycle instead of power"
73 " down. Power cycle is contingent on hardware support,"
74 " otherwise it defaults back to power down.");
85 * thing is single-threaded, anyway, so multiple messages are not
107 struct completion *comp = recv_msg->user_msg_data; in receive_handler()
256 pr_info("Powering down via ATCA power command\n"); in ipmi_poweroff_atca()
259 * Power down in ipmi_poweroff_atca()
265 data[2] = 0; /* Power Level */ in ipmi_poweroff_atca()
273 * At this point, the system may be shutting down, and most in ipmi_poweroff_atca()
331 pr_info("Powering down via CPI1 power command\n"); in ipmi_poweroff_cpi1()
397 * Power down in ipmi_poweroff_cpi1()
402 data[0] = 1; /* Power down state */ in ipmi_poweroff_cpi1()
435 * HP PA-RISC servers rp3410/rp3440, the C8000 workstation and the rx2600 and
480 (poweroff_powercycle ? "cycle" : "down")); in ipmi_poweroff_chassis()
483 * Power down in ipmi_poweroff_chassis()
498 /* power cycle failed, default to power down */ in ipmi_poweroff_chassis()
499 pr_err("Unable to send chassis power cycle message, IPMI error 0x%x\n", in ipmi_poweroff_chassis()
505 pr_err("Unable to send chassis power down message, IPMI error 0x%x\n", in ipmi_poweroff_chassis()
511 /* Table of possible power off functions. */
546 /* Use run-to-completion mode, since interrupts may be off. */ in ipmi_poweroff_function()
671 pr_info("Copyright (C) 2004 MontaVista Software - IPMI Powerdown via sys_reboot\n"); in ipmi_poweroff_init()
674 pr_info("Power cycle is enabled\n"); in ipmi_poweroff_init()
680 rv = -ENOMEM; in ipmi_poweroff_init()