Lines Matching defs:err
16 #include <linux/err.h>
315 static void stm32_cryp_finish_req(struct stm32_cryp *cryp, int err);
567 int err;
572 err = stm32_cryp_wait_busy(cryp);
573 if (err) {
576 stm32_cryp_finish_req(cryp, err);
801 static void stm32_cryp_finish_req(struct stm32_cryp *cryp, int err)
803 if (!err && (is_gcm(cryp) || is_ccm(cryp)))
805 err = stm32_cryp_read_auth_tag(cryp);
807 if (!err && (!(is_gcm(cryp) || is_ccm(cryp) || is_ecb(cryp))))
814 crypto_finalize_aead_request(cryp->engine, cryp->areq, err);
817 err);
1044 int err;
1046 err = crypto_ccm_check_iv(req->iv);
1047 if (err)
1048 return err;
1055 int err;
1057 err = crypto_ccm_check_iv(req->iv);
1058 if (err)
1059 return err;
1256 int err;
1261 err = stm32_cryp_prepare_req(NULL, req);
1262 if (err)
1263 return err;
1405 int err;
1432 err = stm32_cryp_wait_output(cryp);
1433 if (err) {
1435 return stm32_cryp_finish_req(cryp, err);
1464 err = stm32_cryp_wait_output(cryp);
1465 if (err) {
1467 return stm32_cryp_finish_req(cryp, err);
1493 int err = 0;
1530 err = stm32_cryp_wait_output(cryp);
1531 if (err) {
1533 return stm32_cryp_finish_req(cryp, err);
1569 err = stm32_cryp_wait_busy(cryp);
1570 if (err)
1574 stm32_cryp_finish_req(cryp, err);