| 223 | } |
| 224 | |
| 225 | static bool |
| 226 | must_bounce(bus_dma_tag_t dmat, bus_dmamap_t map, bus_addr_t paddr, |
| 227 | bus_size_t size) |
| 228 | { |
| 229 | |
| 230 | if (cacheline_bounce(dmat, map, paddr, size)) |
| 231 | return (true); |
| 232 | |
| 233 | if (alignment_bounce(dmat, paddr)) |
| 234 | return (true); |
| 235 | |
| 236 | if ((dmat->bounce_flags & BF_COULD_BOUNCE) != 0 && |
| 237 | bus_dma_run_filter(&dmat->common, paddr)) |
| 238 | return (true); |
| 239 | |
| 240 | return (false); |
| 241 | } |
| 242 | |
| 243 | /* |
| 244 | * Allocate a device specific dma_tag. |
no test coverage detected