Lines Matching refs:init_packet

347 	struct nvsp_message *init_packet;  in netvsc_init_buf()  local
398 init_packet = &net_device->channel_init_pkt; in netvsc_init_buf()
399 memset(init_packet, 0, sizeof(struct nvsp_message)); in netvsc_init_buf()
400 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_RECV_BUF; in netvsc_init_buf()
401 init_packet->msg.v1_msg.send_recv_buf. in netvsc_init_buf()
403 init_packet->msg.v1_msg. in netvsc_init_buf()
406 trace_nvsp_send(ndev, init_packet); in netvsc_init_buf()
409 ret = vmbus_sendpacket(device->channel, init_packet, in netvsc_init_buf()
411 (unsigned long)init_packet, in netvsc_init_buf()
423 resp = &init_packet->msg.v1_msg.send_recv_buf_complete; in netvsc_init_buf()
512 init_packet = &net_device->channel_init_pkt; in netvsc_init_buf()
513 memset(init_packet, 0, sizeof(struct nvsp_message)); in netvsc_init_buf()
514 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_SEND_BUF; in netvsc_init_buf()
515 init_packet->msg.v1_msg.send_send_buf.gpadl_handle = in netvsc_init_buf()
517 init_packet->msg.v1_msg.send_send_buf.id = NETVSC_SEND_BUFFER_ID; in netvsc_init_buf()
519 trace_nvsp_send(ndev, init_packet); in netvsc_init_buf()
522 ret = vmbus_sendpacket(device->channel, init_packet, in netvsc_init_buf()
524 (unsigned long)init_packet, in netvsc_init_buf()
536 if (init_packet->msg.v1_msg. in netvsc_init_buf()
540 init_packet->msg.v1_msg. in netvsc_init_buf()
547 net_device->send_section_size = init_packet->msg. in netvsc_init_buf()
585 struct nvsp_message *init_packet, in negotiate_nvsp_ver() argument
591 memset(init_packet, 0, sizeof(struct nvsp_message)); in negotiate_nvsp_ver()
592 init_packet->hdr.msg_type = NVSP_MSG_TYPE_INIT; in negotiate_nvsp_ver()
593 init_packet->msg.init_msg.init.min_protocol_ver = nvsp_ver; in negotiate_nvsp_ver()
594 init_packet->msg.init_msg.init.max_protocol_ver = nvsp_ver; in negotiate_nvsp_ver()
595 trace_nvsp_send(ndev, init_packet); in negotiate_nvsp_ver()
598 ret = vmbus_sendpacket(device->channel, init_packet, in negotiate_nvsp_ver()
600 (unsigned long)init_packet, in negotiate_nvsp_ver()
609 if (init_packet->msg.init_msg.init_complete.status != in negotiate_nvsp_ver()
617 memset(init_packet, 0, sizeof(struct nvsp_message)); in negotiate_nvsp_ver()
618 init_packet->hdr.msg_type = NVSP_MSG2_TYPE_SEND_NDIS_CONFIG; in negotiate_nvsp_ver()
619 init_packet->msg.v2_msg.send_ndis_config.mtu = ndev->mtu + ETH_HLEN; in negotiate_nvsp_ver()
620 init_packet->msg.v2_msg.send_ndis_config.capability.ieee8021q = 1; in negotiate_nvsp_ver()
626 init_packet->msg.v2_msg.send_ndis_config.capability.sriov = 1; in negotiate_nvsp_ver()
629 init_packet->msg.v2_msg.send_ndis_config.capability.teaming = 1; in negotiate_nvsp_ver()
633 init_packet->msg.v2_msg.send_ndis_config.capability.rsc = 1; in negotiate_nvsp_ver()
635 trace_nvsp_send(ndev, init_packet); in negotiate_nvsp_ver()
637 ret = vmbus_sendpacket(device->channel, init_packet, in negotiate_nvsp_ver()
655 struct nvsp_message *init_packet; in netvsc_connect_vsp() local
658 init_packet = &net_device->channel_init_pkt; in netvsc_connect_vsp()
662 if (negotiate_nvsp_ver(device, net_device, init_packet, in netvsc_connect_vsp()
683 memset(init_packet, 0, sizeof(struct nvsp_message)); in netvsc_connect_vsp()
690 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_NDIS_VER; in netvsc_connect_vsp()
691 init_packet->msg.v1_msg. in netvsc_connect_vsp()
694 init_packet->msg.v1_msg. in netvsc_connect_vsp()
698 trace_nvsp_send(ndev, init_packet); in netvsc_connect_vsp()
701 ret = vmbus_sendpacket(device->channel, init_packet, in netvsc_connect_vsp()