Searched refs:uitmp (Results 1 – 6 of 6) sorted by relevance
/linux/drivers/media/dvb-frontends/ |
H A D | tda10071.c | 44 unsigned int uitmp; in tda10071_cmd_execute() local 64 for (i = 1000, uitmp = 1; i && uitmp; i--) { in tda10071_cmd_execute() 65 ret = regmap_read(dev->regmap, 0x1f, &uitmp); in tda10071_cmd_execute() 186 unsigned int uitmp; in tda10071_diseqc_send_master_cmd() local 201 for (i = 500, uitmp = 0; i && !uitmp; i--) { in tda10071_diseqc_send_master_cmd() 202 ret = regmap_read(dev->regmap, 0x47, &uitmp); in tda10071_diseqc_send_master_cmd() 205 uitmp = (uitmp >> 0) & 1; in tda10071_diseqc_send_master_cmd() 246 unsigned int uitmp; in tda10071_diseqc_recv_slave_reply() local 256 for (i = 500, uitmp = 0; i && !uitmp; i--) { in tda10071_diseqc_recv_slave_reply() 257 ret = regmap_read(dev->regmap, 0x47, &uitmp); in tda10071_diseqc_recv_slave_reply() [all …]
|
H A D | mn88473.c | 23 unsigned int uitmp; in mn88473_set_frontend() local 103 uitmp = DIV_ROUND_CLOSEST_ULL((u64) if_frequency * 0x1000000, dev->clk); in mn88473_set_frontend() 104 if_val[0] = (uitmp >> 16) & 0xff; in mn88473_set_frontend() 105 if_val[1] = (uitmp >> 8) & 0xff; in mn88473_set_frontend() 106 if_val[2] = (uitmp >> 0) & 0xff; in mn88473_set_frontend() 465 unsigned int uitmp; in mn88473_init() local 472 ret = regmap_read(dev->regmap[0], 0xf5, &uitmp); in mn88473_init() 476 if (!(uitmp & 0x01)) in mn88473_init() 506 ret = regmap_read(dev->regmap[0], 0xf8, &uitmp); in mn88473_init() 510 if (uitmp & 0x10) { in mn88473_init() [all …]
|
/linux/drivers/media/tuners/ |
H A D | fc2580.c | 32 unsigned int uitmp, div_ref, div_ref_val, div_n, k, k_cw, div_out; in fc2580_set_params() local 90 uitmp = DIV_PRE_N * F_REF / div_ref; in fc2580_set_params() 91 div_n = div_u64_rem(f_vco, uitmp, &k); in fc2580_set_params() 92 k_cw = div_u64((u64) k * 0x100000, uitmp); in fc2580_set_params() 239 uitmp = (unsigned int) 8058000 - (dev->f_bandwidth * 122 / 100 / 2); in fc2580_set_params() 240 uitmp = div64_u64((u64) dev->clk * uitmp, 1000000000000ULL); in fc2580_set_params() 241 ret = regmap_write(dev->regmap, 0x37, uitmp); in fc2580_set_params() 250 for (uitmp = ~0xc0; !time_after(jiffies, timeout) && uitmp != 0xc0;) { in fc2580_set_params() 257 ret = regmap_read(dev->regmap, 0x2f, &uitmp); in fc2580_set_params() 260 uitmp &= 0xc0; in fc2580_set_params() [all …]
|
H A D | msi001.c | 87 unsigned int uitmp, div_n, k, k_thresh, k_frac, div_lo, f_if1; in msi001_set_tuner() local 216 uitmp = gcd(k_thresh, k_frac); in msi001_set_tuner() 217 k_thresh /= uitmp; in msi001_set_tuner() 218 k_frac /= uitmp; in msi001_set_tuner() 221 uitmp = DIV_ROUND_UP(k_thresh, 4095); in msi001_set_tuner() 222 k_thresh = DIV_ROUND_CLOSEST(k_thresh, uitmp); in msi001_set_tuner() 223 k_frac = DIV_ROUND_CLOSEST(k_frac, uitmp); in msi001_set_tuner() 226 uitmp = (unsigned int) F_REF * DIV_PRE_N * div_n; in msi001_set_tuner() 227 uitmp += (unsigned int) F_REF * DIV_PRE_N * k_frac / k_thresh; in msi001_set_tuner() 228 uitmp /= div_lo; in msi001_set_tuner() [all …]
|
H A D | e4000.c | 486 unsigned int uitmp; in e4000_pll_lock() local 488 ret = regmap_read(dev->regmap, 0x07, &uitmp); in e4000_pll_lock() 492 dev->pll_lock->val = (uitmp & 0x01); in e4000_pll_lock() 618 unsigned int uitmp; in e4000_probe() local 640 ret = regmap_read(dev->regmap, 0x02, &uitmp); in e4000_probe() 644 dev_dbg(&client->dev, "chip id=%02x\n", uitmp); in e4000_probe() 646 if (uitmp != 0x40) { in e4000_probe()
|
/linux/drivers/media/usb/hackrf/ |
H A D | hackrf.c | 240 unsigned int uitmp, uitmp1, uitmp2; in hackrf_set_params() local 300 uitmp = dev->f_adc; in hackrf_set_params() 302 uitmp = dev->rx_bandwidth->val; in hackrf_set_params() 305 if (uitmp <= bandwidth_lut[i].freq) { in hackrf_set_params() 306 uitmp = bandwidth_lut[i].freq; in hackrf_set_params() 310 dev->rx_bandwidth->val = uitmp; in hackrf_set_params() 311 dev->rx_bandwidth->cur.val = uitmp; in hackrf_set_params() 312 dev_dbg(&intf->dev, "RX bandwidth selected=%u\n", uitmp); in hackrf_set_params() 316 uitmp = dev->f_dac; in hackrf_set_params() 318 uitmp = dev->tx_bandwidth->val; in hackrf_set_params() [all …]
|