Lines Matching refs:apqi
412 unsigned long *apqi; member
444 if (qres->apid && qres->apqi) { in vfio_ap_has_queue()
445 qid = AP_MKQID(*qres->apid, *qres->apqi); in vfio_ap_has_queue()
448 } else if (qres->apid && !qres->apqi) { in vfio_ap_has_queue()
452 } else if (!qres->apid && qres->apqi) { in vfio_ap_has_queue()
454 if (id == *qres->apqi) in vfio_ap_has_queue()
486 unsigned long *apqi) in vfio_ap_verify_queue_reserved() argument
492 qres.apqi = apqi; in vfio_ap_verify_queue_reserved()
511 unsigned long apqi; in vfio_ap_mdev_verify_queues_reserved_for_apid() local
517 for_each_set_bit_inv(apqi, matrix_mdev->matrix.aqm, nbits) { in vfio_ap_mdev_verify_queues_reserved_for_apid()
518 ret = vfio_ap_verify_queue_reserved(&apid, &apqi); in vfio_ap_mdev_verify_queues_reserved_for_apid()
696 unsigned long apqi) in vfio_ap_mdev_verify_queues_reserved_for_apqi() argument
703 return vfio_ap_verify_queue_reserved(NULL, &apqi); in vfio_ap_mdev_verify_queues_reserved_for_apqi()
706 ret = vfio_ap_verify_queue_reserved(&apid, &apqi); in vfio_ap_mdev_verify_queues_reserved_for_apqi()
751 unsigned long apqi; in assign_domain_store() local
760 ret = kstrtoul(buf, 0, &apqi); in assign_domain_store()
763 if (apqi > max_apqi) in assign_domain_store()
768 ret = vfio_ap_mdev_verify_queues_reserved_for_apqi(matrix_mdev, apqi); in assign_domain_store()
772 set_bit_inv(apqi, matrix_mdev->matrix.aqm); in assign_domain_store()
782 clear_bit_inv(apqi, matrix_mdev->matrix.aqm); in assign_domain_store()
813 unsigned long apqi; in unassign_domain_store() local
821 ret = kstrtoul(buf, 0, &apqi); in unassign_domain_store()
825 if (apqi > matrix_mdev->matrix.aqm_max) in unassign_domain_store()
829 clear_bit_inv((unsigned long)apqi, matrix_mdev->matrix.aqm); in unassign_domain_store()
960 unsigned long apqi; in matrix_show() local
975 for_each_set_bit_inv(apqi, matrix_mdev->matrix.aqm, in matrix_show()
978 apqi); in matrix_show()
990 for_each_set_bit_inv(apqi, matrix_mdev->matrix.aqm, naqm_bits) { in matrix_show()
991 n = sprintf(bufpos, ".%04lx\n", apqi); in matrix_show()
1188 unsigned long apid, apqi; in vfio_ap_mdev_reset_queues() local
1194 for_each_set_bit_inv(apqi, matrix_mdev->matrix.aqm, in vfio_ap_mdev_reset_queues()
1196 q = vfio_ap_find_queue(AP_MKQID(apid, apqi)); in vfio_ap_mdev_reset_queues()