Lines Matching refs:init_packet

229 	struct nvsp_message *init_packet;  in netvsc_init_buf()  local
266 init_packet = &net_device->channel_init_pkt; in netvsc_init_buf()
268 memset(init_packet, 0, sizeof(struct nvsp_message)); in netvsc_init_buf()
270 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_RECV_BUF; in netvsc_init_buf()
271 init_packet->msg.v1_msg.send_recv_buf. in netvsc_init_buf()
273 init_packet->msg.v1_msg. in netvsc_init_buf()
277 ret = vmbus_sendpacket(device->channel, init_packet, in netvsc_init_buf()
279 (unsigned long)init_packet, in netvsc_init_buf()
293 if (init_packet->msg.v1_msg. in netvsc_init_buf()
297 init_packet->msg.v1_msg. in netvsc_init_buf()
305 net_device->recv_section_cnt = init_packet->msg. in netvsc_init_buf()
309 init_packet->msg.v1_msg.send_recv_buf_complete.sections, in netvsc_init_buf()
354 init_packet = &net_device->channel_init_pkt; in netvsc_init_buf()
355 memset(init_packet, 0, sizeof(struct nvsp_message)); in netvsc_init_buf()
356 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_SEND_BUF; in netvsc_init_buf()
357 init_packet->msg.v1_msg.send_send_buf.gpadl_handle = in netvsc_init_buf()
359 init_packet->msg.v1_msg.send_send_buf.id = NETVSC_SEND_BUFFER_ID; in netvsc_init_buf()
362 ret = vmbus_sendpacket(device->channel, init_packet, in netvsc_init_buf()
364 (unsigned long)init_packet, in netvsc_init_buf()
377 if (init_packet->msg.v1_msg. in netvsc_init_buf()
381 init_packet->msg.v1_msg. in netvsc_init_buf()
388 net_device->send_section_size = init_packet->msg. in netvsc_init_buf()
423 struct nvsp_message *init_packet, in negotiate_nvsp_ver() argument
429 memset(init_packet, 0, sizeof(struct nvsp_message)); in negotiate_nvsp_ver()
430 init_packet->hdr.msg_type = NVSP_MSG_TYPE_INIT; in negotiate_nvsp_ver()
431 init_packet->msg.init_msg.init.min_protocol_ver = nvsp_ver; in negotiate_nvsp_ver()
432 init_packet->msg.init_msg.init.max_protocol_ver = nvsp_ver; in negotiate_nvsp_ver()
435 ret = vmbus_sendpacket(device->channel, init_packet, in negotiate_nvsp_ver()
437 (unsigned long)init_packet, in negotiate_nvsp_ver()
449 if (init_packet->msg.init_msg.init_complete.status != in negotiate_nvsp_ver()
457 memset(init_packet, 0, sizeof(struct nvsp_message)); in negotiate_nvsp_ver()
458 init_packet->hdr.msg_type = NVSP_MSG2_TYPE_SEND_NDIS_CONFIG; in negotiate_nvsp_ver()
459 init_packet->msg.v2_msg.send_ndis_config.mtu = net_device->ndev->mtu + in negotiate_nvsp_ver()
461 init_packet->msg.v2_msg.send_ndis_config.capability.ieee8021q = 1; in negotiate_nvsp_ver()
464 init_packet->msg.v2_msg.send_ndis_config.capability.sriov = 1; in negotiate_nvsp_ver()
466 ret = vmbus_sendpacket(device->channel, init_packet, in negotiate_nvsp_ver()
468 (unsigned long)init_packet, in negotiate_nvsp_ver()
478 struct nvsp_message *init_packet; in netvsc_connect_vsp() local
490 init_packet = &net_device->channel_init_pkt; in netvsc_connect_vsp()
494 if (negotiate_nvsp_ver(device, net_device, init_packet, in netvsc_connect_vsp()
508 memset(init_packet, 0, sizeof(struct nvsp_message)); in netvsc_connect_vsp()
515 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_NDIS_VER; in netvsc_connect_vsp()
516 init_packet->msg.v1_msg. in netvsc_connect_vsp()
519 init_packet->msg.v1_msg. in netvsc_connect_vsp()
524 ret = vmbus_sendpacket(device->channel, init_packet, in netvsc_connect_vsp()
526 (unsigned long)init_packet, in netvsc_connect_vsp()