Lines Matching defs:rc

87 	int rc;
99 rc = tee_shm_get_pa(shm, 0, &pa);
100 if (rc)
101 return rc;
141 int rc;
162 rc = from_msg_param_tmp_mem(p, attr, mp);
163 if (rc)
164 return rc;
182 int rc;
196 rc = tee_shm_get_pa(p->u.memref.shm, p->u.memref.shm_offs, &pa);
197 if (rc)
198 return rc;
231 int rc;
252 rc = to_msg_param_reg_mem(mp, p);
254 rc = to_msg_param_tmp_mem(mp, p);
255 if (rc)
256 return rc;
461 int rc;
466 rc = optee_check_mem_type(start, num_pages);
467 if (rc)
468 return rc;
484 rc = PTR_ERR(shm_arg);
489 rc = PTR_ERR(msg_arg);
512 rc = -EINVAL;
517 return rc;
525 int rc = 0;
543 rc = PTR_ERR(msg_arg);
555 rc = -EINVAL;
558 return rc;
894 int rc;
917 rc = tee_shm_get_pa(shm, offs, &parg);
918 if (rc)
919 return rc;
952 rc = res.a0;
964 return rc;
1029 int rc;
1031 rc = request_threaded_irq(irq, notif_irq_handler,
1034 if (rc)
1035 return rc;
1066 int cpu, rc;
1075 rc = request_percpu_irq(irq, notif_pcpu_irq_handler,
1077 if (rc)
1083 rc = -EINVAL;
1091 rc = cpuhp_setup_state(CPUHP_AP_ONLINE_DYN, "optee/pcpu-notif:starting",
1094 if (!rc)
1095 rc = -EINVAL;
1096 if (rc < 0)
1099 optee->smc.notif_cpuhp_state = rc;
1108 return rc;
1355 void *rc;
1380 rc = tee_shm_pool_alloc_res_mem(vaddr, paddr, size,
1382 if (IS_ERR(rc))
1387 return rc;
1501 int rc;
1507 rc = request_firmware(&fw, OPTEE_FW_IMAGE, &pdev->dev);
1508 if (rc) {
1526 rc = -ENOMEM;
1550 if (!rc)
1551 rc = res.a0;
1556 if (!rc) {
1575 return rc;
1598 int rc;
1604 rc = optee_load_fw(pdev, invoke_fn);
1605 if (rc)
1606 return rc;
1679 rc = -ENOMEM;
1690 rc = PTR_ERR(teedev);
1697 rc = PTR_ERR(teedev);
1702 rc = tee_device_register(optee->teedev);
1703 if (rc)
1706 rc = tee_device_register(optee->supp_teedev);
1707 if (rc)
1719 rc = PTR_ERR(ctx);
1723 rc = optee_notif_init(optee, max_notif_value);
1724 if (rc)
1730 rc = platform_get_irq(pdev, 0);
1731 if (rc < 0) {
1732 pr_err("platform_get_irq: ret %d\n", rc);
1735 irq = rc;
1737 rc = optee_smc_notif_init_irq(optee, irq);
1738 if (rc) {
1765 rc = optee_enumerate_devices(PTA_CMD_GET_DEVICES);
1766 if (rc)
1795 return rc;