Lines Matching refs:bit
30 int bit; member
37 static int __maybe_unused apmu_power_on(void __iomem *p, int bit) in apmu_power_on() argument
40 writel_relaxed(BIT(bit), p + WUPCR_OFFS); in apmu_power_on()
49 static int apmu_power_off(void __iomem *p, int bit) in apmu_power_off() argument
52 writel_relaxed(3, p + CPUNCR_OFFS(bit)); in apmu_power_off()
56 static int __maybe_unused apmu_power_off_poll(void __iomem *p, int bit) in apmu_power_off_poll() argument
61 if (((readl_relaxed(p + PSTR_OFFS) >> (bit * 4)) & 0x03) == 3) in apmu_power_off_poll()
74 return p ? fn(p, apmu_cpus[cpu].bit) : -EINVAL; in apmu_wrap()
77 static void apmu_init_cpu(struct resource *res, int cpu, int bit) in apmu_init_cpu() argument
83 apmu_cpus[cpu].bit = bit; in apmu_init_cpu()
85 pr_debug("apmu ioremap %d %d %pr\n", cpu, bit, res); in apmu_init_cpu()
88 static void apmu_parse_cfg(void (*fn)(struct resource *res, int cpu, int bit), in apmu_parse_cfg() argument
93 int bit, index; in apmu_parse_cfg() local
99 for (bit = 0; bit < ARRAY_SIZE(apmu_config[k].cpus); bit++) { in apmu_parse_cfg()
100 id = apmu_config[k].cpus[bit]; in apmu_parse_cfg()
109 for (bit = 0; bit < ARRAY_SIZE(apmu_config[k].cpus); bit++) { in apmu_parse_cfg()
110 id = apmu_config[k].cpus[bit]; in apmu_parse_cfg()
114 fn(&apmu_config[k].iomem, index, bit); in apmu_parse_cfg()