Lines Matching refs:utmp

32 	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()
107 if (utmp) { in mn88472_read_status()
110 stmp = ((u64)80807124 - intlog10(utmp) + 3355443) in mn88472_read_status()
113 dev_dbg(&client->dev, "cnr=%d value=%u\n", stmp, utmp); in mn88472_read_status()
130 utmp = buf[1] << 8 | buf[2] << 0; in mn88472_read_status()
132 if (utmp) { in mn88472_read_status()
136 stmp = ((u64)70706234 - intlog10(utmp) in mn88472_read_status()
139 stmp, utmp); in mn88472_read_status()
143 stmp = ((u64)80807124 - intlog10(utmp) in mn88472_read_status()
147 stmp, utmp); in mn88472_read_status()
214 unsigned int utmp; in mn88472_set_frontend() local
325 utmp = DIV_ROUND_CLOSEST_ULL((u64)if_frequency * 0x1000000, dev->clk); in mn88472_set_frontend()
326 buf[0] = (utmp >> 16) & 0xff; in mn88472_set_frontend()
327 buf[1] = (utmp >> 8) & 0xff; in mn88472_set_frontend()
328 buf[2] = (utmp >> 0) & 0xff; in mn88472_set_frontend()
408 unsigned int utmp; in mn88472_init() local
426 ret = regmap_read(dev->regmap[0], 0xf5, &utmp); in mn88472_init()
429 if (!(utmp & 0x01)) in mn88472_init()
457 ret = regmap_read(dev->regmap[0], 0xf8, &utmp); in mn88472_init()
460 if (utmp & 0x10) { in mn88472_init()
475 utmp = 0x1d; in mn88472_init()
478 utmp = 0x00; in mn88472_init()
484 ret = regmap_write(dev->regmap[2], 0x08, utmp); in mn88472_init()
490 utmp = 0xe3; in mn88472_init()
493 utmp = 0xe1; in mn88472_init()
499 ret = regmap_write(dev->regmap[0], 0xd9, utmp); in mn88472_init()
591 unsigned int utmp; in mn88472_probe() local
653 ret = regmap_read(dev->regmap[2], 0xff, &utmp); in mn88472_probe()
657 dev_dbg(&client->dev, "chip id=%02x\n", utmp); in mn88472_probe()
659 if (utmp != 0x02) { in mn88472_probe()