Lines Matching refs:gt_base

51 static void __iomem *gt_base;  variable
70 upper = readl_relaxed(gt_base + GT_COUNTER1); in _gt_counter_read()
73 lower = readl_relaxed(gt_base + GT_COUNTER0); in _gt_counter_read()
74 upper = readl_relaxed(gt_base + GT_COUNTER1); in _gt_counter_read()
103 writel_relaxed(ctrl, gt_base + GT_CONTROL); in gt_compare_set()
104 writel_relaxed(lower_32_bits(counter), gt_base + GT_COMP0); in gt_compare_set()
105 writel_relaxed(upper_32_bits(counter), gt_base + GT_COMP1); in gt_compare_set()
108 writel_relaxed(delta, gt_base + GT_AUTO_INC); in gt_compare_set()
113 writel_relaxed(ctrl, gt_base + GT_CONTROL); in gt_compare_set()
120 ctrl = readl(gt_base + GT_CONTROL); in gt_clockevent_shutdown()
123 writel(ctrl, gt_base + GT_CONTROL); in gt_clockevent_shutdown()
144 if (!(readl_relaxed(gt_base + GT_INT_STATUS) & in gt_clockevent_interrupt()
162 writel_relaxed(GT_INT_STATUS_EVENT_FLAG, gt_base + GT_INT_STATUS); in gt_clockevent_interrupt()
207 ctrl = readl(gt_base + GT_CONTROL); in gt_resume()
210 writel(GT_CONTROL_TIMER_ENABLE, gt_base + GT_CONTROL); in gt_resume()
231 return readl_relaxed(gt_base + GT_COUNTER0); in gt_read_long()
246 writel(0, gt_base + GT_CONTROL); in gt_clocksource_init()
247 writel(0, gt_base + GT_COUNTER0); in gt_clocksource_init()
248 writel(0, gt_base + GT_COUNTER1); in gt_clocksource_init()
250 writel(GT_CONTROL_TIMER_ENABLE, gt_base + GT_CONTROL); in gt_clocksource_init()
280 gt_base = of_iomap(np, 0); in global_timer_of_register()
281 if (!gt_base) { in global_timer_of_register()
335 iounmap(gt_base); in global_timer_of_register()