• Home
  • Raw
  • Download

Lines Matching refs:map

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