Lines Matching refs: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()
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()
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()
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()
1064 offer->child_relid); in vmbus_onoffer()
1072 offer, offer_sz, false); in vmbus_onoffer()
1075 vmbus_setup_channel_state(oldchannel, offer); in vmbus_onoffer()
1089 vmbus_release_relid(offer->child_relid); in vmbus_onoffer()
1095 vmbus_setup_channel_state(newchannel, offer); in vmbus_onoffer()