• Home
  • Raw
  • Download

Lines Matching refs:mmio

103 	void __iomem *mmio;  member
169 val = readl(kbc->mmio + KBC_KP_ENT0_0 + i); in tegra_kbc_report_keys()
246 val = readl(kbc->mmio + KBC_CONTROL_0); in tegra_kbc_set_fifo_interrupt()
251 writel(val, kbc->mmio + KBC_CONTROL_0); in tegra_kbc_set_fifo_interrupt()
263 val = (readl(kbc->mmio + KBC_INT_0) >> 4) & 0xf; in tegra_kbc_keypress_timer()
302 val = readl(kbc->mmio + KBC_INT_0); in tegra_kbc_isr()
303 writel(val, kbc->mmio + KBC_INT_0); in tegra_kbc_isr()
331 writel(rst_val, kbc->mmio + KBC_ROW0_MASK_0 + i * 4); in tegra_kbc_setup_wakekeys()
345 u32 row_cfg = readl(kbc->mmio + r_offs); in tegra_kbc_config_pins()
346 u32 col_cfg = readl(kbc->mmio + c_offs); in tegra_kbc_config_pins()
364 writel(row_cfg, kbc->mmio + r_offs); in tegra_kbc_config_pins()
365 writel(col_cfg, kbc->mmio + c_offs); in tegra_kbc_config_pins()
385 writel(kbc->repeat_cnt, kbc->mmio + KBC_RPT_DLY_0); in tegra_kbc_start()
393 writel(val, kbc->mmio + KBC_CONTROL_0); in tegra_kbc_start()
399 val = readl(kbc->mmio + KBC_INIT_DLY_0); in tegra_kbc_start()
409 val = readl(kbc->mmio + KBC_INT_0); in tegra_kbc_start()
414 val = readl(kbc->mmio + KBC_KP_ENT0_0); in tegra_kbc_start()
415 val = readl(kbc->mmio + KBC_KP_ENT1_0); in tegra_kbc_start()
417 writel(0x7, kbc->mmio + KBC_INT_0); in tegra_kbc_start()
430 val = readl(kbc->mmio + KBC_CONTROL_0); in tegra_kbc_stop()
432 writel(val, kbc->mmio + KBC_CONTROL_0); in tegra_kbc_stop()
658 kbc->mmio = devm_ioremap_resource(&pdev->dev, res); in tegra_kbc_probe()
659 if (IS_ERR(kbc->mmio)) in tegra_kbc_probe()
660 return PTR_ERR(kbc->mmio); in tegra_kbc_probe()
734 val = readl(kbc->mmio + KBC_CONTROL_0); in tegra_kbc_set_keypress_interrupt()
739 writel(val, kbc->mmio + KBC_CONTROL_0); in tegra_kbc_set_keypress_interrupt()
754 writel(0x7, kbc->mmio + KBC_INT_0); in tegra_kbc_suspend()
759 kbc->cp_to_wkup_dly = readl(kbc->mmio + KBC_TO_CNT_0); in tegra_kbc_suspend()
760 writel(0, kbc->mmio + KBC_TO_CNT_0); in tegra_kbc_suspend()
793 writel(kbc->cp_to_wkup_dly, kbc->mmio + KBC_TO_CNT_0); in tegra_kbc_resume()