Lines Matching refs:comp_pkt
982 struct hv_pci_compl *comp_pkt = context; in hv_pci_generic_compl() local
984 comp_pkt->completion_status = resp->status; in hv_pci_generic_compl()
985 complete(&comp_pkt->host_event); in hv_pci_generic_compl()
1292 struct hv_pci_compl comp_pkt; member
1315 comp->comp_pkt.completion_status = -1; in hv_pci_read_config_compl()
1327 comp->comp_pkt.completion_status = read_resp->status; in hv_pci_read_config_compl()
1329 complete(&comp->comp_pkt.host_event); in hv_pci_read_config_compl()
1354 struct hv_read_config_compl comp_pkt; in hv_read_config_block() local
1361 init_completion(&comp_pkt.comp_pkt.host_event); in hv_read_config_block()
1362 comp_pkt.buf = buf; in hv_read_config_block()
1363 comp_pkt.len = len; in hv_read_config_block()
1367 pkt.pkt.compl_ctxt = &comp_pkt; in hv_read_config_block()
1381 ret = wait_for_response(hbus->hdev, &comp_pkt.comp_pkt.host_event); in hv_read_config_block()
1385 if (comp_pkt.comp_pkt.completion_status != 0 || in hv_read_config_block()
1386 comp_pkt.bytes_returned == 0) { in hv_read_config_block()
1389 comp_pkt.comp_pkt.completion_status, in hv_read_config_block()
1390 comp_pkt.bytes_returned); in hv_read_config_block()
1394 *bytes_returned = comp_pkt.bytes_returned; in hv_read_config_block()
1408 struct hv_pci_compl *comp_pkt = context; in hv_pci_write_config_compl() local
1410 comp_pkt->completion_status = resp->status; in hv_pci_write_config_compl()
1411 complete(&comp_pkt->host_event); in hv_pci_write_config_compl()
1435 struct hv_pci_compl comp_pkt; in hv_write_config_block() local
1443 init_completion(&comp_pkt.host_event); in hv_write_config_block()
1447 pkt.pkt.compl_ctxt = &comp_pkt; in hv_write_config_block()
1470 ret = wait_for_response(hbus->hdev, &comp_pkt.host_event); in hv_write_config_block()
1474 if (comp_pkt.completion_status != 0) { in hv_write_config_block()
1477 comp_pkt.completion_status); in hv_write_config_block()
1594 struct hv_pci_compl comp_pkt; member
1601 struct compose_comp_ctxt *comp_pkt = context; in hv_pci_compose_compl() local
1606 comp_pkt->comp_pkt.completion_status = -1; in hv_pci_compose_compl()
1609 comp_pkt->comp_pkt.completion_status = resp->status; in hv_pci_compose_compl()
1610 comp_pkt->int_desc = int_resp->int_desc; in hv_pci_compose_compl()
1612 complete(&comp_pkt->comp_pkt.host_event); in hv_pci_compose_compl()
1842 init_completion(&comp.comp_pkt.host_event); in hv_compose_msi_msg()
1888 comp.comp_pkt.completion_status); in hv_compose_msi_msg()
1902 while (!try_wait_for_completion(&comp.comp_pkt.host_event)) { in hv_compose_msi_msg()
1938 if (comp.comp_pkt.completion_status < 0) { in hv_compose_msi_msg()
1941 comp.comp_pkt.completion_status); in hv_compose_msi_msg()
2399 struct q_res_req_compl comp_pkt; in new_pcichild_device() local
2414 init_completion(&comp_pkt.host_event); in new_pcichild_device()
2415 comp_pkt.hpdev = hpdev; in new_pcichild_device()
2416 pkt.init_packet.compl_ctxt = &comp_pkt; in new_pcichild_device()
2430 if (wait_for_response(hbus->hdev, &comp_pkt.host_event)) in new_pcichild_device()
3031 struct hv_pci_compl comp_pkt; in hv_pci_protocol_negotiation() local
3046 init_completion(&comp_pkt.host_event); in hv_pci_protocol_negotiation()
3048 pkt->compl_ctxt = &comp_pkt; in hv_pci_protocol_negotiation()
3059 ret = wait_for_response(hdev, &comp_pkt.host_event); in hv_pci_protocol_negotiation()
3068 if (comp_pkt.completion_status >= 0) { in hv_pci_protocol_negotiation()
3076 if (comp_pkt.completion_status != STATUS_REVISION_MISMATCH) { in hv_pci_protocol_negotiation()
3079 comp_pkt.completion_status); in hv_pci_protocol_negotiation()
3084 reinit_completion(&comp_pkt.host_event); in hv_pci_protocol_negotiation()
3252 struct hv_pci_compl comp_pkt; in hv_pci_enter_d0() local
3266 init_completion(&comp_pkt.host_event); in hv_pci_enter_d0()
3268 pkt->compl_ctxt = &comp_pkt; in hv_pci_enter_d0()
3277 ret = wait_for_response(hdev, &comp_pkt.host_event); in hv_pci_enter_d0()
3282 if (comp_pkt.completion_status < 0) { in hv_pci_enter_d0()
3285 comp_pkt.completion_status); in hv_pci_enter_d0()
3349 struct hv_pci_compl comp_pkt; in hv_send_resources_allocated() local
3371 init_completion(&comp_pkt.host_event); in hv_send_resources_allocated()
3373 pkt->compl_ctxt = &comp_pkt; in hv_send_resources_allocated()
3395 ret = wait_for_response(hdev, &comp_pkt.host_event); in hv_send_resources_allocated()
3399 if (comp_pkt.completion_status < 0) { in hv_send_resources_allocated()
3403 comp_pkt.completion_status); in hv_send_resources_allocated()
3742 struct hv_pci_compl comp_pkt; in hv_pci_bus_exit() local
3784 init_completion(&comp_pkt.host_event); in hv_pci_bus_exit()
3786 pkt.teardown_packet.compl_ctxt = &comp_pkt; in hv_pci_bus_exit()
3797 if (wait_for_completion_timeout(&comp_pkt.host_event, 10 * HZ) == 0) { in hv_pci_bus_exit()