Lines Matching refs:offer

194 	const guid_t *guid = &channel->offermsg.offer.if_type;
525 &newchannel->offermsg.offer.if_type,
526 &newchannel->offermsg.offer.if_instance,
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,
616 &newchannel->offermsg.offer.if_type) &&
617 guid_equal(&channel->offermsg.offer.if_instance,
618 &newchannel->offermsg.offer.if_instance)) {
644 if (newchannel->offermsg.offer.sub_channel_index == 0) {
787 if (channel->offermsg.offer.sub_channel_index >= ncpu ||
949 struct vmbus_channel_offer_channel *offer)
957 (offer->is_dedicated_interrupt != 0);
958 channel->sig_event = offer->connection_id;
960 memcpy(&channel->offermsg, offer,
962 channel->monitor_grp = (u8)offer->monitorid / 32;
963 channel->monitor_bit = (u8)offer->monitorid % 32;
968 * find_primary_channel_by_offer - Get the channel object given the new offer.
972 find_primary_channel_by_offer(const struct vmbus_channel_offer_channel *offer)
978 if (offer->offer.sub_channel_index != 0)
984 inst1 = &iter->offermsg.offer.if_instance;
985 inst2 = &offer->offer.if_instance;
998 static bool vmbus_is_valid_offer(const struct vmbus_channel_offer_channel *offer)
1000 const guid_t *guid = &offer->offer.if_type;
1006 if (is_hvsock_offer(offer))
1022 struct vmbus_channel_offer_channel *offer;
1026 offer = (struct vmbus_channel_offer_channel *)hdr;
1028 trace_vmbus_onoffer(offer);
1030 if (!vmbus_is_valid_offer(offer)) {
1031 pr_err_ratelimited("Invalid offer %d from the host supporting isolation\n",
1032 offer->child_relid);
1037 oldchannel = find_primary_channel_by_offer(offer);
1075 oldchannel->offermsg.child_relid = offer->child_relid;
1077 offer_sz = sizeof(*offer);
1078 if (memcmp(offer, &oldchannel->offermsg, offer_sz) != 0) {
1081 * the other field(s) of the offer, e.g. on WS RS5
1082 * (Build 17763), the offer->connection_id of the
1086 pr_debug("vmbus offer changed: relid=%d\n",
1087 offer->child_relid);
1089 print_hex_dump_debug("Old vmbus offer: ",
1093 print_hex_dump_debug("New vmbus offer: ",
1095 offer, offer_sz, false);
1098 vmbus_setup_channel_state(oldchannel, offer);
1109 /* Allocate the channel object and save this offer. */
1112 vmbus_release_relid(offer->child_relid);
1118 vmbus_setup_channel_state(newchannel, offer);
1134 * vmbus_onoffer_rescind - Rescind offer handler.
1136 * We queue a work item to process this offer synchronously
1150 * The offer msg and the corresponding rescind msg
1152 * offer comes in first and then the rescind.
1175 * We wait here until any channel offer is currently
1199 * We failed in processing the offer message;
1215 * Now wait for offer handling to complete.
1220 * We wait here until any channel offer is currently