Lines Matching refs:pipemux
67 u32 pipemux; member
112 static bool pipemux_strap_is_valid(u32 pipemux) in pipemux_strap_is_valid() argument
114 return !!(pipemux < ARRAY_SIZE(pipemux_table)); in pipemux_strap_is_valid()
122 u32 pipemux; in pipemux_strap_read() local
130 pipemux = readl(core->base + PCIE_PIPEMUX_CFG_OFFSET); in pipemux_strap_read()
131 pipemux &= PCIE_PIPEMUX_MASK; in pipemux_strap_read()
132 if (pipemux == PCIE_PIPEMUX_SELECT_STRAP) { in pipemux_strap_read()
133 regmap_read(core->cdru, CDRU_STRAP_DATA_LSW_OFFSET, &pipemux); in pipemux_strap_read()
134 pipemux >>= PCIE_PIPEMUX_SHIFT; in pipemux_strap_read()
135 pipemux &= PCIE_PIPEMUX_MASK; in pipemux_strap_read()
138 return pipemux; in pipemux_strap_read()
150 return !!((pipemux_table[core->pipemux] >> core_idx) & 0x1); in pcie_core_is_for_rc()
245 core->pipemux = pipemux_strap_read(core); in sr_pcie_phy_probe()
246 if (!pipemux_strap_is_valid(core->pipemux)) { in sr_pcie_phy_probe()
248 core->pipemux); in sr_pcie_phy_probe()