Lines Matching refs:sts
283 char buf[3], sts = 0; in s35390a_rtc_set_alarm() local
292 err = s35390a_set_reg(s35390a, S35390A_CMD_STATUS2, &sts, sizeof(sts)); in s35390a_rtc_set_alarm()
297 err = s35390a_get_reg(s35390a, S35390A_CMD_STATUS1, &sts, sizeof(sts)); in s35390a_rtc_set_alarm()
302 sts = S35390A_INT2_MODE_ALARM; in s35390a_rtc_set_alarm()
304 sts = S35390A_INT2_MODE_NOINTR; in s35390a_rtc_set_alarm()
307 sts = bitrev8(sts); in s35390a_rtc_set_alarm()
310 err = s35390a_set_reg(s35390a, S35390A_CMD_STATUS2, &sts, sizeof(sts)); in s35390a_rtc_set_alarm()
339 char buf[3], sts; in s35390a_rtc_read_alarm() local
342 err = s35390a_get_reg(s35390a, S35390A_CMD_STATUS2, &sts, sizeof(sts)); in s35390a_rtc_read_alarm()
346 if ((bitrev8(sts) & S35390A_INT2_MODE_MASK) != S35390A_INT2_MODE_ALARM) { in s35390a_rtc_read_alarm()
396 char sts; in s35390a_rtc_ioctl() local
402 err = s35390a_read_status(s35390a, &sts); in s35390a_rtc_ioctl()