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