Searched refs:pllreg (Results 1 – 4 of 4) sorted by relevance
/linux-6.6.21/sound/pci/pcxhr/ |
D | pcxhr_mix22.c | 311 unsigned int *pllreg, in hr222_pll_freq_register() argument 321 *pllreg = reg + 0xC00; in hr222_pll_freq_register() 323 *pllreg = reg + 0x800; in hr222_pll_freq_register() 325 *pllreg = reg & 0x1ff; in hr222_pll_freq_register() 327 *pllreg = ((reg >> 1) & 0x1ff) + 0x200; in hr222_pll_freq_register() 330 *pllreg = ((reg >> 2) & 0x1ff) + 0x400; in hr222_pll_freq_register() 342 unsigned int speed, pllreg = 0; in hr222_sub_set_clock() local 348 err = hr222_pll_freq_register(rate, &pllreg, &realfreq); in hr222_sub_set_clock() 372 PCXHR_OUTPB(mgr, PCXHR_XLX_HIFREQ, pllreg >> 8); in hr222_sub_set_clock() 373 PCXHR_OUTPB(mgr, PCXHR_XLX_LOFREQ, pllreg & 0xff); in hr222_sub_set_clock() [all …]
|
D | pcxhr.c | 183 static int pcxhr_pll_freq_register(unsigned int freq, unsigned int* pllreg, in pcxhr_pll_freq_register() argument 193 *pllreg = reg + 0x800; in pcxhr_pll_freq_register() 195 *pllreg = reg & 0x1ff; in pcxhr_pll_freq_register() 197 *pllreg = ((reg >> 1) & 0x1ff) + 0x200; in pcxhr_pll_freq_register() 200 *pllreg = ((reg >> 2) & 0x1ff) + 0x400; in pcxhr_pll_freq_register() 237 unsigned int val, realfreq, pllreg; in pcxhr_get_clock_reg() local 263 err = pcxhr_pll_freq_register(rate, &pllreg, &realfreq); in pcxhr_get_clock_reg() 268 rmh.cmd[1] = pllreg & MASK_DSP_WORD; in pcxhr_get_clock_reg() 269 rmh.cmd[2] = pllreg >> 24; in pcxhr_get_clock_reg()
|
/linux-6.6.21/drivers/gpu/drm/hisilicon/hibmc/ |
D | hibmc_drm_de.c | 234 u32 pllreg = 0; in format_pll_reg() local 243 pllreg |= HIBMC_FIELD(HIBMC_PLL_CTRL_BYPASS, 0); in format_pll_reg() 244 pllreg |= HIBMC_FIELD(HIBMC_PLL_CTRL_POWER, 1); in format_pll_reg() 245 pllreg |= HIBMC_FIELD(HIBMC_PLL_CTRL_INPUT, 0); in format_pll_reg() 246 pllreg |= HIBMC_FIELD(HIBMC_PLL_CTRL_POD, pll.POD); in format_pll_reg() 247 pllreg |= HIBMC_FIELD(HIBMC_PLL_CTRL_OD, pll.OD); in format_pll_reg() 248 pllreg |= HIBMC_FIELD(HIBMC_PLL_CTRL_N, pll.N); in format_pll_reg() 249 pllreg |= HIBMC_FIELD(HIBMC_PLL_CTRL_M, pll.M); in format_pll_reg() 251 return pllreg; in format_pll_reg()
|
/linux-6.6.21/drivers/gpu/drm/nouveau/dispnv04/ |
D | hw.c | 475 uint32_t pllreg = head ? NV_RAMDAC_VPLL2 : NV_PRAMDAC_VPLL_COEFF; in nv_load_state_ramdac() local 481 clk->pll_prog(clk, pllreg, ®p->pllvals); in nv_load_state_ramdac()
|