Lines Matching full:offer

203 	const guid_t *guid = &channel->offermsg.offer.if_type;  in hv_get_dev_type()
534 &newchannel->offermsg.offer.if_type, in vmbus_add_channel_work()
535 &newchannel->offermsg.offer.if_instance, in vmbus_add_channel_work()
587 * vmbus_process_offer - Process the offer by creating a channel/device
588 * associated with this offer
624 if (guid_equal(&channel->offermsg.offer.if_type, in vmbus_process_offer()
625 &newchannel->offermsg.offer.if_type) && in vmbus_process_offer()
626 guid_equal(&channel->offermsg.offer.if_instance, in vmbus_process_offer()
627 &newchannel->offermsg.offer.if_instance)) { in vmbus_process_offer()
653 if (newchannel->offermsg.offer.sub_channel_index == 0) { in vmbus_process_offer()
796 if (channel->offermsg.offer.sub_channel_index >= ncpu || in init_vp_index()
958 struct vmbus_channel_offer_channel *offer) in vmbus_setup_channel_state() argument
966 (offer->is_dedicated_interrupt != 0); in vmbus_setup_channel_state()
967 channel->sig_event = offer->connection_id; in vmbus_setup_channel_state()
969 memcpy(&channel->offermsg, offer, in vmbus_setup_channel_state()
971 channel->monitor_grp = (u8)offer->monitorid / 32; in vmbus_setup_channel_state()
972 channel->monitor_bit = (u8)offer->monitorid % 32; in vmbus_setup_channel_state()
977 * find_primary_channel_by_offer - Get the channel object given the new offer.
981 find_primary_channel_by_offer(const struct vmbus_channel_offer_channel *offer) in find_primary_channel_by_offer() argument
987 if (offer->offer.sub_channel_index != 0) in find_primary_channel_by_offer()
993 inst1 = &iter->offermsg.offer.if_instance; in find_primary_channel_by_offer()
994 inst2 = &offer->offer.if_instance; in find_primary_channel_by_offer()
1007 static bool vmbus_is_valid_offer(const struct vmbus_channel_offer_channel *offer) in vmbus_is_valid_offer() argument
1009 const guid_t *guid = &offer->offer.if_type; in vmbus_is_valid_offer()
1015 if (is_hvsock_offer(offer)) in vmbus_is_valid_offer()
1031 struct vmbus_channel_offer_channel *offer; in vmbus_onoffer() local
1035 offer = (struct vmbus_channel_offer_channel *)hdr; in vmbus_onoffer()
1037 trace_vmbus_onoffer(offer); in vmbus_onoffer()
1039 if (!vmbus_is_valid_offer(offer)) { in vmbus_onoffer()
1040 pr_err_ratelimited("Invalid offer %d from the host supporting isolation\n", in vmbus_onoffer()
1041 offer->child_relid); in vmbus_onoffer()
1046 oldchannel = find_primary_channel_by_offer(offer); in vmbus_onoffer()
1084 oldchannel->offermsg.child_relid = offer->child_relid; in vmbus_onoffer()
1086 offer_sz = sizeof(*offer); in vmbus_onoffer()
1087 if (memcmp(offer, &oldchannel->offermsg, offer_sz) != 0) { in vmbus_onoffer()
1090 * the other field(s) of the offer, e.g. on WS RS5 in vmbus_onoffer()
1091 * (Build 17763), the offer->connection_id of the in vmbus_onoffer()
1095 pr_debug("vmbus offer changed: relid=%d\n", in vmbus_onoffer()
1096 offer->child_relid); in vmbus_onoffer()
1098 print_hex_dump_debug("Old vmbus offer: ", in vmbus_onoffer()
1102 print_hex_dump_debug("New vmbus offer: ", in vmbus_onoffer()
1104 offer, offer_sz, false); in vmbus_onoffer()
1107 vmbus_setup_channel_state(oldchannel, offer); in vmbus_onoffer()
1118 /* Allocate the channel object and save this offer. */ in vmbus_onoffer()
1121 vmbus_release_relid(offer->child_relid); in vmbus_onoffer()
1127 vmbus_setup_channel_state(newchannel, offer); in vmbus_onoffer()
1143 * vmbus_onoffer_rescind - Rescind offer handler.
1145 * We queue a work item to process this offer synchronously
1159 * The offer msg and the corresponding rescind msg in vmbus_onoffer_rescind()
1161 * offer comes in first and then the rescind. in vmbus_onoffer_rescind()
1184 * We wait here until any channel offer is currently in vmbus_onoffer_rescind()
1208 * We failed in processing the offer message; in vmbus_onoffer_rescind()
1224 * Now wait for offer handling to complete. in vmbus_onoffer_rescind()
1229 * We wait here until any channel offer is currently in vmbus_onoffer_rescind()