Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/mellanox/mlxbf_gige/
H A Dmlxbf_gige_mdio.c178 u8 mdio_period; in mdio_period_map() local
183 mdio_period = div_u64((MLXBF_GIGE_MDC_CLK_NS >> 1) * i1clk, 1000000000) - 1; in mdio_period_map()
185 return mdio_period; in mdio_period_map()
267 u8 mdio_period; in mlxbf_gige_mdio_cfg() local
270 mdio_period = mdio_period_map(priv); in mlxbf_gige_mdio_cfg()
274 val |= FIELD_PREP(MLXBF2_GIGE_MDIO_CFG_MDC_PERIOD_MASK, mdio_period); in mlxbf_gige_mdio_cfg()
280 val = FIELD_PREP(MLXBF3_GIGE_MDIO_CFG_MDC_PERIOD_MASK, mdio_period); in mlxbf_gige_mdio_cfg()