Lines Matching refs:init_packet

301 	struct nvsp_message *init_packet;  in netvsc_init_buf()  local
341 init_packet = &net_device->channel_init_pkt; in netvsc_init_buf()
342 memset(init_packet, 0, sizeof(struct nvsp_message)); in netvsc_init_buf()
343 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_RECV_BUF; in netvsc_init_buf()
344 init_packet->msg.v1_msg.send_recv_buf. in netvsc_init_buf()
346 init_packet->msg.v1_msg. in netvsc_init_buf()
349 trace_nvsp_send(ndev, init_packet); in netvsc_init_buf()
352 ret = vmbus_sendpacket(device->channel, init_packet, in netvsc_init_buf()
354 (unsigned long)init_packet, in netvsc_init_buf()
366 resp = &init_packet->msg.v1_msg.send_recv_buf_complete; in netvsc_init_buf()
423 init_packet = &net_device->channel_init_pkt; in netvsc_init_buf()
424 memset(init_packet, 0, sizeof(struct nvsp_message)); in netvsc_init_buf()
425 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_SEND_BUF; in netvsc_init_buf()
426 init_packet->msg.v1_msg.send_send_buf.gpadl_handle = in netvsc_init_buf()
428 init_packet->msg.v1_msg.send_send_buf.id = NETVSC_SEND_BUFFER_ID; in netvsc_init_buf()
430 trace_nvsp_send(ndev, init_packet); in netvsc_init_buf()
433 ret = vmbus_sendpacket(device->channel, init_packet, in netvsc_init_buf()
435 (unsigned long)init_packet, in netvsc_init_buf()
447 if (init_packet->msg.v1_msg. in netvsc_init_buf()
451 init_packet->msg.v1_msg. in netvsc_init_buf()
458 net_device->send_section_size = init_packet->msg. in netvsc_init_buf()
491 struct nvsp_message *init_packet, in negotiate_nvsp_ver() argument
497 memset(init_packet, 0, sizeof(struct nvsp_message)); in negotiate_nvsp_ver()
498 init_packet->hdr.msg_type = NVSP_MSG_TYPE_INIT; in negotiate_nvsp_ver()
499 init_packet->msg.init_msg.init.min_protocol_ver = nvsp_ver; in negotiate_nvsp_ver()
500 init_packet->msg.init_msg.init.max_protocol_ver = nvsp_ver; in negotiate_nvsp_ver()
501 trace_nvsp_send(ndev, init_packet); in negotiate_nvsp_ver()
504 ret = vmbus_sendpacket(device->channel, init_packet, in negotiate_nvsp_ver()
506 (unsigned long)init_packet, in negotiate_nvsp_ver()
515 if (init_packet->msg.init_msg.init_complete.status != in negotiate_nvsp_ver()
523 memset(init_packet, 0, sizeof(struct nvsp_message)); in negotiate_nvsp_ver()
524 init_packet->hdr.msg_type = NVSP_MSG2_TYPE_SEND_NDIS_CONFIG; in negotiate_nvsp_ver()
525 init_packet->msg.v2_msg.send_ndis_config.mtu = ndev->mtu + ETH_HLEN; in negotiate_nvsp_ver()
526 init_packet->msg.v2_msg.send_ndis_config.capability.ieee8021q = 1; in negotiate_nvsp_ver()
529 init_packet->msg.v2_msg.send_ndis_config.capability.sriov = 1; in negotiate_nvsp_ver()
532 init_packet->msg.v2_msg.send_ndis_config.capability.teaming = 1; in negotiate_nvsp_ver()
536 init_packet->msg.v2_msg.send_ndis_config.capability.rsc = 1; in negotiate_nvsp_ver()
538 trace_nvsp_send(ndev, init_packet); in negotiate_nvsp_ver()
540 ret = vmbus_sendpacket(device->channel, init_packet, in negotiate_nvsp_ver()
542 (unsigned long)init_packet, in negotiate_nvsp_ver()
558 struct nvsp_message *init_packet; in netvsc_connect_vsp() local
561 init_packet = &net_device->channel_init_pkt; in netvsc_connect_vsp()
565 if (negotiate_nvsp_ver(device, net_device, init_packet, in netvsc_connect_vsp()
579 memset(init_packet, 0, sizeof(struct nvsp_message)); in netvsc_connect_vsp()
586 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_NDIS_VER; in netvsc_connect_vsp()
587 init_packet->msg.v1_msg. in netvsc_connect_vsp()
590 init_packet->msg.v1_msg. in netvsc_connect_vsp()
594 trace_nvsp_send(ndev, init_packet); in netvsc_connect_vsp()
597 ret = vmbus_sendpacket(device->channel, init_packet, in netvsc_connect_vsp()
599 (unsigned long)init_packet, in netvsc_connect_vsp()