Lines Matching refs:hd

23 	struct hfpll_data const *hd = h->d;
30 if (hd->config_val)
31 regmap_write(regmap, hd->config_reg, hd->config_val);
32 regmap_write(regmap, hd->m_reg, 0);
33 regmap_write(regmap, hd->n_reg, 1);
35 if (hd->user_reg) {
36 u32 regval = hd->user_val;
42 if (hd->user_vco_mask && rate > hd->low_vco_max_rate)
43 regval |= hd->user_vco_mask;
44 regmap_write(regmap, hd->user_reg, regval);
47 if (hd->droop_reg)
48 regmap_write(regmap, hd->droop_reg, hd->droop_val);
56 struct hfpll_data const *hd = h->d;
63 regmap_update_bits(regmap, hd->mode_reg, PLL_BYPASSNL, PLL_BYPASSNL);
72 regmap_update_bits(regmap, hd->mode_reg, PLL_RESET_N, PLL_RESET_N);
75 if (hd->status_reg)
80 regmap_read_poll_timeout(regmap, hd->status_reg, val,
81 !(val & BIT(hd->lock_bit)), 0,
87 regmap_update_bits(regmap, hd->mode_reg, PLL_OUTCTRL, PLL_OUTCTRL);
95 struct hfpll_data const *hd = h->d;
100 regmap_read(regmap, hd->mode_reg, &mode);
110 struct hfpll_data const *hd = h->d;
117 regmap_update_bits(regmap, hd->mode_reg,
134 struct hfpll_data const *hd = h->d;
137 req->rate = clamp(req->rate, hd->min_rate, hd->max_rate);
140 if (rrate > hd->max_rate)
155 struct hfpll_data const *hd = h->d;
170 if (hd->user_reg && hd->user_vco_mask) {
171 regmap_read(regmap, hd->user_reg, &val);
172 if (rate <= hd->low_vco_max_rate)
173 val &= ~hd->user_vco_mask;
175 val |= hd->user_vco_mask;
176 regmap_write(regmap, hd->user_reg, val);
179 regmap_write(regmap, hd->l_reg, l_val);
193 struct hfpll_data const *hd = h->d;
197 regmap_read(regmap, hd->l_reg, &l_val);
205 struct hfpll_data const *hd = h->d;
209 regmap_read(regmap, hd->mode_reg, &mode);
215 if (hd->status_reg) {
216 regmap_read(regmap, hd->status_reg, &status);
217 if (!(status & BIT(hd->lock_bit))) {
231 struct hfpll_data const *hd = h->d;
235 regmap_read(regmap, hd->mode_reg, &mode);