/linux/drivers/power/reset/ |
H A D | atc260x-poweroff.c | 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 [all...] |
H A D | Kconfig | 31 This driver supports restart for Atmel AT91SAM9 and SAMA5 46 This driver provides power-off and restart support for a system 53 This driver supports restart for Axxia SoC. 62 This driver provides restart support for Broadcom Kona chips. 65 to have restart support. 73 This driver provides restart support for Broadcom STB boards. 76 to have restart support. 84 This driver provides restart support for Cirrus EP93XX SoC. 87 to have restart support. 107 bool "GPIO restart drive [all...] |
H A D | linkstation-poweroff.c | 3 * LinkStation power off restart driver 37 void (*phy_set_reg)(bool restart); 43 static void linkstation_mvphy_reg_intn(bool restart) in linkstation_mvphy_reg_intn() argument 48 if (restart) in linkstation_mvphy_reg_intn() 82 static void readynas_mvphy_set_reg(bool restart) in readynas_mvphy_set_reg() argument 87 if (restart) in readynas_mvphy_set_reg()
|
H A D | Makefile | 10 obj-$(CONFIG_POWER_RESET_EP93XX) += ep93xx-restart.o 13 obj-$(CONFIG_POWER_RESET_GPIO_RESTART) += gpio-restart.o 26 obj-$(CONFIG_POWER_RESET_RESTART) += restart-poweroff.o 29 obj-$(CONFIG_POWER_RESET_TPS65086) += tps65086-restart.o
|
/linux/kernel/futex/ |
H A D | waitwake.c | 334 static long futex_wait_restart(struct restart_block *restart); 709 struct restart_block *restart; in futex_wait() local 725 restart = ¤t->restart_block; in futex_wait() 726 restart->futex.uaddr = uaddr; in futex_wait() 727 restart->futex.val = val; in futex_wait() 728 restart->futex.time = *abs_time; in futex_wait() 729 restart->futex.bitset = bitset; in futex_wait() 730 restart->futex.flags = flags | FLAGS_HAS_TIMEOUT; in futex_wait() 732 return set_restart_fn(restart, futex_wait_restart); in futex_wait() 738 static long futex_wait_restart(struct restart_block *restart) in futex_wait_restart() argument [all...] |
/linux/arch/openrisc/kernel/ |
H A D | signal.c | 95 regs->orig_gpr11 = -1; /* Avoid syscall restart checks */ in restore_sigcontext() 272 int restart = 0; in do_signal() local 280 * Setup syscall restart here so that a debugger will in do_signal() 285 restart = -2; in do_signal() 290 restart++; in do_signal() 300 * the decision to restart the syscall; specifically, if the PC is in do_signal() 301 * changed, don't restart the syscall. in do_signal() 304 if (unlikely(restart) && regs->pc == restart_addr) { in do_signal() 309 /* No automatic restart */ in do_signal() 319 * Restore pt_regs PC as syscall restart wil in do_signal() 342 int restart = do_signal(regs, syscall); do_work_pending() local [all...] |
/linux/Documentation/devicetree/bindings/power/reset/ |
H A D | st-reset.txt | 4 - compatible: should be "stih407-restart". 8 restart { 9 compatible = "st,stih407-restart";
|
/linux/arch/arm/mach-pxa/ |
H A D | pxa-dt.c | 20 .restart = pxa_restart, 33 .restart = pxa_restart, 48 .restart = pxa_restart,
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_gt_sriov_pf.c | 52 INIT_WORK(>->sriov.pf.workers.restart, pf_worker_restart_func); in pf_init_workers() 58 disable_work_sync(>->sriov.pf.workers.restart); in pf_fini_workers() 210 if (cancel_work_sync(>->sriov.pf.workers.restart)) in pf_cancel_restart() 211 xe_gt_sriov_dbg_verbose(gt, "pending restart canceled!\n"); in pf_cancel_restart() 234 xe_gt_sriov_dbg(gt, "restart completed\n"); in pf_restart() 239 struct xe_gt *gt = container_of(w, typeof(*gt), sriov.pf.workers.restart); in pf_worker_restart_func() 250 if (!queue_work(xe->sriov.wq, >->sriov.pf.workers.restart)) in pf_queue_restart() 251 xe_gt_sriov_dbg(gt, "restart already in queue!\n"); in pf_queue_restart() 268 flush_work(>->sriov.pf.workers.restart); in pf_flush_restart()
|
/linux/arch/nios2/kernel/ |
H A D | signal.c | 237 int restart = 0; in do_signal() local 251 * Prepare for system call restart. We do this here so that a in do_signal() 256 restart = -2; in do_signal() 261 restart++; in do_signal() 272 if (unlikely(restart && regs->ea == restart_addr)) { in do_signal() 289 if (unlikely(restart) && regs->ea == restart_addr) { in do_signal() 299 return restart; in do_signal() 314 int restart = do_signal(regs); in do_notify_resume() local 316 if (unlikely(restart)) { in do_notify_resume() 322 return restart; in do_notify_resume() [all...] |
/linux/arch/arm/mach-omap2/ |
H A D | Makefile | 57 obj-$(CONFIG_SOC_OMAP2420) += omap2-restart.o 58 obj-$(CONFIG_SOC_OMAP2430) += omap2-restart.o 59 obj-$(CONFIG_SOC_TI81XX) += ti81xx-restart.o 60 obj-$(CONFIG_SOC_AM33XX) += am33xx-restart.o 61 obj-$(CONFIG_SOC_AM43XX) += omap4-restart.o 62 obj-$(CONFIG_ARCH_OMAP3) += omap3-restart.o 63 obj-$(CONFIG_ARCH_OMAP4) += omap4-restart.o 64 obj-$(CONFIG_SOC_OMAP5) += omap4-restart.o 65 obj-$(CONFIG_SOC_DRA7XX) += omap4-restart.o
|
/linux/arch/powerpc/platforms/embedded6xx/ |
H A D | mvme5100.c | 39 static u_char *restart; variable 161 restart = ioremap(BOARD_MODRST_REG, 4); in mvme5100_setup_arch() 184 out_8((u_char *) restart, 0x01); in mvme5100_restart() 207 .restart = mvme5100_restart, in define_machine()
|
H A D | wii.c | 131 if (ppc_md.restart) in wii_halt() 132 ppc_md.restart(NULL); in wii_halt() 174 .restart = wii_restart, in define_machine()
|
/linux/arch/arm/mach-mvebu/ |
H A D | board-v7.c | 164 .restart = mvebu_restart, 180 .restart = mvebu_restart, 194 .restart = mvebu_restart, 208 .restart = mvebu_restart,
|
/linux/drivers/watchdog/ |
H A D | rave-sp-wdt.c | 35 * @restart: Function to send "restart" command 42 int (*restart)(struct watchdog_device *); member 154 const int ret = sp_wd->variant->restart(&sp_wd->wdd); in rave_sp_wdt_reboot_notifier() 158 "Failed to issue restart command (%d)", ret); in rave_sp_wdt_reboot_notifier() 224 .restart = rave_sp_wdt_restart, 231 .restart = rave_sp_wdt_legacy_restart, 238 .restart = rave_sp_wdt_rdu_restart,
|
/linux/kernel/time/ |
H A D | alarmtimer.c | 701 struct restart_block *restart; in alarmtimer_do_nsleep() local 721 restart = ¤t->restart_block; in alarmtimer_do_nsleep() 722 if (restart->nanosleep.type != TT_NONE) { in alarmtimer_do_nsleep() 732 return nanosleep_copyout(restart, &rmt); in alarmtimer_do_nsleep() 748 * @restart: ptr to restart block 752 static long __sched alarm_timer_nsleep_restart(struct restart_block *restart) in alarm_timer_nsleep_restart() argument 754 enum alarmtimer_type type = restart->nanosleep.clockid; in alarm_timer_nsleep_restart() 755 ktime_t exp = restart->nanosleep.expires; in alarm_timer_nsleep_restart() 775 struct restart_block *restart in alarm_timer_nsleep() local [all...] |
H A D | hrtimer.c | 1141 bool restart, bool keep_local) in remove_hrtimer() argument 1165 if (!restart) in remove_hrtimer() 1725 int restart; in __run_hrtimer() local 1761 restart = fn(timer); in __run_hrtimer() 1776 if (restart != HRTIMER_NORESTART && in __run_hrtimer() 2072 int nanosleep_copyout(struct restart_block *restart, struct timespec64 *ts) in nanosleep_copyout() argument 2074 switch(restart->nanosleep.type) { in nanosleep_copyout() 2077 if (put_old_timespec32(ts, restart->nanosleep.compat_rmtp)) in nanosleep_copyout() 2082 if (put_timespec64(ts, restart->nanosleep.rmtp)) in nanosleep_copyout() 2093 struct restart_block *restart; in do_nanosleep() local 2126 hrtimer_nanosleep_restart(struct restart_block * restart) hrtimer_nanosleep_restart() argument 2141 struct restart_block *restart; hrtimer_nanosleep() local [all...] |
/linux/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-trans.c | 157 if (trans->restart.mode.type == IWL_ERR_TYPE_TOP_RESET_FAILED) in iwl_trans_determine_restart_mode() 175 if (trans->restart.during_reset) in iwl_trans_determine_restart_mode() 207 restart.wk.work); in iwl_trans_restart_wk() 210 if (trans->restart.mode.type == IWL_ERR_TYPE_TOP_RESET_BY_BT) { in iwl_trans_restart_wk() 222 iwl_op_mode_dump_error(trans->op_mode, &trans->restart.mode); in iwl_trans_restart_wk() 228 * managed that via trans->restart.mode. in iwl_trans_restart_wk() 241 queue_delayed_work(system_unbound_wq, &trans->restart.wk, in iwl_trans_restart_wk() 256 iwl_trans_opmode_sw_reset(trans, trans->restart.mode.type); in iwl_trans_restart_wk() 293 INIT_DELAYED_WORK(&trans->restart.wk, iwl_trans_restart_wk); in iwl_trans_alloc() 309 cancel_delayed_work_sync(&trans->restart in iwl_trans_free() [all...] |
/linux/drivers/media/i2c/ |
H A D | msp3400-kthreads.c | 505 restart: in msp3400c_thread() 506 dev_dbg_lvl(&client->dev, 2, msp_debug, "thread: restart scan\n"); in msp3400c_thread() 507 state->restart = 0; in msp3400c_thread() 532 goto restart; in msp3400c_thread() 548 goto restart; in msp3400c_thread() 587 goto restart; in msp3400c_thread() 675 goto restart; in msp3400c_thread() 700 restart: in msp3410d_thread() 701 dev_dbg_lvl(&client->dev, 2, msp_debug, "thread: restart scan\n"); in msp3410d_thread() 702 state->restart in msp3410d_thread() [all...] |
/linux/drivers/slimbus/ |
H A D | sched.c | 14 * @restart: Restart time value per spec used for clock pause. This value 25 int slim_ctrl_clk_pause(struct slim_controller *ctrl, bool wakeup, u8 restart) in slim_ctrl_clk_pause() argument 35 if (wakeup == false && restart > SLIM_CLK_UNSPECIFIED) in slim_ctrl_clk_pause() 99 msg.wbuf = &restart; in slim_ctrl_clk_pause()
|
/linux/include/linux/ |
H A D | thread_info.h | 73 #define arch_set_restart_data(restart) do { } while (0) argument 76 static inline long set_restart_fn(struct restart_block *restart, in set_restart_fn() argument 79 restart->fn = fn; in set_restart_fn() 80 arch_set_restart_data(restart); in set_restart_fn()
|
/linux/drivers/ps3/ |
H A D | sys-manager-core.c | 48 if (ps3_sys_manager_ops.restart) in ps3_sys_manager_restart() 49 ps3_sys_manager_ops.restart(ps3_sys_manager_ops.dev); in ps3_sys_manager_restart()
|
/linux/sound/pci/rme9652/ |
H A D | rme9652.c | 428 int restart = 0; in rme9652_set_interrupt_interval() local 433 restart = s->running; in rme9652_set_interrupt_interval() 434 if (restart) in rme9652_set_interrupt_interval() 451 if (restart) in rme9652_set_interrupt_interval() 461 int restart; in rme9652_set_rate() local 518 restart = rme9652->running; in rme9652_set_rate() 519 if (restart) in rme9652_set_rate() 525 if (restart) in rme9652_set_rate() 867 int restart = 0; in rme9652_set_adat1_input() local 877 restart in rme9652_set_adat1_input() 936 int restart = 0; rme9652_set_spdif_input() local 999 int restart = 0; rme9652_set_spdif_output() local 1065 int restart = 0; rme9652_set_sync_mode() local 1150 int restart; rme9652_set_sync_pref() local [all...] |
/linux/arch/sh/kernel/ |
H A D | reboot.c | 64 .restart = native_machine_restart, 83 machine_ops.restart(cmd); in machine_restart()
|
/linux/drivers/remoteproc/ |
H A D | qcom_q6v5_adsp.c | 95 struct reset_control *restart; member 225 reset_control_assert(adsp->restart); in qcom_wpss_shutdown() 227 /* wait after asserting subsystem restart from AOSS */ in qcom_wpss_shutdown() 231 reset_control_deassert(adsp->restart); in qcom_wpss_shutdown() 298 reset_control_assert(adsp->restart); in qcom_adsp_shutdown() 299 /* wait after asserting subsystem restart from AOSS */ in qcom_adsp_shutdown() 308 reset_control_deassert(adsp->restart); in qcom_adsp_shutdown() 309 /* wait after de-asserting subsystem restart from AOSS */ in qcom_adsp_shutdown() 567 adsp->restart = devm_reset_control_get_optional_exclusive(adsp->dev, "restart"); in adsp_init_reset() [all...] |