Lines Matching refs:qtable

36 static int vfio_ap_mdev_reset_queues(struct ap_queue_table *qtable);
212 hash_for_each_possible(matrix_mdev->qtable.queues, q, mdev_qnode, in vfio_ap_mdev_get_queue()
701 hash_init(matrix_mdev->qtable.queues); in vfio_ap_mdev_init_dev()
735 hash_add(matrix_mdev->qtable.queues, &q->mdev_qnode, q->apqn); in vfio_ap_mdev_link_queue()
781 vfio_ap_mdev_reset_queues(&matrix_mdev->qtable); in vfio_ap_mdev_remove()
1000 struct ap_queue_table *qtable) in vfio_ap_mdev_unlink_adapter() argument
1008 if (q && qtable) { in vfio_ap_mdev_unlink_adapter()
1011 hash_add(qtable->queues, &q->mdev_qnode, in vfio_ap_mdev_unlink_adapter()
1022 struct ap_queue_table *qtable = kzalloc(sizeof(*qtable), GFP_KERNEL); in vfio_ap_mdev_hot_unplug_adapter() local
1024 hash_init(qtable->queues); in vfio_ap_mdev_hot_unplug_adapter()
1025 vfio_ap_mdev_unlink_adapter(matrix_mdev, apid, qtable); in vfio_ap_mdev_hot_unplug_adapter()
1032 vfio_ap_mdev_reset_queues(qtable); in vfio_ap_mdev_hot_unplug_adapter()
1034 hash_for_each(qtable->queues, loop_cursor, q, mdev_qnode) { in vfio_ap_mdev_hot_unplug_adapter()
1039 kfree(qtable); in vfio_ap_mdev_hot_unplug_adapter()
1187 struct ap_queue_table *qtable) in vfio_ap_mdev_unlink_domain() argument
1195 if (q && qtable) { in vfio_ap_mdev_unlink_domain()
1198 hash_add(qtable->queues, &q->mdev_qnode, in vfio_ap_mdev_unlink_domain()
1209 struct ap_queue_table *qtable = kzalloc(sizeof(*qtable), GFP_KERNEL); in vfio_ap_mdev_hot_unplug_domain() local
1211 hash_init(qtable->queues); in vfio_ap_mdev_hot_unplug_domain()
1212 vfio_ap_mdev_unlink_domain(matrix_mdev, apqi, qtable); in vfio_ap_mdev_hot_unplug_domain()
1219 vfio_ap_mdev_reset_queues(qtable); in vfio_ap_mdev_hot_unplug_domain()
1221 hash_for_each(qtable->queues, loop_cursor, q, mdev_qnode) { in vfio_ap_mdev_hot_unplug_domain()
1226 kfree(qtable); in vfio_ap_mdev_hot_unplug_domain()
1540 struct ap_queue_table *qtable = &matrix_mdev->qtable; in unmap_iova() local
1544 hash_for_each(qtable->queues, loop_cursor, q, mdev_qnode) { in unmap_iova()
1581 vfio_ap_mdev_reset_queues(&matrix_mdev->qtable); in vfio_ap_mdev_unset_kvm()
1700 static int vfio_ap_mdev_reset_queues(struct ap_queue_table *qtable) in vfio_ap_mdev_reset_queues() argument
1705 hash_for_each(qtable->queues, loop_cursor, q, mdev_qnode) { in vfio_ap_mdev_reset_queues()
1771 ret = vfio_ap_mdev_reset_queues(&matrix_mdev->qtable); in vfio_ap_mdev_ioctl()