Lines Matching refs:ib_reg_mask
459 static int xgene_pcie_select_ib_reg(u8 *ib_reg_mask, u64 size) in xgene_pcie_select_ib_reg() argument
461 if ((size > 4) && (size < SZ_16M) && !(*ib_reg_mask & (1 << 1))) { in xgene_pcie_select_ib_reg()
462 *ib_reg_mask |= (1 << 1); in xgene_pcie_select_ib_reg()
466 if ((size > SZ_1K) && (size < SZ_1T) && !(*ib_reg_mask & (1 << 0))) { in xgene_pcie_select_ib_reg()
467 *ib_reg_mask |= (1 << 0); in xgene_pcie_select_ib_reg()
471 if ((size > SZ_1M) && (size < SZ_1T) && !(*ib_reg_mask & (1 << 2))) { in xgene_pcie_select_ib_reg()
472 *ib_reg_mask |= (1 << 2); in xgene_pcie_select_ib_reg()
480 struct of_pci_range *range, u8 *ib_reg_mask) in xgene_pcie_setup_ib_reg() argument
494 region = xgene_pcie_select_ib_reg(ib_reg_mask, range->size); in xgene_pcie_setup_ib_reg()
535 u8 ib_reg_mask = 0; in xgene_pcie_parse_map_dma_ranges() local
548 xgene_pcie_setup_ib_reg(port, &range, &ib_reg_mask); in xgene_pcie_parse_map_dma_ranges()