Lines Matching refs:init_packet
303 struct nvsp_message *init_packet;
343 init_packet = &net_device->channel_init_pkt;
344 memset(init_packet, 0, sizeof(struct nvsp_message));
345 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_RECV_BUF;
346 init_packet->msg.v1_msg.send_recv_buf.
348 init_packet->msg.v1_msg.
351 trace_nvsp_send(ndev, init_packet);
354 ret = vmbus_sendpacket(device->channel, init_packet,
356 (unsigned long)init_packet,
368 resp = &init_packet->msg.v1_msg.send_recv_buf_complete;
435 init_packet = &net_device->channel_init_pkt;
436 memset(init_packet, 0, sizeof(struct nvsp_message));
437 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_SEND_BUF;
438 init_packet->msg.v1_msg.send_send_buf.gpadl_handle =
440 init_packet->msg.v1_msg.send_send_buf.id = NETVSC_SEND_BUFFER_ID;
442 trace_nvsp_send(ndev, init_packet);
445 ret = vmbus_sendpacket(device->channel, init_packet,
447 (unsigned long)init_packet,
459 if (init_packet->msg.v1_msg.
463 init_packet->msg.v1_msg.
470 net_device->send_section_size = init_packet->msg.
509 struct nvsp_message *init_packet,
515 memset(init_packet, 0, sizeof(struct nvsp_message));
516 init_packet->hdr.msg_type = NVSP_MSG_TYPE_INIT;
517 init_packet->msg.init_msg.init.min_protocol_ver = nvsp_ver;
518 init_packet->msg.init_msg.init.max_protocol_ver = nvsp_ver;
519 trace_nvsp_send(ndev, init_packet);
522 ret = vmbus_sendpacket(device->channel, init_packet,
524 (unsigned long)init_packet,
533 if (init_packet->msg.init_msg.init_complete.status !=
541 memset(init_packet, 0, sizeof(struct nvsp_message));
542 init_packet->hdr.msg_type = NVSP_MSG2_TYPE_SEND_NDIS_CONFIG;
543 init_packet->msg.v2_msg.send_ndis_config.mtu = ndev->mtu + ETH_HLEN;
544 init_packet->msg.v2_msg.send_ndis_config.capability.ieee8021q = 1;
547 init_packet->msg.v2_msg.send_ndis_config.capability.sriov = 1;
550 init_packet->msg.v2_msg.send_ndis_config.capability.teaming = 1;
554 init_packet->msg.v2_msg.send_ndis_config.capability.rsc = 1;
556 trace_nvsp_send(ndev, init_packet);
558 ret = vmbus_sendpacket(device->channel, init_packet,
560 (unsigned long)init_packet,
576 struct nvsp_message *init_packet;
579 init_packet = &net_device->channel_init_pkt;
583 if (negotiate_nvsp_ver(device, net_device, init_packet,
597 memset(init_packet, 0, sizeof(struct nvsp_message));
604 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_NDIS_VER;
605 init_packet->msg.v1_msg.
608 init_packet->msg.v1_msg.
612 trace_nvsp_send(ndev, init_packet);
615 ret = vmbus_sendpacket(device->channel, init_packet,
617 (unsigned long)init_packet,