• Home
  • Raw
  • Download

Lines Matching refs:mmio_base

37 	void __iomem *mmio_base;  member
78 value = readw(pc->mmio_base + ECCTL2); in ecap_pwm_config()
83 writew(value, pc->mmio_base + ECCTL2); in ecap_pwm_config()
87 writel(duty_cycles, pc->mmio_base + CAP2); in ecap_pwm_config()
88 writel(period_cycles, pc->mmio_base + CAP1); in ecap_pwm_config()
95 writel(duty_cycles, pc->mmio_base + CAP4); in ecap_pwm_config()
96 writel(period_cycles, pc->mmio_base + CAP3); in ecap_pwm_config()
100 value = readw(pc->mmio_base + ECCTL2); in ecap_pwm_config()
103 writew(value, pc->mmio_base + ECCTL2); in ecap_pwm_config()
119 value = readw(pc->mmio_base + ECCTL2); in ecap_pwm_set_polarity()
128 writew(value, pc->mmio_base + ECCTL2); in ecap_pwm_set_polarity()
147 value = readw(pc->mmio_base + ECCTL2); in ecap_pwm_enable()
149 writew(value, pc->mmio_base + ECCTL2); in ecap_pwm_enable()
163 value = readw(pc->mmio_base + ECCTL2); in ecap_pwm_disable()
165 writew(value, pc->mmio_base + ECCTL2); in ecap_pwm_disable()
234 pc->mmio_base = devm_ioremap_resource(&pdev->dev, r); in ecap_pwm_probe()
235 if (IS_ERR(pc->mmio_base)) in ecap_pwm_probe()
236 return PTR_ERR(pc->mmio_base); in ecap_pwm_probe()
263 pc->ctx.ecctl2 = readw(pc->mmio_base + ECCTL2); in ecap_pwm_save_context()
264 pc->ctx.cap4 = readl(pc->mmio_base + CAP4); in ecap_pwm_save_context()
265 pc->ctx.cap3 = readl(pc->mmio_base + CAP3); in ecap_pwm_save_context()
271 writel(pc->ctx.cap3, pc->mmio_base + CAP3); in ecap_pwm_restore_context()
272 writel(pc->ctx.cap4, pc->mmio_base + CAP4); in ecap_pwm_restore_context()
273 writew(pc->ctx.ecctl2, pc->mmio_base + ECCTL2); in ecap_pwm_restore_context()