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);
48 if (hd->l_val)
49 regmap_write(regmap, hd->l_reg, hd->l_val);
51 if (hd->droop_reg)
52 regmap_write(regmap, hd->droop_reg, hd->droop_val);
60 struct hfpll_data const *hd = h->d;
67 regmap_update_bits(regmap, hd->mode_reg, PLL_BYPASSNL, PLL_BYPASSNL);
76 regmap_update_bits(regmap, hd->mode_reg, PLL_RESET_N, PLL_RESET_N);
79 if (hd->status_reg)
84 regmap_read_poll_timeout(regmap, hd->status_reg, val,
85 !(val & BIT(hd->lock_bit)), 0,
91 regmap_update_bits(regmap, hd->mode_reg, PLL_OUTCTRL, PLL_OUTCTRL);
99 struct hfpll_data const *hd = h->d;
104 regmap_read(regmap, hd->mode_reg, &mode);
114 struct hfpll_data const *hd = h->d;
121 regmap_update_bits(regmap, hd->mode_reg,
138 struct hfpll_data const *hd = h->d;
141 req->rate = clamp(req->rate, hd->min_rate, hd->max_rate);
144 if (rrate > hd->max_rate)
159 struct hfpll_data const *hd = h->d;
174 if (hd->user_reg && hd->user_vco_mask) {
175 regmap_read(regmap, hd->user_reg, &val);
176 if (rate <= hd->low_vco_max_rate)
177 val &= ~hd->user_vco_mask;
179 val |= hd->user_vco_mask;
180 regmap_write(regmap, hd->user_reg, val);
183 regmap_write(regmap, hd->l_reg, l_val);
197 struct hfpll_data const *hd = h->d;
201 regmap_read(regmap, hd->l_reg, &l_val);
209 struct hfpll_data const *hd = h->d;
213 regmap_read(regmap, hd->mode_reg, &mode);
219 if (hd->status_reg) {
220 regmap_read(regmap, hd->status_reg, &status);
221 if (!(status & BIT(hd->lock_bit))) {
235 struct hfpll_data const *hd = h->d;
239 regmap_read(regmap, hd->mode_reg, &mode);