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

Function might_bounce

freebsd/arm64/arm64/busdma_bounce.c:204–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

202}
203
204static bool
205might_bounce(bus_dma_tag_t dmat, bus_dmamap_t map, bus_addr_t paddr,
206 bus_size_t size)
207{
208
209 /* Memory allocated by bounce_bus_dmamem_alloc won't bounce */
210 if (map && (map->flags & DMAMAP_FROM_DMAMEM) != 0)
211 return (false);
212
213 if ((dmat->bounce_flags & BF_COULD_BOUNCE) != 0)
214 return (true);
215
216 if (cacheline_bounce(dmat, map, paddr, size))
217 return (true);
218
219 if (alignment_bounce(dmat, paddr))
220 return (true);
221
222 return (false);
223}
224
225static bool
226must_bounce(bus_dma_tag_t dmat, bus_dmamap_t map, bus_addr_t paddr,

Callers 3

bounce_bus_dma_id_mappedFunction · 0.70

Calls 2

cacheline_bounceFunction · 0.70
alignment_bounceFunction · 0.70

Tested by

no test coverage detected