MCPcopy Create free account
hub / github.com/F-Stack/f-stack / must_bounce

Function must_bounce

freebsd/arm64/arm64/busdma_bounce.c:225–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

223}
224
225static bool
226must_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.

Callers 4

_bus_dmamap_pagesneededFunction · 0.70
_bus_dmamap_count_pagesFunction · 0.70

Calls 3

cacheline_bounceFunction · 0.70
alignment_bounceFunction · 0.70
bus_dma_run_filterFunction · 0.70

Tested by

no test coverage detected