Lines Matching +full:async +full:- +full:enum
1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright 2013-2017 IBM Corp.
22 enum opal_async_token_state {
31 enum opal_async_token_state state;
44 int i, token = -EBUSY; in __opal_async_get_token()
72 return -ERESTARTSYS; in opal_async_get_token_interruptible()
90 return -EINVAL; in __opal_async_release_token()
132 return -EINVAL; in opal_async_wait_response()
137 return -EINVAL; in opal_async_wait_response()
164 return -EINVAL; in opal_async_wait_response_interruptible()
169 return -EINVAL; in opal_async_wait_response_interruptible()
178 * Only change if the token is ALLOCATED - it may have been in opal_async_wait_response_interruptible()
216 enum opal_async_token_state state; in opal_async_comp_event()
223 token = be64_to_cpu(comp_msg->params[0]); in opal_async_comp_event()
249 const __be32 *async; in opal_async_comp_init() local
255 err = -ENOENT; in opal_async_comp_init()
259 async = of_get_property(opal_node, "opal-msg-async-num", NULL); in opal_async_comp_init()
260 if (!async) { in opal_async_comp_init()
261 pr_err("%s: %pOF has no opal-msg-async-num\n", in opal_async_comp_init()
263 err = -ENOENT; in opal_async_comp_init()
267 opal_max_async_tokens = be32_to_cpup(async); in opal_async_comp_init()
271 err = -ENOMEM; in opal_async_comp_init()