Lines Matching defs:unit
43 struct amdiommu_unit *unit; /* (c) */ member
104 #define AMD2IOMMU(unit) (&((unit)->iommu)) argument
105 #define IOMMU2AMD(unit) \ argument
108 #define AMDIOMMU_LOCK(unit) mtx_lock(&AMD2IOMMU(unit)->lock) argument
109 #define AMDIOMMU_UNLOCK(unit) mtx_unlock(&AMD2IOMMU(unit)->lock) argument
110 #define AMDIOMMU_ASSERT_LOCKED(unit) mtx_assert(&AMD2IOMMU(unit)->lock, \ argument
113 #define AMDIOMMU_EVENT_LOCK(unit) mtx_lock_spin(&(unit)->event_lock) argument
114 #define AMDIOMMU_EVENT_UNLOCK(unit) mtx_unlock_spin(&(unit)->event_lock) argument
115 #define AMDIOMMU_EVENT_ASSERT_LOCKED(unit) \ argument
144 amdiommu_read4(const struct amdiommu_unit *unit, int reg) in amdiommu_read4()
151 amdiommu_read8(const struct amdiommu_unit *unit, int reg) in amdiommu_read8()
165 amdiommu_write4(const struct amdiommu_unit *unit, int reg, uint32_t val) in amdiommu_write4()
171 amdiommu_write8(const struct amdiommu_unit *unit, int reg, uint64_t val) in amdiommu_write8()