Lines Matching refs:restart
20 int (*do_poweroff)(const struct atc260x_pwrc *pwrc, bool restart);
26 static int atc2603c_do_poweroff(const struct atc260x_pwrc *pwrc, bool restart)
32 if (!restart && !power_supply_is_system_supplied()) {
39 (restart ? ATC2603C_PMU_SYS_CTL0_RESET_WK_EN
57 /* Trigger poweroff / restart sequence */
58 reg_mask = restart ? ATC2603C_PMU_SYS_CTL0_RESTART_EN
60 reg_val = restart ? ATC2603C_PMU_SYS_CTL0_RESTART_EN : 0;
63 restart ? ATC2603C_PMU_SYS_CTL0 : ATC2603C_PMU_SYS_CTL1,
67 restart ? 0 : 1, ret);
77 static int atc2609a_do_poweroff(const struct atc260x_pwrc *pwrc, bool restart)
83 if (!restart && !power_supply_is_system_supplied()) {
90 (restart ? ATC2609A_PMU_SYS_CTL0_RESET_WK_EN
108 /* Trigger poweroff / restart sequence */
109 reg_mask = restart ? ATC2609A_PMU_SYS_CTL0_RESTART_EN
111 reg_val = restart ? ATC2609A_PMU_SYS_CTL0_RESTART_EN : 0;
114 restart ? ATC2609A_PMU_SYS_CTL0 : ATC2609A_PMU_SYS_CTL1,
118 restart ? 0 : 1, ret);
230 dev_err(priv->dev, "failed to register restart handler: %d\n",