Lines Matching refs:utmp

176 	unsigned int utmp;  in m88ds3103_read_status()  local
188 ret = regmap_read(dev->regmap, 0xd1, &utmp); in m88ds3103_read_status()
192 if ((utmp & 0x07) == 0x07) in m88ds3103_read_status()
198 ret = regmap_read(dev->regmap, 0x0d, &utmp); in m88ds3103_read_status()
202 if ((utmp & 0x8f) == 0x8f) in m88ds3103_read_status()
214 dev_dbg(&client->dev, "lock=%02x status=%02x\n", utmp, *status); in m88ds3103_read_status()
229 ret = regmap_read(dev->regmap, 0xff, &utmp); in m88ds3103_read_status()
233 itmp += utmp; in m88ds3103_read_status()
288 unsigned int utmp, post_bit_error, post_bit_count; in m88ds3103_read_status() local
296 ret = regmap_read(dev->regmap, 0xf8, &utmp); in m88ds3103_read_status()
301 if (!(utmp & 0x10)) { in m88ds3103_read_status()
313 utmp |= 0x10; in m88ds3103_read_status()
314 ret = regmap_write(dev->regmap, 0xf8, utmp); in m88ds3103_read_status()
324 utmp = buf[2] << 16 | buf[1] << 8 | buf[0] << 0; in m88ds3103_read_status()
327 if (utmp > 4000) { in m88ds3103_read_status()
333 post_bit_count = 32 * utmp; /* TODO: FEC */ in m88ds3103_read_status()
1021 unsigned int utmp; in m88ds3103_init() local
1042 ret = regmap_read(dev->regmap, 0xb9, &utmp); in m88ds3103_init()
1046 dev_dbg(&client->dev, "firmware=%02x\n", utmp); in m88ds3103_init()
1048 if (utmp) in m88ds3103_init()
1101 ret = regmap_read(dev->regmap, 0xb9, &utmp); in m88ds3103_init()
1105 if (!utmp) { in m88ds3103_init()
1114 (utmp >> 4) & 0xf, (utmp >> 0 & 0xf)); in m88ds3103_init()
1147 unsigned int utmp; in m88ds3103_sleep() local
1156 utmp = 0x29; in m88ds3103_sleep()
1158 utmp = 0x27; in m88ds3103_sleep()
1159 ret = m88ds3103_update_bits(dev, utmp, 0x01, 0x00); in m88ds3103_sleep()
1376 unsigned int utmp, tone, reg_a1_mask; in m88ds3103_set_tone() local
1400 utmp = tone << 7 | dev->cfg->envelope_mode << 5; in m88ds3103_set_tone()
1401 ret = m88ds3103_update_bits(dev, 0xa2, 0xe0, utmp); in m88ds3103_set_tone()
1405 utmp = 1 << 2; in m88ds3103_set_tone()
1406 ret = m88ds3103_update_bits(dev, 0xa1, reg_a1_mask, utmp); in m88ds3103_set_tone()
1422 unsigned int utmp; in m88ds3103_set_voltage() local
1455 utmp = voltage_dis << 1 | voltage_sel << 0; in m88ds3103_set_voltage()
1456 ret = m88ds3103_update_bits(dev, 0xa2, 0x03, utmp); in m88ds3103_set_voltage()
1472 unsigned int utmp; in m88ds3103_diseqc_send_master_cmd() local
1488 utmp = dev->cfg->envelope_mode << 5; in m88ds3103_diseqc_send_master_cmd()
1489 ret = m88ds3103_update_bits(dev, 0xa2, 0xe0, utmp); in m88ds3103_diseqc_send_master_cmd()
1508 utmp = diseqc_cmd->msg_len * 13500; in m88ds3103_diseqc_send_master_cmd()
1509 usleep_range(utmp - 4000, utmp); in m88ds3103_diseqc_send_master_cmd()
1511 for (utmp = 1; !time_after(jiffies, timeout) && utmp;) { in m88ds3103_diseqc_send_master_cmd()
1512 ret = regmap_read(dev->regmap, 0xa1, &utmp); in m88ds3103_diseqc_send_master_cmd()
1515 utmp = (utmp >> 6) & 0x1; in m88ds3103_diseqc_send_master_cmd()
1518 if (utmp == 0) { in m88ds3103_diseqc_send_master_cmd()
1534 if (utmp == 1) { in m88ds3103_diseqc_send_master_cmd()
1551 unsigned int utmp, burst; in m88ds3103_diseqc_send_burst() local
1561 utmp = dev->cfg->envelope_mode << 5; in m88ds3103_diseqc_send_burst()
1562 ret = m88ds3103_update_bits(dev, 0xa2, 0xe0, utmp); in m88ds3103_diseqc_send_burst()
1590 for (utmp = 1; !time_after(jiffies, timeout) && utmp;) { in m88ds3103_diseqc_send_burst()
1591 ret = regmap_read(dev->regmap, 0xa1, &utmp); in m88ds3103_diseqc_send_burst()
1594 utmp = (utmp >> 6) & 0x1; in m88ds3103_diseqc_send_burst()
1597 if (utmp == 0) { in m88ds3103_diseqc_send_burst()
1613 if (utmp == 1) { in m88ds3103_diseqc_send_burst()
1773 unsigned int utmp; in m88ds3103_probe() local
1806 ret = regmap_read(dev->regmap, 0x00, &utmp); in m88ds3103_probe()
1810 dev->chip_id = utmp >> 1; in m88ds3103_probe()
1827 utmp = 0x80; in m88ds3103_probe()
1830 utmp = 0x00; in m88ds3103_probe()
1833 utmp = 0x10; in m88ds3103_probe()
1848 utmp = 0x00; in m88ds3103_probe()
1850 ret = regmap_write(dev->regmap, 0x29, utmp); in m88ds3103_probe()
1899 ret = regmap_read(dev->regmap, 0x29, &utmp); in m88ds3103_probe()
1902 dev->dt_addr = ((utmp & 0x80) == 0) ? 0x42 >> 1 : 0x40 >> 1; in m88ds3103_probe()