Lines Matching refs:mmd_mask
75 int efx_mdio_wait_reset_mmds(struct efx_nic *efx, unsigned int mmd_mask) in efx_mdio_wait_reset_mmds() argument
83 int mask = mmd_mask; in efx_mdio_wait_reset_mmds()
116 int efx_mdio_check_mmds(struct efx_nic *efx, unsigned int mmd_mask) in efx_mdio_check_mmds() argument
124 probe_mmd = (mmd_mask & MDIO_DEVS_PHYXS) ? MDIO_MMD_PHYXS : in efx_mdio_check_mmds()
125 __ffs(mmd_mask); in efx_mdio_check_mmds()
136 if ((devices & mmd_mask) != mmd_mask) { in efx_mdio_check_mmds()
139 devices, mmd_mask); in efx_mdio_check_mmds()
145 while (mmd_mask) { in efx_mdio_check_mmds()
146 if ((mmd_mask & 1) && efx_mdio_check_mmd(efx, mmd)) in efx_mdio_check_mmds()
148 mmd_mask = mmd_mask >> 1; in efx_mdio_check_mmds()
155 bool efx_mdio_links_ok(struct efx_nic *efx, unsigned int mmd_mask) in efx_mdio_links_ok() argument
166 mmd_mask &= ~(MDIO_DEVS_PHYXS | in efx_mdio_links_ok()
171 mmd_mask &= ~(MDIO_DEVS_PCS | in efx_mdio_links_ok()
175 mmd_mask &= ~(MDIO_DEVS_PMAPMD | in efx_mdio_links_ok()
178 return mdio45_links_ok(&efx->mdio, mmd_mask); in efx_mdio_links_ok()
216 int low_power, unsigned int mmd_mask) in efx_mdio_set_mmds_lpower() argument
219 mmd_mask &= ~MDIO_DEVS_AN; in efx_mdio_set_mmds_lpower()
220 while (mmd_mask) { in efx_mdio_set_mmds_lpower()
221 if (mmd_mask & 1) in efx_mdio_set_mmds_lpower()
223 mmd_mask = (mmd_mask >> 1); in efx_mdio_set_mmds_lpower()