Lines Matching refs:apqn

36 static struct vfio_ap_queue *vfio_ap_find_queue(int apqn);
149 static struct ap_matrix_mdev *get_update_locks_by_apqn(int apqn) in get_update_locks_by_apqn() argument
156 if (test_bit_inv(AP_QID_CARD(apqn), matrix_mdev->matrix.apm) && in get_update_locks_by_apqn()
157 test_bit_inv(AP_QID_QUEUE(apqn), matrix_mdev->matrix.aqm)) { in get_update_locks_by_apqn()
207 int apqn) in vfio_ap_mdev_get_queue() argument
212 apqn) { in vfio_ap_mdev_get_queue()
213 if (q && q->apqn == apqn) in vfio_ap_mdev_get_queue()
230 static void vfio_ap_wait_for_irqclear(int apqn) in vfio_ap_wait_for_irqclear() argument
236 status = ap_tapq(apqn, NULL); in vfio_ap_wait_for_irqclear()
251 status.response_code, apqn); in vfio_ap_wait_for_irqclear()
257 __func__, status.response_code, apqn); in vfio_ap_wait_for_irqclear()
308 status = ap_aqic(q->apqn, aqic_gisa, 0); in vfio_ap_irq_disable()
312 vfio_ap_wait_for_irqclear(q->apqn); in vfio_ap_irq_disable()
421 __func__, &nib, q->apqn); in vfio_ap_irq_enable()
435 __func__, ret, &nib, q->apqn); in vfio_ap_irq_enable()
458 __func__, nisc, isc, q->apqn); in vfio_ap_irq_enable()
468 status = ap_aqic(q->apqn, aqic_gisa, h_nib); in vfio_ap_irq_enable()
482 pr_warn("%s: apqn %04x: response: %02x\n", __func__, q->apqn, in vfio_ap_irq_enable()
495 q->apqn); in vfio_ap_irq_enable()
567 uint16_t apqn; in handle_pqap() local
574 apqn = vcpu->run->s.regs.gprs[0] & 0xffff; in handle_pqap()
579 __func__, apqn, vcpu->arch.sie_block->eca); in handle_pqap()
588 __func__, apqn); in handle_pqap()
601 uuid[3], uuid[4], uuid[5], apqn); in handle_pqap()
605 q = vfio_ap_mdev_get_queue(matrix_mdev, apqn); in handle_pqap()
608 __func__, AP_QID_CARD(apqn), in handle_pqap()
609 AP_QID_QUEUE(apqn)); in handle_pqap()
676 unsigned long apid, apqi, apqn; in vfio_ap_mdev_filter_matrix() local
705 apqn = AP_MKQID(apid, apqi); in vfio_ap_mdev_filter_matrix()
706 q = vfio_ap_mdev_get_queue(matrix_mdev, apqn); in vfio_ap_mdev_filter_matrix()
765 hash_add(matrix_mdev->qtable.queues, &q->mdev_qnode, q->apqn); in vfio_ap_mdev_link_queue()
769 static void vfio_ap_mdev_link_apqn(struct ap_matrix_mdev *matrix_mdev, int apqn) in vfio_ap_mdev_link_apqn() argument
773 q = vfio_ap_find_queue(apqn); in vfio_ap_mdev_link_apqn()
1042 q->apqn); in vfio_ap_mdev_unlink_adapter()
1229 q->apqn); in vfio_ap_mdev_unlink_domain()
1619 static struct vfio_ap_queue *vfio_ap_find_queue(int apqn) in vfio_ap_find_queue() argument
1624 queue = ap_get_qdev(apqn); in vfio_ap_find_queue()
1636 static int apq_status_check(int apqn, struct ap_queue_status *status) in apq_status_check() argument
1658 AP_QID_CARD(apqn), AP_QID_QUEUE(apqn), in apq_status_check()
1677 status = ap_tapq(q->apqn, NULL); in apq_reset_check()
1678 ret = apq_status_check(q->apqn, &status); in apq_reset_check()
1683 AP_QID_CARD(q->apqn), in apq_reset_check()
1684 AP_QID_QUEUE(q->apqn), in apq_reset_check()
1693 status = ap_zapq(q->apqn, 0); in apq_reset_check()
1718 status = ap_zapq(q->apqn, 0); in vfio_ap_mdev_reset_queue()
1742 AP_QID_CARD(q->apqn), AP_QID_QUEUE(q->apqn), in vfio_ap_mdev_reset_queue()
1961 unsigned long apid = AP_QID_CARD(q->apqn); in vfio_ap_mdev_for_queue()
1962 unsigned long apqi = AP_QID_QUEUE(q->apqn); in vfio_ap_mdev_for_queue()
2085 q->apqn = to_ap_queue(&apdev->device)->qid; in vfio_ap_mdev_probe_queue()
2089 matrix_mdev = get_update_locks_by_apqn(q->apqn); in vfio_ap_mdev_probe_queue()
2123 apid = AP_QID_CARD(q->apqn); in vfio_ap_mdev_remove_queue()
2124 apqi = AP_QID_QUEUE(q->apqn); in vfio_ap_mdev_remove_queue()