Lines Matching refs:comp_pkt

573 	struct hv_pci_compl *comp_pkt = context;  in hv_pci_generic_compl()  local
576 comp_pkt->completion_status = resp->status; in hv_pci_generic_compl()
578 comp_pkt->completion_status = -1; in hv_pci_generic_compl()
580 complete(&comp_pkt->host_event); in hv_pci_generic_compl()
890 struct hv_pci_compl comp_pkt; member
913 comp->comp_pkt.completion_status = -1; in hv_pci_read_config_compl()
925 comp->comp_pkt.completion_status = read_resp->status; in hv_pci_read_config_compl()
927 complete(&comp->comp_pkt.host_event); in hv_pci_read_config_compl()
952 struct hv_read_config_compl comp_pkt; in hv_read_config_block() local
959 init_completion(&comp_pkt.comp_pkt.host_event); in hv_read_config_block()
960 comp_pkt.buf = buf; in hv_read_config_block()
961 comp_pkt.len = len; in hv_read_config_block()
965 pkt.pkt.compl_ctxt = &comp_pkt; in hv_read_config_block()
979 ret = wait_for_response(hbus->hdev, &comp_pkt.comp_pkt.host_event); in hv_read_config_block()
983 if (comp_pkt.comp_pkt.completion_status != 0 || in hv_read_config_block()
984 comp_pkt.bytes_returned == 0) { in hv_read_config_block()
987 comp_pkt.comp_pkt.completion_status, in hv_read_config_block()
988 comp_pkt.bytes_returned); in hv_read_config_block()
992 *bytes_returned = comp_pkt.bytes_returned; in hv_read_config_block()
1006 struct hv_pci_compl *comp_pkt = context; in hv_pci_write_config_compl() local
1008 comp_pkt->completion_status = resp->status; in hv_pci_write_config_compl()
1009 complete(&comp_pkt->host_event); in hv_pci_write_config_compl()
1033 struct hv_pci_compl comp_pkt; in hv_write_config_block() local
1041 init_completion(&comp_pkt.host_event); in hv_write_config_block()
1045 pkt.pkt.compl_ctxt = &comp_pkt; in hv_write_config_block()
1068 ret = wait_for_response(hbus->hdev, &comp_pkt.host_event); in hv_write_config_block()
1072 if (comp_pkt.completion_status != 0) { in hv_write_config_block()
1075 comp_pkt.completion_status); in hv_write_config_block()
1303 struct hv_pci_compl comp_pkt; member
1310 struct compose_comp_ctxt *comp_pkt = context; in hv_pci_compose_compl() local
1314 comp_pkt->comp_pkt.completion_status = resp->status; in hv_pci_compose_compl()
1315 comp_pkt->int_desc = int_resp->int_desc; in hv_pci_compose_compl()
1316 complete(&comp_pkt->comp_pkt.host_event); in hv_pci_compose_compl()
1416 init_completion(&comp.comp_pkt.host_event); in hv_compose_msi_msg()
1453 comp.comp_pkt.completion_status); in hv_compose_msi_msg()
1467 while (!try_wait_for_completion(&comp.comp_pkt.host_event)) { in hv_compose_msi_msg()
1503 if (comp.comp_pkt.completion_status < 0) { in hv_compose_msi_msg()
1506 comp.comp_pkt.completion_status); in hv_compose_msi_msg()
1935 struct q_res_req_compl comp_pkt; in new_pcichild_device() local
1950 init_completion(&comp_pkt.host_event); in new_pcichild_device()
1951 comp_pkt.hpdev = hpdev; in new_pcichild_device()
1952 pkt.init_packet.compl_ctxt = &comp_pkt; in new_pcichild_device()
1966 if (wait_for_response(hbus->hdev, &comp_pkt.host_event)) in new_pcichild_device()
2547 struct hv_pci_compl comp_pkt; in hv_pci_protocol_negotiation() local
2562 init_completion(&comp_pkt.host_event); in hv_pci_protocol_negotiation()
2564 pkt->compl_ctxt = &comp_pkt; in hv_pci_protocol_negotiation()
2575 ret = wait_for_response(hdev, &comp_pkt.host_event); in hv_pci_protocol_negotiation()
2584 if (comp_pkt.completion_status >= 0) { in hv_pci_protocol_negotiation()
2592 if (comp_pkt.completion_status != STATUS_REVISION_MISMATCH) { in hv_pci_protocol_negotiation()
2595 comp_pkt.completion_status); in hv_pci_protocol_negotiation()
2600 reinit_completion(&comp_pkt.host_event); in hv_pci_protocol_negotiation()
2770 struct hv_pci_compl comp_pkt; in hv_pci_enter_d0() local
2784 init_completion(&comp_pkt.host_event); in hv_pci_enter_d0()
2786 pkt->compl_ctxt = &comp_pkt; in hv_pci_enter_d0()
2795 ret = wait_for_response(hdev, &comp_pkt.host_event); in hv_pci_enter_d0()
2800 if (comp_pkt.completion_status < 0) { in hv_pci_enter_d0()
2803 comp_pkt.completion_status); in hv_pci_enter_d0()
2867 struct hv_pci_compl comp_pkt; in hv_send_resources_allocated() local
2889 init_completion(&comp_pkt.host_event); in hv_send_resources_allocated()
2891 pkt->compl_ctxt = &comp_pkt; in hv_send_resources_allocated()
2913 ret = wait_for_response(hdev, &comp_pkt.host_event); in hv_send_resources_allocated()
2917 if (comp_pkt.completion_status < 0) { in hv_send_resources_allocated()
2921 comp_pkt.completion_status); in hv_send_resources_allocated()
3251 struct hv_pci_compl comp_pkt; in hv_pci_bus_exit() local
3276 init_completion(&comp_pkt.host_event); in hv_pci_bus_exit()
3278 pkt.teardown_packet.compl_ctxt = &comp_pkt; in hv_pci_bus_exit()
3289 if (wait_for_completion_timeout(&comp_pkt.host_event, 10 * HZ) == 0) in hv_pci_bus_exit()