Lines Matching refs:apqi
684 unsigned long apid, apqi, apqn; in vfio_ap_mdev_filter_matrix() local
705 for_each_set_bit_inv(apqi, matrix_mdev->shadow_apcb.aqm, in vfio_ap_mdev_filter_matrix()
715 apqn = AP_MKQID(apid, apqi); in vfio_ap_mdev_filter_matrix()
808 unsigned long apid, apqi; in vfio_ap_mdev_unlink_fr_queues() local
811 for_each_set_bit_inv(apqi, matrix_mdev->matrix.aqm, in vfio_ap_mdev_unlink_fr_queues()
814 AP_MKQID(apid, apqi)); in vfio_ap_mdev_unlink_fr_queues()
844 unsigned long apid, apqi; in vfio_ap_mdev_log_sharing_err() local
849 for_each_set_bit_inv(apqi, aqm, AP_DOMAINS) in vfio_ap_mdev_log_sharing_err()
850 dev_warn(dev, MDEV_SHARING_ERR, apid, apqi, mdev_name); in vfio_ap_mdev_log_sharing_err()
932 unsigned long apqi; in vfio_ap_mdev_link_adapter() local
934 for_each_set_bit_inv(apqi, matrix_mdev->matrix.aqm, AP_DOMAINS) in vfio_ap_mdev_link_adapter()
936 AP_MKQID(apid, apqi)); in vfio_ap_mdev_link_adapter()
944 unsigned long apqi; in collect_queues_to_reset() local
946 for_each_set_bit_inv(apqi, matrix_mdev->shadow_apcb.aqm, AP_DOMAINS) { in collect_queues_to_reset()
947 q = vfio_ap_mdev_get_queue(matrix_mdev, AP_MKQID(apid, apqi)); in collect_queues_to_reset()
1066 unsigned long apid, unsigned long apqi) in vfio_ap_unlink_apqn_fr_mdev() argument
1070 q = vfio_ap_mdev_get_queue(matrix_mdev, AP_MKQID(apid, apqi)); in vfio_ap_unlink_apqn_fr_mdev()
1091 unsigned long apqi; in vfio_ap_mdev_unlink_adapter() local
1094 for_each_set_bit_inv(apqi, matrix_mdev->matrix.aqm, AP_DOMAINS) { in vfio_ap_mdev_unlink_adapter()
1095 q = vfio_ap_unlink_apqn_fr_mdev(matrix_mdev, apid, apqi); in vfio_ap_mdev_unlink_adapter()
1099 test_bit_inv(apqi, matrix_mdev->shadow_apcb.aqm)) in vfio_ap_mdev_unlink_adapter()
1176 unsigned long apqi) in vfio_ap_mdev_link_domain() argument
1182 AP_MKQID(apid, apqi)); in vfio_ap_mdev_link_domain()
1224 unsigned long apqi; in assign_domain_store() local
1231 ret = kstrtoul(buf, 0, &apqi); in assign_domain_store()
1235 if (apqi > matrix_mdev->matrix.aqm_max) { in assign_domain_store()
1240 if (test_bit_inv(apqi, matrix_mdev->matrix.aqm)) { in assign_domain_store()
1245 set_bit_inv(apqi, matrix_mdev->matrix.aqm); in assign_domain_store()
1249 clear_bit_inv(apqi, matrix_mdev->matrix.aqm); in assign_domain_store()
1253 vfio_ap_mdev_link_domain(matrix_mdev, apqi); in assign_domain_store()
1270 unsigned long apqi, in vfio_ap_mdev_unlink_domain() argument
1277 q = vfio_ap_unlink_apqn_fr_mdev(matrix_mdev, apid, apqi); in vfio_ap_mdev_unlink_domain()
1281 test_bit_inv(apqi, matrix_mdev->shadow_apcb.aqm)) in vfio_ap_mdev_unlink_domain()
1288 unsigned long apqi) in vfio_ap_mdev_hot_unplug_domain() argument
1294 vfio_ap_mdev_unlink_domain(matrix_mdev, apqi, &qlist); in vfio_ap_mdev_hot_unplug_domain()
1296 if (test_bit_inv(apqi, matrix_mdev->shadow_apcb.aqm)) { in vfio_ap_mdev_hot_unplug_domain()
1297 clear_bit_inv(apqi, matrix_mdev->shadow_apcb.aqm); in vfio_ap_mdev_hot_unplug_domain()
1329 unsigned long apqi; in unassign_domain_store() local
1334 ret = kstrtoul(buf, 0, &apqi); in unassign_domain_store()
1338 if (apqi > matrix_mdev->matrix.aqm_max) { in unassign_domain_store()
1343 if (!test_bit_inv(apqi, matrix_mdev->matrix.aqm)) { in unassign_domain_store()
1348 clear_bit_inv((unsigned long)apqi, matrix_mdev->matrix.aqm); in unassign_domain_store()
1349 vfio_ap_mdev_hot_unplug_domain(matrix_mdev, apqi); in unassign_domain_store()
1491 unsigned long apqi; in vfio_ap_mdev_matrix_show() local
1504 for_each_set_bit_inv(apqi, matrix->aqm, in vfio_ap_mdev_matrix_show()
1507 apqi); in vfio_ap_mdev_matrix_show()
1519 for_each_set_bit_inv(apqi, matrix->aqm, naqm_bits) { in vfio_ap_mdev_matrix_show()
1520 n = sprintf(bufpos, ".%04lx\n", apqi); in vfio_ap_mdev_matrix_show()
2030 unsigned long apqi = AP_QID_QUEUE(q->apqn); in vfio_ap_mdev_for_queue() local
2034 test_bit_inv(apqi, matrix_mdev->matrix.aqm)) in vfio_ap_mdev_for_queue()
2047 unsigned long apid, apqi; in status_show() local
2061 apqi = AP_QID_QUEUE(q->apqn); in status_show()
2069 test_bit_inv(apqi, matrix_mdev->shadow_apcb.aqm)) in status_show()
2207 unsigned long apid, apqi; in vfio_ap_mdev_remove_queue() local
2216 apqi = AP_QID_QUEUE(q->apqn); in vfio_ap_mdev_remove_queue()
2221 test_bit_inv(apqi, matrix_mdev->shadow_apcb.aqm)) { in vfio_ap_mdev_remove_queue()
2240 test_bit_inv(apqi, (unsigned long *)matrix_dev->info.aqm)) { in vfio_ap_mdev_remove_queue()
2409 unsigned long apid, apqi; in vfio_ap_filter_apid_by_qtype() local
2415 for_each_set_bit_inv(apqi, aqm, AP_DOMAINS) { in vfio_ap_filter_apid_by_qtype()
2416 status = ap_test_queue(AP_MKQID(apid, apqi), 1, &info); in vfio_ap_filter_apid_by_qtype()