static int tegra_timer_set_periodic(struct clock_event_device *evt) { u32 reg = 0xC0000000 | ((1000000 / HZ) - 1); timer_shutdown(evt); timer_writel(reg, TIMER3_BASE + TIMER_PTV); return 0; }
static int sp804_set_periodic(struct clock_event_device *evt) { unsigned long ctrl = TIMER_CTRL_32BIT | TIMER_CTRL_IE | TIMER_CTRL_PERIODIC | TIMER_CTRL_ENABLE; timer_shutdown(evt); writel(clkevt_reload, clkevt_base + TIMER_LOAD); writel(ctrl, clkevt_base + TIMER_CTRL); return 0; }
static int spear_set_oneshot(struct clock_event_device *evt) { u16 val; /* stop the timer */ timer_shutdown(evt); val = readw(gpt_base + CR(CLKEVT)); val |= CTRL_ONE_SHOT; writew(val, gpt_base + CR(CLKEVT)); return 0; }
void sploit_shutdown(void) { ssl_shutdown(); net_shutdown(); str_shutdown(); io_shutdown(); dlink_shutdown(); queue_shutdown(); log_shutdown(); timer_shutdown(); mem_shutdown(); syscall_exit(1); }
/* -------------------------------------------------------------------------- * * Clean things up. * * -------------------------------------------------------------------------- */ void servauth_shutdown(void) { log(servauth_log, L_status, "Shutting down servauth..."); syscall_exit(0); connect_shutdown(); io_shutdown(); queue_shutdown(); dlink_shutdown(); mem_shutdown(); log_shutdown(); timer_shutdown(); log_source_unregister(servauth_log); }
void arch_auto_shutdown() { irq_disable(); timer_shutdown(); #if 0 snd_shutdown(); hardware_shutdown(); net_shutdown(); pvr_shutdown(); fs_dcload_shutdown(); fs_vmu_shutdown(); fs_iso9660_shutdown(); #endif fs_ramdisk_shutdown(); fs_romdisk_shutdown(); fs_shutdown(); thd_shutdown(); }
static int spear_set_periodic(struct clock_event_device *evt) { u32 period; u16 val; /* stop the timer */ timer_shutdown(evt); period = clk_get_rate(gpt_clk) / HZ; period >>= CTRL_PRESCALER16; writew(period, gpt_base + LOAD(CLKEVT)); val = readw(gpt_base + CR(CLKEVT)); val &= ~CTRL_ONE_SHOT; val |= CTRL_ENABLE | CTRL_INT_ENABLE; writew(val, gpt_base + CR(CLKEVT)); return 0; }
int main() { log_init(STDOUT_FILENO, LOG_ALL, L_status); io_init_except(STDOUT_FILENO, STDOUT_FILENO, STDOUT_FILENO); mem_init(); dlink_init(); gif_init(); image_init(); timer_init(); graph_init(); graphtest_write(); graph_shutdown(); timer_shutdown(); image_shutdown(); gif_shutdown(); dlink_shutdown(); mem_shutdown(); log_shutdown(); io_shutdown(); return 0; }
static void cleanup(void) { msgio_shutdown(); timer_shutdown(); }
static int arch_timer_shutdown_phys_mem(struct clock_event_device *clk) { return timer_shutdown(ARCH_TIMER_MEM_PHYS_ACCESS, clk); }
static int arch_timer_shutdown_virt_mem(struct clock_event_device *clk) { return timer_shutdown(ARCH_TIMER_MEM_VIRT_ACCESS, clk); }
void FreqCountClass::end(void) { timer_shutdown(); counter_shutdown(); }
static int tegra_timer_shutdown(struct clock_event_device *evt) { timer_shutdown(evt); return 0; }