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()
1017 unsigned int utmp; in m88ds3103_init() local
1038 ret = regmap_read(dev->regmap, 0xb9, &utmp); in m88ds3103_init()
1042 dev_dbg(&client->dev, "firmware=%02x\n", utmp); in m88ds3103_init()
1044 if (utmp) in m88ds3103_init()
1097 ret = regmap_read(dev->regmap, 0xb9, &utmp); in m88ds3103_init()
1101 if (!utmp) { in m88ds3103_init()
1110 (utmp >> 4) & 0xf, (utmp >> 0 & 0xf)); in m88ds3103_init()
1143 unsigned int utmp; in m88ds3103_sleep() local
1152 utmp = 0x29; in m88ds3103_sleep()
1154 utmp = 0x27; in m88ds3103_sleep()
1155 ret = m88ds3103_update_bits(dev, utmp, 0x01, 0x00); in m88ds3103_sleep()
1372 unsigned int utmp, tone, reg_a1_mask; in m88ds3103_set_tone() local
1396 utmp = tone << 7 | dev->cfg->envelope_mode << 5; in m88ds3103_set_tone()
1397 ret = m88ds3103_update_bits(dev, 0xa2, 0xe0, utmp); in m88ds3103_set_tone()
1401 utmp = 1 << 2; in m88ds3103_set_tone()
1402 ret = m88ds3103_update_bits(dev, 0xa1, reg_a1_mask, utmp); in m88ds3103_set_tone()
1418 unsigned int utmp; in m88ds3103_set_voltage() local
1451 utmp = voltage_dis << 1 | voltage_sel << 0; in m88ds3103_set_voltage()
1452 ret = m88ds3103_update_bits(dev, 0xa2, 0x03, utmp); in m88ds3103_set_voltage()
1468 unsigned int utmp; in m88ds3103_diseqc_send_master_cmd() local
1484 utmp = dev->cfg->envelope_mode << 5; in m88ds3103_diseqc_send_master_cmd()
1485 ret = m88ds3103_update_bits(dev, 0xa2, 0xe0, utmp); in m88ds3103_diseqc_send_master_cmd()
1504 utmp = diseqc_cmd->msg_len * 13500; in m88ds3103_diseqc_send_master_cmd()
1505 usleep_range(utmp - 4000, utmp); in m88ds3103_diseqc_send_master_cmd()
1507 for (utmp = 1; !time_after(jiffies, timeout) && utmp;) { in m88ds3103_diseqc_send_master_cmd()
1508 ret = regmap_read(dev->regmap, 0xa1, &utmp); in m88ds3103_diseqc_send_master_cmd()
1511 utmp = (utmp >> 6) & 0x1; in m88ds3103_diseqc_send_master_cmd()
1514 if (utmp == 0) { in m88ds3103_diseqc_send_master_cmd()
1530 if (utmp == 1) { in m88ds3103_diseqc_send_master_cmd()
1547 unsigned int utmp, burst; in m88ds3103_diseqc_send_burst() local
1557 utmp = dev->cfg->envelope_mode << 5; in m88ds3103_diseqc_send_burst()
1558 ret = m88ds3103_update_bits(dev, 0xa2, 0xe0, utmp); in m88ds3103_diseqc_send_burst()
1586 for (utmp = 1; !time_after(jiffies, timeout) && utmp;) { in m88ds3103_diseqc_send_burst()
1587 ret = regmap_read(dev->regmap, 0xa1, &utmp); in m88ds3103_diseqc_send_burst()
1590 utmp = (utmp >> 6) & 0x1; in m88ds3103_diseqc_send_burst()
1593 if (utmp == 0) { in m88ds3103_diseqc_send_burst()
1609 if (utmp == 1) { in m88ds3103_diseqc_send_burst()
1769 unsigned int utmp; in m88ds3103_probe() local
1802 ret = regmap_read(dev->regmap, 0x00, &utmp); in m88ds3103_probe()
1806 dev->chip_id = utmp >> 1; in m88ds3103_probe()
1823 utmp = 0x80; in m88ds3103_probe()
1826 utmp = 0x00; in m88ds3103_probe()
1829 utmp = 0x10; in m88ds3103_probe()
1844 utmp = 0x00; in m88ds3103_probe()
1846 ret = regmap_write(dev->regmap, 0x29, utmp); in m88ds3103_probe()
1895 ret = regmap_read(dev->regmap, 0x29, &utmp); in m88ds3103_probe()
1898 dev->dt_addr = ((utmp & 0x80) == 0) ? 0x42 >> 1 : 0x40 >> 1; in m88ds3103_probe()