Lines Matching refs:pwd
174 * @pwd: WRPLL-specific data, associated with this clock (if not NULL)
185 struct __prci_wrpll_data *pwd;
189 #define clk_hw_to_prci_clock(pwd) container_of(pwd, struct __prci_clock, hw)
294 * @pwd: PRCI WRPLL metadata
296 * Read the current configuration of the PLL identified by @pwd from
298 * cache in @pwd.
301 * @pd and @pwd from changing during execution.
304 struct __prci_wrpll_data *pwd)
306 __prci_wrpll_unpack(&pwd->c, __prci_readl(pd, pwd->cfg0_offs));
312 * @pwd: PRCI WRPLL metadata
316 * configuration register identified by @pwd in the PRCI instance
321 * @pd and @pwd from changing during execution.
324 struct __prci_wrpll_data *pwd,
327 __prci_writel(__prci_wrpll_pack(c), pwd->cfg0_offs, pd);
329 memcpy(&pwd->c, c, sizeof(*c));
385 struct __prci_wrpll_data *pwd = pc->pwd;
387 return wrpll_calc_output_rate(&pwd->c, parent_rate);
395 struct __prci_wrpll_data *pwd = pc->pwd;
398 memcpy(&c, &pwd->c, sizeof(c));
410 struct __prci_wrpll_data *pwd = pc->pwd;
414 r = wrpll_configure_for_rate(&pwd->c, rate, parent_rate);
418 if (pwd->enable_bypass)
419 pwd->enable_bypass(pd);
421 __prci_wrpll_write_cfg(pd, pwd, &pwd->c);
423 udelay(wrpll_calc_max_lock_us(&pwd->c));
425 if (pwd->disable_bypass)
426 pwd->disable_bypass(pd);
489 .pwd = &__prci_corepll_data,
495 .pwd = &__prci_ddrpll_data,
501 .pwd = &__prci_gemgxlpll_data,
544 if (pic->pwd)
545 __prci_wrpll_read_cfg(pd, pic->pwd);