Lines Matching full:offer

194 	const guid_t *guid = &channel->offermsg.offer.if_type;  in hv_get_dev_type()
525 &newchannel->offermsg.offer.if_type, in vmbus_add_channel_work()
526 &newchannel->offermsg.offer.if_instance, in vmbus_add_channel_work()
578 * vmbus_process_offer - Process the offer by creating a channel/device
579 * associated with this offer
615 if (guid_equal(&channel->offermsg.offer.if_type, in vmbus_process_offer()
616 &newchannel->offermsg.offer.if_type) && in vmbus_process_offer()
617 guid_equal(&channel->offermsg.offer.if_instance, in vmbus_process_offer()
618 &newchannel->offermsg.offer.if_instance)) { in vmbus_process_offer()
644 if (newchannel->offermsg.offer.sub_channel_index == 0) { in vmbus_process_offer()
787 if (channel->offermsg.offer.sub_channel_index >= ncpu || in init_vp_index()
935 struct vmbus_channel_offer_channel *offer) in vmbus_setup_channel_state() argument
943 (offer->is_dedicated_interrupt != 0); in vmbus_setup_channel_state()
944 channel->sig_event = offer->connection_id; in vmbus_setup_channel_state()
946 memcpy(&channel->offermsg, offer, in vmbus_setup_channel_state()
948 channel->monitor_grp = (u8)offer->monitorid / 32; in vmbus_setup_channel_state()
949 channel->monitor_bit = (u8)offer->monitorid % 32; in vmbus_setup_channel_state()
954 * find_primary_channel_by_offer - Get the channel object given the new offer.
958 find_primary_channel_by_offer(const struct vmbus_channel_offer_channel *offer) in find_primary_channel_by_offer() argument
964 if (offer->offer.sub_channel_index != 0) in find_primary_channel_by_offer()
970 inst1 = &iter->offermsg.offer.if_instance; in find_primary_channel_by_offer()
971 inst2 = &offer->offer.if_instance; in find_primary_channel_by_offer()
984 static bool vmbus_is_valid_offer(const struct vmbus_channel_offer_channel *offer) in vmbus_is_valid_offer() argument
986 const guid_t *guid = &offer->offer.if_type; in vmbus_is_valid_offer()
992 if (is_hvsock_offer(offer)) in vmbus_is_valid_offer()
1008 struct vmbus_channel_offer_channel *offer; in vmbus_onoffer() local
1012 offer = (struct vmbus_channel_offer_channel *)hdr; in vmbus_onoffer()
1014 trace_vmbus_onoffer(offer); in vmbus_onoffer()
1016 if (!vmbus_is_valid_offer(offer)) { in vmbus_onoffer()
1017 pr_err_ratelimited("Invalid offer %d from the host supporting isolation\n", in vmbus_onoffer()
1018 offer->child_relid); in vmbus_onoffer()
1023 oldchannel = find_primary_channel_by_offer(offer); in vmbus_onoffer()
1061 oldchannel->offermsg.child_relid = offer->child_relid; in vmbus_onoffer()
1063 offer_sz = sizeof(*offer); in vmbus_onoffer()
1064 if (memcmp(offer, &oldchannel->offermsg, offer_sz) != 0) { in vmbus_onoffer()
1067 * the other field(s) of the offer, e.g. on WS RS5 in vmbus_onoffer()
1068 * (Build 17763), the offer->connection_id of the in vmbus_onoffer()
1072 pr_debug("vmbus offer changed: relid=%d\n", in vmbus_onoffer()
1073 offer->child_relid); in vmbus_onoffer()
1075 print_hex_dump_debug("Old vmbus offer: ", in vmbus_onoffer()
1079 print_hex_dump_debug("New vmbus offer: ", in vmbus_onoffer()
1081 offer, offer_sz, false); in vmbus_onoffer()
1084 vmbus_setup_channel_state(oldchannel, offer); in vmbus_onoffer()
1095 /* Allocate the channel object and save this offer. */ in vmbus_onoffer()
1098 vmbus_release_relid(offer->child_relid); in vmbus_onoffer()
1104 vmbus_setup_channel_state(newchannel, offer); in vmbus_onoffer()
1120 * vmbus_onoffer_rescind - Rescind offer handler.
1122 * We queue a work item to process this offer synchronously
1136 * The offer msg and the corresponding rescind msg in vmbus_onoffer_rescind()
1138 * offer comes in first and then the rescind. in vmbus_onoffer_rescind()
1161 * We wait here until any channel offer is currently in vmbus_onoffer_rescind()
1185 * We failed in processing the offer message; in vmbus_onoffer_rescind()
1201 * Now wait for offer handling to complete. in vmbus_onoffer_rescind()
1206 * We wait here until any channel offer is currently in vmbus_onoffer_rescind()