Lines Matching refs:comp_pkt

599 	struct hv_pci_compl *comp_pkt = context;  in hv_pci_generic_compl()  local
602 comp_pkt->completion_status = resp->status; in hv_pci_generic_compl()
604 comp_pkt->completion_status = -1; in hv_pci_generic_compl()
606 complete(&comp_pkt->host_event); in hv_pci_generic_compl()
913 struct hv_pci_compl comp_pkt; member
936 comp->comp_pkt.completion_status = -1; in hv_pci_read_config_compl()
948 comp->comp_pkt.completion_status = read_resp->status; in hv_pci_read_config_compl()
950 complete(&comp->comp_pkt.host_event); in hv_pci_read_config_compl()
975 struct hv_read_config_compl comp_pkt; in hv_read_config_block() local
982 init_completion(&comp_pkt.comp_pkt.host_event); in hv_read_config_block()
983 comp_pkt.buf = buf; in hv_read_config_block()
984 comp_pkt.len = len; in hv_read_config_block()
988 pkt.pkt.compl_ctxt = &comp_pkt; in hv_read_config_block()
1002 ret = wait_for_response(hbus->hdev, &comp_pkt.comp_pkt.host_event); in hv_read_config_block()
1006 if (comp_pkt.comp_pkt.completion_status != 0 || in hv_read_config_block()
1007 comp_pkt.bytes_returned == 0) { in hv_read_config_block()
1010 comp_pkt.comp_pkt.completion_status, in hv_read_config_block()
1011 comp_pkt.bytes_returned); in hv_read_config_block()
1015 *bytes_returned = comp_pkt.bytes_returned; in hv_read_config_block()
1029 struct hv_pci_compl *comp_pkt = context; in hv_pci_write_config_compl() local
1031 comp_pkt->completion_status = resp->status; in hv_pci_write_config_compl()
1032 complete(&comp_pkt->host_event); in hv_pci_write_config_compl()
1056 struct hv_pci_compl comp_pkt; in hv_write_config_block() local
1064 init_completion(&comp_pkt.host_event); in hv_write_config_block()
1068 pkt.pkt.compl_ctxt = &comp_pkt; in hv_write_config_block()
1091 ret = wait_for_response(hbus->hdev, &comp_pkt.host_event); in hv_write_config_block()
1095 if (comp_pkt.completion_status != 0) { in hv_write_config_block()
1098 comp_pkt.completion_status); in hv_write_config_block()
1326 struct hv_pci_compl comp_pkt; member
1333 struct compose_comp_ctxt *comp_pkt = context; in hv_pci_compose_compl() local
1337 comp_pkt->comp_pkt.completion_status = resp->status; in hv_pci_compose_compl()
1338 comp_pkt->int_desc = int_resp->int_desc; in hv_pci_compose_compl()
1339 complete(&comp_pkt->comp_pkt.host_event); in hv_pci_compose_compl()
1464 init_completion(&comp.comp_pkt.host_event); in hv_compose_msi_msg()
1508 comp.comp_pkt.completion_status); in hv_compose_msi_msg()
1522 while (!try_wait_for_completion(&comp.comp_pkt.host_event)) { in hv_compose_msi_msg()
1558 if (comp.comp_pkt.completion_status < 0) { in hv_compose_msi_msg()
1561 comp.comp_pkt.completion_status); in hv_compose_msi_msg()
1990 struct q_res_req_compl comp_pkt; in new_pcichild_device() local
2005 init_completion(&comp_pkt.host_event); in new_pcichild_device()
2006 comp_pkt.hpdev = hpdev; in new_pcichild_device()
2007 pkt.init_packet.compl_ctxt = &comp_pkt; in new_pcichild_device()
2021 if (wait_for_response(hbus->hdev, &comp_pkt.host_event)) in new_pcichild_device()
2594 struct hv_pci_compl comp_pkt; in hv_pci_protocol_negotiation() local
2609 init_completion(&comp_pkt.host_event); in hv_pci_protocol_negotiation()
2611 pkt->compl_ctxt = &comp_pkt; in hv_pci_protocol_negotiation()
2622 ret = wait_for_response(hdev, &comp_pkt.host_event); in hv_pci_protocol_negotiation()
2631 if (comp_pkt.completion_status >= 0) { in hv_pci_protocol_negotiation()
2639 if (comp_pkt.completion_status != STATUS_REVISION_MISMATCH) { in hv_pci_protocol_negotiation()
2642 comp_pkt.completion_status); in hv_pci_protocol_negotiation()
2647 reinit_completion(&comp_pkt.host_event); in hv_pci_protocol_negotiation()
2815 struct hv_pci_compl comp_pkt; in hv_pci_enter_d0() local
2829 init_completion(&comp_pkt.host_event); in hv_pci_enter_d0()
2831 pkt->compl_ctxt = &comp_pkt; in hv_pci_enter_d0()
2840 ret = wait_for_response(hdev, &comp_pkt.host_event); in hv_pci_enter_d0()
2845 if (comp_pkt.completion_status < 0) { in hv_pci_enter_d0()
2848 comp_pkt.completion_status); in hv_pci_enter_d0()
2912 struct hv_pci_compl comp_pkt; in hv_send_resources_allocated() local
2934 init_completion(&comp_pkt.host_event); in hv_send_resources_allocated()
2936 pkt->compl_ctxt = &comp_pkt; in hv_send_resources_allocated()
2958 ret = wait_for_response(hdev, &comp_pkt.host_event); in hv_send_resources_allocated()
2962 if (comp_pkt.completion_status < 0) { in hv_send_resources_allocated()
2966 comp_pkt.completion_status); in hv_send_resources_allocated()
3291 struct hv_pci_compl comp_pkt; in hv_pci_bus_exit() local
3332 init_completion(&comp_pkt.host_event); in hv_pci_bus_exit()
3334 pkt.teardown_packet.compl_ctxt = &comp_pkt; in hv_pci_bus_exit()
3345 if (wait_for_completion_timeout(&comp_pkt.host_event, 10 * HZ) == 0) in hv_pci_bus_exit()