Lines Matching refs:apqi

676 	unsigned long apid, apqi, apqn;  in vfio_ap_mdev_filter_matrix()  local
696 for_each_set_bit_inv(apqi, aqm, AP_DOMAINS) { in vfio_ap_mdev_filter_matrix()
705 apqn = AP_MKQID(apid, apqi); in vfio_ap_mdev_filter_matrix()
790 unsigned long apid, apqi; in vfio_ap_mdev_unlink_fr_queues() local
793 for_each_set_bit_inv(apqi, matrix_mdev->matrix.aqm, in vfio_ap_mdev_unlink_fr_queues()
796 AP_MKQID(apid, apqi)); in vfio_ap_mdev_unlink_fr_queues()
826 unsigned long apid, apqi; in vfio_ap_mdev_log_sharing_err() local
831 for_each_set_bit_inv(apqi, aqm, AP_DOMAINS) in vfio_ap_mdev_log_sharing_err()
832 dev_warn(dev, MDEV_SHARING_ERR, apid, apqi, mdev_name); in vfio_ap_mdev_log_sharing_err()
914 unsigned long apqi; in vfio_ap_mdev_link_adapter() local
916 for_each_set_bit_inv(apqi, matrix_mdev->matrix.aqm, AP_DOMAINS) in vfio_ap_mdev_link_adapter()
918 AP_MKQID(apid, apqi)); in vfio_ap_mdev_link_adapter()
1008 unsigned long apid, unsigned long apqi) in vfio_ap_unlink_apqn_fr_mdev() argument
1012 q = vfio_ap_mdev_get_queue(matrix_mdev, AP_MKQID(apid, apqi)); in vfio_ap_unlink_apqn_fr_mdev()
1032 unsigned long apqi; in vfio_ap_mdev_unlink_adapter() local
1035 for_each_set_bit_inv(apqi, matrix_mdev->matrix.aqm, AP_DOMAINS) { in vfio_ap_mdev_unlink_adapter()
1036 q = vfio_ap_unlink_apqn_fr_mdev(matrix_mdev, apid, apqi); in vfio_ap_mdev_unlink_adapter()
1040 test_bit_inv(apqi, matrix_mdev->shadow_apcb.aqm)) in vfio_ap_mdev_unlink_adapter()
1121 unsigned long apqi) in vfio_ap_mdev_link_domain() argument
1127 AP_MKQID(apid, apqi)); in vfio_ap_mdev_link_domain()
1169 unsigned long apqi; in assign_domain_store() local
1176 ret = kstrtoul(buf, 0, &apqi); in assign_domain_store()
1180 if (apqi > matrix_mdev->matrix.aqm_max) { in assign_domain_store()
1185 if (test_bit_inv(apqi, matrix_mdev->matrix.aqm)) { in assign_domain_store()
1190 set_bit_inv(apqi, matrix_mdev->matrix.aqm); in assign_domain_store()
1194 clear_bit_inv(apqi, matrix_mdev->matrix.aqm); in assign_domain_store()
1198 vfio_ap_mdev_link_domain(matrix_mdev, apqi); in assign_domain_store()
1200 set_bit_inv(apqi, aqm_delta); in assign_domain_store()
1216 unsigned long apqi, in vfio_ap_mdev_unlink_domain() argument
1223 q = vfio_ap_unlink_apqn_fr_mdev(matrix_mdev, apid, apqi); in vfio_ap_mdev_unlink_domain()
1227 test_bit_inv(apqi, matrix_mdev->shadow_apcb.aqm)) in vfio_ap_mdev_unlink_domain()
1235 unsigned long apqi) in vfio_ap_mdev_hot_unplug_domain() argument
1242 vfio_ap_mdev_unlink_domain(matrix_mdev, apqi, qtable); in vfio_ap_mdev_hot_unplug_domain()
1244 if (test_bit_inv(apqi, matrix_mdev->shadow_apcb.aqm)) { in vfio_ap_mdev_hot_unplug_domain()
1245 clear_bit_inv(apqi, matrix_mdev->shadow_apcb.aqm); in vfio_ap_mdev_hot_unplug_domain()
1279 unsigned long apqi; in unassign_domain_store() local
1284 ret = kstrtoul(buf, 0, &apqi); in unassign_domain_store()
1288 if (apqi > matrix_mdev->matrix.aqm_max) { in unassign_domain_store()
1293 if (!test_bit_inv(apqi, matrix_mdev->matrix.aqm)) { in unassign_domain_store()
1298 clear_bit_inv((unsigned long)apqi, matrix_mdev->matrix.aqm); in unassign_domain_store()
1299 vfio_ap_mdev_hot_unplug_domain(matrix_mdev, apqi); in unassign_domain_store()
1441 unsigned long apqi; in vfio_ap_mdev_matrix_show() local
1454 for_each_set_bit_inv(apqi, matrix->aqm, in vfio_ap_mdev_matrix_show()
1457 apqi); in vfio_ap_mdev_matrix_show()
1469 for_each_set_bit_inv(apqi, matrix->aqm, naqm_bits) { in vfio_ap_mdev_matrix_show()
1470 n = sprintf(bufpos, ".%04lx\n", apqi); in vfio_ap_mdev_matrix_show()
1962 unsigned long apqi = AP_QID_QUEUE(q->apqn); in vfio_ap_mdev_for_queue() local
1966 test_bit_inv(apqi, matrix_mdev->matrix.aqm)) in vfio_ap_mdev_for_queue()
2111 unsigned long apid, apqi; in vfio_ap_mdev_remove_queue() local
2124 apqi = AP_QID_QUEUE(q->apqn); in vfio_ap_mdev_remove_queue()
2131 test_bit_inv(apqi, matrix_mdev->shadow_apcb.aqm)) { in vfio_ap_mdev_remove_queue()
2299 unsigned long apid, apqi; in vfio_ap_filter_apid_by_qtype() local
2305 for_each_set_bit_inv(apqi, aqm, AP_DOMAINS) { in vfio_ap_filter_apid_by_qtype()
2306 status = ap_test_queue(AP_MKQID(apid, apqi), 1, &info); in vfio_ap_filter_apid_by_qtype()