Lines Matching full:offer
192 const guid_t *guid = &channel->offermsg.offer.if_type; in hv_get_dev_type()
523 &newchannel->offermsg.offer.if_type, in vmbus_add_channel_work()
524 &newchannel->offermsg.offer.if_instance, in vmbus_add_channel_work()
572 * vmbus_process_offer - Process the offer by creating a channel/device
573 * associated with this offer
609 if (guid_equal(&channel->offermsg.offer.if_type, in vmbus_process_offer()
610 &newchannel->offermsg.offer.if_type) && in vmbus_process_offer()
611 guid_equal(&channel->offermsg.offer.if_instance, in vmbus_process_offer()
612 &newchannel->offermsg.offer.if_instance)) { in vmbus_process_offer()
638 if (newchannel->offermsg.offer.sub_channel_index == 0) { in vmbus_process_offer()
780 if (channel->offermsg.offer.sub_channel_index >= ncpu || in init_vp_index()
928 struct vmbus_channel_offer_channel *offer) in vmbus_setup_channel_state() argument
937 (offer->is_dedicated_interrupt != 0); in vmbus_setup_channel_state()
938 channel->sig_event = offer->connection_id; in vmbus_setup_channel_state()
941 memcpy(&channel->offermsg, offer, in vmbus_setup_channel_state()
943 channel->monitor_grp = (u8)offer->monitorid / 32; in vmbus_setup_channel_state()
944 channel->monitor_bit = (u8)offer->monitorid % 32; in vmbus_setup_channel_state()
949 * find_primary_channel_by_offer - Get the channel object given the new offer.
953 find_primary_channel_by_offer(const struct vmbus_channel_offer_channel *offer) in find_primary_channel_by_offer() argument
959 if (offer->offer.sub_channel_index != 0) in find_primary_channel_by_offer()
965 inst1 = &iter->offermsg.offer.if_instance; in find_primary_channel_by_offer()
966 inst2 = &offer->offer.if_instance; in find_primary_channel_by_offer()
999 struct vmbus_channel_offer_channel *offer; in vmbus_onoffer() local
1003 offer = (struct vmbus_channel_offer_channel *)hdr; in vmbus_onoffer()
1005 trace_vmbus_onoffer(offer); in vmbus_onoffer()
1007 if (!vmbus_is_valid_device(&offer->offer.if_type)) { in vmbus_onoffer()
1008 pr_err_ratelimited("Invalid offer %d from the host supporting isolation\n", in vmbus_onoffer()
1009 offer->child_relid); in vmbus_onoffer()
1014 oldchannel = find_primary_channel_by_offer(offer); in vmbus_onoffer()
1052 oldchannel->offermsg.child_relid = offer->child_relid; in vmbus_onoffer()
1054 offer_sz = sizeof(*offer); in vmbus_onoffer()
1055 if (memcmp(offer, &oldchannel->offermsg, offer_sz) != 0) { in vmbus_onoffer()
1058 * the other field(s) of the offer, e.g. on WS RS5 in vmbus_onoffer()
1059 * (Build 17763), the offer->connection_id of the in vmbus_onoffer()
1063 pr_debug("vmbus offer changed: relid=%d\n", in vmbus_onoffer()
1064 offer->child_relid); in vmbus_onoffer()
1066 print_hex_dump_debug("Old vmbus offer: ", in vmbus_onoffer()
1070 print_hex_dump_debug("New vmbus offer: ", in vmbus_onoffer()
1072 offer, offer_sz, false); in vmbus_onoffer()
1075 vmbus_setup_channel_state(oldchannel, offer); in vmbus_onoffer()
1086 /* Allocate the channel object and save this offer. */ in vmbus_onoffer()
1089 vmbus_release_relid(offer->child_relid); in vmbus_onoffer()
1095 vmbus_setup_channel_state(newchannel, offer); in vmbus_onoffer()
1111 * vmbus_onoffer_rescind - Rescind offer handler.
1113 * We queue a work item to process this offer synchronously
1127 * The offer msg and the corresponding rescind msg in vmbus_onoffer_rescind()
1129 * offer comes in first and then the rescind. in vmbus_onoffer_rescind()
1152 * We wait here until any channel offer is currently in vmbus_onoffer_rescind()
1176 * We failed in processing the offer message; in vmbus_onoffer_rescind()
1192 * Now wait for offer handling to complete. in vmbus_onoffer_rescind()
1197 * We wait here until any channel offer is currently in vmbus_onoffer_rescind()