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