Home
last modified time | relevance | path

Searched refs:mmd_mask (Results 1 – 10 of 10) sorted by relevance

/linux/drivers/net/ethernet/sfc/falcon/
H A Dmdio_10g.c72 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()
[all …]
H A Dmdio_10g.h67 int ef4_mdio_check_mmds(struct ef4_nic *efx, unsigned int mmd_mask);
70 bool ef4_mdio_links_ok(struct ef4_nic *efx, unsigned int mmd_mask);
80 unsigned int mmd_mask);
95 int ef4_mdio_wait_reset_mmds(struct ef4_nic *efx, unsigned int mmd_mask);
/linux/drivers/net/phy/
H A Dbcm84881.c60 const u32 mmd_mask = MDIO_DEVS_PMAPMD | MDIO_DEVS_AN; in bcm84881_probe() local
63 (phydev->c45_ids.devices_in_package & mmd_mask) != mmd_mask) in bcm84881_probe()
H A Dphy-c45.c420 u32 mmd_mask = MDIO_DEVS_PMAPMD; in genphy_c45_read_link() local
438 while (mmd_mask && link) { in genphy_c45_read_link()
439 devad = __ffs(mmd_mask); in genphy_c45_read_link()
440 mmd_mask &= ~BIT(devad); in genphy_c45_read_link()
H A Dmarvell10g.c515 u32 mmd_mask = MDIO_DEVS_PMAPMD | MDIO_DEVS_AN; in mv3310_probe() local
519 (phydev->c45_ids.devices_in_package & mmd_mask) != mmd_mask) in mv3310_probe()
/linux/drivers/net/
H A Dmdio.c94 int mdio45_links_ok(const struct mdio_if_info *mdio, u32 mmd_mask) in mdio45_links_ok() argument
98 if (!mmd_mask) { in mdio45_links_ok()
105 for (devad = 0; mmd_mask; devad++) { in mdio45_links_ok()
106 if (mmd_mask & (1 << devad)) { in mdio45_links_ok()
107 mmd_mask &= ~(1 << devad); in mdio45_links_ok()
/linux/drivers/net/ethernet/sfc/siena/
H A Dmcdi_port_common.h26 u32 mmd_mask; member
H A Dmcdi_port_common.c45 cfg->mmd_mask = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_MMD_MASK); in efx_mcdi_get_phy_cfg()
454 efx->mdio.mmds = phy_data->mmd_mask & ~(1 << MC_CMD_MMD_CLAUSE22); in efx_siena_mcdi_phy_probe()
456 if (phy_data->mmd_mask & (1 << MC_CMD_MMD_CLAUSE22)) in efx_siena_mcdi_phy_probe()
458 if (phy_data->mmd_mask & ~(1 << MC_CMD_MMD_CLAUSE22)) in efx_siena_mcdi_phy_probe()
/linux/drivers/net/ethernet/sfc/
H A Dmcdi_port_common.h26 u32 mmd_mask; member
H A Dmcdi_port_common.c44 cfg->mmd_mask = MCDI_DWORD(outbuf, GET_PHY_CFG_OUT_MMD_MASK); in efx_mcdi_get_phy_cfg()
453 efx->mdio.mmds = phy_data->mmd_mask & ~(1 << MC_CMD_MMD_CLAUSE22); in efx_mcdi_phy_probe()
455 if (phy_data->mmd_mask & (1 << MC_CMD_MMD_CLAUSE22)) in efx_mcdi_phy_probe()
457 if (phy_data->mmd_mask & ~(1 << MC_CMD_MMD_CLAUSE22)) in efx_mcdi_phy_probe()