Lines Matching refs:init_packet
338 struct nvsp_message *init_packet;
377 init_packet = &net_device->channel_init_pkt;
378 memset(init_packet, 0, sizeof(struct nvsp_message));
379 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_RECV_BUF;
380 init_packet->msg.v1_msg.send_recv_buf.
382 init_packet->msg.v1_msg.
385 trace_nvsp_send(ndev, init_packet);
388 ret = vmbus_sendpacket(device->channel, init_packet,
390 (unsigned long)init_packet,
402 resp = &init_packet->msg.v1_msg.send_recv_buf_complete;
480 init_packet = &net_device->channel_init_pkt;
481 memset(init_packet, 0, sizeof(struct nvsp_message));
482 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_SEND_BUF;
483 init_packet->msg.v1_msg.send_send_buf.gpadl_handle =
485 init_packet->msg.v1_msg.send_send_buf.id = NETVSC_SEND_BUFFER_ID;
487 trace_nvsp_send(ndev, init_packet);
490 ret = vmbus_sendpacket(device->channel, init_packet,
492 (unsigned long)init_packet,
504 if (init_packet->msg.v1_msg.
508 init_packet->msg.v1_msg.
515 net_device->send_section_size = init_packet->msg.
553 struct nvsp_message *init_packet,
559 memset(init_packet, 0, sizeof(struct nvsp_message));
560 init_packet->hdr.msg_type = NVSP_MSG_TYPE_INIT;
561 init_packet->msg.init_msg.init.min_protocol_ver = nvsp_ver;
562 init_packet->msg.init_msg.init.max_protocol_ver = nvsp_ver;
563 trace_nvsp_send(ndev, init_packet);
566 ret = vmbus_sendpacket(device->channel, init_packet,
568 (unsigned long)init_packet,
577 if (init_packet->msg.init_msg.init_complete.status !=
585 memset(init_packet, 0, sizeof(struct nvsp_message));
586 init_packet->hdr.msg_type = NVSP_MSG2_TYPE_SEND_NDIS_CONFIG;
587 init_packet->msg.v2_msg.send_ndis_config.mtu = ndev->mtu + ETH_HLEN;
588 init_packet->msg.v2_msg.send_ndis_config.capability.ieee8021q = 1;
594 init_packet->msg.v2_msg.send_ndis_config.capability.sriov = 1;
597 init_packet->msg.v2_msg.send_ndis_config.capability.teaming = 1;
601 init_packet->msg.v2_msg.send_ndis_config.capability.rsc = 1;
603 trace_nvsp_send(ndev, init_packet);
605 ret = vmbus_sendpacket(device->channel, init_packet,
623 struct nvsp_message *init_packet;
626 init_packet = &net_device->channel_init_pkt;
630 if (negotiate_nvsp_ver(device, net_device, init_packet,
651 memset(init_packet, 0, sizeof(struct nvsp_message));
658 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_NDIS_VER;
659 init_packet->msg.v1_msg.
662 init_packet->msg.v1_msg.
666 trace_nvsp_send(ndev, init_packet);
669 ret = vmbus_sendpacket(device->channel, init_packet,