Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/media/dvb-frontends/
Dmn88472.c23 unsigned int utmp, utmp1, utmp2; in mn88472_read_status() local
33 ret = regmap_read(dev->regmap[0], 0x7f, &utmp); in mn88472_read_status()
36 if ((utmp & 0x0f) >= 0x09) in mn88472_read_status()
43 ret = regmap_read(dev->regmap[2], 0x92, &utmp); in mn88472_read_status()
46 if ((utmp & 0x0f) >= 0x0d) in mn88472_read_status()
49 else if ((utmp & 0x0f) >= 0x0a) in mn88472_read_status()
52 else if ((utmp & 0x0f) >= 0x07) in mn88472_read_status()
58 ret = regmap_read(dev->regmap[1], 0x84, &utmp); in mn88472_read_status()
61 if ((utmp & 0x0f) >= 0x08) in mn88472_read_status()
97 utmp = buf[0] << 8 | buf[1] << 0; in mn88472_read_status()
[all …]
Dm88ds3103.c90 unsigned int utmp; in m88ds3103_read_status() local
102 ret = regmap_read(dev->regmap, 0xd1, &utmp); in m88ds3103_read_status()
106 if ((utmp & 0x07) == 0x07) in m88ds3103_read_status()
112 ret = regmap_read(dev->regmap, 0x0d, &utmp); in m88ds3103_read_status()
116 if ((utmp & 0x8f) == 0x8f) in m88ds3103_read_status()
128 dev_dbg(&client->dev, "lock=%02x status=%02x\n", utmp, *status); in m88ds3103_read_status()
143 ret = regmap_read(dev->regmap, 0xff, &utmp); in m88ds3103_read_status()
147 itmp += utmp; in m88ds3103_read_status()
202 unsigned int utmp, post_bit_error, post_bit_count; in m88ds3103_read_status() local
210 ret = regmap_read(dev->regmap, 0xf8, &utmp); in m88ds3103_read_status()
[all …]
Dcxd2820r_c.c17 unsigned int utmp; in cxd2820r_set_frontend_c() local
67 utmp = 0x4000 - DIV_ROUND_CLOSEST_ULL((u64)if_frequency * 0x4000, CXD2820R_CLK); in cxd2820r_set_frontend_c()
68 buf[0] = (utmp >> 8) & 0xff; in cxd2820r_set_frontend_c()
69 buf[1] = (utmp >> 0) & 0xff; in cxd2820r_set_frontend_c()
94 unsigned int utmp; in cxd2820r_get_frontend_c() local
105 ret = regmap_read(priv->regmap[1], 0x0019, &utmp); in cxd2820r_get_frontend_c()
109 switch ((utmp >> 0) & 0x07) { in cxd2820r_get_frontend_c()
127 switch ((utmp >> 7) & 0x01) { in cxd2820r_get_frontend_c()
148 unsigned int utmp, utmp1, utmp2; in cxd2820r_read_status_c() local
183 utmp = buf[0] << 8 | buf[1] << 0; in cxd2820r_read_status_c()
[all …]
Daf9033.c74 unsigned int utmp; in af9033_init() local
109 utmp = div_u64((u64)dev->cfg.clock * 0x80000, 1000000); in af9033_init()
110 buf[0] = (utmp >> 0) & 0xff; in af9033_init()
111 buf[1] = (utmp >> 8) & 0xff; in af9033_init()
112 buf[2] = (utmp >> 16) & 0xff; in af9033_init()
113 buf[3] = (utmp >> 24) & 0xff; in af9033_init()
118 dev_dbg(&client->dev, "clk=%u clk_cw=%08x\n", dev->cfg.clock, utmp); in af9033_init()
131 utmp = div_u64((u64)clock_adc_lut[i].adc * 0x80000, 1000000); in af9033_init()
132 buf[0] = (utmp >> 0) & 0xff; in af9033_init()
133 buf[1] = (utmp >> 8) & 0xff; in af9033_init()
[all …]
Dcxd2820r_t2.c17 unsigned int utmp; in cxd2820r_set_frontend_t2() local
109 utmp = DIV_ROUND_CLOSEST_ULL((u64)if_frequency * 0x1000000, CXD2820R_CLK); in cxd2820r_set_frontend_t2()
110 buf[0] = (utmp >> 16) & 0xff; in cxd2820r_set_frontend_t2()
111 buf[1] = (utmp >> 8) & 0xff; in cxd2820r_set_frontend_t2()
112 buf[2] = (utmp >> 0) & 0xff; in cxd2820r_set_frontend_t2()
162 unsigned int utmp; in cxd2820r_get_frontend_t2() local
256 ret = regmap_read(priv->regmap[0], 0x20b5, &utmp); in cxd2820r_get_frontend_t2()
260 switch ((utmp >> 4) & 0x01) { in cxd2820r_get_frontend_t2()
281 unsigned int utmp, utmp1, utmp2; in cxd2820r_read_status_t2() local
313 utmp = buf[0] << 8 | buf[1] << 0; in cxd2820r_read_status_t2()
[all …]
Dcxd2820r_t.c17 unsigned int utmp; in cxd2820r_set_frontend_t() local
92 utmp = DIV_ROUND_CLOSEST_ULL((u64)if_frequency * 0x1000000, CXD2820R_CLK); in cxd2820r_set_frontend_t()
93 buf[0] = (utmp >> 16) & 0xff; in cxd2820r_set_frontend_t()
94 buf[1] = (utmp >> 8) & 0xff; in cxd2820r_set_frontend_t()
95 buf[2] = (utmp >> 0) & 0xff; in cxd2820r_set_frontend_t()
132 unsigned int utmp; in cxd2820r_get_frontend_t() local
228 ret = regmap_read(priv->regmap[0], 0x07c6, &utmp); in cxd2820r_get_frontend_t()
232 switch ((utmp >> 0) & 0x01) { in cxd2820r_get_frontend_t()
253 unsigned int utmp, utmp1, utmp2; in cxd2820r_read_status_t() local
288 utmp = buf[0] << 8 | buf[1] << 0; in cxd2820r_read_status_t()
[all …]
Dts2020.c168 unsigned int utmp; in ts2020_set_tuner_rf() local
170 ret = regmap_read(dev->regmap, 0x3d, &utmp); in ts2020_set_tuner_rf()
174 utmp &= 0x7f; in ts2020_set_tuner_rf()
175 if (utmp < 0x16) in ts2020_set_tuner_rf()
176 utmp = 0xa1; in ts2020_set_tuner_rf()
177 else if (utmp == 0x16) in ts2020_set_tuner_rf()
178 utmp = 0x99; in ts2020_set_tuner_rf()
180 utmp = 0xf9; in ts2020_set_tuner_rf()
182 regmap_write(dev->regmap, 0x60, utmp); in ts2020_set_tuner_rf()
193 unsigned int utmp; in ts2020_set_params() local
[all …]
Daf9013.c521 unsigned int utmp, utmp1, utmp2, utmp3, utmp4; in af9013_read_status() local
535 ret = regmap_read(state->regmap, 0xd507, &utmp); in af9013_read_status()
539 if ((utmp >> 6) & 0x01) { in af9013_read_status()
544 ret = regmap_read(state->regmap, 0xd330, &utmp); in af9013_read_status()
548 if ((utmp >> 3) & 0x01) in af9013_read_status()
567 ret = regmap_read(state->regmap, 0x9bee, &utmp); in af9013_read_status()
571 if ((utmp >> 0) & 0x01) { in af9013_read_status()
644 ret = regmap_read(state->regmap, 0xd2e1, &utmp); in af9013_read_status()
648 if (!((utmp >> 3) & 0x01)) { in af9013_read_status()
661 ret = regmap_read(state->regmap, 0xd3c1, &utmp); in af9013_read_status()
[all …]
Dmn88473.c243 unsigned int utmp, utmp1, utmp2; in mn88473_read_status() local
254 ret = regmap_read(dev->regmap[0], 0x62, &utmp); in mn88473_read_status()
258 if (!(utmp & 0xa0)) { in mn88473_read_status()
259 if ((utmp & 0x0f) >= 0x09) in mn88473_read_status()
263 else if ((utmp & 0x0f) >= 0x03) in mn88473_read_status()
270 ret = regmap_read(dev->regmap[2], 0x8b, &utmp); in mn88473_read_status()
274 if (!(utmp & 0x40)) { in mn88473_read_status()
275 if ((utmp & 0x0f) >= 0x0d) in mn88473_read_status()
279 else if ((utmp & 0x0f) >= 0x0a) in mn88473_read_status()
282 else if ((utmp & 0x0f) >= 0x07) in mn88473_read_status()
[all …]
Drtl2830.c387 unsigned int utmp; in rtl2830_read_status() local
419 utmp = clamp_val(-4 * stmp + 32767, 0x0000, 0xffff); in rtl2830_read_status()
424 c->strength.stat[0].uvalue = utmp; in rtl2830_read_status()
456 utmp = buf[0] << 8 | buf[1] << 0; in rtl2830_read_status()
457 if (utmp) in rtl2830_read_status()
459 intlog10(utmp)) / ((1 << 24) / 10000); in rtl2830_read_status()
463 dev_dbg(&client->dev, "CNR raw=%u\n", utmp); in rtl2830_read_status()
477 utmp = buf[0] << 8 | buf[1] << 0; in rtl2830_read_status()
478 dev->post_bit_error += utmp; in rtl2830_read_status()
481 dev_dbg(&client->dev, "BER errors=%u total=1000000\n", utmp); in rtl2830_read_status()
Dcxd2820r_core.c556 unsigned int utmp; in cxd2820r_probe() local
619 ret = regmap_read(priv->regmap[0], 0x00fd, &utmp); in cxd2820r_probe()
623 dev_dbg(&client->dev, "chip_id=%02x\n", utmp); in cxd2820r_probe()
625 if (utmp != 0xe1) { in cxd2820r_probe()
Dsi2168.c120 unsigned int utmp, utmp1, utmp2; in si2168_read_status() local
184 utmp = clamp(8 - cmd.args[1], 0, 8); in si2168_read_status()
185 for (i = 0, utmp1 = 1; i < utmp; i++) in si2168_read_status()
/Linux-v5.4/drivers/media/tuners/
Dtda18250.c19 unsigned int utmp; in tda18250_power_control() local
56 R0D_AGC12, &utmp); in tda18250_power_control()
68 R0D_AGC12, 0x03, utmp & 0x03); in tda18250_power_control()
91 unsigned int utmp; in tda18250_wait_for_irq() local
97 ret = regmap_read(dev->regmap, R08_IRQ1, &utmp); in tda18250_wait_for_irq()
100 if ((utmp & irq) == irq) { in tda18250_wait_for_irq()
255 u8 utmp, utmp2; in tda18250_set_agc() local
263 utmp = ((c->frequency < 100000000) && in tda18250_set_agc()
267 ret = regmap_write(dev->regmap, R5A_H3H5, utmp); in tda18250_set_agc()
276 utmp = 4; in tda18250_set_agc()
[all …]
Dit913x.c31 unsigned int utmp; in it913x_init() local
44 ret = regmap_read(dev->regmap, 0x80ec86, &utmp); in it913x_init()
48 switch (utmp) { in it913x_init()
51 dev->clk_mode = utmp; in it913x_init()
58 dev->clk_mode = utmp; in it913x_init()
64 dev_err(&pdev->dev, "unknown clock identifier %d\n", utmp); in it913x_init()
68 ret = regmap_read(dev->regmap, 0x80ed03, &utmp); in it913x_init()
72 else if (utmp < ARRAY_SIZE(nv)) in it913x_init()
73 nv_val = nv[utmp]; in it913x_init()
84 utmp = (buf[1] << 8) | (buf[0] << 0); in it913x_init()
[all …]
Dm88rs6000t.c32 unsigned int utmp; in m88rs6000t_set_demod_mclk() local
36 ret = regmap_read(dev->regmap, 0x15, &utmp); in m88rs6000t_set_demod_mclk()
39 reg15 = utmp; in m88rs6000t_set_demod_mclk()
98 ret = regmap_read(dev->regmap, 0x1D, &utmp); in m88rs6000t_set_demod_mclk()
101 reg1D = utmp; in m88rs6000t_set_demod_mclk()
155 unsigned int utmp; in m88rs6000t_set_pll_freq() local
267 ret = regmap_read(dev->regmap, 0x42, &utmp); in m88rs6000t_set_pll_freq()
270 reg42 = utmp; in m88rs6000t_set_pll_freq()
289 ret = regmap_read(dev->regmap, 0x42, &utmp); in m88rs6000t_set_pll_freq()
292 reg42buf = utmp; in m88rs6000t_set_pll_freq()
[all …]
/Linux-v5.4/arch/powerpc/kernel/
Drtas-proc.c435 const unsigned int *utmp; in ppc_rtas_find_all_sensors() local
438 utmp = of_get_property(rtas_node, "rtas-sensors", &len); in ppc_rtas_find_all_sensors()
439 if (utmp == NULL) { in ppc_rtas_find_all_sensors()
447 sensors.sensor[i].token = *utmp++; in ppc_rtas_find_all_sensors()
448 sensors.sensor[i].quant = *utmp++; in ppc_rtas_find_all_sensors()
/Linux-v5.4/arch/s390/kernel/
Dptrace.c466 addr_t utmp; in arch_ptrace() local
467 if (get_user(utmp, in arch_ptrace()
470 ret = poke_user(child, addr, utmp); in arch_ptrace()
816 __u32 utmp; in compat_arch_ptrace() local
817 if (get_user(utmp, in compat_arch_ptrace()
820 ret = poke_user_compat(child, addr, utmp); in compat_arch_ptrace()
/Linux-v5.4/drivers/media/usb/msi2500/
Dmsi2500.c290 unsigned int utmp; in msi2500_convert_stream() local
296 utmp = se.x + 8192; in msi2500_convert_stream()
298 *u16dst++ = utmp << 2 | utmp >> 12; in msi2500_convert_stream()
/Linux-v5.4/drivers/media/usb/dvb-usb-v2/
Daf9035.c483 unsigned int utmp, eeprom_addr; in af9035_identify_state() local
507 utmp = 0x00461d; in af9035_identify_state()
510 utmp = 0x00461b; in af9035_identify_state()
514 ret = af9035_rd_reg(d, utmp, &tmp); in af9035_identify_state()
/Linux-v5.4/drivers/net/wireless/cisco/
Dairo.c1713 u64 sum, utmp; in emmh32_final() local
1729 utmp = (stmp & 0xffffffffLL) - ((stmp >> 32) * 15); in emmh32_final()
1730 sum = utmp & 0xffffffffLL; in emmh32_final()
1731 if (utmp > 0x10000000fLL) in emmh32_final()