Lines Matching refs:token
78 vmem_addr_t token; in opal_alloc_async_token() local
80 vmem_alloc(async_token_pool, 1, M_FIRSTFIT | M_WAITOK, &token); in opal_alloc_async_token()
81 completions[token].completed = false; in opal_alloc_async_token()
83 return (token); in opal_alloc_async_token()
87 opal_free_async_token(int token) in opal_free_async_token() argument
90 vmem_free(async_token_pool, token, 1); in opal_free_async_token()
98 opal_wait_completion(void *buf, uint64_t size, int token) in opal_wait_completion() argument
104 vtophys(buf), size, token); in opal_wait_completion()
106 if (completions[token].completed) { in opal_wait_completion()
108 memcpy(buf, &completions[token].msg, size); in opal_wait_completion()
120 int token; in opal_handle_async_completion() local
122 token = msg->params[0]; in opal_handle_async_completion()
123 memcpy(&completions[token].msg, msg, sizeof(*msg)); in opal_handle_async_completion()
125 completions[token].completed = true; in opal_handle_async_completion()