search for: swiotlb_no_force

Displaying 4 results from an estimated 4 matches for "swiotlb_no_force".

2019 Feb 05
0
[vhost:linux-next 2/23] include/linux/swiotlb.h:99:22: error: static declaration of 'swiotlb_max_mapping_size' follows non-static declaration
...lb.h 75 76 bool swiotlb_map(struct device *dev, phys_addr_t *phys, dma_addr_t *dma_addr, 77 size_t size, enum dma_data_direction dir, unsigned long attrs); 78 void __init swiotlb_exit(void); 79 unsigned int swiotlb_max_segment(void); 80 #else 81 #define swiotlb_force SWIOTLB_NO_FORCE 82 static inline bool is_swiotlb_buffer(phys_addr_t paddr) 83 { 84 return false; 85 } 86 static inline bool swiotlb_map(struct device *dev, phys_addr_t *phys, 87 dma_addr_t *dma_addr, size_t size, enum dma_data_direction dir, 88 unsigned long attrs) 89 { 90...
2019 Feb 07
0
[PATCH v7 2/5] swiotlb: Add is_swiotlb_active() function
...inux/swiotlb.h @@ -77,6 +77,7 @@ bool swiotlb_map(struct device *dev, phys_addr_t *phys, dma_addr_t *dma_addr, void __init swiotlb_exit(void); unsigned int swiotlb_max_segment(void); size_t swiotlb_max_mapping_size(struct device *dev); +bool is_swiotlb_active(void); #else #define swiotlb_force SWIOTLB_NO_FORCE static inline bool is_swiotlb_buffer(phys_addr_t paddr) @@ -100,6 +101,11 @@ static inline size_t swiotlb_max_mapping_size(struct device *dev) { return SIZE_MAX; } + +static inline bool is_swiotlb_active(void) +{ + return false; +} #endif /* CONFIG_SWIOTLB */ extern void swiotlb_print_info...
2019 Feb 07
5
[PATCH v7 0/5] Fix virtio-blk issue with SWIOTLB
Hi, here is the next version of this patch-set. Previous versions can be found here: V1: https://lore.kernel.org/lkml/20190110134433.15672-1-joro at 8bytes.org/ V2: https://lore.kernel.org/lkml/20190115132257.6426-1-joro at 8bytes.org/ V3: https://lore.kernel.org/lkml/20190123163049.24863-1-joro at 8bytes.org/ V4: https://lore.kernel.org/lkml/20190129084342.26030-1-joro at 8bytes.org/
2019 Feb 05
0
[vhost:linux-next 3/23] include/linux/swiotlb.h:105:20: error: static declaration of 'is_swiotlb_active' follows non-static declaration
...lb.h 76 77 bool swiotlb_map(struct device *dev, phys_addr_t *phys, dma_addr_t *dma_addr, 78 size_t size, enum dma_data_direction dir, unsigned long attrs); 79 void __init swiotlb_exit(void); 80 unsigned int swiotlb_max_segment(void); 81 #else 82 #define swiotlb_force SWIOTLB_NO_FORCE 83 static inline bool is_swiotlb_buffer(phys_addr_t paddr) 84 { 85 return false; 86 } 87 static inline bool swiotlb_map(struct device *dev, phys_addr_t *phys, 88 dma_addr_t *dma_addr, size_t size, enum dma_data_direction dir, 89 unsigned long attrs) 90 { 91...