Lines Matching refs:utmp

23 	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()
98 if (utmp) { in mn88472_read_status()
101 stmp = ((u64)80807124 - intlog10(utmp) + 3355443) in mn88472_read_status()
104 dev_dbg(&client->dev, "cnr=%d value=%u\n", stmp, utmp); in mn88472_read_status()
121 utmp = buf[1] << 8 | buf[2] << 0; in mn88472_read_status()
123 if (utmp) { in mn88472_read_status()
127 stmp = ((u64)70706234 - intlog10(utmp) in mn88472_read_status()
130 stmp, utmp); in mn88472_read_status()
134 stmp = ((u64)80807124 - intlog10(utmp) in mn88472_read_status()
138 stmp, utmp); in mn88472_read_status()
205 unsigned int utmp; in mn88472_set_frontend() local
316 utmp = DIV_ROUND_CLOSEST_ULL((u64)if_frequency * 0x1000000, dev->clk); in mn88472_set_frontend()
317 buf[0] = (utmp >> 16) & 0xff; in mn88472_set_frontend()
318 buf[1] = (utmp >> 8) & 0xff; in mn88472_set_frontend()
319 buf[2] = (utmp >> 0) & 0xff; in mn88472_set_frontend()
399 unsigned int utmp; in mn88472_init() local
417 ret = regmap_read(dev->regmap[0], 0xf5, &utmp); in mn88472_init()
420 if (!(utmp & 0x01)) in mn88472_init()
448 ret = regmap_read(dev->regmap[0], 0xf8, &utmp); in mn88472_init()
451 if (utmp & 0x10) { in mn88472_init()
466 utmp = 0x1d; in mn88472_init()
469 utmp = 0x00; in mn88472_init()
475 ret = regmap_write(dev->regmap[2], 0x08, utmp); in mn88472_init()
481 utmp = 0xe3; in mn88472_init()
484 utmp = 0xe1; in mn88472_init()
490 ret = regmap_write(dev->regmap[0], 0xd9, utmp); in mn88472_init()
582 unsigned int utmp; in mn88472_probe() local
642 ret = regmap_read(dev->regmap[2], 0xff, &utmp); in mn88472_probe()
646 dev_dbg(&client->dev, "chip id=%02x\n", utmp); in mn88472_probe()
648 if (utmp != 0x02) { in mn88472_probe()