Lines Matching refs:qtable
35 static int vfio_ap_mdev_reset_queues(struct ap_queue_table *qtable);
211 hash_for_each_possible(matrix_mdev->qtable.queues, q, mdev_qnode, in vfio_ap_mdev_get_queue()
730 hash_init(matrix_mdev->qtable.queues); in vfio_ap_mdev_init_dev()
765 hash_add(matrix_mdev->qtable.queues, &q->mdev_qnode, q->apqn); in vfio_ap_mdev_link_queue()
811 vfio_ap_mdev_reset_queues(&matrix_mdev->qtable); in vfio_ap_mdev_remove()
1030 struct ap_queue_table *qtable) in vfio_ap_mdev_unlink_adapter() argument
1038 if (q && qtable) { in vfio_ap_mdev_unlink_adapter()
1041 hash_add(qtable->queues, &q->mdev_qnode, in vfio_ap_mdev_unlink_adapter()
1052 struct ap_queue_table *qtable = kzalloc(sizeof(*qtable), GFP_KERNEL); in vfio_ap_mdev_hot_unplug_adapter() local
1054 hash_init(qtable->queues); in vfio_ap_mdev_hot_unplug_adapter()
1055 vfio_ap_mdev_unlink_adapter(matrix_mdev, apid, qtable); in vfio_ap_mdev_hot_unplug_adapter()
1062 vfio_ap_mdev_reset_queues(qtable); in vfio_ap_mdev_hot_unplug_adapter()
1064 hash_for_each(qtable->queues, loop_cursor, q, mdev_qnode) { in vfio_ap_mdev_hot_unplug_adapter()
1069 kfree(qtable); in vfio_ap_mdev_hot_unplug_adapter()
1217 struct ap_queue_table *qtable) in vfio_ap_mdev_unlink_domain() argument
1225 if (q && qtable) { in vfio_ap_mdev_unlink_domain()
1228 hash_add(qtable->queues, &q->mdev_qnode, in vfio_ap_mdev_unlink_domain()
1239 struct ap_queue_table *qtable = kzalloc(sizeof(*qtable), GFP_KERNEL); in vfio_ap_mdev_hot_unplug_domain() local
1241 hash_init(qtable->queues); in vfio_ap_mdev_hot_unplug_domain()
1242 vfio_ap_mdev_unlink_domain(matrix_mdev, apqi, qtable); in vfio_ap_mdev_hot_unplug_domain()
1249 vfio_ap_mdev_reset_queues(qtable); in vfio_ap_mdev_hot_unplug_domain()
1251 hash_for_each(qtable->queues, loop_cursor, q, mdev_qnode) { in vfio_ap_mdev_hot_unplug_domain()
1256 kfree(qtable); in vfio_ap_mdev_hot_unplug_domain()
1570 struct ap_queue_table *qtable = &matrix_mdev->qtable; in unmap_iova() local
1574 hash_for_each(qtable->queues, loop_cursor, q, mdev_qnode) { in unmap_iova()
1611 vfio_ap_mdev_reset_queues(&matrix_mdev->qtable); in vfio_ap_mdev_unset_kvm()
1747 static int vfio_ap_mdev_reset_queues(struct ap_queue_table *qtable) in vfio_ap_mdev_reset_queues() argument
1752 hash_for_each(qtable->queues, loop_cursor, q, mdev_qnode) in vfio_ap_mdev_reset_queues()
1755 hash_for_each(qtable->queues, loop_cursor, q, mdev_qnode) { in vfio_ap_mdev_reset_queues()
1941 ret = vfio_ap_mdev_reset_queues(&matrix_mdev->qtable); in vfio_ap_mdev_ioctl()