Lines Matching refs:err_code
92 static void hashcopy_err_message(struct device *dev, u32 err_code) in hashcopy_err_message() argument
94 if (err_code >= ARRAY_SIZE(scan_hash_status)) in hashcopy_err_message()
95 dev_err(dev, "invalid error code 0x%x for hash copy\n", err_code); in hashcopy_err_message()
97 dev_err(dev, "Hash copy error : %s\n", scan_hash_status[err_code]); in hashcopy_err_message()
100 static void auth_err_message(struct device *dev, u32 err_code) in auth_err_message() argument
102 if (err_code >= ARRAY_SIZE(scan_authentication_status)) in auth_err_message()
103 dev_err(dev, "invalid error code 0x%x for authentication\n", err_code); in auth_err_message()
106 scan_authentication_status[err_code]); in auth_err_message()
125 u32 err_code; in copy_hashes_authenticate_chunks() local
136 err_code = hashes_status.error_code; in copy_hashes_authenticate_chunks()
140 hashcopy_err_message(dev, err_code); in copy_hashes_authenticate_chunks()
156 err_code = chunk_status.error_code; in copy_hashes_authenticate_chunks()
158 if (err_code) { in copy_hashes_authenticate_chunks()
160 auth_err_message(dev, err_code); in copy_hashes_authenticate_chunks()
184 u32 err_code, valid_chunks, total_chunks; in copy_hashes_authenticate_chunks_gen2() local
203 err_code = hashes_status.error_code; in copy_hashes_authenticate_chunks_gen2()
208 hashcopy_err_message(dev, err_code); in copy_hashes_authenticate_chunks_gen2()
244 err_code = chunk_status.error_code; in copy_hashes_authenticate_chunks_gen2()
245 } while (err_code == AUTH_INTERRUPTED_ERROR && --retry_count); in copy_hashes_authenticate_chunks_gen2()
247 if (err_code) { in copy_hashes_authenticate_chunks_gen2()
249 auth_err_message(dev, err_code); in copy_hashes_authenticate_chunks_gen2()