Lines Matching refs:err_code

93 static void hashcopy_err_message(struct device *dev, u32 err_code)  in hashcopy_err_message()  argument
95 if (err_code >= ARRAY_SIZE(scan_hash_status)) in hashcopy_err_message()
96 dev_err(dev, "invalid error code 0x%x for hash copy\n", err_code); in hashcopy_err_message()
98 dev_err(dev, "Hash copy error : %s\n", scan_hash_status[err_code]); in hashcopy_err_message()
101 static void auth_err_message(struct device *dev, u32 err_code) in auth_err_message() argument
103 if (err_code >= ARRAY_SIZE(scan_authentication_status)) in auth_err_message()
104 dev_err(dev, "invalid error code 0x%x for authentication\n", err_code); in auth_err_message()
107 scan_authentication_status[err_code]); in auth_err_message()
126 u32 err_code; in copy_hashes_authenticate_chunks() local
137 err_code = hashes_status.error_code; in copy_hashes_authenticate_chunks()
141 hashcopy_err_message(dev, err_code); in copy_hashes_authenticate_chunks()
157 err_code = chunk_status.error_code; in copy_hashes_authenticate_chunks()
159 if (err_code) { in copy_hashes_authenticate_chunks()
161 auth_err_message(dev, err_code); in copy_hashes_authenticate_chunks()
185 u32 err_code, valid_chunks, total_chunks; in copy_hashes_authenticate_chunks_gen2() local
204 err_code = hashes_status.error_code; in copy_hashes_authenticate_chunks_gen2()
209 hashcopy_err_message(dev, err_code); in copy_hashes_authenticate_chunks_gen2()
245 err_code = chunk_status.error_code; in copy_hashes_authenticate_chunks_gen2()
246 } while (err_code == AUTH_INTERRUPTED_ERROR && --retry_count); in copy_hashes_authenticate_chunks_gen2()
248 if (err_code) { in copy_hashes_authenticate_chunks_gen2()
250 auth_err_message(dev, err_code); in copy_hashes_authenticate_chunks_gen2()