Lines Matching refs:init_packet
228 struct nvsp_message *init_packet; in netvsc_init_buf() local
260 init_packet = &net_device->channel_init_pkt; in netvsc_init_buf()
262 memset(init_packet, 0, sizeof(struct nvsp_message)); in netvsc_init_buf()
264 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_RECV_BUF; in netvsc_init_buf()
265 init_packet->msg.v1_msg.send_recv_buf. in netvsc_init_buf()
267 init_packet->msg.v1_msg. in netvsc_init_buf()
271 ret = vmbus_sendpacket(device->channel, init_packet, in netvsc_init_buf()
273 (unsigned long)init_packet, in netvsc_init_buf()
287 if (init_packet->msg.v1_msg. in netvsc_init_buf()
291 init_packet->msg.v1_msg. in netvsc_init_buf()
299 net_device->recv_section_cnt = init_packet->msg. in netvsc_init_buf()
303 init_packet->msg.v1_msg.send_recv_buf_complete.sections, in netvsc_init_buf()
346 init_packet = &net_device->channel_init_pkt; in netvsc_init_buf()
347 memset(init_packet, 0, sizeof(struct nvsp_message)); in netvsc_init_buf()
348 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_SEND_BUF; in netvsc_init_buf()
349 init_packet->msg.v1_msg.send_send_buf.gpadl_handle = in netvsc_init_buf()
351 init_packet->msg.v1_msg.send_send_buf.id = NETVSC_SEND_BUFFER_ID; 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()
369 if (init_packet->msg.v1_msg. in netvsc_init_buf()
373 init_packet->msg.v1_msg. in netvsc_init_buf()
380 net_device->send_section_size = init_packet->msg. in netvsc_init_buf()
415 struct nvsp_message *init_packet, in negotiate_nvsp_ver() argument
421 memset(init_packet, 0, sizeof(struct nvsp_message)); in negotiate_nvsp_ver()
422 init_packet->hdr.msg_type = NVSP_MSG_TYPE_INIT; in negotiate_nvsp_ver()
423 init_packet->msg.init_msg.init.min_protocol_ver = nvsp_ver; in negotiate_nvsp_ver()
424 init_packet->msg.init_msg.init.max_protocol_ver = nvsp_ver; in negotiate_nvsp_ver()
427 ret = vmbus_sendpacket(device->channel, init_packet, in negotiate_nvsp_ver()
429 (unsigned long)init_packet, in negotiate_nvsp_ver()
441 if (init_packet->msg.init_msg.init_complete.status != in negotiate_nvsp_ver()
449 memset(init_packet, 0, sizeof(struct nvsp_message)); in negotiate_nvsp_ver()
450 init_packet->hdr.msg_type = NVSP_MSG2_TYPE_SEND_NDIS_CONFIG; in negotiate_nvsp_ver()
451 init_packet->msg.v2_msg.send_ndis_config.mtu = net_device->ndev->mtu + in negotiate_nvsp_ver()
453 init_packet->msg.v2_msg.send_ndis_config.capability.ieee8021q = 1; in negotiate_nvsp_ver()
455 ret = vmbus_sendpacket(device->channel, init_packet, in negotiate_nvsp_ver()
457 (unsigned long)init_packet, in negotiate_nvsp_ver()
467 struct nvsp_message *init_packet; in netvsc_connect_vsp() local
479 init_packet = &net_device->channel_init_pkt; in netvsc_connect_vsp()
483 if (negotiate_nvsp_ver(device, net_device, init_packet, in netvsc_connect_vsp()
497 memset(init_packet, 0, sizeof(struct nvsp_message)); in netvsc_connect_vsp()
504 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_NDIS_VER; in netvsc_connect_vsp()
505 init_packet->msg.v1_msg. in netvsc_connect_vsp()
508 init_packet->msg.v1_msg. in netvsc_connect_vsp()
513 ret = vmbus_sendpacket(device->channel, init_packet, in netvsc_connect_vsp()
515 (unsigned long)init_packet, in netvsc_connect_vsp()