init_packet
init_packet(rcd, &packet);
init_packet(rcd, &packet);
init_packet(rcd, &packet);
init_packet(rcd, &packet);
init_packet(rcd, &packet);
init_packet(rcd, &packet);
const struct xboxone_init_packet *init_packet;
init_packet = &xboxone_init_packets[xpad->init_seq++];
if (init_packet->idVendor != 0 &&
init_packet->idVendor != xpad->dev->id.vendor)
if (init_packet->idProduct != 0 &&
init_packet->idProduct != xpad->dev->id.product)
memcpy(xpad->odata, init_packet->data, init_packet->len);
xpad->irq_out->transfer_buffer_length = init_packet->len;
struct nvsp_message *init_packet;
init_packet = &net_device->channel_init_pkt;
memset(init_packet, 0, sizeof(struct nvsp_message));
init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_RECV_BUF;
init_packet->msg.v1_msg.send_recv_buf.
init_packet->msg.v1_msg.
trace_nvsp_send(ndev, init_packet);
ret = vmbus_sendpacket(device->channel, init_packet,
(unsigned long)init_packet,
resp = &init_packet->msg.v1_msg.send_recv_buf_complete;
init_packet = &net_device->channel_init_pkt;
memset(init_packet, 0, sizeof(struct nvsp_message));
init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_SEND_BUF;
init_packet->msg.v1_msg.send_send_buf.gpadl_handle =
init_packet->msg.v1_msg.send_send_buf.id = NETVSC_SEND_BUFFER_ID;
trace_nvsp_send(ndev, init_packet);
ret = vmbus_sendpacket(device->channel, init_packet,
(unsigned long)init_packet,
if (init_packet->msg.v1_msg.
init_packet->msg.v1_msg.
net_device->send_section_size = init_packet->msg.
struct nvsp_message *init_packet,
memset(init_packet, 0, sizeof(struct nvsp_message));
init_packet->hdr.msg_type = NVSP_MSG_TYPE_INIT;
init_packet->msg.init_msg.init.min_protocol_ver = nvsp_ver;
init_packet->msg.init_msg.init.max_protocol_ver = nvsp_ver;
trace_nvsp_send(ndev, init_packet);
ret = vmbus_sendpacket(device->channel, init_packet,
(unsigned long)init_packet,
if (init_packet->msg.init_msg.init_complete.status !=
memset(init_packet, 0, sizeof(struct nvsp_message));
init_packet->hdr.msg_type = NVSP_MSG2_TYPE_SEND_NDIS_CONFIG;
init_packet->msg.v2_msg.send_ndis_config.mtu = ndev->mtu + ETH_HLEN;
init_packet->msg.v2_msg.send_ndis_config.capability.ieee8021q = 1;
init_packet->msg.v2_msg.send_ndis_config.capability.sriov = 1;
init_packet->msg.v2_msg.send_ndis_config.capability.teaming = 1;
init_packet->msg.v2_msg.send_ndis_config.capability.rsc = 1;
trace_nvsp_send(ndev, init_packet);
ret = vmbus_sendpacket(device->channel, init_packet,
struct nvsp_message *init_packet;
init_packet = &net_device->channel_init_pkt;
if (negotiate_nvsp_ver(device, net_device, init_packet,
memset(init_packet, 0, sizeof(struct nvsp_message));
init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_NDIS_VER;
init_packet->msg.v1_msg.
init_packet->msg.v1_msg.
trace_nvsp_send(ndev, init_packet);
ret = vmbus_sendpacket(device->channel, init_packet,
struct nvsp_message *init_packet = &nvdev->channel_init_pkt;
memset(init_packet, 0, sizeof(struct nvsp_message));
init_packet->hdr.msg_type = NVSP_MSG5_TYPE_SUBCHANNEL;
init_packet->msg.v5_msg.subchn_req.op = NVSP_SUBCHANNEL_ALLOCATE;
init_packet->msg.v5_msg.subchn_req.num_subchannels =
trace_nvsp_send(ndev, init_packet);
ret = vmbus_sendpacket(hv_dev->channel, init_packet,
(unsigned long)init_packet,
if (init_packet->msg.v5_msg.subchn_comp.status != NVSP_STAT_SUCCESS) {
if (init_packet->msg.v5_msg.subchn_comp.num_subchannels > nvdev->num_chn - 1) {
init_packet->msg.v5_msg.subchn_comp.num_subchannels;
struct pci_packet init_packet;
pkt.init_packet.compl_ctxt = &comp_pkt;
pkt.init_packet.completion_func = q_resource_requirements;
(unsigned long)&pkt.init_packet,