Lines Matching refs:pwd
118 * @pwd: PRCI WRPLL metadata
120 * Read the current configuration of the PLL identified by @pwd from
122 * cache in @pwd.
125 * @pd and @pwd from changing during execution.
128 struct __prci_wrpll_data *pwd)
130 __prci_wrpll_unpack(&pwd->c, __prci_readl(pd, pwd->cfg0_offs));
136 * @pwd: PRCI WRPLL metadata
140 * configuration register identified by @pwd in the PRCI instance
145 * @pd and @pwd from changing during execution.
148 struct __prci_wrpll_data *pwd,
151 __prci_writel(__prci_wrpll_pack(c), pwd->cfg0_offs, pd);
153 memcpy(&pwd->c, c, sizeof(*c));
160 * @pwd: PRCI WRPLL metadata
164 struct __prci_wrpll_data *pwd,
167 __prci_writel(enable, pwd->cfg1_offs, pd);
181 struct __prci_wrpll_data *pwd = pc->pwd;
183 return wrpll_calc_output_rate(&pwd->c, parent_rate);
191 struct __prci_wrpll_data *pwd = pc->pwd;
194 memcpy(&c, &pwd->c, sizeof(c));
205 struct __prci_wrpll_data *pwd = pc->pwd;
209 r = wrpll_configure_for_rate(&pwd->c, rate, parent_rate);
213 if (pwd->enable_bypass)
214 pwd->enable_bypass(pd);
216 __prci_wrpll_write_cfg0(pd, pwd, &pwd->c);
218 udelay(wrpll_calc_max_lock_us(&pwd->c));
226 struct __prci_wrpll_data *pwd = pc->pwd;
230 r = __prci_readl(pd, pwd->cfg1_offs);
241 struct __prci_wrpll_data *pwd = pc->pwd;
247 __prci_wrpll_write_cfg1(pd, pwd, PRCI_COREPLLCFG1_CKE_MASK);
249 if (pwd->disable_bypass)
250 pwd->disable_bypass(pd);
258 struct __prci_wrpll_data *pwd = pc->pwd;
262 if (pwd->enable_bypass)
263 pwd->enable_bypass(pd);
265 r = __prci_readl(pd, pwd->cfg1_offs);
268 __prci_wrpll_write_cfg1(pd, pwd, r);
529 if (pic->pwd)
530 __prci_wrpll_read_cfg0(pd, pic->pwd);