Lines Matching refs:comp_pkt
1021 struct hv_pci_compl *comp_pkt = context; in hv_pci_generic_compl() local
1023 comp_pkt->completion_status = resp->status; in hv_pci_generic_compl()
1024 complete(&comp_pkt->host_event); in hv_pci_generic_compl()
1432 struct hv_pci_compl comp_pkt; member
1455 comp->comp_pkt.completion_status = -1; in hv_pci_read_config_compl()
1467 comp->comp_pkt.completion_status = read_resp->status; in hv_pci_read_config_compl()
1469 complete(&comp->comp_pkt.host_event); in hv_pci_read_config_compl()
1494 struct hv_read_config_compl comp_pkt; in hv_read_config_block() local
1501 init_completion(&comp_pkt.comp_pkt.host_event); in hv_read_config_block()
1502 comp_pkt.buf = buf; in hv_read_config_block()
1503 comp_pkt.len = len; in hv_read_config_block()
1507 pkt.pkt.compl_ctxt = &comp_pkt; in hv_read_config_block()
1521 ret = wait_for_response(hbus->hdev, &comp_pkt.comp_pkt.host_event); in hv_read_config_block()
1525 if (comp_pkt.comp_pkt.completion_status != 0 || in hv_read_config_block()
1526 comp_pkt.bytes_returned == 0) { in hv_read_config_block()
1529 comp_pkt.comp_pkt.completion_status, in hv_read_config_block()
1530 comp_pkt.bytes_returned); in hv_read_config_block()
1534 *bytes_returned = comp_pkt.bytes_returned; in hv_read_config_block()
1548 struct hv_pci_compl *comp_pkt = context; in hv_pci_write_config_compl() local
1550 comp_pkt->completion_status = resp->status; in hv_pci_write_config_compl()
1551 complete(&comp_pkt->host_event); in hv_pci_write_config_compl()
1575 struct hv_pci_compl comp_pkt; in hv_write_config_block() local
1583 init_completion(&comp_pkt.host_event); in hv_write_config_block()
1587 pkt.pkt.compl_ctxt = &comp_pkt; in hv_write_config_block()
1610 ret = wait_for_response(hbus->hdev, &comp_pkt.host_event); in hv_write_config_block()
1614 if (comp_pkt.completion_status != 0) { in hv_write_config_block()
1617 comp_pkt.completion_status); in hv_write_config_block()
1730 struct hv_pci_compl comp_pkt; member
1737 struct compose_comp_ctxt *comp_pkt = context; in hv_pci_compose_compl() local
1742 comp_pkt->comp_pkt.completion_status = -1; in hv_pci_compose_compl()
1745 comp_pkt->comp_pkt.completion_status = resp->status; in hv_pci_compose_compl()
1746 comp_pkt->int_desc = int_resp->int_desc; in hv_pci_compose_compl()
1748 complete(&comp_pkt->comp_pkt.host_event); in hv_pci_compose_compl()
1977 init_completion(&comp.comp_pkt.host_event); in hv_compose_msi_msg()
2023 comp.comp_pkt.completion_status); in hv_compose_msi_msg()
2037 while (!try_wait_for_completion(&comp.comp_pkt.host_event)) { in hv_compose_msi_msg()
2067 if (comp.comp_pkt.completion_status < 0) { in hv_compose_msi_msg()
2070 comp.comp_pkt.completion_status); in hv_compose_msi_msg()
2595 struct q_res_req_compl comp_pkt; in new_pcichild_device() local
2610 init_completion(&comp_pkt.host_event); in new_pcichild_device()
2611 comp_pkt.hpdev = hpdev; in new_pcichild_device()
2612 pkt.init_packet.compl_ctxt = &comp_pkt; in new_pcichild_device()
2626 if (wait_for_response(hbus->hdev, &comp_pkt.host_event)) in new_pcichild_device()
3230 struct hv_pci_compl comp_pkt; in hv_pci_protocol_negotiation() local
3245 init_completion(&comp_pkt.host_event); in hv_pci_protocol_negotiation()
3247 pkt->compl_ctxt = &comp_pkt; in hv_pci_protocol_negotiation()
3258 ret = wait_for_response(hdev, &comp_pkt.host_event); in hv_pci_protocol_negotiation()
3267 if (comp_pkt.completion_status >= 0) { in hv_pci_protocol_negotiation()
3275 if (comp_pkt.completion_status != STATUS_REVISION_MISMATCH) { in hv_pci_protocol_negotiation()
3278 comp_pkt.completion_status); in hv_pci_protocol_negotiation()
3283 reinit_completion(&comp_pkt.host_event); in hv_pci_protocol_negotiation()
3451 struct hv_pci_compl comp_pkt; in hv_pci_enter_d0() local
3467 init_completion(&comp_pkt.host_event); in hv_pci_enter_d0()
3469 pkt->compl_ctxt = &comp_pkt; in hv_pci_enter_d0()
3478 ret = wait_for_response(hdev, &comp_pkt.host_event); in hv_pci_enter_d0()
3490 if (comp_pkt.completion_status < 0 && retry) { in hv_pci_enter_d0()
3515 if (comp_pkt.completion_status < 0) { in hv_pci_enter_d0()
3518 comp_pkt.completion_status); in hv_pci_enter_d0()
3600 struct hv_pci_compl comp_pkt; in hv_send_resources_allocated() local
3622 init_completion(&comp_pkt.host_event); in hv_send_resources_allocated()
3624 pkt->compl_ctxt = &comp_pkt; in hv_send_resources_allocated()
3646 ret = wait_for_response(hdev, &comp_pkt.host_event); in hv_send_resources_allocated()
3650 if (comp_pkt.completion_status < 0) { in hv_send_resources_allocated()
3654 comp_pkt.completion_status); in hv_send_resources_allocated()
3899 struct hv_pci_compl comp_pkt; in hv_pci_bus_exit() local
3941 init_completion(&comp_pkt.host_event); in hv_pci_bus_exit()
3943 pkt.teardown_packet.compl_ctxt = &comp_pkt; in hv_pci_bus_exit()
3954 if (wait_for_completion_timeout(&comp_pkt.host_event, 10 * HZ) == 0) { in hv_pci_bus_exit()