Lines Matching +full:sr +full:- +full:iov

1 // SPDX-License-Identifier: MIT
3 * Copyright © 2023-2024 Intel Corporation
27 struct device *dev = xe->drm.dev; in pf_reduce_totalvfs()
46 * xe_sriov_pf_readiness - Check if PF functionality can be enabled.
49 * This function is called as part of the SR-IOV probe to validate if all
56 struct device *dev = xe->drm.dev; in xe_sriov_pf_readiness()
74 xe->sriov.pf.device_total_vfs = totalvfs; in xe_sriov_pf_readiness()
75 xe->sriov.pf.driver_max_vfs = newlimit; in xe_sriov_pf_readiness()
81 * xe_sriov_pf_init_early - Initialize SR-IOV PF specific data.
92 xe->sriov.pf.vfs = drmm_kcalloc(&xe->drm, 1 + xe_sriov_pf_get_totalvfs(xe), in xe_sriov_pf_init_early()
93 sizeof(*xe->sriov.pf.vfs), GFP_KERNEL); in xe_sriov_pf_init_early()
94 if (!xe->sriov.pf.vfs) in xe_sriov_pf_init_early()
95 return -ENOMEM; in xe_sriov_pf_init_early()
97 err = drmm_mutex_init(&xe->drm, &xe->sriov.pf.master_lock); in xe_sriov_pf_init_early()
107 * xe_sriov_pf_wait_ready() - Wait until PF is ready to operate.
121 return -ECANCELED; in xe_sriov_pf_wait_ready()
133 * xe_sriov_pf_print_vfs_summary - Print SR-IOV PF information.
137 * Print SR-IOV PF related information into provided DRM printer.
141 struct pci_dev *pdev = to_pci_dev(xe->drm.dev); in xe_sriov_pf_print_vfs_summary()
145 drm_printf(p, "total: %u\n", xe->sriov.pf.device_total_vfs); in xe_sriov_pf_print_vfs_summary()
146 drm_printf(p, "supported: %u\n", xe->sriov.pf.driver_max_vfs); in xe_sriov_pf_print_vfs_summary()
153 struct drm_info_node *node = m->private; in simple_show()
154 struct dentry *parent = node->dent->d_parent; in simple_show()
155 struct xe_device *xe = parent->d_inode->i_private; in simple_show()
156 void (*print)(struct xe_device *, struct drm_printer *) = node->info_ent->data; in simple_show()
168 * xe_sriov_pf_debugfs_register - Register PF debugfs attributes.
176 struct drm_minor *minor = xe->drm.primary; in xe_sriov_pf_debugfs_register()
187 parent->d_inode->i_private = xe; in xe_sriov_pf_debugfs_register()