Lines Matching refs:dp83867
174 struct dp83867_private *dp83867 = phydev->priv; in dp83867_of_init() local
180 dp83867->io_impedance = DP83867_IO_MUX_CFG_IO_IMPEDANCE_MAX; in dp83867_of_init()
182 dp83867->io_impedance = DP83867_IO_MUX_CFG_IO_IMPEDANCE_MIN; in dp83867_of_init()
184 dp83867->io_impedance = -EINVAL; in dp83867_of_init()
186 dp83867->rx_id_delay = fdtdec_get_uint(gd->fdt_blob, dev_of_offset(dev), in dp83867_of_init()
189 dp83867->tx_id_delay = fdtdec_get_uint(gd->fdt_blob, dev_of_offset(dev), in dp83867_of_init()
192 dp83867->fifo_depth = fdtdec_get_uint(gd->fdt_blob, dev_of_offset(dev), in dp83867_of_init()
200 struct dp83867_private *dp83867 = phydev->priv; in dp83867_of_init() local
202 dp83867->rx_id_delay = DEFAULT_RX_ID_DELAY; in dp83867_of_init()
203 dp83867->tx_id_delay = DEFAULT_TX_ID_DELAY; in dp83867_of_init()
204 dp83867->fifo_depth = DEFAULT_FIFO_DEPTH; in dp83867_of_init()
205 dp83867->io_impedance = -EINVAL; in dp83867_of_init()
213 struct dp83867_private *dp83867; in dp83867_config() local
218 dp83867 = kzalloc(sizeof(*dp83867), GFP_KERNEL); in dp83867_config()
219 if (!dp83867) in dp83867_config()
222 phydev->priv = dp83867; in dp83867_config()
227 dp83867 = (struct dp83867_private *)phydev->priv; in dp83867_config()
238 (dp83867->fifo_depth << DP83867_PHYCR_FIFO_DEPTH_SHIFT)); in dp83867_config()
261 (dp83867->fifo_depth << DP83867_PHYCTRL_RXFIFO_SHIFT) | in dp83867_config()
262 (dp83867->fifo_depth << DP83867_PHYCTRL_TXFIFO_SHIFT)); in dp83867_config()
283 delay = (dp83867->rx_id_delay | in dp83867_config()
284 (dp83867->tx_id_delay << DP83867_RGMII_TX_CLK_DELAY_SHIFT)); in dp83867_config()
289 if (dp83867->io_impedance >= 0) { in dp83867_config()
295 val |= dp83867->io_impedance & in dp83867_config()
307 kfree(dp83867); in dp83867_config()