Lines Matching refs:apid

410 	unsigned long *apid;  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()
449 if (id == *qres->apid) in vfio_ap_has_queue()
451 } else if (!qres->apid && qres->apqi) { in vfio_ap_has_queue()
484 static int vfio_ap_verify_queue_reserved(unsigned long *apid, in vfio_ap_verify_queue_reserved() argument
490 qres.apid = apid; in vfio_ap_verify_queue_reserved()
507 unsigned long apid) in vfio_ap_mdev_verify_queues_reserved_for_apid() argument
514 return vfio_ap_verify_queue_reserved(&apid, NULL); 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()
604 unsigned long apid; in assign_adapter_store() local
612 ret = kstrtoul(buf, 0, &apid); in assign_adapter_store()
616 if (apid > matrix_mdev->matrix.apm_max) in assign_adapter_store()
626 ret = vfio_ap_mdev_verify_queues_reserved_for_apid(matrix_mdev, apid); in assign_adapter_store()
630 set_bit_inv(apid, matrix_mdev->matrix.apm); in assign_adapter_store()
640 clear_bit_inv(apid, matrix_mdev->matrix.apm); in assign_adapter_store()
670 unsigned long apid; in unassign_adapter_store() local
678 ret = kstrtoul(buf, 0, &apid); in unassign_adapter_store()
682 if (apid > matrix_mdev->matrix.apm_max) in unassign_adapter_store()
686 clear_bit_inv((unsigned long)apid, matrix_mdev->matrix.apm); in unassign_adapter_store()
698 unsigned long apid; in vfio_ap_mdev_verify_queues_reserved_for_apqi() local
704 for_each_set_bit_inv(apid, matrix_mdev->matrix.apm, nbits) { 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()
958 unsigned long apid; in matrix_show() local
973 for_each_set_bit_inv(apid, matrix_mdev->matrix.apm, napm_bits) { in matrix_show()
976 n = sprintf(bufpos, "%02lx.%04lx\n", apid, in matrix_show()
983 for_each_set_bit_inv(apid, matrix_mdev->matrix.apm, napm_bits) { in matrix_show()
984 n = sprintf(bufpos, "%02lx.\n", apid); 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
1168 for_each_set_bit_inv(apid, matrix_mdev->matrix.apm, 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()