Lines Matching refs:kvp_transaction

83 } kvp_transaction;  variable
115 kvp_transaction.state = HVUTIL_READY; in kvp_poll_wrapper()
127 hv_poll_channel(kvp_transaction.recv_channel, kvp_poll_wrapper); in kvp_register_done()
158 hv_poll_channel(kvp_transaction.recv_channel, kvp_poll_wrapper); in kvp_timeout_func()
163 tasklet_schedule(&kvp_transaction.recv_channel->callback_event); in kvp_host_handshake_func()
213 if (kvp_transaction.state < HVUTIL_READY) { in kvp_on_msg()
218 if (kvp_transaction.state < HVUTIL_USERSPACE_REQ) in kvp_on_msg()
221 kvp_transaction.state = HVUTIL_USERSPACE_RECV; in kvp_on_msg()
254 hv_poll_channel(kvp_transaction.recv_channel, kvp_poll_wrapper); in kvp_on_msg()
378 __u8 operation = kvp_transaction.kvp_msg->kvp_hdr.operation; in kvp_send_key()
379 __u8 pool = kvp_transaction.kvp_msg->kvp_hdr.pool; in kvp_send_key()
385 if (kvp_transaction.state != HVUTIL_HOSTMSG_RECEIVED) in kvp_send_key()
394 in_msg = kvp_transaction.kvp_msg; in kvp_send_key()
496 kvp_transaction.state = HVUTIL_USERSPACE_REQ; in kvp_send_key()
502 kvp_transaction.state = HVUTIL_READY; in kvp_send_key()
533 buf_len = kvp_transaction.recv_len; in kvp_respond_to_host()
534 channel = kvp_transaction.recv_channel; in kvp_respond_to_host()
535 req_id = kvp_transaction.recv_req_id; in kvp_respond_to_host()
565 switch (kvp_transaction.kvp_msg->kvp_hdr.operation) { in kvp_respond_to_host()
649 if (kvp_transaction.state < HVUTIL_READY) { in hv_kvp_onchannelcallback()
662 if (kvp_transaction.state > HVUTIL_READY) in hv_kvp_onchannelcallback()
705 kvp_transaction.recv_len = recvlen; in hv_kvp_onchannelcallback()
706 kvp_transaction.recv_req_id = requestid; in hv_kvp_onchannelcallback()
707 kvp_transaction.kvp_msg = kvp_msg; in hv_kvp_onchannelcallback()
709 if (kvp_transaction.state < HVUTIL_READY) { in hv_kvp_onchannelcallback()
714 kvp_transaction.state = HVUTIL_HOSTMSG_RECEIVED; in hv_kvp_onchannelcallback()
745 hv_poll_channel(kvp_transaction.recv_channel, kvp_poll_wrapper); in hv_kvp_onchannelcallback()
752 kvp_transaction.state = HVUTIL_DEVICE_INIT; in kvp_on_reset()
759 kvp_transaction.recv_channel = srv->channel; in hv_kvp_init()
760 kvp_transaction.recv_channel->max_pkt_size = HV_HYP_PAGE_SIZE * 4; in hv_kvp_init()
768 kvp_transaction.state = HVUTIL_DEVICE_INIT; in hv_kvp_init()
787 struct vmbus_channel *channel = kvp_transaction.recv_channel; in hv_kvp_pre_suspend()
804 kvp_transaction.state = HVUTIL_READY; in hv_kvp_pre_suspend()
810 struct vmbus_channel *channel = kvp_transaction.recv_channel; in hv_kvp_pre_resume()
819 kvp_transaction.state = HVUTIL_DEVICE_DYING; in hv_kvp_deinit()