Lines Matching refs:res
119 int res = 0; in ext4_get_crypto_ctx() local
145 res = PTR_ERR(ctx); in ext4_get_crypto_ctx()
176 res = PTR_ERR(ctx->tfm); in ext4_get_crypto_ctx()
189 if (res) { in ext4_get_crypto_ctx()
192 ctx = ERR_PTR(res); in ext4_get_crypto_ctx()
240 int i, res; in ext4_init_crypto() local
247 res = -ENOMEM; in ext4_init_crypto()
256 res = PTR_ERR(ctx); in ext4_init_crypto()
265 res = -ENOMEM; in ext4_init_crypto()
274 return res; in ext4_init_crypto()
293 static void ext4_crypt_complete(struct crypto_async_request *req, int res) in ext4_crypt_complete() argument
297 if (res == -EINPROGRESS) in ext4_crypt_complete()
299 ecr->res = res; in ext4_crypt_complete()
322 int res = 0; in ext4_page_crypto() local
337 res = crypto_ablkcipher_setkey(atfm, ei->i_encryption_key.raw, in ext4_page_crypto()
339 if (res) { in ext4_page_crypto()
343 return res; in ext4_page_crypto()
368 res = crypto_ablkcipher_decrypt(req); in ext4_page_crypto()
370 res = crypto_ablkcipher_encrypt(req); in ext4_page_crypto()
371 if (res == -EINPROGRESS || res == -EBUSY) { in ext4_page_crypto()
374 res = ecr.res; in ext4_page_crypto()
377 if (res) { in ext4_page_crypto()
381 __func__, res); in ext4_page_crypto()
382 return res; in ext4_page_crypto()