Home
last modified time | relevance | path

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

/u-boot/drivers/net/
A Deth-phy-uclass.c14 struct mii_dev *mdio_bus; member
49 int eth_phy_set_mdio_bus(struct udevice *eth_dev, struct mii_dev *mdio_bus) in eth_phy_set_mdio_bus() argument
59 if (!uc_priv->mdio_bus) in eth_phy_set_mdio_bus()
60 uc_priv->mdio_bus = mdio_bus; in eth_phy_set_mdio_bus()
83 if (uc_priv->mdio_bus) in eth_phy_get_mdio_bus()
88 return uc_priv->mdio_bus; in eth_phy_get_mdio_bus()
A Dcortina_ni.c428 struct mii_dev *mdio_bus = mdio_alloc(); in ca_mdio_register() local
430 if (!mdio_bus) in ca_mdio_register()
433 mdio_bus->read = cortina_mdio_read; in ca_mdio_register()
434 mdio_bus->write = cortina_mdio_write; in ca_mdio_register()
435 snprintf(mdio_bus->name, sizeof(mdio_bus->name), dev->name); in ca_mdio_register()
437 mdio_bus->priv = (void *)priv; in ca_mdio_register()
439 ret = mdio_register(mdio_bus); in ca_mdio_register()
443 priv->mdio_bus = mdio_bus; in ca_mdio_register()
486 int_phydev = phy_connect(priv->mdio_bus, in ca_phy_probe()
498 ext_phydev = phy_connect(priv->mdio_bus, in ca_phy_probe()
A Dmt7620-eth.c242 struct mii_dev *mdio_bus; member
409 struct mii_dev *mdio_bus = mdio_alloc(); in mt7620_mdio_register() local
412 if (!mdio_bus) in mt7620_mdio_register()
415 mdio_bus->read = mt7620_mdio_read; in mt7620_mdio_register()
416 mdio_bus->write = mt7620_mdio_write; in mt7620_mdio_register()
417 snprintf(mdio_bus->name, sizeof(mdio_bus->name), dev->name); in mt7620_mdio_register()
419 mdio_bus->priv = (void *)priv; in mt7620_mdio_register()
421 ret = mdio_register(mdio_bus); in mt7620_mdio_register()
426 priv->mdio_bus = mdio_bus; in mt7620_mdio_register()
A Dmtk_eth.c165 struct mii_dev *mdio_bus; member
552 struct mii_dev *mdio_bus = mdio_alloc(); in mtk_mdio_register() local
555 if (!mdio_bus) in mtk_mdio_register()
579 mdio_bus->read = mtk_mdio_read; in mtk_mdio_register()
580 mdio_bus->write = mtk_mdio_write; in mtk_mdio_register()
581 snprintf(mdio_bus->name, sizeof(mdio_bus->name), dev->name); in mtk_mdio_register()
583 mdio_bus->priv = (void *)priv; in mtk_mdio_register()
585 ret = mdio_register(mdio_bus); in mtk_mdio_register()
590 priv->mdio_bus = mdio_bus; in mtk_mdio_register()
1401 mdio_unregister(priv->mdio_bus); in mtk_eth_remove()
[all …]
A Dcortina_ni.h67 struct mii_dev *mdio_bus; member
/u-boot/drivers/net/phy/
A Dmv88e61xx.c192 struct mii_dev *mdio_bus; member
267 struct mii_dev *mdio_bus = priv->mdio_bus; in mv88e61xx_reg_read() local
273 return mdio_bus->read(mdio_bus, dev, MDIO_DEVAD_NONE, reg); in mv88e61xx_reg_read()
281 res = mdio_bus->write(mdio_bus, smi_addr, MDIO_DEVAD_NONE, SMI_CMD_REG, in mv88e61xx_reg_read()
292 res = mdio_bus->read(mdio_bus, smi_addr, MDIO_DEVAD_NONE, SMI_DATA_REG); in mv88e61xx_reg_read()
304 struct mii_dev *mdio_bus = priv->mdio_bus; in mv88e61xx_reg_write() local
310 return mdio_bus->write(mdio_bus, dev, MDIO_DEVAD_NONE, reg, in mv88e61xx_reg_write()
320 res = mdio_bus->write(mdio_bus, smi_addr, MDIO_DEVAD_NONE, in mv88e61xx_reg_write()
326 res = mdio_bus->write(mdio_bus, smi_addr, MDIO_DEVAD_NONE, SMI_CMD_REG, in mv88e61xx_reg_write()
962 priv->mdio_bus = phydev->bus; in mv88e61xx_probe()
[all …]
/u-boot/drivers/net/ti/
A Dkeystone_net.c91 struct mii_dev *mdio_bus; member
538 struct mii_dev *mdio_bus; in ks2_eth_probe() local
572 mdio_bus = cpsw_mdio_init("ethernet-mdio", in ks2_eth_probe()
576 if (!mdio_bus) { in ks2_eth_probe()
580 priv->mdio_bus = mdio_bus; in ks2_eth_probe()
586 priv->mdio_bus = parent_priv->mdio_bus; in ks2_eth_probe()
593 priv->phydev = phy_connect(priv->mdio_bus, priv->phy_addr, in ks2_eth_probe()
609 cpsw_mdio_free(priv->mdio_bus); in ks2_eth_remove()
/u-boot/include/
A Deth_phy.h14 int eth_phy_set_mdio_bus(struct udevice *eth_dev, struct mii_dev *mdio_bus);
/u-boot/board/Marvell/octeontx/
A Dboard-fdt.c77 int mdio_bus[LMAC_CNT] = {[0 ... LMAC_CNT - 1] = -1}; in fdt_parse_phy_info() local
116 mdio_bus[lmacid] = fdt_get_mdio_bus in fdt_parse_phy_info()
150 bgx_set_board_info(bgx_id, mdio_bus, phy_addr, in fdt_parse_phy_info()
/u-boot/arch/arm/include/asm/arch-octeontx/
A Dboard.h121 void bgx_set_board_info(int bgx_id, int *mdio_bus, int *phy_addr,
/u-boot/drivers/net/octeontx/
A Dbgx.h232 int mdio_bus; member
A Dbgx.c554 snprintf(mii_name, sizeof(mii_name), "smi%d", phy->mdio_bus); in bgx_lmac_xaui_init()
919 bgx_board_info[bgx_idx].phy_info[lmacid].mdio_bus); in bgx_poll_for_link()
1403 void bgx_set_board_info(int bgx_id, int *mdio_bus, in bgx_set_board_info() argument
1411 bgx_board_info[bgx_id].phy_info[i].mdio_bus = mdio_bus[i]; in bgx_set_board_info()
1418 bgx_board_info[bgx_id].phy_info[i].mdio_bus, in bgx_set_board_info()
/u-boot/board/freescale/lx2160a/
A Deth_lx2160aqds.c66 u8 mdio_bus; member
379 bus = lx2160a_qds_mdio_init(phy_config[i].mdio_bus, in do_phy_config()
383 phy_config[i].mdio_bus, in do_phy_config()
A Deth_lx2162aqds.c66 u8 mdio_bus; member
400 bus = lx2162a_qds_mdio_init(phy_config[i].mdio_bus, in do_phy_config()
404 phy_config[i].mdio_bus, in do_phy_config()

Completed in 36 milliseconds