Home
last modified time | relevance | path

Searched refs:uitmp (Results 1 – 5 of 5) sorted by relevance

/linux-4.4.14/drivers/media/dvb-frontends/
Dtda10071.c57 unsigned int uitmp; in tda10071_cmd_execute() local
77 for (i = 1000, uitmp = 1; i && uitmp; i--) { in tda10071_cmd_execute()
78 ret = regmap_read(dev->regmap, 0x1f, &uitmp); in tda10071_cmd_execute()
199 unsigned int uitmp; in tda10071_diseqc_send_master_cmd() local
214 for (i = 500, uitmp = 0; i && !uitmp; i--) { in tda10071_diseqc_send_master_cmd()
215 ret = regmap_read(dev->regmap, 0x47, &uitmp); in tda10071_diseqc_send_master_cmd()
218 uitmp = (uitmp >> 0) & 1; in tda10071_diseqc_send_master_cmd()
259 unsigned int uitmp; in tda10071_diseqc_recv_slave_reply() local
269 for (i = 500, uitmp = 0; i && !uitmp; i--) { in tda10071_diseqc_recv_slave_reply()
270 ret = regmap_read(dev->regmap, 0x47, &uitmp); in tda10071_diseqc_recv_slave_reply()
[all …]
/linux-4.4.14/drivers/media/tuners/
Dfc2580.c45 unsigned int uitmp, div_ref, div_ref_val, div_n, k, k_cw, div_out; in fc2580_set_params() local
103 uitmp = DIV_PRE_N * F_REF / div_ref; in fc2580_set_params()
104 div_n = div_u64_rem(f_vco, uitmp, &k); in fc2580_set_params()
105 k_cw = div_u64((u64) k * 0x100000, uitmp); in fc2580_set_params()
252 uitmp = (unsigned int) 8058000 - (dev->f_bandwidth * 122 / 100 / 2); in fc2580_set_params()
253 uitmp = div64_u64((u64) dev->clk * uitmp, 1000000000000ULL); in fc2580_set_params()
254 ret = regmap_write(dev->regmap, 0x37, uitmp); in fc2580_set_params()
263 for (uitmp = ~0xc0; !time_after(jiffies, timeout) && uitmp != 0xc0;) { in fc2580_set_params()
270 ret = regmap_read(dev->regmap, 0x2f, &uitmp); in fc2580_set_params()
273 uitmp &= 0xc0; in fc2580_set_params()
[all …]
Dmsi001.c96 unsigned int uitmp, div_n, k, k_thresh, k_frac, div_lo, f_if1; in msi001_set_tuner() local
225 uitmp = gcd(k_thresh, k_frac); in msi001_set_tuner()
226 k_thresh /= uitmp; in msi001_set_tuner()
227 k_frac /= uitmp; in msi001_set_tuner()
230 uitmp = DIV_ROUND_UP(k_thresh, 4095); in msi001_set_tuner()
231 k_thresh = DIV_ROUND_CLOSEST(k_thresh, uitmp); in msi001_set_tuner()
232 k_frac = DIV_ROUND_CLOSEST(k_frac, uitmp); in msi001_set_tuner()
235 uitmp = (unsigned int) F_REF * DIV_PRE_N * div_n; in msi001_set_tuner()
236 uitmp += (unsigned int) F_REF * DIV_PRE_N * k_frac / k_thresh; in msi001_set_tuner()
237 uitmp /= div_lo; in msi001_set_tuner()
[all …]
De4000.c509 unsigned int uitmp; in e4000_pll_lock() local
511 ret = regmap_read(dev->regmap, 0x07, &uitmp); in e4000_pll_lock()
515 dev->pll_lock->val = (uitmp & 0x01); in e4000_pll_lock()
642 unsigned int uitmp; in e4000_probe() local
664 ret = regmap_read(dev->regmap, 0x02, &uitmp); in e4000_probe()
668 dev_dbg(&client->dev, "chip id=%02x\n", uitmp); in e4000_probe()
670 if (uitmp != 0x40) { in e4000_probe()
/linux-4.4.14/drivers/media/usb/hackrf/
Dhackrf.c249 unsigned int uitmp, uitmp1, uitmp2; in hackrf_set_params() local
309 uitmp = dev->f_adc; in hackrf_set_params()
311 uitmp = dev->rx_bandwidth->val; in hackrf_set_params()
314 if (uitmp <= bandwidth_lut[i].freq) { in hackrf_set_params()
315 uitmp = bandwidth_lut[i].freq; in hackrf_set_params()
319 dev->rx_bandwidth->val = uitmp; in hackrf_set_params()
320 dev->rx_bandwidth->cur.val = uitmp; in hackrf_set_params()
321 dev_dbg(&intf->dev, "RX bandwidth selected=%u\n", uitmp); in hackrf_set_params()
325 uitmp = dev->f_dac; in hackrf_set_params()
327 uitmp = dev->tx_bandwidth->val; in hackrf_set_params()
[all …]