Lines Matching refs:tco

100 	struct sp5100_tco *tco = watchdog_get_drvdata(wdd);  in tco_timer_start()  local
103 val = readl(SP5100_WDT_CONTROL(tco->tcobase)); in tco_timer_start()
105 writel(val, SP5100_WDT_CONTROL(tco->tcobase)); in tco_timer_start()
112 struct sp5100_tco *tco = watchdog_get_drvdata(wdd); in tco_timer_stop() local
115 val = readl(SP5100_WDT_CONTROL(tco->tcobase)); in tco_timer_stop()
117 writel(val, SP5100_WDT_CONTROL(tco->tcobase)); in tco_timer_stop()
124 struct sp5100_tco *tco = watchdog_get_drvdata(wdd); in tco_timer_ping() local
127 val = readl(SP5100_WDT_CONTROL(tco->tcobase)); in tco_timer_ping()
129 writel(val, SP5100_WDT_CONTROL(tco->tcobase)); in tco_timer_ping()
137 struct sp5100_tco *tco = watchdog_get_drvdata(wdd); in tco_timer_set_timeout() local
140 writel(t, SP5100_WDT_COUNT(tco->tcobase)); in tco_timer_set_timeout()
164 static void tco_timer_enable(struct sp5100_tco *tco) in tco_timer_enable() argument
168 switch (tco->tco_reg_layout) { in tco_timer_enable()
221 struct sp5100_tco *tco = watchdog_get_drvdata(wdd); in sp5100_tco_setupdevice() local
237 switch (tco->tco_reg_layout) { in sp5100_tco_setupdevice()
277 switch (tco->tco_reg_layout) { in sp5100_tco_setupdevice()
331 tco->tcobase = devm_ioremap(dev, mmio_addr, SP5100_WDT_MEM_MAP_SIZE); in sp5100_tco_setupdevice()
332 if (!tco->tcobase) { in sp5100_tco_setupdevice()
341 tco_timer_enable(tco); in sp5100_tco_setupdevice()
343 val = readl(SP5100_WDT_CONTROL(tco->tcobase)); in sp5100_tco_setupdevice()
358 writel(val, SP5100_WDT_CONTROL(tco->tcobase)); in sp5100_tco_setupdevice()
395 struct sp5100_tco *tco; in sp5100_tco_probe() local
398 tco = devm_kzalloc(dev, sizeof(*tco), GFP_KERNEL); in sp5100_tco_probe()
399 if (!tco) in sp5100_tco_probe()
402 tco->tco_reg_layout = tco_reg_layout(sp5100_tco_pci); in sp5100_tco_probe()
404 wdd = &tco->wdd; in sp5100_tco_probe()
416 watchdog_set_drvdata(wdd, tco); in sp5100_tco_probe()