Lines Matching refs:status

225  * Checks the IRQ bit for the status of this APQN using ap_tapq.
233 struct ap_queue_status status;
237 status = ap_tapq(apqn, NULL);
238 switch (status.response_code) {
241 if (!status.irq_enabled)
252 status.response_code, apqn);
258 __func__, status.response_code, apqn);
305 struct ap_queue_status status;
309 status = ap_aqic(q->apqn, aqic_gisa, 0);
310 switch (status.response_code) {
325 WARN_ONCE(1, "%s: ap_aqic status %d\n", __func__,
326 status.response_code);
331 WARN_ONCE(1, "%s: ap_aqic status %d\n", __func__,
332 status.response_code);
335 return status;
397 * Response.status may be set to AP_RESPONSE_INVALID_ADDRESS in case the
410 struct ap_queue_status status = {};
424 status.response_code = AP_RESPONSE_INVALID_ADDRESS;
425 return status;
438 status.response_code = AP_RESPONSE_INVALID_ADDRESS;
439 return status;
452 status.response_code = AP_RESPONSE_INVALID_ADDRESS;
453 return status;
462 status.response_code = AP_RESPONSE_INVALID_GISA;
463 return status;
470 status = ap_aqic(q->apqn, aqic_gisa, h_nib);
471 switch (status.response_code) {
485 status.response_code);
490 if (status.response_code != AP_RESPONSE_NORMAL) {
491 VFIO_AP_DBF_WARN("%s: PQAP(AQIC) failed with status=%#02x: "
494 __func__, status.response_code,
500 return status;
555 * Response.status may be set to following Response Code:
568 uint64_t status;
615 status = vcpu->run->s.regs.gprs[1];
618 if ((status >> (63 - 16)) & 0x01)
619 qstatus = vfio_ap_irq_enable(q, status & 0x07, vcpu);
1686 static int apq_status_check(int apqn, struct ap_queue_status *status)
1688 switch (status->response_code) {
1709 status->response_code);
1719 struct ap_queue_status status;
1723 memcpy(&status, &q->reset_status, sizeof(status));
1727 status = ap_tapq(q->apqn, NULL);
1728 ret = apq_status_check(q->apqn, &status);
1735 status.response_code,
1736 status.queue_empty,
1737 status.irq_enabled);
1743 status = ap_zapq(q->apqn, 0);
1744 memcpy(&q->reset_status, &status, sizeof(status));
1750 * status response code to 0 so the queue may be
1753 if (status.response_code == AP_RESPONSE_DECONFIGURED)
1764 struct ap_queue_status status;
1768 status = ap_zapq(q->apqn, 0);
1769 memcpy(&q->reset_status, &status, sizeof(status));
1770 switch (status.response_code) {
1783 * queues are reset, so let's set the status response code to 0
1793 status.response_code);
2085 static DEVICE_ATTR_RO(status);
2408 struct ap_queue_status status;
2416 status = ap_test_queue(AP_MKQID(apid, apqi), 1, &info);
2417 switch (status.response_code) {