Lines Matching refs:utmp
243 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()
289 ret = regmap_read(dev->regmap[1], 0x85, &utmp); in mn88473_read_status()
293 if (!(utmp & 0x40)) { in mn88473_read_status()
294 ret = regmap_read(dev->regmap[1], 0x89, &utmp); in mn88473_read_status()
298 if (utmp & 0x01) in mn88473_read_status()
337 utmp = buf[0] << 8 | buf[1] << 0; in mn88473_read_status()
338 if (utmp) { in mn88473_read_status()
341 stmp = div_u64(((u64)80807124 - intlog10(utmp) in mn88473_read_status()
343 dev_dbg(&client->dev, "cnr=%d value=%u\n", stmp, utmp); in mn88473_read_status()
360 utmp = buf[1] << 8 | buf[2] << 0; in mn88473_read_status()
362 if (utmp) { in mn88473_read_status()
366 stmp = div_u64(((u64)70706234 - intlog10(utmp) in mn88473_read_status()
369 stmp, utmp); in mn88473_read_status()
373 stmp = div_u64(((u64)80807124 - intlog10(utmp) in mn88473_read_status()
376 stmp, utmp); in mn88473_read_status()