Lines Matching refs:ap_matrix_mdev
35 static int vfio_ap_mdev_reset_queues(struct ap_matrix_mdev *matrix_mdev);
100 static inline void get_update_locks_for_mdev(struct ap_matrix_mdev *matrix_mdev) in get_update_locks_for_mdev()
123 static inline void release_update_locks_for_mdev(struct ap_matrix_mdev *matrix_mdev) in release_update_locks_for_mdev()
150 static struct ap_matrix_mdev *get_update_locks_by_apqn(int apqn) in get_update_locks_by_apqn()
152 struct ap_matrix_mdev *matrix_mdev; in get_update_locks_by_apqn()
207 struct ap_matrix_mdev *matrix_mdev, in vfio_ap_mdev_get_queue()
589 struct ap_matrix_mdev *matrix_mdev; in handle_pqap()
611 struct ap_matrix_mdev, pqap_hook); in handle_pqap()
653 static void signal_guest_ap_cfg_changed(struct ap_matrix_mdev *matrix_mdev) in signal_guest_ap_cfg_changed()
659 static void vfio_ap_mdev_update_guest_apcb(struct ap_matrix_mdev *matrix_mdev) in vfio_ap_mdev_update_guest_apcb()
671 static bool vfio_ap_mdev_filter_cdoms(struct ap_matrix_mdev *matrix_mdev) in vfio_ap_mdev_filter_cdoms()
720 static bool vfio_ap_mdev_filter_matrix(struct ap_matrix_mdev *matrix_mdev, in vfio_ap_mdev_filter_matrix()
778 struct ap_matrix_mdev *matrix_mdev = in vfio_ap_mdev_init_dev()
779 container_of(vdev, struct ap_matrix_mdev, vdev); in vfio_ap_mdev_init_dev()
792 struct ap_matrix_mdev *matrix_mdev; in vfio_ap_mdev_probe()
795 matrix_mdev = vfio_alloc_device(ap_matrix_mdev, vdev, &mdev->dev, in vfio_ap_mdev_probe()
816 static void vfio_ap_mdev_link_queue(struct ap_matrix_mdev *matrix_mdev, in vfio_ap_mdev_link_queue()
826 static void vfio_ap_mdev_link_apqn(struct ap_matrix_mdev *matrix_mdev, int apqn) in vfio_ap_mdev_link_apqn()
844 static void vfio_ap_mdev_unlink_fr_queues(struct ap_matrix_mdev *matrix_mdev) in vfio_ap_mdev_unlink_fr_queues()
862 struct ap_matrix_mdev *matrix_mdev = dev_get_drvdata(&mdev->dev); in vfio_ap_mdev_remove()
880 static void vfio_ap_mdev_log_sharing_err(struct ap_matrix_mdev *assignee, in vfio_ap_mdev_log_sharing_err()
881 struct ap_matrix_mdev *assigned_to, in vfio_ap_mdev_log_sharing_err()
894 static void vfio_ap_mdev_log_in_use_err(struct ap_matrix_mdev *assignee, in vfio_ap_mdev_log_in_use_err()
922 static int vfio_ap_mdev_verify_no_sharing(struct ap_matrix_mdev *assignee, in vfio_ap_mdev_verify_no_sharing()
926 struct ap_matrix_mdev *assigned_to; in vfio_ap_mdev_verify_no_sharing()
977 static int vfio_ap_mdev_validate_masks(struct ap_matrix_mdev *matrix_mdev) in vfio_ap_mdev_validate_masks()
988 static void vfio_ap_mdev_link_adapter(struct ap_matrix_mdev *matrix_mdev, in vfio_ap_mdev_link_adapter()
998 static void collect_queues_to_reset(struct ap_matrix_mdev *matrix_mdev, in collect_queues_to_reset()
1012 static void reset_queues_for_apid(struct ap_matrix_mdev *matrix_mdev, in reset_queues_for_apid()
1022 static int reset_queues_for_apids(struct ap_matrix_mdev *matrix_mdev, in reset_queues_for_apids()
1080 struct ap_matrix_mdev *matrix_mdev = dev_get_drvdata(dev); in assign_adapter_store()
1124 *vfio_ap_unlink_apqn_fr_mdev(struct ap_matrix_mdev *matrix_mdev, in vfio_ap_unlink_apqn_fr_mdev()
1146 static void vfio_ap_mdev_unlink_adapter(struct ap_matrix_mdev *matrix_mdev, in vfio_ap_mdev_unlink_adapter()
1164 static void vfio_ap_mdev_hot_unplug_adapters(struct ap_matrix_mdev *matrix_mdev, in vfio_ap_mdev_hot_unplug_adapters()
1195 static void vfio_ap_mdev_hot_unplug_adapter(struct ap_matrix_mdev *matrix_mdev, in vfio_ap_mdev_hot_unplug_adapter()
1226 struct ap_matrix_mdev *matrix_mdev = dev_get_drvdata(dev); in unassign_adapter_store()
1253 static void vfio_ap_mdev_link_domain(struct ap_matrix_mdev *matrix_mdev, in vfio_ap_mdev_link_domain()
1304 struct ap_matrix_mdev *matrix_mdev = dev_get_drvdata(dev); in assign_domain_store()
1347 static void vfio_ap_mdev_unlink_domain(struct ap_matrix_mdev *matrix_mdev, in vfio_ap_mdev_unlink_domain()
1365 static void vfio_ap_mdev_hot_unplug_domains(struct ap_matrix_mdev *matrix_mdev, in vfio_ap_mdev_hot_unplug_domains()
1396 static void vfio_ap_mdev_hot_unplug_domain(struct ap_matrix_mdev *matrix_mdev, in vfio_ap_mdev_hot_unplug_domain()
1427 struct ap_matrix_mdev *matrix_mdev = dev_get_drvdata(dev); in unassign_domain_store()
1475 struct ap_matrix_mdev *matrix_mdev = dev_get_drvdata(dev); in assign_control_domain_store()
1529 struct ap_matrix_mdev *matrix_mdev = dev_get_drvdata(dev); in unassign_control_domain_store()
1566 struct ap_matrix_mdev *matrix_mdev = dev_get_drvdata(dev); in control_domains_show()
1612 struct ap_matrix_mdev *matrix_mdev = dev_get_drvdata(dev); in matrix_show()
1626 struct ap_matrix_mdev *matrix_mdev = dev_get_drvdata(dev); in guest_matrix_show()
1645 struct ap_matrix_mdev *matrix_mdev = dev_get_drvdata(dev); in ap_config_show()
1672 static int ap_matrix_overflow_check(struct ap_matrix_mdev *matrix_mdev) in ap_matrix_overflow_check()
1708 struct ap_matrix_mdev *matrix_mdev = dev_get_drvdata(dev); in ap_config_store()
1821 static int vfio_ap_mdev_set_kvm(struct ap_matrix_mdev *matrix_mdev, in vfio_ap_mdev_set_kvm()
1824 struct ap_matrix_mdev *m; in vfio_ap_mdev_set_kvm()
1850 static void unmap_iova(struct ap_matrix_mdev *matrix_mdev, u64 iova, u64 length) in unmap_iova()
1865 struct ap_matrix_mdev *matrix_mdev = in vfio_ap_mdev_dma_unmap()
1866 container_of(vdev, struct ap_matrix_mdev, vdev); in vfio_ap_mdev_dma_unmap()
1881 static void vfio_ap_mdev_unset_kvm(struct ap_matrix_mdev *matrix_mdev) in vfio_ap_mdev_unset_kvm()
2017 static int vfio_ap_mdev_reset_queues(struct ap_matrix_mdev *matrix_mdev) in vfio_ap_mdev_reset_queues()
2055 struct ap_matrix_mdev *matrix_mdev = in vfio_ap_mdev_open_device()
2056 container_of(vdev, struct ap_matrix_mdev, vdev); in vfio_ap_mdev_open_device()
2066 struct ap_matrix_mdev *matrix_mdev = in vfio_ap_mdev_close_device()
2067 container_of(vdev, struct ap_matrix_mdev, vdev); in vfio_ap_mdev_close_device()
2075 struct ap_matrix_mdev *matrix_mdev; in vfio_ap_mdev_request()
2077 matrix_mdev = container_of(vdev, struct ap_matrix_mdev, vdev); in vfio_ap_mdev_request()
2172 static int vfio_ap_set_request_irq(struct ap_matrix_mdev *matrix_mdev, in vfio_ap_set_request_irq()
2206 static int vfio_ap_set_cfg_change_irq(struct ap_matrix_mdev *matrix_mdev, unsigned long arg) in vfio_ap_set_cfg_change_irq()
2239 static int vfio_ap_set_irqs(struct ap_matrix_mdev *matrix_mdev, in vfio_ap_set_irqs()
2267 struct ap_matrix_mdev *matrix_mdev = in vfio_ap_mdev_ioctl()
2268 container_of(vdev, struct ap_matrix_mdev, vdev); in vfio_ap_mdev_ioctl()
2294 static struct ap_matrix_mdev *vfio_ap_mdev_for_queue(struct vfio_ap_queue *q) in vfio_ap_mdev_for_queue()
2296 struct ap_matrix_mdev *matrix_mdev; in vfio_ap_mdev_for_queue()
2316 struct ap_matrix_mdev *matrix_mdev; in status_show()
2421 struct ap_matrix_mdev *matrix_mdev; in vfio_ap_mdev_probe_queue()
2474 struct ap_matrix_mdev *matrix_mdev; in vfio_ap_mdev_remove_queue()
2557 static void vfio_ap_mdev_hot_unplug_cfg(struct ap_matrix_mdev *matrix_mdev, in vfio_ap_mdev_hot_unplug_cfg()
2602 struct ap_matrix_mdev *matrix_mdev; in vfio_ap_mdev_cfg_remove()
2744 struct ap_matrix_mdev *matrix_mdev; in vfio_ap_mdev_cfg_add()
2819 static void vfio_ap_mdev_hot_plug_cfg(struct ap_matrix_mdev *matrix_mdev) in vfio_ap_mdev_hot_plug_cfg()
2852 struct ap_matrix_mdev *matrix_mdev; in vfio_ap_on_scan_complete()