Lines Matching refs:iova_bitmap
6 #include <linux/iova_bitmap.h>
19 * struct iova_bitmap structure, as a general structure for iterating the
22 * iova_bitmap).
52 * struct iova_bitmap - The IOVA bitmap object
63 * 2M of bitmap data is pinned at a time. If the iova_bitmap page size is
84 * iova_bitmap. The @dirty_reporter_fn uses iova_bitmap_set() to mark dirty
98 struct iova_bitmap {
127 static unsigned long iova_bitmap_offset_to_index(struct iova_bitmap *bitmap,
138 static unsigned long iova_bitmap_index_to_offset(struct iova_bitmap *bitmap,
149 static unsigned long iova_bitmap_mapped_iova(struct iova_bitmap *bitmap)
161 static int iova_bitmap_get(struct iova_bitmap *bitmap)
214 static void iova_bitmap_put(struct iova_bitmap *bitmap)
235 * Return: A pointer to a newly allocated struct iova_bitmap
238 struct iova_bitmap *iova_bitmap_alloc(unsigned long iova, size_t length,
242 struct iova_bitmap *bitmap;
280 void iova_bitmap_free(struct iova_bitmap *bitmap)
298 static unsigned long iova_bitmap_mapped_remaining(struct iova_bitmap *bitmap)
314 static unsigned long iova_bitmap_mapped_length(struct iova_bitmap *bitmap)
338 static bool iova_bitmap_done(struct iova_bitmap *bitmap)
348 static int iova_bitmap_advance(struct iova_bitmap *bitmap)
376 int iova_bitmap_for_each(struct iova_bitmap *bitmap, void *opaque,
402 void iova_bitmap_set(struct iova_bitmap *bitmap,