Lines Matching refs:init_packet

311 	struct nvsp_message *init_packet;  in netvsc_init_buf()  local
351 init_packet = &net_device->channel_init_pkt; in netvsc_init_buf()
352 memset(init_packet, 0, sizeof(struct nvsp_message)); in netvsc_init_buf()
353 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_RECV_BUF; in netvsc_init_buf()
354 init_packet->msg.v1_msg.send_recv_buf. in netvsc_init_buf()
356 init_packet->msg.v1_msg. in netvsc_init_buf()
359 trace_nvsp_send(ndev, init_packet); in netvsc_init_buf()
362 ret = vmbus_sendpacket(device->channel, init_packet, in netvsc_init_buf()
364 (unsigned long)init_packet, in netvsc_init_buf()
376 resp = &init_packet->msg.v1_msg.send_recv_buf_complete; in netvsc_init_buf()
433 init_packet = &net_device->channel_init_pkt; in netvsc_init_buf()
434 memset(init_packet, 0, sizeof(struct nvsp_message)); in netvsc_init_buf()
435 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_SEND_BUF; in netvsc_init_buf()
436 init_packet->msg.v1_msg.send_send_buf.gpadl_handle = in netvsc_init_buf()
438 init_packet->msg.v1_msg.send_send_buf.id = NETVSC_SEND_BUFFER_ID; in netvsc_init_buf()
440 trace_nvsp_send(ndev, init_packet); in netvsc_init_buf()
443 ret = vmbus_sendpacket(device->channel, init_packet, in netvsc_init_buf()
445 (unsigned long)init_packet, in netvsc_init_buf()
457 if (init_packet->msg.v1_msg. in netvsc_init_buf()
461 init_packet->msg.v1_msg. in netvsc_init_buf()
468 net_device->send_section_size = init_packet->msg. in netvsc_init_buf()
501 struct nvsp_message *init_packet, in negotiate_nvsp_ver() argument
507 memset(init_packet, 0, sizeof(struct nvsp_message)); in negotiate_nvsp_ver()
508 init_packet->hdr.msg_type = NVSP_MSG_TYPE_INIT; in negotiate_nvsp_ver()
509 init_packet->msg.init_msg.init.min_protocol_ver = nvsp_ver; in negotiate_nvsp_ver()
510 init_packet->msg.init_msg.init.max_protocol_ver = nvsp_ver; in negotiate_nvsp_ver()
511 trace_nvsp_send(ndev, init_packet); in negotiate_nvsp_ver()
514 ret = vmbus_sendpacket(device->channel, init_packet, in negotiate_nvsp_ver()
516 (unsigned long)init_packet, in negotiate_nvsp_ver()
525 if (init_packet->msg.init_msg.init_complete.status != in negotiate_nvsp_ver()
533 memset(init_packet, 0, sizeof(struct nvsp_message)); in negotiate_nvsp_ver()
534 init_packet->hdr.msg_type = NVSP_MSG2_TYPE_SEND_NDIS_CONFIG; in negotiate_nvsp_ver()
535 init_packet->msg.v2_msg.send_ndis_config.mtu = ndev->mtu + ETH_HLEN; in negotiate_nvsp_ver()
536 init_packet->msg.v2_msg.send_ndis_config.capability.ieee8021q = 1; in negotiate_nvsp_ver()
539 init_packet->msg.v2_msg.send_ndis_config.capability.sriov = 1; in negotiate_nvsp_ver()
542 init_packet->msg.v2_msg.send_ndis_config.capability.teaming = 1; in negotiate_nvsp_ver()
545 trace_nvsp_send(ndev, init_packet); in negotiate_nvsp_ver()
547 ret = vmbus_sendpacket(device->channel, init_packet, in negotiate_nvsp_ver()
549 (unsigned long)init_packet, in negotiate_nvsp_ver()
565 struct nvsp_message *init_packet; in netvsc_connect_vsp() local
568 init_packet = &net_device->channel_init_pkt; in netvsc_connect_vsp()
572 if (negotiate_nvsp_ver(device, net_device, init_packet, in netvsc_connect_vsp()
586 memset(init_packet, 0, sizeof(struct nvsp_message)); in netvsc_connect_vsp()
593 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_NDIS_VER; in netvsc_connect_vsp()
594 init_packet->msg.v1_msg. in netvsc_connect_vsp()
597 init_packet->msg.v1_msg. in netvsc_connect_vsp()
601 trace_nvsp_send(ndev, init_packet); in netvsc_connect_vsp()
604 ret = vmbus_sendpacket(device->channel, init_packet, in netvsc_connect_vsp()
606 (unsigned long)init_packet, in netvsc_connect_vsp()