Lines Matching refs:apqi
412 unsigned long *apqi;
423 * apid or apqi specified in @data:
425 * - If @data contains both an apid and apqi value, then @data will be flagged
431 * - If @data contains only an apqi value, @data will be flagged as
435 * @data does not contain either an apid or apqi.
444 if (qres->apid && qres->apqi) {
445 qid = AP_MKQID(*qres->apid, *qres->apqi);
448 } else if (qres->apid && !qres->apqi) {
452 } else if (!qres->apid && qres->apqi) {
454 if (id == *qres->apqi)
468 * @apqi: an AP queue index
470 * Verifies that the AP queue with @apid/@apqi is reserved by the VFIO AP device
473 * - If both @apid and @apqi are not NULL, then there must be an AP queue
475 * @apqi
480 * - If only @apqi is not NULL, then there must be an AP queue device bound
481 * to the vfio_ap driver with an APQN containing @apqi
486 unsigned long *apqi)
492 qres.apqi = apqi;
511 unsigned long apqi;
517 for_each_set_bit_inv(apqi, matrix_mdev->matrix.aqm, nbits) {
518 ret = vfio_ap_verify_queue_reserved(&apid, &apqi);
696 unsigned long apqi)
703 return vfio_ap_verify_queue_reserved(NULL, &apqi);
706 ret = vfio_ap_verify_queue_reserved(&apid, &apqi);
751 unsigned long apqi;
760 ret = kstrtoul(buf, 0, &apqi);
763 if (apqi > max_apqi)
768 ret = vfio_ap_mdev_verify_queues_reserved_for_apqi(matrix_mdev, apqi);
772 set_bit_inv(apqi, matrix_mdev->matrix.aqm);
782 clear_bit_inv(apqi, matrix_mdev->matrix.aqm);
813 unsigned long apqi;
821 ret = kstrtoul(buf, 0, &apqi);
825 if (apqi > matrix_mdev->matrix.aqm_max)
829 clear_bit_inv((unsigned long)apqi, matrix_mdev->matrix.aqm);
960 unsigned long apqi;
975 for_each_set_bit_inv(apqi, matrix_mdev->matrix.aqm,
978 apqi);
990 for_each_set_bit_inv(apqi, matrix_mdev->matrix.aqm, naqm_bits) {
991 n = sprintf(bufpos, ".%04lx\n", apqi);
1188 unsigned long apid, apqi;
1194 for_each_set_bit_inv(apqi, matrix_mdev->matrix.aqm,
1196 q = vfio_ap_find_queue(AP_MKQID(apid, apqi));