Searched refs:strbuf (Results 1 – 6 of 6) sorted by relevance
269 struct strbuf *strbuf; in dma_4u_map_page() local277 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() argument326 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()[all …]
545 struct strbuf *strbuf; in sbus_iommu_init() local559 strbuf = kzalloc(sizeof(*strbuf), GFP_ATOMIC); in sbus_iommu_init()560 if (!iommu || !strbuf) in sbus_iommu_init()564 op->dev.archdata.stc = strbuf; in sbus_iommu_init()575 strbuf->strbuf_control = reg_base + STRBUF_CONTROL; in sbus_iommu_init()576 strbuf->strbuf_pflush = reg_base + STRBUF_PFLUSH; in sbus_iommu_init()577 strbuf->strbuf_fsync = reg_base + STRBUF_FSYNC; in sbus_iommu_init()579 strbuf->strbuf_enabled = 1; in sbus_iommu_init()581 strbuf->strbuf_flushflag = (volatile unsigned long *) in sbus_iommu_init()582 ((((unsigned long)&strbuf->__flushflag_buf[0]) in sbus_iommu_init()[all …]
38 struct strbuf *strbuf = &pbm->stc; in psycho_check_stc_error() local42 if (!strbuf->strbuf_control) in psycho_check_stc_error()45 err_base = strbuf->strbuf_err_stat; in psycho_check_stc_error()46 tag_base = strbuf->strbuf_tag_diag; in psycho_check_stc_error()47 line_base = strbuf->strbuf_line_diag; in psycho_check_stc_error()59 control = upa_readq(strbuf->strbuf_control); in psycho_check_stc_error()60 upa_writeq(control | PSYCHO_STRBUF_CTRL_DENAB, strbuf->strbuf_control); in psycho_check_stc_error()76 upa_writeq(control, strbuf->strbuf_control); in psycho_check_stc_error()
148 struct strbuf stc;
131 struct strbuf *strbuf = &pbm->stc; in __schizo_check_stc_error_pbm() local152 control = upa_readq(strbuf->strbuf_control); in __schizo_check_stc_error_pbm()154 strbuf->strbuf_control); in __schizo_check_stc_error_pbm()170 upa_writeq(control, strbuf->strbuf_control); in __schizo_check_stc_error_pbm()
74 struct strbuf { struct