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