Lines Matching defs:restart
19 int (*do_poweroff)(const struct atc260x_pwrc *pwrc, bool restart);
22 static int atc2603c_do_poweroff(const struct atc260x_pwrc *pwrc, bool restart)
28 if (!restart && !power_supply_is_system_supplied()) {
35 (restart ? ATC2603C_PMU_SYS_CTL0_RESET_WK_EN
53 /* Trigger poweroff / restart sequence */
54 reg_mask = restart ? ATC2603C_PMU_SYS_CTL0_RESTART_EN
56 reg_val = restart ? ATC2603C_PMU_SYS_CTL0_RESTART_EN : 0;
59 restart ? ATC2603C_PMU_SYS_CTL0 : ATC2603C_PMU_SYS_CTL1,
63 restart ? 0 : 1, ret);
73 static int atc2609a_do_poweroff(const struct atc260x_pwrc *pwrc, bool restart)
79 if (!restart && !power_supply_is_system_supplied()) {
86 (restart ? ATC2609A_PMU_SYS_CTL0_RESET_WK_EN
104 /* Trigger poweroff / restart sequence */
105 reg_mask = restart ? ATC2609A_PMU_SYS_CTL0_RESTART_EN
107 reg_val = restart ? ATC2609A_PMU_SYS_CTL0_RESTART_EN : 0;
110 restart ? ATC2609A_PMU_SYS_CTL0 : ATC2609A_PMU_SYS_CTL1,
114 restart ? 0 : 1, ret);
230 dev_err(priv->dev, "failed to register restart handler: %d\n",