/Linux-v4.19/drivers/media/dvb-frontends/ |
D | tda10071.c | 57 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 …]
|
D | mn88473.c | 32 unsigned int uitmp; in mn88473_set_frontend() local 112 uitmp = DIV_ROUND_CLOSEST_ULL((u64) if_frequency * 0x1000000, dev->clk); in mn88473_set_frontend() 113 if_val[0] = (uitmp >> 16) & 0xff; in mn88473_set_frontend() 114 if_val[1] = (uitmp >> 8) & 0xff; in mn88473_set_frontend() 115 if_val[2] = (uitmp >> 0) & 0xff; in mn88473_set_frontend() 474 unsigned int uitmp; in mn88473_init() local 481 ret = regmap_read(dev->regmap[0], 0xf5, &uitmp); in mn88473_init() 485 if (!(uitmp & 0x01)) in mn88473_init() 515 ret = regmap_read(dev->regmap[0], 0xf8, &uitmp); in mn88473_init() 519 if (uitmp & 0x10) { in mn88473_init() [all …]
|
/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 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 …]
|
D | msi001.c | 96 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 …]
|
D | e4000.c | 499 unsigned int uitmp; in e4000_pll_lock() local 501 ret = regmap_read(dev->regmap, 0x07, &uitmp); in e4000_pll_lock() 505 dev->pll_lock->val = (uitmp & 0x01); in e4000_pll_lock() 632 unsigned int uitmp; in e4000_probe() local 654 ret = regmap_read(dev->regmap, 0x02, &uitmp); in e4000_probe() 658 dev_dbg(&client->dev, "chip id=%02x\n", uitmp); in e4000_probe() 660 if (uitmp != 0x40) { in e4000_probe()
|
D | si2157.c | 87 unsigned int uitmp, chip_id; in si2157_init() local 99 uitmp = cmd.args[2] << 0 | cmd.args[3] << 8; in si2157_init() 100 dev_dbg(&client->dev, "if_frequency kHz=%u\n", uitmp); in si2157_init() 102 if (uitmp == dev->if_frequency / 1000) in si2157_init()
|
/Linux-v4.19/drivers/media/usb/hackrf/ |
D | hackrf.c | 249 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 …]
|