Lines Matching refs:apqi

411 	unsigned long *apqi;  member
443 if (qres->apid && qres->apqi) { in vfio_ap_has_queue()
444 qid = AP_MKQID(*qres->apid, *qres->apqi); in vfio_ap_has_queue()
447 } else if (qres->apid && !qres->apqi) { in vfio_ap_has_queue()
451 } else if (!qres->apid && qres->apqi) { in vfio_ap_has_queue()
453 if (id == *qres->apqi) in vfio_ap_has_queue()
485 unsigned long *apqi) in vfio_ap_verify_queue_reserved() argument
491 qres.apqi = apqi; in vfio_ap_verify_queue_reserved()
510 unsigned long apqi; in vfio_ap_mdev_verify_queues_reserved_for_apid() local
516 for_each_set_bit_inv(apqi, matrix_mdev->matrix.aqm, nbits) { in vfio_ap_mdev_verify_queues_reserved_for_apid()
517 ret = vfio_ap_verify_queue_reserved(&apid, &apqi); in vfio_ap_mdev_verify_queues_reserved_for_apid()
695 unsigned long apqi) in vfio_ap_mdev_verify_queues_reserved_for_apqi() argument
702 return vfio_ap_verify_queue_reserved(NULL, &apqi); in vfio_ap_mdev_verify_queues_reserved_for_apqi()
705 ret = vfio_ap_verify_queue_reserved(&apid, &apqi); in vfio_ap_mdev_verify_queues_reserved_for_apqi()
750 unsigned long apqi; in assign_domain_store() local
759 ret = kstrtoul(buf, 0, &apqi); in assign_domain_store()
762 if (apqi > max_apqi) in assign_domain_store()
767 ret = vfio_ap_mdev_verify_queues_reserved_for_apqi(matrix_mdev, apqi); in assign_domain_store()
771 set_bit_inv(apqi, matrix_mdev->matrix.aqm); in assign_domain_store()
781 clear_bit_inv(apqi, matrix_mdev->matrix.aqm); in assign_domain_store()
812 unsigned long apqi; in unassign_domain_store() local
820 ret = kstrtoul(buf, 0, &apqi); in unassign_domain_store()
824 if (apqi > matrix_mdev->matrix.aqm_max) in unassign_domain_store()
828 clear_bit_inv((unsigned long)apqi, matrix_mdev->matrix.aqm); in unassign_domain_store()
959 unsigned long apqi; in matrix_show() local
974 for_each_set_bit_inv(apqi, matrix_mdev->matrix.aqm, in matrix_show()
977 apqi); in matrix_show()
989 for_each_set_bit_inv(apqi, matrix_mdev->matrix.aqm, naqm_bits) { in matrix_show()
990 n = sprintf(bufpos, ".%04lx\n", apqi); in matrix_show()
1131 int vfio_ap_mdev_reset_queue(unsigned int apid, unsigned int apqi, in vfio_ap_mdev_reset_queue() argument
1136 int apqn = AP_MKQID(apid, apqi); in vfio_ap_mdev_reset_queue()
1165 unsigned long apid, apqi; in vfio_ap_mdev_reset_queues() local
1170 for_each_set_bit_inv(apqi, matrix_mdev->matrix.aqm, in vfio_ap_mdev_reset_queues()
1172 ret = vfio_ap_mdev_reset_queue(apid, apqi, 1); in vfio_ap_mdev_reset_queues()
1180 vfio_ap_irq_disable_apqn(AP_MKQID(apid, apqi)); in vfio_ap_mdev_reset_queues()