Lines Matching refs:target_bus_cfg
137 struct al_pcie_target_bus_cfg target_bus_cfg; member
223 struct al_pcie_target_bus_cfg *target_bus_cfg = &pcie->target_bus_cfg; in al_pcie_conf_addr_map_bus() local
224 unsigned int busnr_ecam = busnr & target_bus_cfg->ecam_mask; in al_pcie_conf_addr_map_bus()
225 unsigned int busnr_reg = busnr & target_bus_cfg->reg_mask; in al_pcie_conf_addr_map_bus()
227 if (busnr_reg != target_bus_cfg->reg_val) { in al_pcie_conf_addr_map_bus()
229 target_bus_cfg->reg_val, busnr_reg); in al_pcie_conf_addr_map_bus()
230 target_bus_cfg->reg_val = busnr_reg; in al_pcie_conf_addr_map_bus()
232 target_bus_cfg->reg_val, in al_pcie_conf_addr_map_bus()
233 target_bus_cfg->reg_mask); in al_pcie_conf_addr_map_bus()
247 struct al_pcie_target_bus_cfg *target_bus_cfg; in al_pcie_config_prepare() local
263 target_bus_cfg = &pcie->target_bus_cfg; in al_pcie_config_prepare()
272 target_bus_cfg->ecam_mask = ecam_bus_mask; in al_pcie_config_prepare()
274 target_bus_cfg->reg_mask = ~target_bus_cfg->ecam_mask; in al_pcie_config_prepare()
275 target_bus_cfg->reg_val = bus->start & target_bus_cfg->reg_mask; in al_pcie_config_prepare()
277 al_pcie_target_bus_set(pcie, target_bus_cfg->reg_val, in al_pcie_config_prepare()
278 target_bus_cfg->reg_mask); in al_pcie_config_prepare()