Lines Matching refs:comp_pkt
1022 struct hv_pci_compl *comp_pkt = context; in hv_pci_generic_compl() local
1024 comp_pkt->completion_status = resp->status; in hv_pci_generic_compl()
1025 complete(&comp_pkt->host_event); in hv_pci_generic_compl()
1433 struct hv_pci_compl comp_pkt; member
1456 comp->comp_pkt.completion_status = -1; in hv_pci_read_config_compl()
1468 comp->comp_pkt.completion_status = read_resp->status; in hv_pci_read_config_compl()
1470 complete(&comp->comp_pkt.host_event); in hv_pci_read_config_compl()
1495 struct hv_read_config_compl comp_pkt; in hv_read_config_block() local
1502 init_completion(&comp_pkt.comp_pkt.host_event); in hv_read_config_block()
1503 comp_pkt.buf = buf; in hv_read_config_block()
1504 comp_pkt.len = len; in hv_read_config_block()
1508 pkt.pkt.compl_ctxt = &comp_pkt; in hv_read_config_block()
1522 ret = wait_for_response(hbus->hdev, &comp_pkt.comp_pkt.host_event); in hv_read_config_block()
1526 if (comp_pkt.comp_pkt.completion_status != 0 || in hv_read_config_block()
1527 comp_pkt.bytes_returned == 0) { in hv_read_config_block()
1530 comp_pkt.comp_pkt.completion_status, in hv_read_config_block()
1531 comp_pkt.bytes_returned); in hv_read_config_block()
1535 *bytes_returned = comp_pkt.bytes_returned; in hv_read_config_block()
1549 struct hv_pci_compl *comp_pkt = context; in hv_pci_write_config_compl() local
1551 comp_pkt->completion_status = resp->status; in hv_pci_write_config_compl()
1552 complete(&comp_pkt->host_event); in hv_pci_write_config_compl()
1576 struct hv_pci_compl comp_pkt; in hv_write_config_block() local
1584 init_completion(&comp_pkt.host_event); in hv_write_config_block()
1588 pkt.pkt.compl_ctxt = &comp_pkt; in hv_write_config_block()
1611 ret = wait_for_response(hbus->hdev, &comp_pkt.host_event); in hv_write_config_block()
1615 if (comp_pkt.completion_status != 0) { in hv_write_config_block()
1618 comp_pkt.completion_status); in hv_write_config_block()
1733 struct hv_pci_compl comp_pkt; member
1740 struct compose_comp_ctxt *comp_pkt = context; in hv_pci_compose_compl() local
1745 comp_pkt->comp_pkt.completion_status = -1; in hv_pci_compose_compl()
1748 comp_pkt->comp_pkt.completion_status = resp->status; in hv_pci_compose_compl()
1749 comp_pkt->int_desc = int_resp->int_desc; in hv_pci_compose_compl()
1751 complete(&comp_pkt->comp_pkt.host_event); in hv_pci_compose_compl()
1980 init_completion(&comp.comp_pkt.host_event); in hv_compose_msi_msg()
2026 comp.comp_pkt.completion_status); in hv_compose_msi_msg()
2040 while (!try_wait_for_completion(&comp.comp_pkt.host_event)) { in hv_compose_msi_msg()
2070 if (comp.comp_pkt.completion_status < 0) { in hv_compose_msi_msg()
2073 comp.comp_pkt.completion_status); in hv_compose_msi_msg()
2592 struct q_res_req_compl comp_pkt; in new_pcichild_device() local
2607 init_completion(&comp_pkt.host_event); in new_pcichild_device()
2608 comp_pkt.hpdev = hpdev; in new_pcichild_device()
2609 pkt.init_packet.compl_ctxt = &comp_pkt; in new_pcichild_device()
2623 if (wait_for_response(hbus->hdev, &comp_pkt.host_event)) in new_pcichild_device()
3229 struct hv_pci_compl comp_pkt; in hv_pci_protocol_negotiation() local
3244 init_completion(&comp_pkt.host_event); in hv_pci_protocol_negotiation()
3246 pkt->compl_ctxt = &comp_pkt; in hv_pci_protocol_negotiation()
3257 ret = wait_for_response(hdev, &comp_pkt.host_event); in hv_pci_protocol_negotiation()
3266 if (comp_pkt.completion_status >= 0) { in hv_pci_protocol_negotiation()
3274 if (comp_pkt.completion_status != STATUS_REVISION_MISMATCH) { in hv_pci_protocol_negotiation()
3277 comp_pkt.completion_status); in hv_pci_protocol_negotiation()
3282 reinit_completion(&comp_pkt.host_event); in hv_pci_protocol_negotiation()
3450 struct hv_pci_compl comp_pkt; in hv_pci_enter_d0() local
3466 init_completion(&comp_pkt.host_event); in hv_pci_enter_d0()
3468 pkt->compl_ctxt = &comp_pkt; in hv_pci_enter_d0()
3477 ret = wait_for_response(hdev, &comp_pkt.host_event); in hv_pci_enter_d0()
3489 if (comp_pkt.completion_status < 0 && retry) { in hv_pci_enter_d0()
3514 if (comp_pkt.completion_status < 0) { in hv_pci_enter_d0()
3517 comp_pkt.completion_status); in hv_pci_enter_d0()
3599 struct hv_pci_compl comp_pkt; in hv_send_resources_allocated() local
3621 init_completion(&comp_pkt.host_event); in hv_send_resources_allocated()
3623 pkt->compl_ctxt = &comp_pkt; in hv_send_resources_allocated()
3645 ret = wait_for_response(hdev, &comp_pkt.host_event); in hv_send_resources_allocated()
3649 if (comp_pkt.completion_status < 0) { in hv_send_resources_allocated()
3653 comp_pkt.completion_status); in hv_send_resources_allocated()
3939 struct hv_pci_compl comp_pkt; in hv_pci_bus_exit() local
3981 init_completion(&comp_pkt.host_event); in hv_pci_bus_exit()
3983 pkt.teardown_packet.compl_ctxt = &comp_pkt; in hv_pci_bus_exit()
3994 if (wait_for_completion_timeout(&comp_pkt.host_event, 10 * HZ) == 0) { in hv_pci_bus_exit()