Home
last modified time | relevance | path

Searched refs:ioasid (Results 1 – 5 of 5) sorted by relevance

/linux-6.3-rc2/include/linux/
A Dioasid.h11 typedef void (*ioasid_free_fn_t)(ioasid_t ioasid, void *data);
37 void ioasid_free(ioasid_t ioasid);
38 void *ioasid_find(struct ioasid_set *set, ioasid_t ioasid,
42 int ioasid_set_data(ioasid_t ioasid, void *data);
43 static inline bool pasid_valid(ioasid_t ioasid) in pasid_valid() argument
45 return ioasid != INVALID_IOASID; in pasid_valid()
55 static inline void ioasid_free(ioasid_t ioasid) { } in ioasid_free() argument
57 static inline void *ioasid_find(struct ioasid_set *set, ioasid_t ioasid, in ioasid_find() argument
72 static inline int ioasid_set_data(ioasid_t ioasid, void *data) in ioasid_set_data() argument
77 static inline bool pasid_valid(ioasid_t ioasid) in pasid_valid() argument
/linux-6.3-rc2/drivers/iommu/
A Dioasid.c62 static void default_free(ioasid_t ioasid, void *opaque);
89 static void default_free(ioasid_t ioasid, void *opaque) in default_free() argument
93 ioasid_data = xa_erase(&default_allocator.xa, ioasid); in default_free()
268 int ioasid_set_data(ioasid_t ioasid, void *data) in ioasid_set_data() argument
274 ioasid_data = xa_load(&active_allocator->xa, ioasid); in ioasid_set_data()
352 void ioasid_free(ioasid_t ioasid) in ioasid_free() argument
357 ioasid_data = xa_load(&active_allocator->xa, ioasid); in ioasid_free()
359 pr_err("Trying to free unknown IOASID %u\n", ioasid); in ioasid_free()
366 ioasid_data = xa_erase(&active_allocator->xa, ioasid); in ioasid_free()
389 void *ioasid_find(struct ioasid_set *set, ioasid_t ioasid, in ioasid_find() argument
[all …]
A DMakefile12 obj-$(CONFIG_IOASID) += ioasid.o
/linux-6.3-rc2/drivers/iommu/intel/
A Diommu.c2804 ioasid_t ioasid; in intel_vcmd_ioasid_alloc() local
2816 if (vcmd_alloc_pasid(iommu, &ioasid)) in intel_vcmd_ioasid_alloc()
2819 return ioasid; in intel_vcmd_ioasid_alloc()
2822 static void intel_vcmd_ioasid_free(ioasid_t ioasid, void *data) in intel_vcmd_ioasid_free() argument
2832 if (ioasid_find(NULL, ioasid, NULL)) { in intel_vcmd_ioasid_free()
2833 pr_alert("Cannot free active IOASID %d\n", ioasid); in intel_vcmd_ioasid_free()
2836 vcmd_free_pasid(iommu, ioasid); in intel_vcmd_ioasid_free()
/linux-6.3-rc2/Documentation/userspace-api/
A Diommu.rst209 struct device *dev, ioasid_t ioasid);

Completed in 16 milliseconds