Home
last modified time | relevance | path

Searched refs:k_cw (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/media/tuners/
H A Dfc2580.c32 unsigned int uitmp, div_ref, div_ref_val, div_n, k, k_cw, div_out; in fc2580_set_params() local
92 k_cw = div_u64((u64) k * 0x100000, uitmp); in fc2580_set_params()
97 div_n, k, div_out, k_cw); in fc2580_set_params()
103 ret = regmap_write(dev->regmap, 0x18, div_ref_val << 0 | k_cw >> 16); in fc2580_set_params()
107 ret = regmap_write(dev->regmap, 0x1a, (k_cw >> 8) & 0xff); in fc2580_set_params()
111 ret = regmap_write(dev->regmap, 0x1b, (k_cw >> 0) & 0xff); in fc2580_set_params()
H A De4000.c101 unsigned int div_n, k, k_cw, div_out; in e4000_set_params() local
144 k_cw = div_u64((u64) k * 0x10000, F_REF); in e4000_set_params()
149 k_cw, div_out); in e4000_set_params()
152 buf[1] = (k_cw >> 0) & 0xff; in e4000_set_params()
153 buf[2] = (k_cw >> 8) & 0xff; in e4000_set_params()
/openbmc/linux/drivers/media/usb/msi2500/
H A Dmsi2500.c673 unsigned int f_vco, f_sr, div_n, k, k_cw, div_out; in msi2500_set_usb_adc() local
782 k_cw = div_u64((u64) k * 0x200000, DIV_PRE_N * F_REF); in msi2500_set_usb_adc()
786 reg3 |= ((k_cw >> 20) & 0x000001) << 15; /* [20] */ in msi2500_set_usb_adc()
787 reg4 |= ((k_cw >> 0) & 0x0fffff) << 8; /* [19:0] */ in msi2500_set_usb_adc()