Lines Matching refs:tco
46 #define TCO_DRIVER_NAME "sp5100-tco"
100 struct sp5100_tco *tco = watchdog_get_drvdata(wdd);
103 val = readl(SP5100_WDT_CONTROL(tco->tcobase));
105 writel(val, SP5100_WDT_CONTROL(tco->tcobase));
109 writel(val, SP5100_WDT_CONTROL(tco->tcobase));
116 struct sp5100_tco *tco = watchdog_get_drvdata(wdd);
119 val = readl(SP5100_WDT_CONTROL(tco->tcobase));
121 writel(val, SP5100_WDT_CONTROL(tco->tcobase));
128 struct sp5100_tco *tco = watchdog_get_drvdata(wdd);
131 val = readl(SP5100_WDT_CONTROL(tco->tcobase));
133 writel(val, SP5100_WDT_CONTROL(tco->tcobase));
141 struct sp5100_tco *tco = watchdog_get_drvdata(wdd);
144 writel(t, SP5100_WDT_COUNT(tco->tcobase));
168 static void tco_timer_enable(struct sp5100_tco *tco)
172 switch (tco->tco_reg_layout) {
225 struct sp5100_tco *tco = watchdog_get_drvdata(wdd);
241 switch (tco->tco_reg_layout) {
281 switch (tco->tco_reg_layout) {
335 tco->tcobase = devm_ioremap(dev, mmio_addr, SP5100_WDT_MEM_MAP_SIZE);
336 if (!tco->tcobase) {
345 tco_timer_enable(tco);
347 val = readl(SP5100_WDT_CONTROL(tco->tcobase));
362 writel(val, SP5100_WDT_CONTROL(tco->tcobase));
399 struct sp5100_tco *tco;
402 tco = devm_kzalloc(dev, sizeof(*tco), GFP_KERNEL);
403 if (!tco)
406 tco->tco_reg_layout = tco_reg_layout(sp5100_tco_pci);
408 wdd = &tco->wdd;
420 watchdog_set_drvdata(wdd, tco);