Home
last modified time | relevance | path

Searched refs:iovad (Results 1 – 3 of 3) sorted by relevance

/include/linux/
Diova.h107 static inline unsigned long iova_shift(struct iova_domain *iovad) in iova_shift() argument
109 return __ffs(iovad->granule); in iova_shift()
112 static inline unsigned long iova_mask(struct iova_domain *iovad) in iova_mask() argument
114 return iovad->granule - 1; in iova_mask()
117 static inline size_t iova_offset(struct iova_domain *iovad, dma_addr_t iova) in iova_offset() argument
119 return iova & iova_mask(iovad); in iova_offset()
122 static inline size_t iova_align(struct iova_domain *iovad, size_t size) in iova_align() argument
124 return ALIGN(size, iovad->granule); in iova_align()
127 static inline dma_addr_t iova_dma_addr(struct iova_domain *iovad, struct iova *iova) in iova_dma_addr() argument
129 return (dma_addr_t)iova->pfn_lo << iova_shift(iovad); in iova_dma_addr()
[all …]
Dintel-iommu.h550 struct iova_domain iovad; /* iova's that belong to this domain */ member
/include/trace/hooks/
Diommu.h25 TP_PROTO(struct device *dev, struct iova_domain *iovad, dma_addr_t iova, size_t size),
26 TP_ARGS(dev, iovad, iova, size));
29 TP_PROTO(struct iova_domain *iovad, dma_addr_t iova, size_t size),
30 TP_ARGS(iovad, iova, size));