Lines Matching refs:utmp
531 unsigned int utmp, utmp1, utmp2, utmp3, utmp4; in af9013_read_status() local
545 ret = regmap_read(state->regmap, 0xd507, &utmp); in af9013_read_status()
549 if ((utmp >> 6) & 0x01) { in af9013_read_status()
554 ret = regmap_read(state->regmap, 0xd330, &utmp); in af9013_read_status()
558 if ((utmp >> 3) & 0x01) in af9013_read_status()
577 ret = regmap_read(state->regmap, 0x9bee, &utmp); in af9013_read_status()
581 if ((utmp >> 0) & 0x01) { in af9013_read_status()
654 ret = regmap_read(state->regmap, 0xd2e1, &utmp); in af9013_read_status()
658 if (!((utmp >> 3) & 0x01)) { in af9013_read_status()
671 ret = regmap_read(state->regmap, 0xd3c1, &utmp); in af9013_read_status()
675 switch ((utmp >> 6) & 3) { in af9013_read_status()
711 (utmp >> 6) & 3); in af9013_read_status()
736 ret = regmap_read(state->regmap, 0xd391, &utmp); in af9013_read_status()
740 if (!((utmp >> 4) & 0x01)) { in af9013_read_status()
844 unsigned int utmp; in af9013_init() local
873 utmp = 0; in af9013_init()
876 utmp = 1; in af9013_init()
879 utmp = 2; in af9013_init()
882 utmp = 3; in af9013_init()
889 ret = regmap_update_bits(state->regmap, 0x9bd2, 0x0f, utmp); in af9013_init()
893 utmp = div_u64((u64)state->clk * 0x80000, 1000000); in af9013_init()
894 buf[0] = (utmp >> 0) & 0xff; in af9013_init()
895 buf[1] = (utmp >> 8) & 0xff; in af9013_init()
896 buf[2] = (utmp >> 16) & 0xff; in af9013_init()
967 utmp = 1 << 3 | state->ts_mode << 1; in af9013_init()
969 utmp = 0 << 3 | state->ts_mode << 1; in af9013_init()
970 ret = regmap_update_bits(state->regmap, 0xd500, 0x0e, utmp); in af9013_init()
992 unsigned int utmp; in af9013_sleep() local
1012 ret = regmap_read_poll_timeout(state->regmap, 0xd417, utmp, in af9013_sleep()
1013 (utmp >> 1) & 0x01, 5000, 1000000); in af9013_sleep()
1017 if (!((utmp >> 1) & 0x01)) { in af9013_sleep()
1039 unsigned int utmp; in af9013_download_firmware() local
1048 ret = regmap_read(state->regmap, 0x98be, &utmp); in af9013_download_firmware()
1052 dev_dbg(&client->dev, "firmware status %02x\n", utmp); in af9013_download_firmware()
1054 if (utmp == 0x0c) in af9013_download_firmware()
1106 ret = regmap_read_poll_timeout(state->regmap, 0x98be, utmp, in af9013_download_firmware()
1107 (utmp == 0x0c || utmp == 0x04), in af9013_download_firmware()
1112 dev_dbg(&client->dev, "firmware status %02x\n", utmp); in af9013_download_firmware()
1114 if (utmp == 0x04) { in af9013_download_firmware()
1118 } else if (utmp != 0x0c) { in af9013_download_firmware()