Lines Matching defs:offset

483 static u32 tegra_pmc_readl(struct tegra_pmc *pmc, unsigned long offset)
488 arm_smccc_smc(TEGRA_SMC_PMC, TEGRA_SMC_PMC_READ, offset, 0, 0,
502 return readl(pmc->base + offset);
506 unsigned long offset)
511 arm_smccc_smc(TEGRA_SMC_PMC, TEGRA_SMC_PMC_WRITE, offset,
522 writel(value, pmc->base + offset);
526 static u32 tegra_pmc_scratch_readl(struct tegra_pmc *pmc, unsigned long offset)
529 return tegra_pmc_readl(pmc, offset);
531 return readl(pmc->scratch + offset);
535 unsigned long offset)
538 tegra_pmc_writel(pmc, value, offset);
540 writel(value, pmc->scratch + offset);
1584 static int tegra_io_pad_poll(struct tegra_pmc *pmc, unsigned long offset,
1592 value = tegra_pmc_readl(pmc, offset);
2340 unsigned int offset, bit;
2343 offset = data->hwirq / 32;
2355 offset = PMC_WAKE2_MASK;
2357 offset = PMC_WAKE_MASK;
2359 value = tegra_pmc_readl(pmc, offset);
2366 tegra_pmc_writel(pmc, value, offset);
2374 unsigned int offset, bit;
2377 offset = data->hwirq / 32;
2381 offset = PMC_WAKE2_LEVEL;
2383 offset = PMC_WAKE_LEVEL;
2385 value = tegra_pmc_readl(pmc, offset);
2406 tegra_pmc_writel(pmc, value, offset);
2425 unsigned int offset, bit;
2428 offset = data->hwirq / 32;
2435 value = readl(pmc->wake + WAKE_AOWAKE_TIER2_ROUTING(offset));
2442 writel(value, pmc->wake + WAKE_AOWAKE_TIER2_ROUTING(offset));
2574 static void pmc_clk_fence_udelay(u32 offset)
2576 tegra_pmc_readl(pmc, offset);
2654 unsigned long offset)
2671 pmc_clk->offs = offset;
2709 const char *parent_name, unsigned long offset,
2726 gate->offs = offset;
2842 static int tegra_pmc_regmap_readl(void *context, unsigned int offset, unsigned int *value)
2846 *value = tegra_pmc_readl(pmc, offset);
2850 static int tegra_pmc_regmap_writel(void *context, unsigned int offset, unsigned int value)
2854 tegra_pmc_writel(pmc, value, offset);
3064 static void wke_32kwritel(struct tegra_pmc *pmc, u32 value, unsigned int offset)
3066 writel(value, pmc->wake + offset);
3072 unsigned int offset = WAKE_AOWAKE_CNTRL(wake);
3075 value = readl(pmc->wake + offset);
3081 writel(value, pmc->wake + offset);