Searched refs:init_packet (Results 1 - 3 of 3) sorted by relevance

/linux-4.4.14/drivers/net/hyperv/
H A Dnetvsc.c229 struct nvsp_message *init_packet; netvsc_init_buf() local
266 init_packet = &net_device->channel_init_pkt; netvsc_init_buf()
268 memset(init_packet, 0, sizeof(struct nvsp_message)); netvsc_init_buf()
270 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_RECV_BUF; netvsc_init_buf()
271 init_packet->msg.v1_msg.send_recv_buf. netvsc_init_buf()
273 init_packet->msg.v1_msg. netvsc_init_buf()
277 ret = vmbus_sendpacket(device->channel, init_packet, netvsc_init_buf()
279 (unsigned long)init_packet, netvsc_init_buf()
293 if (init_packet->msg.v1_msg. netvsc_init_buf()
297 init_packet->msg.v1_msg. netvsc_init_buf()
305 net_device->recv_section_cnt = init_packet->msg. netvsc_init_buf()
309 init_packet->msg.v1_msg.send_recv_buf_complete.sections, netvsc_init_buf()
354 init_packet = &net_device->channel_init_pkt; netvsc_init_buf()
355 memset(init_packet, 0, sizeof(struct nvsp_message)); netvsc_init_buf()
356 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_SEND_BUF; netvsc_init_buf()
357 init_packet->msg.v1_msg.send_send_buf.gpadl_handle = netvsc_init_buf()
359 init_packet->msg.v1_msg.send_send_buf.id = NETVSC_SEND_BUFFER_ID; netvsc_init_buf()
362 ret = vmbus_sendpacket(device->channel, init_packet, netvsc_init_buf()
364 (unsigned long)init_packet, netvsc_init_buf()
377 if (init_packet->msg.v1_msg. netvsc_init_buf()
381 init_packet->msg.v1_msg. netvsc_init_buf()
388 net_device->send_section_size = init_packet->msg. netvsc_init_buf()
423 struct nvsp_message *init_packet, negotiate_nvsp_ver()
429 memset(init_packet, 0, sizeof(struct nvsp_message)); negotiate_nvsp_ver()
430 init_packet->hdr.msg_type = NVSP_MSG_TYPE_INIT; negotiate_nvsp_ver()
431 init_packet->msg.init_msg.init.min_protocol_ver = nvsp_ver; negotiate_nvsp_ver()
432 init_packet->msg.init_msg.init.max_protocol_ver = nvsp_ver; negotiate_nvsp_ver()
435 ret = vmbus_sendpacket(device->channel, init_packet, negotiate_nvsp_ver()
437 (unsigned long)init_packet, negotiate_nvsp_ver()
449 if (init_packet->msg.init_msg.init_complete.status != negotiate_nvsp_ver()
457 memset(init_packet, 0, sizeof(struct nvsp_message)); negotiate_nvsp_ver()
458 init_packet->hdr.msg_type = NVSP_MSG2_TYPE_SEND_NDIS_CONFIG; negotiate_nvsp_ver()
459 init_packet->msg.v2_msg.send_ndis_config.mtu = net_device->ndev->mtu + negotiate_nvsp_ver()
461 init_packet->msg.v2_msg.send_ndis_config.capability.ieee8021q = 1; negotiate_nvsp_ver()
464 init_packet->msg.v2_msg.send_ndis_config.capability.sriov = 1; negotiate_nvsp_ver()
466 ret = vmbus_sendpacket(device->channel, init_packet, negotiate_nvsp_ver()
468 (unsigned long)init_packet, negotiate_nvsp_ver()
478 struct nvsp_message *init_packet; netvsc_connect_vsp() local
490 init_packet = &net_device->channel_init_pkt; netvsc_connect_vsp()
494 if (negotiate_nvsp_ver(device, net_device, init_packet, netvsc_connect_vsp()
508 memset(init_packet, 0, sizeof(struct nvsp_message)); netvsc_connect_vsp()
515 init_packet->hdr.msg_type = NVSP_MSG1_TYPE_SEND_NDIS_VER; netvsc_connect_vsp()
516 init_packet->msg.v1_msg. netvsc_connect_vsp()
519 init_packet->msg.v1_msg. netvsc_connect_vsp()
524 ret = vmbus_sendpacket(device->channel, init_packet, netvsc_connect_vsp()
526 (unsigned long)init_packet, netvsc_connect_vsp()
421 negotiate_nvsp_ver(struct hv_device *device, struct netvsc_device *net_device, struct nvsp_message *init_packet, u32 nvsp_ver) negotiate_nvsp_ver() argument
H A Drndis_filter.c1019 struct nvsp_message *init_packet; rndis_filter_device_add() local
1151 init_packet = &net_device->channel_init_pkt; rndis_filter_device_add()
1152 memset(init_packet, 0, sizeof(struct nvsp_message)); rndis_filter_device_add()
1153 init_packet->hdr.msg_type = NVSP_MSG5_TYPE_SUBCHANNEL; rndis_filter_device_add()
1154 init_packet->msg.v5_msg.subchn_req.op = NVSP_SUBCHANNEL_ALLOCATE; rndis_filter_device_add()
1155 init_packet->msg.v5_msg.subchn_req.num_subchannels = rndis_filter_device_add()
1157 ret = vmbus_sendpacket(dev->channel, init_packet, rndis_filter_device_add()
1159 (unsigned long)init_packet, rndis_filter_device_add()
1169 if (init_packet->msg.v5_msg.subchn_comp.status != rndis_filter_device_add()
1175 init_packet->msg.v5_msg.subchn_comp.num_subchannels; rndis_filter_device_add()
/linux-4.4.14/drivers/staging/rdma/hfi1/
H A Ddriver.c421 static inline void init_packet(struct hfi1_ctxtdata *rcd, init_packet() function
752 init_packet(rcd, &packet); handle_receive_interrupt_nodma_rtail()
782 init_packet(rcd, &packet); handle_receive_interrupt_dma_rtail()
837 init_packet(rcd, &packet); handle_receive_interrupt()

Completed in 162 milliseconds