Lines Matching refs:utmp
521 unsigned int utmp, utmp1, utmp2, utmp3, utmp4; in af9013_read_status() local
535 ret = regmap_read(state->regmap, 0xd507, &utmp); in af9013_read_status()
539 if ((utmp >> 6) & 0x01) { in af9013_read_status()
544 ret = regmap_read(state->regmap, 0xd330, &utmp); in af9013_read_status()
548 if ((utmp >> 3) & 0x01) in af9013_read_status()
567 ret = regmap_read(state->regmap, 0x9bee, &utmp); in af9013_read_status()
571 if ((utmp >> 0) & 0x01) { in af9013_read_status()
644 ret = regmap_read(state->regmap, 0xd2e1, &utmp); in af9013_read_status()
648 if (!((utmp >> 3) & 0x01)) { in af9013_read_status()
661 ret = regmap_read(state->regmap, 0xd3c1, &utmp); in af9013_read_status()
665 switch ((utmp >> 6) & 3) { in af9013_read_status()
701 (utmp >> 6) & 3); in af9013_read_status()
726 ret = regmap_read(state->regmap, 0xd391, &utmp); in af9013_read_status()
730 if (!((utmp >> 4) & 0x01)) { in af9013_read_status()
834 unsigned int utmp; in af9013_init() local
863 utmp = 0; in af9013_init()
866 utmp = 1; in af9013_init()
869 utmp = 2; in af9013_init()
872 utmp = 3; in af9013_init()
879 ret = regmap_update_bits(state->regmap, 0x9bd2, 0x0f, utmp); in af9013_init()
883 utmp = div_u64((u64)state->clk * 0x80000, 1000000); in af9013_init()
884 buf[0] = (utmp >> 0) & 0xff; in af9013_init()
885 buf[1] = (utmp >> 8) & 0xff; in af9013_init()
886 buf[2] = (utmp >> 16) & 0xff; in af9013_init()
957 utmp = 1 << 3 | state->ts_mode << 1; in af9013_init()
959 utmp = 0 << 3 | state->ts_mode << 1; in af9013_init()
960 ret = regmap_update_bits(state->regmap, 0xd500, 0x0e, utmp); in af9013_init()
982 unsigned int utmp; in af9013_sleep() local
1002 ret = regmap_read_poll_timeout(state->regmap, 0xd417, utmp, in af9013_sleep()
1003 (utmp >> 1) & 0x01, 5000, 1000000); in af9013_sleep()
1007 if (!((utmp >> 1) & 0x01)) { in af9013_sleep()
1029 unsigned int utmp; in af9013_download_firmware() local
1038 ret = regmap_read(state->regmap, 0x98be, &utmp); in af9013_download_firmware()
1042 dev_dbg(&client->dev, "firmware status %02x\n", utmp); in af9013_download_firmware()
1044 if (utmp == 0x0c) in af9013_download_firmware()
1096 ret = regmap_read_poll_timeout(state->regmap, 0x98be, utmp, in af9013_download_firmware()
1097 (utmp == 0x0c || utmp == 0x04), in af9013_download_firmware()
1102 dev_dbg(&client->dev, "firmware status %02x\n", utmp); in af9013_download_firmware()
1104 if (utmp == 0x04) { in af9013_download_firmware()
1108 } else if (utmp != 0x0c) { in af9013_download_firmware()