Searched refs:delay_val (Results 1 – 2 of 2) sorted by relevance
/linux-6.1.9/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac-mediatek.c | 195 u32 delay_val = 0, fine_val = 0; in mt2712_set_delay() local 201 delay_val |= FIELD_PREP(ETH_DLY_TXC_ENABLE, !!mac_delay->tx_delay); in mt2712_set_delay() 202 delay_val |= FIELD_PREP(ETH_DLY_TXC_STAGES, mac_delay->tx_delay); in mt2712_set_delay() 203 delay_val |= FIELD_PREP(ETH_DLY_TXC_INV, mac_delay->tx_inv); in mt2712_set_delay() 205 delay_val |= FIELD_PREP(ETH_DLY_RXC_ENABLE, !!mac_delay->rx_delay); in mt2712_set_delay() 206 delay_val |= FIELD_PREP(ETH_DLY_RXC_STAGES, mac_delay->rx_delay); in mt2712_set_delay() 207 delay_val |= FIELD_PREP(ETH_DLY_RXC_INV, mac_delay->rx_inv); in mt2712_set_delay() 216 delay_val |= FIELD_PREP(ETH_DLY_TXC_ENABLE, !!mac_delay->rx_delay); in mt2712_set_delay() 217 delay_val |= FIELD_PREP(ETH_DLY_TXC_STAGES, mac_delay->rx_delay); in mt2712_set_delay() 218 delay_val |= FIELD_PREP(ETH_DLY_TXC_INV, mac_delay->rx_inv); in mt2712_set_delay() [all …]
|
/linux-6.1.9/drivers/net/ethernet/mediatek/ |
D | mtk_star_emac.c | 1514 unsigned int delay_val = 0; in mtk_star_set_timing() local 1519 delay_val |= FIELD_PREP(MTK_STAR_BIT_INV_RX_CLK, priv->rx_inv); in mtk_star_set_timing() 1520 delay_val |= FIELD_PREP(MTK_STAR_BIT_INV_TX_CLK, priv->tx_inv); in mtk_star_set_timing() 1527 return regmap_write(priv->regs, MTK_STAR_REG_TEST0, delay_val); in mtk_star_set_timing()
|