Lines Matching refs:init_packet

339 	struct nvsp_message *init_packet;  in netvsc_init_buf()  local
379 init_packet = &net_device->channel_init_pkt; in netvsc_init_buf()
380 memset(init_packet, 0, sizeof(struct nvsp_message)); in netvsc_init_buf()
381 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_RECV_BUF; in netvsc_init_buf()
382 init_packet->msg.v1_msg.send_recv_buf. in netvsc_init_buf()
384 init_packet->msg.v1_msg. in netvsc_init_buf()
387 trace_nvsp_send(ndev, init_packet); in netvsc_init_buf()
390 ret = vmbus_sendpacket(device->channel, init_packet, in netvsc_init_buf()
392 (unsigned long)init_packet, in netvsc_init_buf()
404 resp = &init_packet->msg.v1_msg.send_recv_buf_complete; in netvsc_init_buf()
481 init_packet = &net_device->channel_init_pkt; in netvsc_init_buf()
482 memset(init_packet, 0, sizeof(struct nvsp_message)); in netvsc_init_buf()
483 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_SEND_BUF; in netvsc_init_buf()
484 init_packet->msg.v1_msg.send_send_buf.gpadl_handle = in netvsc_init_buf()
486 init_packet->msg.v1_msg.send_send_buf.id = NETVSC_SEND_BUFFER_ID; in netvsc_init_buf()
488 trace_nvsp_send(ndev, init_packet); in netvsc_init_buf()
491 ret = vmbus_sendpacket(device->channel, init_packet, in netvsc_init_buf()
493 (unsigned long)init_packet, in netvsc_init_buf()
505 if (init_packet->msg.v1_msg. in netvsc_init_buf()
509 init_packet->msg.v1_msg. in netvsc_init_buf()
516 net_device->send_section_size = init_packet->msg. in netvsc_init_buf()
555 struct nvsp_message *init_packet, in negotiate_nvsp_ver() argument
561 memset(init_packet, 0, sizeof(struct nvsp_message)); in negotiate_nvsp_ver()
562 init_packet->hdr.msg_type = NVSP_MSG_TYPE_INIT; in negotiate_nvsp_ver()
563 init_packet->msg.init_msg.init.min_protocol_ver = nvsp_ver; in negotiate_nvsp_ver()
564 init_packet->msg.init_msg.init.max_protocol_ver = nvsp_ver; in negotiate_nvsp_ver()
565 trace_nvsp_send(ndev, init_packet); in negotiate_nvsp_ver()
568 ret = vmbus_sendpacket(device->channel, init_packet, in negotiate_nvsp_ver()
570 (unsigned long)init_packet, in negotiate_nvsp_ver()
579 if (init_packet->msg.init_msg.init_complete.status != in negotiate_nvsp_ver()
587 memset(init_packet, 0, sizeof(struct nvsp_message)); in negotiate_nvsp_ver()
588 init_packet->hdr.msg_type = NVSP_MSG2_TYPE_SEND_NDIS_CONFIG; in negotiate_nvsp_ver()
589 init_packet->msg.v2_msg.send_ndis_config.mtu = ndev->mtu + ETH_HLEN; in negotiate_nvsp_ver()
590 init_packet->msg.v2_msg.send_ndis_config.capability.ieee8021q = 1; in negotiate_nvsp_ver()
596 init_packet->msg.v2_msg.send_ndis_config.capability.sriov = 1; in negotiate_nvsp_ver()
599 init_packet->msg.v2_msg.send_ndis_config.capability.teaming = 1; in negotiate_nvsp_ver()
603 init_packet->msg.v2_msg.send_ndis_config.capability.rsc = 1; in negotiate_nvsp_ver()
605 trace_nvsp_send(ndev, init_packet); in negotiate_nvsp_ver()
607 ret = vmbus_sendpacket(device->channel, init_packet, in negotiate_nvsp_ver()
625 struct nvsp_message *init_packet; in netvsc_connect_vsp() local
628 init_packet = &net_device->channel_init_pkt; in netvsc_connect_vsp()
632 if (negotiate_nvsp_ver(device, net_device, init_packet, in netvsc_connect_vsp()
653 memset(init_packet, 0, sizeof(struct nvsp_message)); in netvsc_connect_vsp()
660 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_NDIS_VER; in netvsc_connect_vsp()
661 init_packet->msg.v1_msg. in netvsc_connect_vsp()
664 init_packet->msg.v1_msg. in netvsc_connect_vsp()
668 trace_nvsp_send(ndev, init_packet); in netvsc_connect_vsp()
671 ret = vmbus_sendpacket(device->channel, init_packet, in netvsc_connect_vsp()