Lines Matching refs:utmp
74 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()
132 utmp = div_u64((u64)clock_adc_lut[i].adc * 0x80000, 1000000); in af9033_init()
133 buf[0] = (utmp >> 0) & 0xff; in af9033_init()
134 buf[1] = (utmp >> 8) & 0xff; in af9033_init()
135 buf[2] = (utmp >> 16) & 0xff; in af9033_init()
141 clock_adc_lut[i].adc, utmp); in af9033_init()
309 unsigned int utmp; in af9033_sleep() local
319 ret = regmap_read_poll_timeout(dev->regmap, 0x80004c, utmp, utmp == 0, in af9033_sleep()
361 unsigned int utmp, adc_freq; in af9033_set_frontend() local
435 utmp = DIV_ROUND_CLOSEST_ULL((u64)if_frequency * 0x800000, in af9033_set_frontend()
439 utmp = 0x800000 - utmp; in af9033_set_frontend()
441 buf[0] = (utmp >> 0) & 0xff; in af9033_set_frontend()
442 buf[1] = (utmp >> 8) & 0xff; in af9033_set_frontend()
443 buf[2] = (utmp >> 16) & 0xff; in af9033_set_frontend()
448 dev_dbg(&client->dev, "if_frequency_cw=%06x\n", utmp); in af9033_set_frontend()
619 unsigned int utmp, utmp1; in af9033_read_status() local
626 ret = regmap_read(dev->regmap, 0x800047, &utmp); in af9033_read_status()
631 if (utmp == 0x01) in af9033_read_status()
634 if (utmp != 0x02) { in af9033_read_status()
636 ret = regmap_read(dev->regmap, 0x80f5a9, &utmp); in af9033_read_status()
640 if ((utmp >> 0) & 0x01) in af9033_read_status()
645 ret = regmap_read(dev->regmap, 0x80f999, &utmp); in af9033_read_status()
649 if ((utmp >> 0) & 0x01) in af9033_read_status()
660 ret = regmap_read(dev->regmap, 0x80004a, &utmp); in af9033_read_status()
663 tmp = -utmp * 1000; in af9033_read_status()
665 ret = regmap_read(dev->regmap, 0x8000f7, &utmp); in af9033_read_status()
668 tmp = (utmp - 100) * 1000; in af9033_read_status()
689 ret = regmap_read(dev->regmap, 0x80f78b, &utmp); in af9033_read_status()
693 if (utmp) in af9033_read_status()
694 utmp1 /= utmp; in af9033_read_status()
697 ret = regmap_read(dev->regmap, 0x80f900, &utmp); in af9033_read_status()
701 switch ((utmp >> 0) & 3) { in af9033_read_status()
720 ret = regmap_read(dev->regmap, 0x80f903, &utmp); in af9033_read_status()
724 switch ((utmp >> 0) & 3) { in af9033_read_status()
825 unsigned int utmp; in af9033_read_snr() local
840 ret = regmap_read(dev->regmap, 0x80f903, &utmp); in af9033_read_snr()
845 switch ((utmp >> 0) & 3) { in af9033_read_snr()
876 unsigned int utmp; in af9033_read_signal_strength() local
883 ret = regmap_read(dev->regmap, 0x800048, &utmp); in af9033_read_signal_strength()
888 *strength = utmp * 0xffff / 100; in af9033_read_signal_strength()
890 ret = regmap_read(dev->regmap, 0x8000f7, &utmp); in af9033_read_signal_strength()
903 power_real = (utmp - 100 - gain_offset) - in af9033_read_signal_strength()