Home
last modified time | relevance | path

Searched refs:dbg_cap_offset (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/iommu/amd/
H A Ddebugfs.c70 int ret, dbg_cap_offset = iommu->dbg_cap_offset = -1; in iommu_capability_write() local
75 ret = kstrtos32_from_user(ubuf, cnt, 0, &dbg_cap_offset); in iommu_capability_write()
80 if (dbg_cap_offset < 0 || dbg_cap_offset > 0x14) in iommu_capability_write()
83 iommu->dbg_cap_offset = dbg_cap_offset; in iommu_capability_write()
91 int err, dbg_cap_offset = iommu->dbg_cap_offset; in iommu_capability_show() local
93 if (dbg_cap_offset < 0 || dbg_cap_offset > 0x14) { in iommu_capability_show()
98 err = pci_read_config_dword(iommu->dev, iommu->cap_ptr + dbg_cap_offset, &value); in iommu_capability_show()
101 dbg_cap_offset); in iommu_capability_show()
105 seq_printf(m, "Offset:0x%x Value:0x%08x\n", dbg_cap_offset, value); in iommu_capability_show()
373 iommu->dbg_cap_offset = -1; in amd_iommu_debugfs_setup()
H A Damd_iommu_types.h757 int dbg_cap_offset;
771 int dbg_cap_offset; global() member