Home
last modified time | relevance | path

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

/external/u-boot/drivers/net/mscc_eswitch/
Dmscc_miim.c24 static int mscc_miim_wait_ready(struct mscc_miim_dev *miim) in mscc_miim_wait_ready() argument
26 return wait_for_bit_le32(miim->regs + MIIM_STATUS, MIIM_STAT_BUSY, in mscc_miim_wait_ready()
32 struct mscc_miim_dev *miim = (struct mscc_miim_dev *)bus->priv; in mscc_miim_read() local
36 ret = mscc_miim_wait_ready(miim); in mscc_miim_read()
42 miim->regs + MIIM_CMD); in mscc_miim_read()
44 ret = mscc_miim_wait_ready(miim); in mscc_miim_read()
48 val = readl(miim->regs + MIIM_DATA); in mscc_miim_read()
62 struct mscc_miim_dev *miim = (struct mscc_miim_dev *)bus->priv; in mscc_miim_write() local
65 ret = mscc_miim_wait_ready(miim); in mscc_miim_write()
71 MIIM_CMD_OPR_WRITE, miim->regs + MIIM_CMD); in mscc_miim_write()
[all …]
Dservalt_switch.c134 static struct mscc_miim_dev miim[SERVALT_MIIM_BUS_COUNT]; variable
395 if (miim[i].miim_base == base && miim[i].miim_size == size) in get_mdiobus()
396 return miim[i].bus; in get_mdiobus()
436 memset(&miim, 0x0, sizeof(struct mscc_miim_dev) * in servalt_probe()
470 mscc_mdiobus_init(miim, &miim_count, addr_base, in servalt_probe()
Dserval_switch.c162 static struct mscc_miim_dev miim[SERVAL_MIIM_BUS_COUNT]; variable
461 if (miim[i].miim_base == base && miim[i].miim_size == size) in get_mdiobus()
462 return miim[i].bus; in get_mdiobus()
506 memset(&miim, 0x0, sizeof(miim) * SERVAL_MIIM_BUS_COUNT); in serval_probe()
541 mscc_mdiobus_init(miim, &miim_count, addr_base, in serval_probe()
Dluton_switch.c195 static struct mscc_miim_dev miim[LUTON_MIIM_BUS_COUNT]; variable
568 if (miim[i].miim_base == base && miim[i].miim_size == size) in get_mdiobus()
569 return miim[i].bus; in get_mdiobus()
632 memset(&miim, 0x0, sizeof(miim) * LUTON_MIIM_BUS_COUNT); in luton_probe()
667 mscc_mdiobus_init(miim, &miim_count, addr_base, in luton_probe()
Docelot_switch.c163 static struct mscc_miim_dev miim[OCELOT_MIIM_BUS_COUNT]; variable
504 if (miim[i].miim_base == base && miim[i].miim_size == size) in get_mdiobus()
505 return miim[i].bus; in get_mdiobus()
553 memset(&miim, 0x0, sizeof(struct mscc_miim_dev) * in ocelot_probe()
586 mscc_mdiobus_init(miim, &miim_count, addr_base, in ocelot_probe()
Dmscc_miim.h19 struct mii_dev *mscc_mdiobus_init(struct mscc_miim_dev *miim, int *miim_count,
Djr2_switch.c277 static struct mscc_miim_dev miim[JR2_MIIM_BUS_COUNT]; variable
820 if (miim[i].miim_base == base && miim[i].miim_size == size) in get_mdiobus()
821 return miim[i].bus; in get_mdiobus()
866 memset(&miim, 0x0, sizeof(struct mscc_miim_dev) * JR2_MIIM_BUS_COUNT); in jr2_probe()
901 mscc_mdiobus_init(miim, &miim_count, addr_base, in jr2_probe()
/external/u-boot/drivers/net/
Dpch_gbe.c342 if (readl(&mac_regs->miim) & PCH_GBE_MIIM_OPER_READY) in pch_gbe_mdio_ready()
354 u32 miim; in pch_gbe_mdio_read() local
359 miim = (addr << PCH_GBE_MIIM_PHY_ADDR_SHIFT) | in pch_gbe_mdio_read()
362 writel(miim, &mac_regs->miim); in pch_gbe_mdio_read()
367 return readl(&mac_regs->miim) & 0xffff; in pch_gbe_mdio_read()
374 u32 miim; in pch_gbe_mdio_write() local
379 miim = (addr << PCH_GBE_MIIM_PHY_ADDR_SHIFT) | in pch_gbe_mdio_write()
382 writel(miim, &mac_regs->miim); in pch_gbe_mdio_write()
Dpch_gbe.h258 u32 miim; member
/external/u-boot/arch/mips/dts/
Dmscc,servalt.dtsi176 compatible = "mscc,jr2-miim";
184 compatible = "mscc,jr2-miim";
Dmscc,luton.dtsi146 compatible = "mscc,luton-miim";
154 compatible = "mscc,luton-miim";
Dmscc,jr2.dtsi272 compatible = "mscc,jr2-miim";
280 compatible = "mscc,jr2-miim";
288 compatible = "mscc,jr2-miim";
Dmscc,serval.dtsi184 compatible = "mscc,serval-miim";
192 compatible = "mscc,serval-miim";
Dmscc,ocelot.dtsi155 compatible = "mscc,ocelot-miim";
164 compatible = "mscc,ocelot-miim";