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) {
77 regmap_read(regmap, hd->status_reg, &val);
78 } while (!(val & BIT(hd->lock_bit)));
84 regmap_update_bits(regmap, hd->mode_reg, PLL_OUTCTRL, PLL_OUTCTRL);
92 struct hfpll_data const *hd = h->d;
97 regmap_read(regmap, hd->mode_reg, &mode);
107 struct hfpll_data const *hd = h->d;
114 regmap_update_bits(regmap, hd->mode_reg,
132 struct hfpll_data const *hd = h->d;
135 rate = clamp(rate, hd->min_rate, hd->max_rate);
138 if (rrate > hd->max_rate)
152 struct hfpll_data const *hd = h->d;
167 if (hd->user_reg && hd->user_vco_mask) {
168 regmap_read(regmap, hd->user_reg, &val);
169 if (rate <= hd->low_vco_max_rate)
170 val &= ~hd->user_vco_mask;
172 val |= hd->user_vco_mask;
173 regmap_write(regmap, hd->user_reg, val);
176 regmap_write(regmap, hd->l_reg, l_val);
190 struct hfpll_data const *hd = h->d;
194 regmap_read(regmap, hd->l_reg, &l_val);
202 struct hfpll_data const *hd = h->d;
206 regmap_read(regmap, hd->mode_reg, &mode);
212 if (hd->status_reg) {
213 regmap_read(regmap, hd->status_reg, &status);
214 if (!(status & BIT(hd->lock_bit))) {
228 struct hfpll_data const *hd = h->d;
232 regmap_read(regmap, hd->mode_reg, &mode);