Lines Matching refs:strbuf

358 	struct strbuf *strbuf;  in dma_4u_map_page()  local
366 strbuf = dev->archdata.stc; in dma_4u_map_page()
389 if (strbuf->strbuf_enabled) in dma_4u_map_page()
409 static void strbuf_flush(struct strbuf *strbuf, struct iommu *iommu, in strbuf_flush() argument
415 if (strbuf->strbuf_ctxflush && in strbuf_flush()
420 flushreg = strbuf->strbuf_ctxflush; in strbuf_flush()
421 matchreg = STC_CTXMATCH_ADDR(strbuf, ctx); in strbuf_flush()
446 iommu_write(strbuf->strbuf_pflush, vaddr); in strbuf_flush()
457 STC_FLUSHFLAG_INIT(strbuf); in strbuf_flush()
458 iommu_write(strbuf->strbuf_fsync, strbuf->strbuf_flushflag_pa); in strbuf_flush()
462 while (!STC_FLUSHFLAG_SET(strbuf)) { in strbuf_flush()
480 struct strbuf *strbuf; in dma_4u_unmap_page() local
491 strbuf = dev->archdata.stc; in dma_4u_unmap_page()
507 if (strbuf->strbuf_enabled) in dma_4u_unmap_page()
508 strbuf_flush(strbuf, iommu, bus_addr, ctx, in dma_4u_unmap_page()
532 struct strbuf *strbuf; in dma_4u_map_sg() local
539 strbuf = dev->archdata.stc; in dma_4u_map_sg()
549 if (strbuf->strbuf_enabled) in dma_4u_map_sg()
700 struct strbuf *strbuf; in dma_4u_unmap_sg() local
706 strbuf = dev->archdata.stc; in dma_4u_unmap_sg()
730 if (strbuf->strbuf_enabled) in dma_4u_unmap_sg()
731 strbuf_flush(strbuf, iommu, dma_handle, ctx, in dma_4u_unmap_sg()
750 struct strbuf *strbuf; in dma_4u_sync_single_for_cpu() local
754 strbuf = dev->archdata.stc; in dma_4u_sync_single_for_cpu()
756 if (!strbuf->strbuf_enabled) in dma_4u_sync_single_for_cpu()
768 strbuf->strbuf_ctxflush) { in dma_4u_sync_single_for_cpu()
777 strbuf_flush(strbuf, iommu, bus_addr, ctx, npages, direction); in dma_4u_sync_single_for_cpu()
787 struct strbuf *strbuf; in dma_4u_sync_sg_for_cpu() local
793 strbuf = dev->archdata.stc; in dma_4u_sync_sg_for_cpu()
795 if (!strbuf->strbuf_enabled) in dma_4u_sync_sg_for_cpu()
803 strbuf->strbuf_ctxflush) { in dma_4u_sync_sg_for_cpu()
822 strbuf_flush(strbuf, iommu, bus_addr, ctx, npages, direction); in dma_4u_sync_sg_for_cpu()