Lines Matching refs:utmp

99 	unsigned int utmp;  in m88ds3103_read_status()  local
111 ret = regmap_read(dev->regmap, 0xd1, &utmp); in m88ds3103_read_status()
115 if ((utmp & 0x07) == 0x07) in m88ds3103_read_status()
121 ret = regmap_read(dev->regmap, 0x0d, &utmp); in m88ds3103_read_status()
125 if ((utmp & 0x8f) == 0x8f) in m88ds3103_read_status()
137 dev_dbg(&client->dev, "lock=%02x status=%02x\n", utmp, *status); in m88ds3103_read_status()
152 ret = regmap_read(dev->regmap, 0xff, &utmp); in m88ds3103_read_status()
156 itmp += utmp; in m88ds3103_read_status()
211 unsigned int utmp, post_bit_error, post_bit_count; in m88ds3103_read_status() local
219 ret = regmap_read(dev->regmap, 0xf8, &utmp); in m88ds3103_read_status()
224 if (!(utmp & 0x10)) { in m88ds3103_read_status()
236 utmp |= 0x10; in m88ds3103_read_status()
237 ret = regmap_write(dev->regmap, 0xf8, utmp); in m88ds3103_read_status()
247 utmp = buf[2] << 16 | buf[1] << 8 | buf[0] << 0; in m88ds3103_read_status()
250 if (utmp > 4000) { in m88ds3103_read_status()
256 post_bit_count = 32 * utmp; /* TODO: FEC */ in m88ds3103_read_status()
639 unsigned int utmp; in m88ds3103_init() local
660 ret = regmap_read(dev->regmap, 0xb9, &utmp); in m88ds3103_init()
664 dev_dbg(&client->dev, "firmware=%02x\n", utmp); in m88ds3103_init()
666 if (utmp) in m88ds3103_init()
721 ret = regmap_read(dev->regmap, 0xb9, &utmp); in m88ds3103_init()
725 if (!utmp) { in m88ds3103_init()
734 (utmp >> 4) & 0xf, (utmp >> 0 & 0xf)); in m88ds3103_init()
761 unsigned int utmp; in m88ds3103_sleep() local
770 utmp = 0x29; in m88ds3103_sleep()
772 utmp = 0x27; in m88ds3103_sleep()
773 ret = m88ds3103_update_bits(dev, utmp, 0x01, 0x00); in m88ds3103_sleep()
991 unsigned int utmp, tone, reg_a1_mask; in m88ds3103_set_tone() local
1015 utmp = tone << 7 | dev->cfg->envelope_mode << 5; in m88ds3103_set_tone()
1016 ret = m88ds3103_update_bits(dev, 0xa2, 0xe0, utmp); in m88ds3103_set_tone()
1020 utmp = 1 << 2; in m88ds3103_set_tone()
1021 ret = m88ds3103_update_bits(dev, 0xa1, reg_a1_mask, utmp); in m88ds3103_set_tone()
1037 unsigned int utmp; in m88ds3103_set_voltage() local
1070 utmp = voltage_dis << 1 | voltage_sel << 0; in m88ds3103_set_voltage()
1071 ret = m88ds3103_update_bits(dev, 0xa2, 0x03, utmp); in m88ds3103_set_voltage()
1087 unsigned int utmp; in m88ds3103_diseqc_send_master_cmd() local
1103 utmp = dev->cfg->envelope_mode << 5; in m88ds3103_diseqc_send_master_cmd()
1104 ret = m88ds3103_update_bits(dev, 0xa2, 0xe0, utmp); in m88ds3103_diseqc_send_master_cmd()
1125 for (utmp = 1; !time_after(jiffies, timeout) && utmp;) { in m88ds3103_diseqc_send_master_cmd()
1126 ret = regmap_read(dev->regmap, 0xa1, &utmp); in m88ds3103_diseqc_send_master_cmd()
1129 utmp = (utmp >> 6) & 0x1; in m88ds3103_diseqc_send_master_cmd()
1132 if (utmp == 0) { in m88ds3103_diseqc_send_master_cmd()
1148 if (utmp == 1) { in m88ds3103_diseqc_send_master_cmd()
1165 unsigned int utmp, burst; in m88ds3103_diseqc_send_burst() local
1175 utmp = dev->cfg->envelope_mode << 5; in m88ds3103_diseqc_send_burst()
1176 ret = m88ds3103_update_bits(dev, 0xa2, 0xe0, utmp); in m88ds3103_diseqc_send_burst()
1204 for (utmp = 1; !time_after(jiffies, timeout) && utmp;) { in m88ds3103_diseqc_send_burst()
1205 ret = regmap_read(dev->regmap, 0xa1, &utmp); in m88ds3103_diseqc_send_burst()
1208 utmp = (utmp >> 6) & 0x1; in m88ds3103_diseqc_send_burst()
1211 if (utmp == 0) { in m88ds3103_diseqc_send_burst()
1227 if (utmp == 1) { in m88ds3103_diseqc_send_burst()
1386 unsigned int utmp; in m88ds3103_probe() local
1419 ret = regmap_read(dev->regmap, 0x00, &utmp); in m88ds3103_probe()
1423 dev->chip_id = utmp >> 1; in m88ds3103_probe()
1436 utmp = 0x80; in m88ds3103_probe()
1439 utmp = 0x00; in m88ds3103_probe()
1442 utmp = 0x10; in m88ds3103_probe()
1452 utmp = 0x00; in m88ds3103_probe()
1454 ret = regmap_write(dev->regmap, 0x29, utmp); in m88ds3103_probe()