• Home
  • Raw
  • Download

Lines Matching refs:iommu

62 	struct iommu *iommu = dev->archdata.iommu;  in sbus_set_sbus64()  local
77 cfg_reg = iommu->write_complete_reg; in sbus_set_sbus64()
212 struct iommu *iommu = op->dev.archdata.iommu; in sbus_build_irq() local
213 unsigned long reg_base = iommu->write_complete_reg - 0x2000UL; in sbus_build_irq()
274 struct iommu *iommu = op->dev.archdata.iommu; in sysio_ue_handler() local
275 unsigned long reg_base = iommu->write_complete_reg - 0x2000UL; in sysio_ue_handler()
348 struct iommu *iommu = op->dev.archdata.iommu; in sysio_ce_handler() local
349 unsigned long reg_base = iommu->write_complete_reg - 0x2000UL; in sysio_ce_handler()
427 struct iommu *iommu = op->dev.archdata.iommu; in sysio_sbus_error_handler() local
432 reg_base = iommu->write_complete_reg - 0x2000UL; in sysio_sbus_error_handler()
496 struct iommu *iommu = op->dev.archdata.iommu; in sysio_register_error_handlers() local
497 unsigned long reg_base = iommu->write_complete_reg - 0x2000UL; in sysio_register_error_handlers()
534 control = upa_readq(iommu->write_complete_reg); in sysio_register_error_handlers()
536 upa_writeq(control, iommu->write_complete_reg); in sysio_register_error_handlers()
544 struct iommu *iommu; in sbus_iommu_init() local
558 iommu = kzalloc(sizeof(*iommu), GFP_ATOMIC); in sbus_iommu_init()
560 if (!iommu || !strbuf) in sbus_iommu_init()
563 op->dev.archdata.iommu = iommu; in sbus_iommu_init()
568 iommu->iommu_control = reg_base + IOMMU_CONTROL; in sbus_iommu_init()
569 iommu->iommu_tsbbase = reg_base + IOMMU_TSBBASE; in sbus_iommu_init()
570 iommu->iommu_flush = reg_base + IOMMU_FLUSH; in sbus_iommu_init()
571 iommu->iommu_tags = iommu->iommu_control + in sbus_iommu_init()
591 iommu->write_complete_reg = regs + 0x2000UL; in sbus_iommu_init()
598 if (iommu_table_init(iommu, IO_TSB_SIZE, MAP_BASE, 0xffffffff, -1)) in sbus_iommu_init()
601 control = upa_readq(iommu->iommu_control); in sbus_iommu_init()
606 upa_writeq(control, iommu->iommu_control); in sbus_iommu_init()
614 dram = iommu->iommu_control + (IOMMU_DRAMDIAG - IOMMU_CONTROL); in sbus_iommu_init()
615 tag = iommu->iommu_control + (IOMMU_TAGDIAG - IOMMU_CONTROL); in sbus_iommu_init()
622 upa_readq(iommu->write_complete_reg); in sbus_iommu_init()
625 upa_writeq(__pa(iommu->page_table), iommu->iommu_tsbbase); in sbus_iommu_init()
647 control = upa_readq(iommu->write_complete_reg); in sbus_iommu_init()
649 upa_writeq(control, iommu->write_complete_reg); in sbus_iommu_init()
659 kfree(iommu); in sbus_iommu_init()