Home
last modified time | relevance | path

Searched refs:divs (Results 1 – 4 of 4) sorted by relevance

/drivers/gpu/drm/nouveau/
Dnv50_pm.c594 u32 out, mast, divs, ctrl; in nv50_pm_clocks_pre() local
617 divs = read_div(dev); in nv50_pm_clocks_pre()
629 divs &= ~0x00000700; in nv50_pm_clocks_pre()
634 divs &= ~0x00000007; in nv50_pm_clocks_pre()
659 divs |= P1 << 8; in nv50_pm_clocks_pre()
662 divs |= P2 << 8; in nv50_pm_clocks_pre()
680 divs |= P1; in nv50_pm_clocks_pre()
689 hwsq_wr32(hwsq, 0x004800, divs); in nv50_pm_clocks_pre()
692 hwsq_wr32(hwsq, 0x004700, divs); in nv50_pm_clocks_pre()
860 nv50_pm_pwm_get(struct drm_device *dev, int line, u32 *divs, u32 *duty) in nv50_pm_pwm_get() argument
[all …]
Dnv40_pm.c354 nv40_pm_pwm_get(struct drm_device *dev, int line, u32 *divs, u32 *duty) in nv40_pm_pwm_get() argument
360 *divs = (reg & 0x00007fff); in nv40_pm_pwm_get()
367 *divs = nv_rd32(dev, 0x0015f8); in nv40_pm_pwm_get()
380 nv40_pm_pwm_set(struct drm_device *dev, int line, u32 divs, u32 duty) in nv40_pm_pwm_set() argument
383 nv_wr32(dev, 0x0010f0, 0x80000000 | (duty << 16) | divs); in nv40_pm_pwm_set()
386 nv_wr32(dev, 0x0015f8, divs); in nv40_pm_pwm_set()
Dnouveau_pm.c44 u32 divs, duty; in nouveau_pwmfan_get() local
52 ret = pm->pwm_get(dev, gpio.line, &divs, &duty); in nouveau_pwmfan_get()
53 if (ret == 0 && divs) { in nouveau_pwmfan_get()
54 divs = max(divs, duty); in nouveau_pwmfan_get()
56 duty = divs - duty; in nouveau_pwmfan_get()
57 return (duty * 100) / divs; in nouveau_pwmfan_get()
72 u32 divs, duty; in nouveau_pwmfan_set() local
80 divs = pm->fan.pwm_divisor; in nouveau_pwmfan_set()
83 divs = 135000 / pm->fan.pwm_freq; in nouveau_pwmfan_set()
85 divs /= 4; in nouveau_pwmfan_set()
[all …]
/drivers/i2c/busses/
Di2c-s3c2410.c610 unsigned int *div1, unsigned int *divs) in s3c24xx_i2c_calcdivisor() argument
628 *divs = calc_divs; in s3c24xx_i2c_calcdivisor()
645 unsigned int divs, div1; in s3c24xx_i2c_clockrate() local
659 freq = s3c24xx_i2c_calcdivisor(clkin, target_frequency, &div1, &divs); in s3c24xx_i2c_clockrate()
672 iiccon |= (divs-1); in s3c24xx_i2c_clockrate()