Home
last modified time | relevance | path

Searched refs:utmp (Results 1 – 16 of 16) sorted by relevance

/linux-4.19.296/drivers/media/dvb-frontends/
Dmn88472.c32 unsigned int utmp, utmp1, utmp2; in mn88472_read_status() local
42 ret = regmap_read(dev->regmap[0], 0x7f, &utmp); in mn88472_read_status()
45 if ((utmp & 0x0f) >= 0x09) in mn88472_read_status()
52 ret = regmap_read(dev->regmap[2], 0x92, &utmp); in mn88472_read_status()
55 if ((utmp & 0x0f) >= 0x0d) in mn88472_read_status()
58 else if ((utmp & 0x0f) >= 0x0a) in mn88472_read_status()
61 else if ((utmp & 0x0f) >= 0x07) in mn88472_read_status()
67 ret = regmap_read(dev->regmap[1], 0x84, &utmp); in mn88472_read_status()
70 if ((utmp & 0x0f) >= 0x08) in mn88472_read_status()
106 utmp = buf[0] << 8 | buf[1] << 0; in mn88472_read_status()
[all …]
Dm88ds3103.c99 unsigned int utmp; in m88ds3103_read_status() local
111 ret = regmap_read(dev->regmap, 0xd1, &utmp); in m88ds3103_read_status()
115 if ((utmp & 0x07) == 0x07) in m88ds3103_read_status()
121 ret = regmap_read(dev->regmap, 0x0d, &utmp); in m88ds3103_read_status()
125 if ((utmp & 0x8f) == 0x8f) in m88ds3103_read_status()
137 dev_dbg(&client->dev, "lock=%02x status=%02x\n", utmp, *status); in m88ds3103_read_status()
152 ret = regmap_read(dev->regmap, 0xff, &utmp); in m88ds3103_read_status()
156 itmp += utmp; in m88ds3103_read_status()
211 unsigned int utmp, post_bit_error, post_bit_count; in m88ds3103_read_status() local
219 ret = regmap_read(dev->regmap, 0xf8, &utmp); in m88ds3103_read_status()
[all …]
Dcxd2820r_c.c30 unsigned int utmp; in cxd2820r_set_frontend_c() local
80 utmp = 0x4000 - DIV_ROUND_CLOSEST_ULL((u64)if_frequency * 0x4000, CXD2820R_CLK); in cxd2820r_set_frontend_c()
81 buf[0] = (utmp >> 8) & 0xff; in cxd2820r_set_frontend_c()
82 buf[1] = (utmp >> 0) & 0xff; in cxd2820r_set_frontend_c()
107 unsigned int utmp; in cxd2820r_get_frontend_c() local
118 ret = regmap_read(priv->regmap[1], 0x0019, &utmp); in cxd2820r_get_frontend_c()
122 switch ((utmp >> 0) & 0x07) { in cxd2820r_get_frontend_c()
140 switch ((utmp >> 7) & 0x01) { in cxd2820r_get_frontend_c()
161 unsigned int utmp, utmp1, utmp2; in cxd2820r_read_status_c() local
196 utmp = buf[0] << 8 | buf[1] << 0; in cxd2820r_read_status_c()
[all …]
Daf9033.c83 unsigned int utmp; in af9033_init() local
118 utmp = div_u64((u64)dev->cfg.clock * 0x80000, 1000000); in af9033_init()
119 buf[0] = (utmp >> 0) & 0xff; in af9033_init()
120 buf[1] = (utmp >> 8) & 0xff; in af9033_init()
121 buf[2] = (utmp >> 16) & 0xff; in af9033_init()
122 buf[3] = (utmp >> 24) & 0xff; in af9033_init()
127 dev_dbg(&client->dev, "clk=%u clk_cw=%08x\n", dev->cfg.clock, utmp); in af9033_init()
140 utmp = div_u64((u64)clock_adc_lut[i].adc * 0x80000, 1000000); in af9033_init()
141 buf[0] = (utmp >> 0) & 0xff; in af9033_init()
142 buf[1] = (utmp >> 8) & 0xff; in af9033_init()
[all …]
Dcxd2820r_t2.c30 unsigned int utmp; in cxd2820r_set_frontend_t2() local
122 utmp = DIV_ROUND_CLOSEST_ULL((u64)if_frequency * 0x1000000, CXD2820R_CLK); in cxd2820r_set_frontend_t2()
123 buf[0] = (utmp >> 16) & 0xff; in cxd2820r_set_frontend_t2()
124 buf[1] = (utmp >> 8) & 0xff; in cxd2820r_set_frontend_t2()
125 buf[2] = (utmp >> 0) & 0xff; in cxd2820r_set_frontend_t2()
175 unsigned int utmp; in cxd2820r_get_frontend_t2() local
269 ret = regmap_read(priv->regmap[0], 0x20b5, &utmp); in cxd2820r_get_frontend_t2()
273 switch ((utmp >> 4) & 0x01) { in cxd2820r_get_frontend_t2()
294 unsigned int utmp, utmp1, utmp2; in cxd2820r_read_status_t2() local
326 utmp = buf[0] << 8 | buf[1] << 0; in cxd2820r_read_status_t2()
[all …]
Dcxd2820r_t.c30 unsigned int utmp; in cxd2820r_set_frontend_t() local
105 utmp = DIV_ROUND_CLOSEST_ULL((u64)if_frequency * 0x1000000, CXD2820R_CLK); in cxd2820r_set_frontend_t()
106 buf[0] = (utmp >> 16) & 0xff; in cxd2820r_set_frontend_t()
107 buf[1] = (utmp >> 8) & 0xff; in cxd2820r_set_frontend_t()
108 buf[2] = (utmp >> 0) & 0xff; in cxd2820r_set_frontend_t()
145 unsigned int utmp; in cxd2820r_get_frontend_t() local
241 ret = regmap_read(priv->regmap[0], 0x07c6, &utmp); in cxd2820r_get_frontend_t()
245 switch ((utmp >> 0) & 0x01) { in cxd2820r_get_frontend_t()
266 unsigned int utmp, utmp1, utmp2; in cxd2820r_read_status_t() local
301 utmp = buf[0] << 8 | buf[1] << 0; in cxd2820r_read_status_t()
[all …]
Dts2020.c180 unsigned int utmp; in ts2020_set_tuner_rf() local
182 ret = regmap_read(dev->regmap, 0x3d, &utmp); in ts2020_set_tuner_rf()
183 utmp &= 0x7f; in ts2020_set_tuner_rf()
184 if (utmp < 0x16) in ts2020_set_tuner_rf()
185 utmp = 0xa1; in ts2020_set_tuner_rf()
186 else if (utmp == 0x16) in ts2020_set_tuner_rf()
187 utmp = 0x99; in ts2020_set_tuner_rf()
189 utmp = 0xf9; in ts2020_set_tuner_rf()
191 regmap_write(dev->regmap, 0x60, utmp); in ts2020_set_tuner_rf()
202 unsigned int utmp; in ts2020_set_params() local
[all …]
Daf9013.c531 unsigned int utmp, utmp1, utmp2, utmp3, utmp4; in af9013_read_status() local
545 ret = regmap_read(state->regmap, 0xd507, &utmp); in af9013_read_status()
549 if ((utmp >> 6) & 0x01) { in af9013_read_status()
554 ret = regmap_read(state->regmap, 0xd330, &utmp); in af9013_read_status()
558 if ((utmp >> 3) & 0x01) in af9013_read_status()
577 ret = regmap_read(state->regmap, 0x9bee, &utmp); in af9013_read_status()
581 if ((utmp >> 0) & 0x01) { in af9013_read_status()
654 ret = regmap_read(state->regmap, 0xd2e1, &utmp); in af9013_read_status()
658 if (!((utmp >> 3) & 0x01)) { in af9013_read_status()
671 ret = regmap_read(state->regmap, 0xd3c1, &utmp); in af9013_read_status()
[all …]
Dmn88473.c252 unsigned int utmp, utmp1, utmp2; in mn88473_read_status() local
263 ret = regmap_read(dev->regmap[0], 0x62, &utmp); in mn88473_read_status()
267 if (!(utmp & 0xa0)) { in mn88473_read_status()
268 if ((utmp & 0x0f) >= 0x09) in mn88473_read_status()
272 else if ((utmp & 0x0f) >= 0x03) in mn88473_read_status()
279 ret = regmap_read(dev->regmap[2], 0x8b, &utmp); in mn88473_read_status()
283 if (!(utmp & 0x40)) { in mn88473_read_status()
284 if ((utmp & 0x0f) >= 0x0d) in mn88473_read_status()
288 else if ((utmp & 0x0f) >= 0x0a) in mn88473_read_status()
291 else if ((utmp & 0x0f) >= 0x07) in mn88473_read_status()
[all …]
Drtl2830.c397 unsigned int utmp; in rtl2830_read_status() local
429 utmp = clamp_val(-4 * stmp + 32767, 0x0000, 0xffff); in rtl2830_read_status()
434 c->strength.stat[0].uvalue = utmp; in rtl2830_read_status()
466 utmp = buf[0] << 8 | buf[1] << 0; in rtl2830_read_status()
467 if (utmp) in rtl2830_read_status()
469 intlog10(utmp)) / ((1 << 24) / 10000); in rtl2830_read_status()
473 dev_dbg(&client->dev, "CNR raw=%u\n", utmp); in rtl2830_read_status()
487 utmp = buf[0] << 8 | buf[1] << 0; in rtl2830_read_status()
488 dev->post_bit_error += utmp; in rtl2830_read_status()
491 dev_dbg(&client->dev, "BER errors=%u total=1000000\n", utmp); in rtl2830_read_status()
Dcxd2820r_core.c569 unsigned int utmp; in cxd2820r_probe() local
632 ret = regmap_read(priv->regmap[0], 0x00fd, &utmp); in cxd2820r_probe()
636 dev_dbg(&client->dev, "chip_id=%02x\n", utmp); in cxd2820r_probe()
638 if (utmp != 0xe1) { in cxd2820r_probe()
Dsi2168.c115 unsigned int utmp, utmp1, utmp2; in si2168_read_status() local
187 utmp = clamp(8 - cmd.args[1], 0, 8); in si2168_read_status()
188 for (i = 0, utmp1 = 1; i < utmp; i++) in si2168_read_status()
/linux-4.19.296/drivers/media/tuners/
Dtda18250.c29 unsigned int utmp; in tda18250_power_control() local
66 R0D_AGC12, &utmp); in tda18250_power_control()
78 R0D_AGC12, 0x03, utmp & 0x03); in tda18250_power_control()
101 unsigned int utmp; in tda18250_wait_for_irq() local
107 ret = regmap_read(dev->regmap, R08_IRQ1, &utmp); in tda18250_wait_for_irq()
110 if ((utmp & irq) == irq) { in tda18250_wait_for_irq()
265 u8 utmp, utmp2; in tda18250_set_agc() local
273 utmp = ((c->frequency < 100000000) && in tda18250_set_agc()
277 ret = regmap_write(dev->regmap, R5A_H3H5, utmp); in tda18250_set_agc()
286 utmp = 4; in tda18250_set_agc()
[all …]
Dit913x.c41 unsigned int utmp; in it913x_init() local
54 ret = regmap_read(dev->regmap, 0x80ec86, &utmp); in it913x_init()
58 switch (utmp) { in it913x_init()
61 dev->clk_mode = utmp; in it913x_init()
68 dev->clk_mode = utmp; in it913x_init()
74 dev_err(&pdev->dev, "unknown clock identifier %d\n", utmp); in it913x_init()
78 ret = regmap_read(dev->regmap, 0x80ed03, &utmp); in it913x_init()
82 else if (utmp < ARRAY_SIZE(nv)) in it913x_init()
83 nv_val = nv[utmp]; in it913x_init()
94 utmp = (buf[1] << 8) | (buf[0] << 0); in it913x_init()
[all …]
Dm88rs6000t.c41 unsigned int utmp; in m88rs6000t_set_demod_mclk() local
45 ret = regmap_read(dev->regmap, 0x15, &utmp); in m88rs6000t_set_demod_mclk()
48 reg15 = utmp; in m88rs6000t_set_demod_mclk()
107 ret = regmap_read(dev->regmap, 0x1D, &utmp); in m88rs6000t_set_demod_mclk()
110 reg1D = utmp; in m88rs6000t_set_demod_mclk()
164 unsigned int utmp; in m88rs6000t_set_pll_freq() local
276 ret = regmap_read(dev->regmap, 0x42, &utmp); in m88rs6000t_set_pll_freq()
279 reg42 = utmp; in m88rs6000t_set_pll_freq()
298 ret = regmap_read(dev->regmap, 0x42, &utmp); in m88rs6000t_set_pll_freq()
301 reg42buf = utmp; in m88rs6000t_set_pll_freq()
[all …]
/linux-4.19.296/drivers/media/usb/dvb-usb-v2/
Daf9035.c500 unsigned int utmp, eeprom_addr; in af9035_identify_state() local
524 utmp = 0x00461d; in af9035_identify_state()
527 utmp = 0x00461b; in af9035_identify_state()
531 ret = af9035_rd_reg(d, utmp, &tmp); in af9035_identify_state()