Lines Matching full:atu

589 	struct dw_pcie_ob_atu_cfg atu = { 0 };  in dw_pcie_other_conf_map_bus()  local
612 atu.type = type; in dw_pcie_other_conf_map_bus()
613 atu.cpu_addr = pp->cfg0_base; in dw_pcie_other_conf_map_bus()
614 atu.pci_addr = busdev; in dw_pcie_other_conf_map_bus()
615 atu.size = pp->cfg0_size; in dw_pcie_other_conf_map_bus()
617 ret = dw_pcie_prog_outbound_atu(pci, &atu); in dw_pcie_other_conf_map_bus()
629 struct dw_pcie_ob_atu_cfg atu = { 0 }; in dw_pcie_rd_other_conf() local
637 atu.type = PCIE_ATU_TYPE_IO; in dw_pcie_rd_other_conf()
638 atu.cpu_addr = pp->io_base; in dw_pcie_rd_other_conf()
639 atu.pci_addr = pp->io_bus_addr; in dw_pcie_rd_other_conf()
640 atu.size = pp->io_size; in dw_pcie_rd_other_conf()
642 ret = dw_pcie_prog_outbound_atu(pci, &atu); in dw_pcie_rd_other_conf()
655 struct dw_pcie_ob_atu_cfg atu = { 0 }; in dw_pcie_wr_other_conf() local
663 atu.type = PCIE_ATU_TYPE_IO; in dw_pcie_wr_other_conf()
664 atu.cpu_addr = pp->io_base; in dw_pcie_wr_other_conf()
665 atu.pci_addr = pp->io_bus_addr; in dw_pcie_wr_other_conf()
666 atu.size = pp->io_size; in dw_pcie_wr_other_conf()
668 ret = dw_pcie_prog_outbound_atu(pci, &atu); in dw_pcie_wr_other_conf()
703 struct dw_pcie_ob_atu_cfg atu = { 0 }; in dw_pcie_iatu_setup() local
707 /* Note the very first outbound ATU is used for CFG IOs */ in dw_pcie_iatu_setup()
731 atu.index = i; in dw_pcie_iatu_setup()
732 atu.type = PCIE_ATU_TYPE_MEM; in dw_pcie_iatu_setup()
733 atu.cpu_addr = entry->res->start; in dw_pcie_iatu_setup()
734 atu.pci_addr = entry->res->start - entry->offset; in dw_pcie_iatu_setup()
738 atu.size = resource_size(entry->res) - in dw_pcie_iatu_setup()
741 atu.size = resource_size(entry->res); in dw_pcie_iatu_setup()
743 ret = dw_pcie_prog_outbound_atu(pci, &atu); in dw_pcie_iatu_setup()
753 atu.index = i; in dw_pcie_iatu_setup()
754 atu.type = PCIE_ATU_TYPE_IO; in dw_pcie_iatu_setup()
755 atu.cpu_addr = pp->io_base; in dw_pcie_iatu_setup()
756 atu.pci_addr = pp->io_bus_addr; in dw_pcie_iatu_setup()
757 atu.size = pp->io_size; in dw_pcie_iatu_setup()
759 ret = dw_pcie_prog_outbound_atu(pci, &atu); in dw_pcie_iatu_setup()
858 * ATU, so we should not program the ATU here. in dw_pcie_setup_rc()
883 struct dw_pcie_ob_atu_cfg atu = { 0 }; in dw_pcie_pme_turn_off() local
893 atu.code = PCIE_MSG_CODE_PME_TURN_OFF; in dw_pcie_pme_turn_off()
894 atu.routing = PCIE_MSG_TYPE_R_BC; in dw_pcie_pme_turn_off()
895 atu.type = PCIE_ATU_TYPE_MSG; in dw_pcie_pme_turn_off()
896 atu.size = resource_size(pci->pp.msg_res); in dw_pcie_pme_turn_off()
897 atu.index = pci->pp.msg_atu_index; in dw_pcie_pme_turn_off()
899 atu.cpu_addr = pci->pp.msg_res->start; in dw_pcie_pme_turn_off()
901 ret = dw_pcie_prog_outbound_atu(pci, &atu); in dw_pcie_pme_turn_off()
905 mem = ioremap(atu.cpu_addr, pci->region_align); in dw_pcie_pme_turn_off()