Searched refs:strbuf (Results 1 – 6 of 6) sorted by relevance
270 struct strbuf *strbuf; in dma_4u_map_page() local278 strbuf = dev->archdata.stc; in dma_4u_map_page()301 if (strbuf->strbuf_enabled) in dma_4u_map_page()321 static void strbuf_flush(struct strbuf *strbuf, struct iommu *iommu, in strbuf_flush() argument327 if (strbuf->strbuf_ctxflush && in strbuf_flush()332 flushreg = strbuf->strbuf_ctxflush; in strbuf_flush()333 matchreg = STC_CTXMATCH_ADDR(strbuf, ctx); in strbuf_flush()358 iommu_write(strbuf->strbuf_pflush, vaddr); in strbuf_flush()369 STC_FLUSHFLAG_INIT(strbuf); in strbuf_flush()370 iommu_write(strbuf->strbuf_fsync, strbuf->strbuf_flushflag_pa); in strbuf_flush()[all …]
544 struct strbuf *strbuf; in sbus_iommu_init() local558 strbuf = kzalloc(sizeof(*strbuf), GFP_ATOMIC); in sbus_iommu_init()559 if (!iommu || !strbuf) in sbus_iommu_init()563 op->dev.archdata.stc = strbuf; in sbus_iommu_init()574 strbuf->strbuf_control = reg_base + STRBUF_CONTROL; in sbus_iommu_init()575 strbuf->strbuf_pflush = reg_base + STRBUF_PFLUSH; in sbus_iommu_init()576 strbuf->strbuf_fsync = reg_base + STRBUF_FSYNC; in sbus_iommu_init()578 strbuf->strbuf_enabled = 1; in sbus_iommu_init()580 strbuf->strbuf_flushflag = (volatile unsigned long *) in sbus_iommu_init()581 ((((unsigned long)&strbuf->__flushflag_buf[0]) in sbus_iommu_init()[all …]
37 struct strbuf *strbuf = &pbm->stc; in psycho_check_stc_error() local41 if (!strbuf->strbuf_control) in psycho_check_stc_error()44 err_base = strbuf->strbuf_err_stat; in psycho_check_stc_error()45 tag_base = strbuf->strbuf_tag_diag; in psycho_check_stc_error()46 line_base = strbuf->strbuf_line_diag; in psycho_check_stc_error()58 control = upa_readq(strbuf->strbuf_control); in psycho_check_stc_error()59 upa_writeq(control | PSYCHO_STRBUF_CTRL_DENAB, strbuf->strbuf_control); in psycho_check_stc_error()75 upa_writeq(control, strbuf->strbuf_control); in psycho_check_stc_error()
144 struct strbuf stc;
130 struct strbuf *strbuf = &pbm->stc; in __schizo_check_stc_error_pbm() local151 control = upa_readq(strbuf->strbuf_control); in __schizo_check_stc_error_pbm()153 strbuf->strbuf_control); in __schizo_check_stc_error_pbm()169 upa_writeq(control, strbuf->strbuf_control); in __schizo_check_stc_error_pbm()
74 struct strbuf { struct