Lines Matching refs:comp_pkt

533 	struct hv_pci_compl *comp_pkt = context;  in hv_pci_generic_compl()  local
536 comp_pkt->completion_status = resp->status; in hv_pci_generic_compl()
538 comp_pkt->completion_status = -1; in hv_pci_generic_compl()
540 complete(&comp_pkt->host_event); in hv_pci_generic_compl()
1003 struct hv_pci_compl comp_pkt; member
1010 struct compose_comp_ctxt *comp_pkt = context; in hv_pci_compose_compl() local
1014 comp_pkt->comp_pkt.completion_status = resp->status; in hv_pci_compose_compl()
1015 comp_pkt->int_desc = int_resp->int_desc; in hv_pci_compose_compl()
1016 complete(&comp_pkt->comp_pkt.host_event); in hv_pci_compose_compl()
1115 init_completion(&comp.comp_pkt.host_event); in hv_compose_msi_msg()
1151 comp.comp_pkt.completion_status); in hv_compose_msi_msg()
1159 while (!try_wait_for_completion(&comp.comp_pkt.host_event)) { in hv_compose_msi_msg()
1192 if (comp.comp_pkt.completion_status < 0) { in hv_compose_msi_msg()
1195 comp.comp_pkt.completion_status); in hv_compose_msi_msg()
1576 struct q_res_req_compl comp_pkt; in new_pcichild_device() local
1591 init_completion(&comp_pkt.host_event); in new_pcichild_device()
1592 comp_pkt.hpdev = hpdev; in new_pcichild_device()
1593 pkt.init_packet.compl_ctxt = &comp_pkt; in new_pcichild_device()
1607 if (wait_for_response(hbus->hdev, &comp_pkt.host_event)) in new_pcichild_device()
2066 struct hv_pci_compl comp_pkt; in hv_pci_protocol_negotiation() local
2081 init_completion(&comp_pkt.host_event); in hv_pci_protocol_negotiation()
2083 pkt->compl_ctxt = &comp_pkt; in hv_pci_protocol_negotiation()
2094 ret = wait_for_response(hdev, &comp_pkt.host_event); in hv_pci_protocol_negotiation()
2103 if (comp_pkt.completion_status >= 0) { in hv_pci_protocol_negotiation()
2111 if (comp_pkt.completion_status != STATUS_REVISION_MISMATCH) { in hv_pci_protocol_negotiation()
2114 comp_pkt.completion_status); in hv_pci_protocol_negotiation()
2119 reinit_completion(&comp_pkt.host_event); in hv_pci_protocol_negotiation()
2287 struct hv_pci_compl comp_pkt; in hv_pci_enter_d0() local
2301 init_completion(&comp_pkt.host_event); in hv_pci_enter_d0()
2303 pkt->compl_ctxt = &comp_pkt; in hv_pci_enter_d0()
2312 ret = wait_for_response(hdev, &comp_pkt.host_event); in hv_pci_enter_d0()
2317 if (comp_pkt.completion_status < 0) { in hv_pci_enter_d0()
2320 comp_pkt.completion_status); in hv_pci_enter_d0()
2384 struct hv_pci_compl comp_pkt; in hv_send_resources_allocated() local
2406 init_completion(&comp_pkt.host_event); in hv_send_resources_allocated()
2408 pkt->compl_ctxt = &comp_pkt; in hv_send_resources_allocated()
2430 ret = wait_for_response(hdev, &comp_pkt.host_event); in hv_send_resources_allocated()
2434 if (comp_pkt.completion_status < 0) { in hv_send_resources_allocated()
2438 comp_pkt.completion_status); in hv_send_resources_allocated()
2635 struct hv_pci_compl comp_pkt; in hv_pci_bus_exit() local
2655 init_completion(&comp_pkt.host_event); in hv_pci_bus_exit()
2657 pkt.teardown_packet.compl_ctxt = &comp_pkt; in hv_pci_bus_exit()
2666 wait_for_completion_timeout(&comp_pkt.host_event, 10 * HZ); in hv_pci_bus_exit()