Home
last modified time | relevance | path

Searched refs:sts_mask (Results 1 – 2 of 2) sorted by relevance

/Linux-v6.6/drivers/rtc/
Drtc-sc27xx.c226 u32 sec_reg, min_reg, hour_reg, day_reg, sts_mask; in sprd_rtc_set_secs() local
243 sts_mask = SPRD_RTC_TIME_INT_MASK; in sprd_rtc_set_secs()
250 sts_mask = SPRD_RTC_ALMTIME_INT_MASK; in sprd_rtc_set_secs()
257 sts_mask = 0; in sprd_rtc_set_secs()
290 ((val & sts_mask) == sts_mask), in sprd_rtc_set_secs()
299 sts_mask); in sprd_rtc_set_secs()
/Linux-v6.6/drivers/char/tpm/
Dtpm_tis_core.c50 static u8 tpm_tis_filter_sts_mask(u8 int_mask, u8 sts_mask) in tpm_tis_filter_sts_mask() argument
53 sts_mask &= ~TPM_STS_VALID; in tpm_tis_filter_sts_mask()
56 sts_mask &= ~TPM_STS_DATA_AVAIL; in tpm_tis_filter_sts_mask()
59 sts_mask &= ~TPM_STS_COMMAND_READY; in tpm_tis_filter_sts_mask()
61 return sts_mask; in tpm_tis_filter_sts_mask()
73 u8 sts_mask; in wait_for_tpm_stat() local
81 sts_mask = mask & (TPM_STS_VALID | TPM_STS_DATA_AVAIL | in wait_for_tpm_stat()
84 sts_mask = tpm_tis_filter_sts_mask(priv->int_mask, sts_mask); in wait_for_tpm_stat()
88 if (sts_mask) { in wait_for_tpm_stat()
95 wait_for_tpm_stat_cond(chip, sts_mask, check_cancel, in wait_for_tpm_stat()
[all …]