Lines Matching refs:res
36 static void ext4_dir_crypt_complete(struct crypto_async_request *req, int res) in ext4_dir_crypt_complete() argument
40 if (res == -EINPROGRESS) in ext4_dir_crypt_complete()
42 ecr->res = res; in ext4_dir_crypt_complete()
66 int res = 0; in ext4_fname_encrypt() local
107 res = crypto_ablkcipher_encrypt(req); in ext4_fname_encrypt()
108 if (res == -EINPROGRESS || res == -EBUSY) { in ext4_fname_encrypt()
111 res = ecr.res; in ext4_fname_encrypt()
113 if (res >= 0) { in ext4_fname_encrypt()
116 res = ciphertext_len; in ext4_fname_encrypt()
120 if (res < 0) { in ext4_fname_encrypt()
122 KERN_ERR "%s: Error (error code %d)\n", __func__, res); in ext4_fname_encrypt()
125 return res; in ext4_fname_encrypt()
144 int res = 0; in ext4_fname_decrypt() local
179 res = crypto_ablkcipher_decrypt(req); in ext4_fname_decrypt()
180 if (res == -EINPROGRESS || res == -EBUSY) { in ext4_fname_decrypt()
183 res = ecr.res; in ext4_fname_decrypt()
185 if (res >= 0) { in ext4_fname_decrypt()
188 res = iname->len; in ext4_fname_decrypt()
192 if (res < 0) { in ext4_fname_decrypt()
195 __func__, res); in ext4_fname_decrypt()
196 return res; in ext4_fname_decrypt()
342 int res; in ext4_get_fname_crypto_ctx() local
345 res = ext4_encrypted_inode(inode); in ext4_get_fname_crypto_ctx()
346 if (res == 0) in ext4_get_fname_crypto_ctx()
378 res = PTR_ERR(ctx->ctfm); in ext4_get_fname_crypto_ctx()
381 __func__, res); in ext4_get_fname_crypto_ctx()
384 return ERR_PTR(res); in ext4_get_fname_crypto_ctx()
396 res = PTR_ERR(ctx->workpage); in ext4_get_fname_crypto_ctx()
399 __func__, res); in ext4_get_fname_crypto_ctx()
402 return ERR_PTR(res); in ext4_get_fname_crypto_ctx()
423 res = crypto_ablkcipher_setkey(ctx->ctfm, in ext4_get_fname_crypto_ctx()
425 if (res) { in ext4_get_fname_crypto_ctx()
440 res = PTR_ERR(ctx->htfm); in ext4_get_fname_crypto_ctx()
442 __func__, res); in ext4_get_fname_crypto_ctx()
445 return ERR_PTR(res); in ext4_get_fname_crypto_ctx()
590 int res; in ext4_fname_usr_to_disk() local
605 res = ext4_fname_encrypt(ctx, iname, oname); in ext4_fname_usr_to_disk()
606 return res; in ext4_fname_usr_to_disk()