Lines Matching refs:ecc_sta
485 static void stm32_fmc2_nfc_ham_set_ecc(const u32 ecc_sta, u8 *ecc) in stm32_fmc2_nfc_ham_set_ecc() argument
487 ecc[0] = ecc_sta; in stm32_fmc2_nfc_ham_set_ecc()
488 ecc[1] = ecc_sta >> 8; in stm32_fmc2_nfc_ham_set_ecc()
489 ecc[2] = ecc_sta >> 16; in stm32_fmc2_nfc_ham_set_ecc()
617 static int stm32_fmc2_nfc_bch_decode(int eccsize, u8 *dat, u32 *ecc_sta) in stm32_fmc2_nfc_bch_decode() argument
619 u32 bchdsr0 = ecc_sta[0]; in stm32_fmc2_nfc_bch_decode()
620 u32 bchdsr1 = ecc_sta[1]; in stm32_fmc2_nfc_bch_decode()
621 u32 bchdsr2 = ecc_sta[2]; in stm32_fmc2_nfc_bch_decode()
622 u32 bchdsr3 = ecc_sta[3]; in stm32_fmc2_nfc_bch_decode()
623 u32 bchdsr4 = ecc_sta[4]; in stm32_fmc2_nfc_bch_decode()
660 u32 ecc_sta[5]; in stm32_fmc2_nfc_bch_correct() local
670 regmap_bulk_read(nfc->regmap, FMC2_BCHDSR0, ecc_sta, 5); in stm32_fmc2_nfc_bch_correct()
674 return stm32_fmc2_nfc_bch_decode(chip->ecc.size, dat, ecc_sta); in stm32_fmc2_nfc_bch_correct()
1036 u32 *ecc_sta = (u32 *)nfc->ecc_buf; in stm32_fmc2_nfc_seq_correct() local
1046 stm32_fmc2_nfc_ham_set_ecc(*ecc_sta, in stm32_fmc2_nfc_seq_correct()
1052 ecc_sta++; in stm32_fmc2_nfc_seq_correct()
1063 ecc_sta); in stm32_fmc2_nfc_seq_correct()
1064 ecc_sta += 5; in stm32_fmc2_nfc_seq_correct()