pci_tsm
static struct pci_tsm *tio_pf0_probe(struct pci_dev *pdev, struct sev_device *sev)
static struct pci_tsm *dsm_probe(struct tsm_dev *tsmdev, struct pci_dev *pdev)
static void dsm_remove(struct pci_tsm *tsm)
struct pci_tsm *pci_tsm __free(tsm_remove) = ops->probe(tsm_dev, pdev);
if (!pci_tsm)
pdev->tsm = pci_tsm;
pdev->tsm = no_free_ptr(pci_tsm);
static const struct pci_tsm_ops *to_pci_tsm_ops(struct pci_tsm *tsm)
static struct pci_tsm_pf0 *to_pci_tsm_pf0(struct pci_tsm *tsm)
struct pci_tsm *tsm;
struct pci_tsm *tsm;
DEFINE_SYSFS_GROUP_VISIBLE(pci_tsm);
.is_visible = SYSFS_GROUP_VISIBLE(pci_tsm),
static void tsm_remove(struct pci_tsm *tsm)
int pci_tsm_link_constructor(struct pci_dev *pdev, struct pci_tsm *tsm,
DEFINE_FREE(tsm_remove, struct pci_tsm *, if (_T) tsm_remove(_T))
struct pci_tsm *tsm = pdev->tsm;
struct pci_tsm base_tsm;
int pci_tsm_link_constructor(struct pci_dev *pdev, struct pci_tsm *tsm,
struct pci_tsm *(*probe)(struct tsm_dev *tsm_dev,
void (*remove)(struct pci_tsm *tsm);
struct pci_tsm *(*lock)(struct tsm_dev *tsm_dev,
void (*unlock)(struct pci_tsm *tsm);
struct pci_tsm;
struct pci_tsm *tsm; /* TSM operation state */