Lines Matching refs:ret

163 	int ret;
168 ret = sn_mq_watchlist_alloc(mmr_pnode, (void *)uv_gpa(mq->address),
170 if (ret < 0) {
171 dev_err(xpc_part, "sn_mq_watchlist_alloc() failed, ret=%d\n",
172 ret);
176 ret = uv_bios_mq_watchlist_alloc(uv_gpa(mq->address),
178 if (ret < 0) {
180 "ret=%d\n", ret);
181 return ret;
187 mq->watchlist_num = ret;
194 int ret;
198 ret = uv_bios_mq_watchlist_free(mmr_pnode, mq->watchlist_num);
199 BUG_ON(ret != BIOS_STATUS_SUCCESS);
201 ret = sn_mq_watchlist_free(mmr_pnode, mq->watchlist_num);
202 BUG_ON(ret != SALRET_OK);
213 int ret;
225 ret = -ENOMEM;
234 ret = -ENOMEM;
251 ret = -ENOMEM;
257 ret = xpc_gru_mq_watchlist_alloc_uv(mq);
258 if (ret != 0)
261 ret = xpc_get_gru_mq_irq_uv(mq, cpu, irq_name);
262 if (ret != 0)
265 ret = request_irq(mq->irq, irq_handler, 0, irq_name, NULL);
266 if (ret != 0) {
268 mq->irq, -ret);
275 ret = gru_create_message_queue(mq->gru_mq_desc, mq->address, mq_size,
277 if (ret != 0) {
279 "error=%d\n", ret);
280 ret = -EINVAL;
287 ret = -EACCES;
307 return ERR_PTR(ret);
315 int ret;
319 ret = xp_restrict_memprotect(xp_pa(mq->address), mq_size);
320 BUG_ON(ret != xpSuccess);
340 int ret;
343 ret = gru_send_message_gpa(gru_mq_desc, msg, msg_size);
344 if (ret == MQE_OK) {
349 if (ret == MQE_QUEUE_FULL) {
355 } else if (ret == MQE_CONGESTION) {
363 "error=%d\n", ret);
665 enum xp_retval ret;
667 ret = xp_remote_memcpy(uv_gpa(gru_mq_desc), gru_mq_desc_gpa,
669 if (ret == xpSuccess)
672 return ret;
683 enum xp_retval ret;
701 ret = xpNoMemory;
707 ret = xpc_cache_remote_gru_mq_desc_uv(gru_mq_desc,
710 if (ret != xpSuccess)
719 ret = xpc_send_gru_msg(part_uv->cached_activate_gru_mq_desc, msg,
721 if (ret != xpSuccess) {
728 return ret;
735 enum xp_retval ret;
737 ret = xpc_send_activate_IRQ_uv(part, msg, msg_size, msg_type);
738 if (unlikely(ret != xpSuccess))
739 XPC_DEACTIVATE_PARTITION(part, ret);
747 enum xp_retval ret;
749 ret = xpc_send_activate_IRQ_uv(part, msg, msg_size, msg_type);
750 if (unlikely(ret != xpSuccess)) {
754 XPC_DEACTIVATE_PARTITION(part, ret);
787 enum xp_retval ret;
793 ret = xpSuccess;
795 ret = xpNeedMoreInfo;
797 ret = xpBiosError;
802 ret = xpSuccess;
804 ret = xpNeedMoreInfo;
806 ret = xpSalError;
812 return ret;
878 enum xp_retval ret;
880 ret = xp_remote_memcpy(uv_gpa(&part_uv->cached_heartbeat),
883 if (ret != xpSuccess)
884 return ret;
889 ret = xpNoHeartbeat;
893 return ret;
1158 static enum xp_retval ret;
1169 ret = xpc_allocate_send_msg_slot_uv(ch);
1170 if (ret == xpSuccess) {
1172 ret = xpc_allocate_recv_msg_slot_uv(ch);
1173 if (ret != xpSuccess) {
1178 return ret;
1335 enum xp_retval ret;
1347 ret = xpc_allocate_msg_wait(ch);
1348 if (ret != xpInterrupted && ret != xpTimeout)
1349 return ret;
1538 enum xp_retval ret = xpSuccess;
1553 ret = ch->reason;
1557 ret = xpNotConnected;
1561 ret = xpc_allocate_msg_slot_uv(ch, flags, &msg_slot);
1562 if (ret != xpSuccess)
1573 ret = ch->reason;
1585 ret = xpc_send_gru_msg(ch->sn.uv.cached_notify_gru_mq_desc, msg,
1587 if (ret == xpSuccess)
1590 XPC_DEACTIVATE_PARTITION(&xpc_partitions[ch->partid], ret);
1604 ret = xpSuccess;
1614 return ret;
1668 enum xp_retval ret;
1677 ret = xpc_send_gru_msg(ch->sn.uv.cached_notify_gru_mq_desc, msg,
1679 if (ret != xpSuccess)
1680 XPC_DEACTIVATE_PARTITION(&xpc_partitions[ch->partid], ret);
1782 int ret = 0;
1794 ret = xpc_init_mq_node(nid);
1796 if (!ret)
1800 ret = xpc_init_mq_node(xpc_mq_node);
1802 if (ret < 0)
1804 -ret);
1806 return ret;