Lines Matching refs:mmd_mask
72 int ef4_mdio_wait_reset_mmds(struct ef4_nic *efx, unsigned int mmd_mask) in ef4_mdio_wait_reset_mmds() argument
80 int mask = mmd_mask; in ef4_mdio_wait_reset_mmds()
113 int ef4_mdio_check_mmds(struct ef4_nic *efx, unsigned int mmd_mask) in ef4_mdio_check_mmds() argument
121 probe_mmd = (mmd_mask & MDIO_DEVS_PHYXS) ? MDIO_MMD_PHYXS : in ef4_mdio_check_mmds()
122 __ffs(mmd_mask); in ef4_mdio_check_mmds()
133 if ((devices & mmd_mask) != mmd_mask) { in ef4_mdio_check_mmds()
136 devices, mmd_mask); in ef4_mdio_check_mmds()
142 while (mmd_mask) { in ef4_mdio_check_mmds()
143 if ((mmd_mask & 1) && ef4_mdio_check_mmd(efx, mmd)) in ef4_mdio_check_mmds()
145 mmd_mask = mmd_mask >> 1; in ef4_mdio_check_mmds()
152 bool ef4_mdio_links_ok(struct ef4_nic *efx, unsigned int mmd_mask) in ef4_mdio_links_ok() argument
163 mmd_mask &= ~(MDIO_DEVS_PHYXS | in ef4_mdio_links_ok()
168 mmd_mask &= ~(MDIO_DEVS_PCS | in ef4_mdio_links_ok()
172 mmd_mask &= ~(MDIO_DEVS_PMAPMD | in ef4_mdio_links_ok()
175 return mdio45_links_ok(&efx->mdio, mmd_mask); in ef4_mdio_links_ok()
213 int low_power, unsigned int mmd_mask) in ef4_mdio_set_mmds_lpower() argument
216 mmd_mask &= ~MDIO_DEVS_AN; in ef4_mdio_set_mmds_lpower()
217 while (mmd_mask) { in ef4_mdio_set_mmds_lpower()
218 if (mmd_mask & 1) in ef4_mdio_set_mmds_lpower()
220 mmd_mask = (mmd_mask >> 1); in ef4_mdio_set_mmds_lpower()