Lines Matching defs:map
57 struct berlin2_div_map map;
68 struct berlin2_div_map *map = &div->map;
74 reg = readl_relaxed(div->base + map->gate_offs);
75 reg >>= map->gate_shift;
86 struct berlin2_div_map *map = &div->map;
92 reg = readl_relaxed(div->base + map->gate_offs);
93 reg |= BIT(map->gate_shift);
94 writel_relaxed(reg, div->base + map->gate_offs);
105 struct berlin2_div_map *map = &div->map;
111 reg = readl_relaxed(div->base + map->gate_offs);
112 reg &= ~BIT(map->gate_shift);
113 writel_relaxed(reg, div->base + map->gate_offs);
122 struct berlin2_div_map *map = &div->map;
129 reg = readl_relaxed(div->base + map->pll_switch_offs);
131 reg &= ~BIT(map->pll_switch_shift);
133 reg |= BIT(map->pll_switch_shift);
134 writel_relaxed(reg, div->base + map->pll_switch_offs);
138 reg = readl_relaxed(div->base + map->pll_select_offs);
139 reg &= ~(PLL_SELECT_MASK << map->pll_select_shift);
140 reg |= (index - 1) << map->pll_select_shift;
141 writel_relaxed(reg, div->base + map->pll_select_offs);
153 struct berlin2_div_map *map = &div->map;
161 reg = readl_relaxed(div->base + map->pll_switch_offs);
162 reg &= BIT(map->pll_switch_shift);
164 reg = readl_relaxed(div->base + map->pll_select_offs);
165 reg >>= map->pll_select_shift;
180 struct berlin2_div_map *map = &div->map;
186 divsw = readl_relaxed(div->base + map->div_switch_offs) &
187 (1 << map->div_switch_shift);
188 div3sw = readl_relaxed(div->base + map->div3_switch_offs) &
189 (1 << map->div3_switch_shift);
200 reg = readl_relaxed(div->base + map->div_select_offs);
201 reg >>= map->div_select_shift;
228 berlin2_div_register(const struct berlin2_div_map *map,
243 memcpy(&div->map, map, sizeof(*map));