/linux-4.4.14/drivers/media/dvb-frontends/ |
H A D | tda10071.c | 57 unsigned int uitmp; tda10071_cmd_execute() local 77 for (i = 1000, uitmp = 1; i && uitmp; i--) { tda10071_cmd_execute() 78 ret = regmap_read(dev->regmap, 0x1f, &uitmp); tda10071_cmd_execute() 199 unsigned int uitmp; tda10071_diseqc_send_master_cmd() local 214 for (i = 500, uitmp = 0; i && !uitmp; i--) { tda10071_diseqc_send_master_cmd() 215 ret = regmap_read(dev->regmap, 0x47, &uitmp); tda10071_diseqc_send_master_cmd() 218 uitmp = (uitmp >> 0) & 1; tda10071_diseqc_send_master_cmd() 259 unsigned int uitmp; tda10071_diseqc_recv_slave_reply() local 269 for (i = 500, uitmp = 0; i && !uitmp; i--) { tda10071_diseqc_recv_slave_reply() 270 ret = regmap_read(dev->regmap, 0x47, &uitmp); tda10071_diseqc_recv_slave_reply() 273 uitmp = (uitmp >> 1) & 1; tda10071_diseqc_recv_slave_reply() 285 ret = regmap_read(dev->regmap, 0x46, &uitmp); tda10071_diseqc_recv_slave_reply() 289 reply->msg_len = uitmp & 0x1f; /* [4:0] */ tda10071_diseqc_recv_slave_reply() 319 unsigned int uitmp; tda10071_diseqc_send_burst() local 343 for (i = 500, uitmp = 0; i && !uitmp; i--) { tda10071_diseqc_send_burst() 344 ret = regmap_read(dev->regmap, 0x47, &uitmp); tda10071_diseqc_send_burst() 347 uitmp = (uitmp >> 0) & 1; tda10071_diseqc_send_burst() 383 unsigned int uitmp; tda10071_read_status() local 393 ret = regmap_read(dev->regmap, 0x39, &uitmp); tda10071_read_status() 398 if (uitmp & 0x02) /* demod PLL */ tda10071_read_status() 400 if (uitmp & 0x04) /* viterbi or LDPC*/ tda10071_read_status() 402 if (uitmp & 0x08) /* RS or BCH */ tda10071_read_status() 417 ret = regmap_read(dev->regmap, 0x50, &uitmp); tda10071_read_status() 422 c->strength.stat[0].svalue = (int) (uitmp - 256) * 1000; tda10071_read_status() 461 ret = regmap_read(dev->regmap, reg, &uitmp); tda10071_read_status() 465 if (dev->meas_count == uitmp) { tda10071_read_status() 466 dev_dbg(&client->dev, "meas not ready=%02x\n", uitmp); tda10071_read_status() 470 dev->meas_count = uitmp; tda10071_read_status() 527 unsigned int uitmp; tda10071_read_signal_strength() local 530 uitmp = div_s64(c->strength.stat[0].svalue, 1000) + 256; tda10071_read_signal_strength() 531 uitmp = clamp(uitmp, 181U, 236U); /* -75dBm - -20dBm */ tda10071_read_signal_strength() 533 *strength = (uitmp-181) * 0xffff / (236-181); tda10071_read_signal_strength() 769 unsigned int uitmp; tda10071_init() local 922 ret = regmap_read(dev->regmap, 0x51, &uitmp); tda10071_init() 926 if (uitmp) { tda10071_init() 1166 unsigned int uitmp; tda10071_probe() local 1193 ret = regmap_read(dev->regmap, 0xff, &uitmp); tda10071_probe() 1196 if (uitmp != 0x0f) { tda10071_probe() 1202 ret = regmap_read(dev->regmap, 0xdd, &uitmp); tda10071_probe() 1205 if (uitmp != 0x00) { tda10071_probe() 1211 ret = regmap_read(dev->regmap, 0xfe, &uitmp); tda10071_probe() 1214 if (uitmp != 0x01) { tda10071_probe()
|
/linux-4.4.14/drivers/media/tuners/ |
H A D | fc2580.c | 45 unsigned int uitmp, div_ref, div_ref_val, div_n, k, k_cw, div_out; fc2580_set_params() local 103 uitmp = DIV_PRE_N * F_REF / div_ref; fc2580_set_params() 104 div_n = div_u64_rem(f_vco, uitmp, &k); fc2580_set_params() 105 k_cw = div_u64((u64) k * 0x100000, uitmp); fc2580_set_params() 252 uitmp = (unsigned int) 8058000 - (dev->f_bandwidth * 122 / 100 / 2); fc2580_set_params() 253 uitmp = div64_u64((u64) dev->clk * uitmp, 1000000000000ULL); fc2580_set_params() 254 ret = regmap_write(dev->regmap, 0x37, uitmp); fc2580_set_params() 263 for (uitmp = ~0xc0; !time_after(jiffies, timeout) && uitmp != 0xc0;) { fc2580_set_params() 270 ret = regmap_read(dev->regmap, 0x2f, &uitmp); fc2580_set_params() 273 uitmp &= 0xc0; fc2580_set_params() 279 if (uitmp != 0xc0) fc2580_set_params() 280 dev_dbg(&client->dev, "filter did not lock %02x\n", uitmp); fc2580_set_params() 539 unsigned int uitmp; fc2580_probe() local 563 ret = regmap_read(dev->regmap, 0x01, &uitmp); fc2580_probe() 567 dev_dbg(&client->dev, "chip_id=%02x\n", uitmp); fc2580_probe() 569 switch (uitmp) { fc2580_probe()
|
H A D | msi001.c | 96 unsigned int uitmp, div_n, k, k_thresh, k_frac, div_lo, f_if1; msi001_set_tuner() local 225 uitmp = gcd(k_thresh, k_frac); msi001_set_tuner() 226 k_thresh /= uitmp; msi001_set_tuner() 227 k_frac /= uitmp; msi001_set_tuner() 230 uitmp = DIV_ROUND_UP(k_thresh, 4095); msi001_set_tuner() 231 k_thresh = DIV_ROUND_CLOSEST(k_thresh, uitmp); msi001_set_tuner() 232 k_frac = DIV_ROUND_CLOSEST(k_frac, uitmp); msi001_set_tuner() 235 uitmp = (unsigned int) F_REF * DIV_PRE_N * div_n; msi001_set_tuner() 236 uitmp += (unsigned int) F_REF * DIV_PRE_N * k_frac / k_thresh; msi001_set_tuner() 237 uitmp /= div_lo; msi001_set_tuner() 241 f_rf, uitmp, f_vco, div_n, k_thresh, k_frac, div_lo); msi001_set_tuner()
|
H A D | e4000.c | 509 unsigned int uitmp; e4000_pll_lock() local 511 ret = regmap_read(dev->regmap, 0x07, &uitmp); e4000_pll_lock() 515 dev->pll_lock->val = (uitmp & 0x01); e4000_pll_lock() 642 unsigned int uitmp; e4000_probe() local 664 ret = regmap_read(dev->regmap, 0x02, &uitmp); e4000_probe() 668 dev_dbg(&client->dev, "chip id=%02x\n", uitmp); e4000_probe() 670 if (uitmp != 0x40) { e4000_probe()
|
/linux-4.4.14/drivers/media/usb/hackrf/ |
H A D | hackrf.c | 249 unsigned int uitmp, uitmp1, uitmp2; hackrf_set_params() local 309 uitmp = dev->f_adc; hackrf_set_params() 311 uitmp = dev->rx_bandwidth->val; hackrf_set_params() 314 if (uitmp <= bandwidth_lut[i].freq) { hackrf_set_params() 315 uitmp = bandwidth_lut[i].freq; hackrf_set_params() 319 dev->rx_bandwidth->val = uitmp; hackrf_set_params() 320 dev->rx_bandwidth->cur.val = uitmp; hackrf_set_params() 321 dev_dbg(&intf->dev, "RX bandwidth selected=%u\n", uitmp); hackrf_set_params() 325 uitmp = dev->f_dac; hackrf_set_params() 327 uitmp = dev->tx_bandwidth->val; hackrf_set_params() 330 if (uitmp <= bandwidth_lut[i].freq) { hackrf_set_params() 331 uitmp = bandwidth_lut[i].freq; hackrf_set_params() 335 dev->tx_bandwidth->val = uitmp; hackrf_set_params() 336 dev->tx_bandwidth->cur.val = uitmp; hackrf_set_params() 337 dev_dbg(&intf->dev, "TX bandwidth selected=%u\n", uitmp); hackrf_set_params() 340 uitmp = 0; hackrf_set_params() 342 if (uitmp) { hackrf_set_params() 344 uitmp1 |= ((uitmp >> 0) & 0xff) << 0; hackrf_set_params() 345 uitmp1 |= ((uitmp >> 8) & 0xff) << 8; hackrf_set_params() 346 uitmp2 |= ((uitmp >> 16) & 0xff) << 0; hackrf_set_params() 347 uitmp2 |= ((uitmp >> 24) & 0xff) << 8; hackrf_set_params() 1114 unsigned int uitmp; hackrf_s_frequency() local 1120 uitmp = clamp(f->frequency, bands_adc_dac[0].rangelow, hackrf_s_frequency() 1123 dev->f_adc = uitmp; hackrf_s_frequency() 1126 dev->f_dac = uitmp; hackrf_s_frequency() 1130 uitmp = clamp(f->frequency, bands_rx_tx[0].rangelow, hackrf_s_frequency() 1133 dev->f_rx = uitmp; hackrf_s_frequency() 1136 dev->f_tx = uitmp; hackrf_s_frequency()
|