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