Lines Matching refs:comp_pkt

954 	struct hv_pci_compl *comp_pkt = context;  in hv_pci_generic_compl()  local
956 comp_pkt->completion_status = resp->status; in hv_pci_generic_compl()
957 complete(&comp_pkt->host_event); in hv_pci_generic_compl()
1365 struct hv_pci_compl comp_pkt; member
1388 comp->comp_pkt.completion_status = -1; in hv_pci_read_config_compl()
1400 comp->comp_pkt.completion_status = read_resp->status; in hv_pci_read_config_compl()
1402 complete(&comp->comp_pkt.host_event); in hv_pci_read_config_compl()
1427 struct hv_read_config_compl comp_pkt; in hv_read_config_block() local
1434 init_completion(&comp_pkt.comp_pkt.host_event); in hv_read_config_block()
1435 comp_pkt.buf = buf; in hv_read_config_block()
1436 comp_pkt.len = len; in hv_read_config_block()
1440 pkt.pkt.compl_ctxt = &comp_pkt; in hv_read_config_block()
1454 ret = wait_for_response(hbus->hdev, &comp_pkt.comp_pkt.host_event); in hv_read_config_block()
1458 if (comp_pkt.comp_pkt.completion_status != 0 || in hv_read_config_block()
1459 comp_pkt.bytes_returned == 0) { in hv_read_config_block()
1462 comp_pkt.comp_pkt.completion_status, in hv_read_config_block()
1463 comp_pkt.bytes_returned); in hv_read_config_block()
1467 *bytes_returned = comp_pkt.bytes_returned; in hv_read_config_block()
1481 struct hv_pci_compl *comp_pkt = context; in hv_pci_write_config_compl() local
1483 comp_pkt->completion_status = resp->status; in hv_pci_write_config_compl()
1484 complete(&comp_pkt->host_event); in hv_pci_write_config_compl()
1508 struct hv_pci_compl comp_pkt; in hv_write_config_block() local
1516 init_completion(&comp_pkt.host_event); in hv_write_config_block()
1520 pkt.pkt.compl_ctxt = &comp_pkt; in hv_write_config_block()
1543 ret = wait_for_response(hbus->hdev, &comp_pkt.host_event); in hv_write_config_block()
1547 if (comp_pkt.completion_status != 0) { in hv_write_config_block()
1550 comp_pkt.completion_status); in hv_write_config_block()
1667 struct hv_pci_compl comp_pkt; member
1674 struct compose_comp_ctxt *comp_pkt = context; in hv_pci_compose_compl() local
1679 comp_pkt->comp_pkt.completion_status = -1; in hv_pci_compose_compl()
1682 comp_pkt->comp_pkt.completion_status = resp->status; in hv_pci_compose_compl()
1683 comp_pkt->int_desc = int_resp->int_desc; in hv_pci_compose_compl()
1685 complete(&comp_pkt->comp_pkt.host_event); in hv_pci_compose_compl()
1915 init_completion(&comp.comp_pkt.host_event); in hv_compose_msi_msg()
1961 comp.comp_pkt.completion_status); in hv_compose_msi_msg()
1975 while (!try_wait_for_completion(&comp.comp_pkt.host_event)) { in hv_compose_msi_msg()
2005 if (comp.comp_pkt.completion_status < 0) { in hv_compose_msi_msg()
2008 comp.comp_pkt.completion_status); in hv_compose_msi_msg()
2466 struct q_res_req_compl comp_pkt; in new_pcichild_device() local
2481 init_completion(&comp_pkt.host_event); in new_pcichild_device()
2482 comp_pkt.hpdev = hpdev; in new_pcichild_device()
2483 pkt.init_packet.compl_ctxt = &comp_pkt; in new_pcichild_device()
2497 if (wait_for_response(hbus->hdev, &comp_pkt.host_event)) in new_pcichild_device()
3103 struct hv_pci_compl comp_pkt; in hv_pci_protocol_negotiation() local
3118 init_completion(&comp_pkt.host_event); in hv_pci_protocol_negotiation()
3120 pkt->compl_ctxt = &comp_pkt; in hv_pci_protocol_negotiation()
3131 ret = wait_for_response(hdev, &comp_pkt.host_event); in hv_pci_protocol_negotiation()
3140 if (comp_pkt.completion_status >= 0) { in hv_pci_protocol_negotiation()
3148 if (comp_pkt.completion_status != STATUS_REVISION_MISMATCH) { in hv_pci_protocol_negotiation()
3151 comp_pkt.completion_status); in hv_pci_protocol_negotiation()
3156 reinit_completion(&comp_pkt.host_event); in hv_pci_protocol_negotiation()
3324 struct hv_pci_compl comp_pkt; in hv_pci_enter_d0() local
3340 init_completion(&comp_pkt.host_event); in hv_pci_enter_d0()
3342 pkt->compl_ctxt = &comp_pkt; in hv_pci_enter_d0()
3351 ret = wait_for_response(hdev, &comp_pkt.host_event); in hv_pci_enter_d0()
3363 if (comp_pkt.completion_status < 0 && retry) { in hv_pci_enter_d0()
3388 if (comp_pkt.completion_status < 0) { in hv_pci_enter_d0()
3391 comp_pkt.completion_status); in hv_pci_enter_d0()
3473 struct hv_pci_compl comp_pkt; in hv_send_resources_allocated() local
3495 init_completion(&comp_pkt.host_event); in hv_send_resources_allocated()
3497 pkt->compl_ctxt = &comp_pkt; in hv_send_resources_allocated()
3519 ret = wait_for_response(hdev, &comp_pkt.host_event); in hv_send_resources_allocated()
3523 if (comp_pkt.completion_status < 0) { in hv_send_resources_allocated()
3527 comp_pkt.completion_status); in hv_send_resources_allocated()
3812 struct hv_pci_compl comp_pkt; in hv_pci_bus_exit() local
3854 init_completion(&comp_pkt.host_event); in hv_pci_bus_exit()
3856 pkt.teardown_packet.compl_ctxt = &comp_pkt; in hv_pci_bus_exit()
3867 if (wait_for_completion_timeout(&comp_pkt.host_event, 10 * HZ) == 0) { in hv_pci_bus_exit()