Lines Matching refs:iommu

63 	struct iommu *iommu = dev->archdata.iommu;  in sbus_set_sbus64()  local
78 cfg_reg = iommu->write_complete_reg; in sbus_set_sbus64()
213 struct iommu *iommu = op->dev.archdata.iommu; in sbus_build_irq() local
214 unsigned long reg_base = iommu->write_complete_reg - 0x2000UL; in sbus_build_irq()
275 struct iommu *iommu = op->dev.archdata.iommu; in sysio_ue_handler() local
276 unsigned long reg_base = iommu->write_complete_reg - 0x2000UL; in sysio_ue_handler()
349 struct iommu *iommu = op->dev.archdata.iommu; in sysio_ce_handler() local
350 unsigned long reg_base = iommu->write_complete_reg - 0x2000UL; in sysio_ce_handler()
428 struct iommu *iommu = op->dev.archdata.iommu; in sysio_sbus_error_handler() local
433 reg_base = iommu->write_complete_reg - 0x2000UL; in sysio_sbus_error_handler()
497 struct iommu *iommu = op->dev.archdata.iommu; in sysio_register_error_handlers() local
498 unsigned long reg_base = iommu->write_complete_reg - 0x2000UL; in sysio_register_error_handlers()
535 control = upa_readq(iommu->write_complete_reg); in sysio_register_error_handlers()
537 upa_writeq(control, iommu->write_complete_reg); in sysio_register_error_handlers()
545 struct iommu *iommu; in sbus_iommu_init() local
559 iommu = kzalloc(sizeof(*iommu), GFP_ATOMIC); in sbus_iommu_init()
561 if (!iommu || !strbuf) in sbus_iommu_init()
564 op->dev.archdata.iommu = iommu; in sbus_iommu_init()
569 iommu->iommu_control = reg_base + IOMMU_CONTROL; in sbus_iommu_init()
570 iommu->iommu_tsbbase = reg_base + IOMMU_TSBBASE; in sbus_iommu_init()
571 iommu->iommu_flush = reg_base + IOMMU_FLUSH; in sbus_iommu_init()
572 iommu->iommu_tags = iommu->iommu_control + in sbus_iommu_init()
592 iommu->write_complete_reg = regs + 0x2000UL; in sbus_iommu_init()
599 if (iommu_table_init(iommu, IO_TSB_SIZE, MAP_BASE, 0xffffffff, -1)) in sbus_iommu_init()
602 control = upa_readq(iommu->iommu_control); in sbus_iommu_init()
607 upa_writeq(control, iommu->iommu_control); in sbus_iommu_init()
615 dram = iommu->iommu_control + (IOMMU_DRAMDIAG - IOMMU_CONTROL); in sbus_iommu_init()
616 tag = iommu->iommu_control + (IOMMU_TAGDIAG - IOMMU_CONTROL); in sbus_iommu_init()
623 upa_readq(iommu->write_complete_reg); in sbus_iommu_init()
626 upa_writeq(__pa(iommu->page_table), iommu->iommu_tsbbase); in sbus_iommu_init()
648 control = upa_readq(iommu->write_complete_reg); in sbus_iommu_init()
650 upa_writeq(control, iommu->write_complete_reg); in sbus_iommu_init()
660 kfree(iommu); in sbus_iommu_init()