Lines Matching refs:strbuf

269 	struct strbuf *strbuf;  in dma_4u_map_page()  local
277 strbuf = dev->archdata.stc; in dma_4u_map_page()
300 if (strbuf->strbuf_enabled) in dma_4u_map_page()
320 static void strbuf_flush(struct strbuf *strbuf, struct iommu *iommu, in strbuf_flush() argument
326 if (strbuf->strbuf_ctxflush && in strbuf_flush()
331 flushreg = strbuf->strbuf_ctxflush; in strbuf_flush()
332 matchreg = STC_CTXMATCH_ADDR(strbuf, ctx); in strbuf_flush()
357 iommu_write(strbuf->strbuf_pflush, vaddr); in strbuf_flush()
368 STC_FLUSHFLAG_INIT(strbuf); in strbuf_flush()
369 iommu_write(strbuf->strbuf_fsync, strbuf->strbuf_flushflag_pa); in strbuf_flush()
373 while (!STC_FLUSHFLAG_SET(strbuf)) { in strbuf_flush()
391 struct strbuf *strbuf; in dma_4u_unmap_page() local
402 strbuf = dev->archdata.stc; in dma_4u_unmap_page()
418 if (strbuf->strbuf_enabled && !(attrs & DMA_ATTR_SKIP_CPU_SYNC)) in dma_4u_unmap_page()
419 strbuf_flush(strbuf, iommu, bus_addr, ctx, in dma_4u_unmap_page()
442 struct strbuf *strbuf; in dma_4u_map_sg() local
449 strbuf = dev->archdata.stc; in dma_4u_map_sg()
459 if (strbuf->strbuf_enabled) in dma_4u_map_sg()
611 struct strbuf *strbuf; in dma_4u_unmap_sg() local
617 strbuf = dev->archdata.stc; in dma_4u_unmap_sg()
640 if (strbuf->strbuf_enabled && !(attrs & DMA_ATTR_SKIP_CPU_SYNC)) in dma_4u_unmap_sg()
641 strbuf_flush(strbuf, iommu, dma_handle, ctx, in dma_4u_unmap_sg()
662 struct strbuf *strbuf; in dma_4u_sync_single_for_cpu() local
666 strbuf = dev->archdata.stc; in dma_4u_sync_single_for_cpu()
668 if (!strbuf->strbuf_enabled) in dma_4u_sync_single_for_cpu()
680 strbuf->strbuf_ctxflush) { in dma_4u_sync_single_for_cpu()
690 strbuf_flush(strbuf, iommu, bus_addr, ctx, npages, direction); in dma_4u_sync_single_for_cpu()
700 struct strbuf *strbuf; in dma_4u_sync_sg_for_cpu() local
706 strbuf = dev->archdata.stc; in dma_4u_sync_sg_for_cpu()
708 if (!strbuf->strbuf_enabled) in dma_4u_sync_sg_for_cpu()
716 strbuf->strbuf_ctxflush) { in dma_4u_sync_sg_for_cpu()
736 strbuf_flush(strbuf, iommu, bus_addr, ctx, npages, direction); in dma_4u_sync_sg_for_cpu()