Lines Matching refs:ret

337 	int ret = 0;
346 ret = -EIO;
352 ret = -EAGAIN;
357 ret = -EIO;
384 return ret;
464 int ret;
470 ret = idr_alloc_cyclic(&glink->lcids, channel,
474 if (ret < 0)
475 return ret;
477 channel->lcid = ret;
484 ret = qcom_glink_tx(glink, &req, req_len, NULL, 0, true);
485 if (ret)
496 return ret;
708 int ret;
720 ret = idr_alloc_cyclic(&channel->liids, intent, 1, -1, GFP_ATOMIC);
721 if (ret < 0) {
727 intent->id = ret;
854 int ret = 0;
915 ret = -ENOENT;
952 return ret;
973 int ret;
1006 ret = idr_alloc(&channel->riids, intent,
1010 if (ret < 0)
1091 int ret = 0;
1113 ret = qcom_glink_rx_defer(glink, 0);
1116 ret = qcom_glink_rx_open_ack(glink, param1);
1120 ret = qcom_glink_rx_defer(glink, param2);
1124 ret = qcom_glink_rx_data(glink, avail);
1151 ret = -EINVAL;
1155 if (ret)
1166 int ret;
1173 ret = qcom_glink_send_open_req(glink, channel);
1174 if (ret)
1177 ret = wait_for_completion_timeout(&channel->open_ack, 5 * HZ);
1178 if (!ret)
1181 ret = wait_for_completion_timeout(&channel->open_req, 5 * HZ);
1182 if (!ret)
1208 int ret;
1212 ret = qcom_glink_send_open_req(glink, channel);
1213 if (ret)
1216 ret = wait_for_completion_timeout(&channel->open_ack, 5 * HZ);
1217 if (!ret) {
1218 ret = -ETIMEDOUT;
1233 return ret;
1248 int ret;
1263 ret = qcom_glink_create_remote(glink, channel);
1264 if (ret)
1341 int ret;
1352 ret = qcom_glink_tx(glink, &cmd, sizeof(cmd), NULL, 0, true);
1353 if (ret)
1356 ret = wait_event_timeout(channel->intent_req_wq,
1360 if (!ret) {
1362 ret = -ETIMEDOUT;
1364 ret = READ_ONCE(channel->intent_req_result) ? 0 : -ECANCELED;
1369 return ret;
1384 int ret;
1413 ret = qcom_glink_request_intent(glink, channel, len);
1414 if (ret < 0)
1415 return ret;
1432 ret = qcom_glink_tx(glink, &req, sizeof(req), data + offset, chunk_size, wait);
1433 if (ret) {
1437 return ret;
1483 int ret;
1487 ret = of_property_read_string(child, key, &name);
1488 if (ret)
1528 int ret;
1548 ret = idr_alloc(&glink->rcids, channel, rcid, rcid + 1, GFP_ATOMIC);
1549 if (ret < 0) {
1554 channel->rcid = ret;
1562 ret = -ENOMEM;
1577 ret = rpmsg_register_device(rpdev);
1578 if (ret)
1596 return ret;
1736 int ret = 0;
1739 ret = of_property_read_string(dev->of_node, "label", &name);
1740 if (ret < 0)
1794 int ret;
1820 ret = device_add_groups(dev, qcom_glink_groups);
1821 if (ret)
1824 ret = qcom_glink_send_version(glink);
1825 if (ret)
1826 return ERR_PTR(ret);
1828 ret = qcom_glink_create_chrdev(glink);
1829 if (ret)
1848 int ret;
1864 ret = device_for_each_child(glink->dev, NULL, qcom_glink_remove_device);
1865 if (ret)
1866 dev_warn(glink->dev, "Can't remove GLINK devices: %d\n", ret);