Lines Matching refs:init_packet

341 	struct nvsp_message *init_packet;  in netvsc_init_buf()  local
380 init_packet = &net_device->channel_init_pkt; in netvsc_init_buf()
381 memset(init_packet, 0, sizeof(struct nvsp_message)); in netvsc_init_buf()
382 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_RECV_BUF; in netvsc_init_buf()
383 init_packet->msg.v1_msg.send_recv_buf. in netvsc_init_buf()
385 init_packet->msg.v1_msg. in netvsc_init_buf()
388 trace_nvsp_send(ndev, init_packet); in netvsc_init_buf()
391 ret = vmbus_sendpacket(device->channel, init_packet, in netvsc_init_buf()
393 (unsigned long)init_packet, in netvsc_init_buf()
405 resp = &init_packet->msg.v1_msg.send_recv_buf_complete; in netvsc_init_buf()
483 init_packet = &net_device->channel_init_pkt; in netvsc_init_buf()
484 memset(init_packet, 0, sizeof(struct nvsp_message)); in netvsc_init_buf()
485 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_SEND_BUF; in netvsc_init_buf()
486 init_packet->msg.v1_msg.send_send_buf.gpadl_handle = in netvsc_init_buf()
488 init_packet->msg.v1_msg.send_send_buf.id = NETVSC_SEND_BUFFER_ID; in netvsc_init_buf()
490 trace_nvsp_send(ndev, init_packet); in netvsc_init_buf()
493 ret = vmbus_sendpacket(device->channel, init_packet, in netvsc_init_buf()
495 (unsigned long)init_packet, in netvsc_init_buf()
507 if (init_packet->msg.v1_msg. in netvsc_init_buf()
511 init_packet->msg.v1_msg. in netvsc_init_buf()
518 net_device->send_section_size = init_packet->msg. in netvsc_init_buf()
556 struct nvsp_message *init_packet, in negotiate_nvsp_ver() argument
562 memset(init_packet, 0, sizeof(struct nvsp_message)); in negotiate_nvsp_ver()
563 init_packet->hdr.msg_type = NVSP_MSG_TYPE_INIT; in negotiate_nvsp_ver()
564 init_packet->msg.init_msg.init.min_protocol_ver = nvsp_ver; in negotiate_nvsp_ver()
565 init_packet->msg.init_msg.init.max_protocol_ver = nvsp_ver; in negotiate_nvsp_ver()
566 trace_nvsp_send(ndev, init_packet); in negotiate_nvsp_ver()
569 ret = vmbus_sendpacket(device->channel, init_packet, in negotiate_nvsp_ver()
571 (unsigned long)init_packet, in negotiate_nvsp_ver()
580 if (init_packet->msg.init_msg.init_complete.status != in negotiate_nvsp_ver()
588 memset(init_packet, 0, sizeof(struct nvsp_message)); in negotiate_nvsp_ver()
589 init_packet->hdr.msg_type = NVSP_MSG2_TYPE_SEND_NDIS_CONFIG; in negotiate_nvsp_ver()
590 init_packet->msg.v2_msg.send_ndis_config.mtu = ndev->mtu + ETH_HLEN; in negotiate_nvsp_ver()
591 init_packet->msg.v2_msg.send_ndis_config.capability.ieee8021q = 1; in negotiate_nvsp_ver()
597 init_packet->msg.v2_msg.send_ndis_config.capability.sriov = 1; in negotiate_nvsp_ver()
600 init_packet->msg.v2_msg.send_ndis_config.capability.teaming = 1; in negotiate_nvsp_ver()
604 init_packet->msg.v2_msg.send_ndis_config.capability.rsc = 1; in negotiate_nvsp_ver()
606 trace_nvsp_send(ndev, init_packet); in negotiate_nvsp_ver()
608 ret = vmbus_sendpacket(device->channel, init_packet, in negotiate_nvsp_ver()
626 struct nvsp_message *init_packet; in netvsc_connect_vsp() local
629 init_packet = &net_device->channel_init_pkt; in netvsc_connect_vsp()
633 if (negotiate_nvsp_ver(device, net_device, init_packet, in netvsc_connect_vsp()
654 memset(init_packet, 0, sizeof(struct nvsp_message)); in netvsc_connect_vsp()
661 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_NDIS_VER; in netvsc_connect_vsp()
662 init_packet->msg.v1_msg. in netvsc_connect_vsp()
665 init_packet->msg.v1_msg. in netvsc_connect_vsp()
669 trace_nvsp_send(ndev, init_packet); in netvsc_connect_vsp()
672 ret = vmbus_sendpacket(device->channel, init_packet, in netvsc_connect_vsp()