Lines Matching defs:bit
27 int bit;
46 static int __maybe_unused apmu_power_on(void __iomem *p, int bit)
49 writel_relaxed(BIT(bit), p + WUPCR_OFFS);
58 static int __maybe_unused apmu_power_off(void __iomem *p, int bit)
61 writel_relaxed(3, p + CPUNCR_OFFS(bit));
65 static int __maybe_unused apmu_power_off_poll(void __iomem *p, int bit)
70 if (CPUNST(readl_relaxed(p + PSTR_OFFS), bit) == CPUST_STANDBY)
83 return p ? fn(p, apmu_cpus[cpu].bit) : -EINVAL;
185 static void apmu_init_cpu(struct resource *res, int cpu, int bit)
193 apmu_cpus[cpu].bit = bit;
195 pr_debug("apmu ioremap %d %d %pr\n", cpu, bit, res);
199 x |= DBGCPUREN | DBGCPUNREN(bit) | DBGCPUPREN;
208 static void apmu_parse_dt(void (*fn)(struct resource *res, int cpu, int bit))
212 int bit, index;
219 for (bit = 0; bit < CONFIG_NR_CPUS; bit++) {
220 np_cpu = of_parse_phandle(np_apmu, "cpus", bit);
236 for (bit = 0; bit < CONFIG_NR_CPUS; bit++) {
237 np_cpu = of_parse_phandle(np_apmu, "cpus", bit);
244 fn(&res, index, bit);