Searched refs:k_cw (Results 1 – 3 of 3) sorted by relevance
/Linux-v4.19/drivers/media/tuners/ |
D | fc2580.c | 45 unsigned int uitmp, div_ref, div_ref_val, div_n, k, k_cw, div_out; in fc2580_set_params() local 105 k_cw = div_u64((u64) k * 0x100000, uitmp); in fc2580_set_params() 110 div_n, k, div_out, k_cw); in fc2580_set_params() 116 ret = regmap_write(dev->regmap, 0x18, div_ref_val << 0 | k_cw >> 16); in fc2580_set_params() 120 ret = regmap_write(dev->regmap, 0x1a, (k_cw >> 8) & 0xff); in fc2580_set_params() 124 ret = regmap_write(dev->regmap, 0x1b, (k_cw >> 0) & 0xff); in fc2580_set_params()
|
D | e4000.c | 114 unsigned int div_n, k, k_cw, div_out; in e4000_set_params() local 157 k_cw = div_u64((u64) k * 0x10000, F_REF); in e4000_set_params() 162 k_cw, div_out); in e4000_set_params() 165 buf[1] = (k_cw >> 0) & 0xff; in e4000_set_params() 166 buf[2] = (k_cw >> 8) & 0xff; in e4000_set_params()
|
/Linux-v4.19/drivers/media/usb/msi2500/ |
D | msi2500.c | 692 unsigned int f_vco, f_sr, div_n, k, k_cw, div_out; in msi2500_set_usb_adc() local 801 k_cw = div_u64((u64) k * 0x200000, DIV_PRE_N * F_REF); in msi2500_set_usb_adc() 805 reg3 |= ((k_cw >> 20) & 0x000001) << 15; /* [20] */ in msi2500_set_usb_adc() 806 reg4 |= ((k_cw >> 0) & 0x0fffff) << 8; /* [19:0] */ in msi2500_set_usb_adc()
|