Searched refs:mmd_mask (Results 1 - 6 of 6) sorted by relevance

/linux-4.1.27/drivers/net/ethernet/sfc/
H A Dmdio_10g.c75 int efx_mdio_wait_reset_mmds(struct efx_nic *efx, unsigned int mmd_mask) efx_mdio_wait_reset_mmds() argument
83 int mask = mmd_mask; efx_mdio_wait_reset_mmds()
116 int efx_mdio_check_mmds(struct efx_nic *efx, unsigned int mmd_mask) efx_mdio_check_mmds() argument
124 probe_mmd = (mmd_mask & MDIO_DEVS_PHYXS) ? MDIO_MMD_PHYXS : efx_mdio_check_mmds()
125 __ffs(mmd_mask); efx_mdio_check_mmds()
136 if ((devices & mmd_mask) != mmd_mask) { efx_mdio_check_mmds()
139 devices, mmd_mask); efx_mdio_check_mmds()
145 while (mmd_mask) { efx_mdio_check_mmds()
146 if ((mmd_mask & 1) && efx_mdio_check_mmd(efx, mmd)) efx_mdio_check_mmds()
148 mmd_mask = mmd_mask >> 1; efx_mdio_check_mmds()
155 bool efx_mdio_links_ok(struct efx_nic *efx, unsigned int mmd_mask) efx_mdio_links_ok() argument
166 mmd_mask &= ~(MDIO_DEVS_PHYXS | efx_mdio_links_ok()
171 mmd_mask &= ~(MDIO_DEVS_PCS | efx_mdio_links_ok()
175 mmd_mask &= ~(MDIO_DEVS_PMAPMD | efx_mdio_links_ok()
178 return mdio45_links_ok(&efx->mdio, mmd_mask); efx_mdio_links_ok()
216 int low_power, unsigned int mmd_mask) efx_mdio_set_mmds_lpower()
219 mmd_mask &= ~MDIO_DEVS_AN; efx_mdio_set_mmds_lpower()
220 while (mmd_mask) { efx_mdio_set_mmds_lpower()
221 if (mmd_mask & 1) efx_mdio_set_mmds_lpower()
223 mmd_mask = (mmd_mask >> 1); efx_mdio_set_mmds_lpower()
215 efx_mdio_set_mmds_lpower(struct efx_nic *efx, int low_power, unsigned int mmd_mask) efx_mdio_set_mmds_lpower() argument
H A Dmdio_10g.h70 int efx_mdio_check_mmds(struct efx_nic *efx, unsigned int mmd_mask);
73 bool efx_mdio_links_ok(struct efx_nic *efx, unsigned int mmd_mask);
83 unsigned int mmd_mask);
97 int efx_mdio_wait_reset_mmds(struct efx_nic *efx, unsigned int mmd_mask);
H A Dmcdi_port.c31 u32 mmd_mask; member in struct:efx_mcdi_phy_data
66 cfg->mmd_mask = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_MMD_MASK); efx_mcdi_get_phy_cfg()
365 efx->mdio.mmds = phy_data->mmd_mask & ~(1 << MC_CMD_MMD_CLAUSE22); efx_mcdi_phy_probe()
367 if (phy_data->mmd_mask & (1 << MC_CMD_MMD_CLAUSE22)) efx_mcdi_phy_probe()
369 if (phy_data->mmd_mask & ~(1 << MC_CMD_MMD_CLAUSE22)) efx_mcdi_phy_probe()
/linux-4.1.27/drivers/net/
H A Dmdio.c91 * @mmd_mask: Mask for MMDs to check
94 * @mmd_mask is normally @mdio->mmds, but if loopback is enabled
97 int mdio45_links_ok(const struct mdio_if_info *mdio, u32 mmd_mask) mdio45_links_ok() argument
101 if (!mmd_mask) { mdio45_links_ok()
108 for (devad = 0; mmd_mask; devad++) { mdio45_links_ok()
109 if (mmd_mask & (1 << devad)) { mdio45_links_ok()
110 mmd_mask &= ~(1 << devad); mdio45_links_ok()
/linux-4.1.27/drivers/net/phy/
H A Dphy_device.c1056 u32 mmd_mask = phydev->c45_ids.devices_in_package; gen10g_read_status() local
1064 for (devad = 0; mmd_mask; devad++, mmd_mask = mmd_mask >> 1) { gen10g_read_status()
1065 if (!(mmd_mask & 1)) gen10g_read_status()
H A Damd-xgbe-phy.c1339 u32 mmd_mask = phydev->c45_ids.devices_in_package; __amd_xgbe_phy_config_aneg() local
1346 if (!(mmd_mask & MDIO_DEVS_AN)) __amd_xgbe_phy_config_aneg()
1441 u32 mmd_mask = phydev->c45_ids.devices_in_package; amd_xgbe_phy_read_status() local
1450 if (!(mmd_mask & MDIO_DEVS_AN)) amd_xgbe_phy_read_status()

Completed in 188 milliseconds