Home
last modified time | relevance | path

Searched refs:mii_dev (Results 1 – 25 of 146) sorted by relevance

123456

/u-boot/include/
A Dmiiphy.h41 struct mii_dev *mdio_get_current_dev(void);
43 struct mii_dev *miiphy_get_dev_by_name(const char *devname);
48 struct mii_dev *mdio_alloc(void);
49 void mdio_free(struct mii_dev *bus);
50 int mdio_register(struct mii_dev *bus);
59 int mdio_register_seq(struct mii_dev *bus, int seq);
60 int mdio_unregister(struct mii_dev *bus);
93 int bb_miiphy_read(struct mii_dev *miidev, int addr, int devad, int reg);
94 int bb_miiphy_write(struct mii_dev *miidev, int addr, int devad, int reg,
137 struct mii_dev *mii_bus;
A Dfsl_mdio.h49 int tsec_phy_read(struct mii_dev *bus, int addr, int dev_addr, int regnum);
50 int tsec_phy_write(struct mii_dev *bus, int addr, int dev_addr, int regnum,
52 int memac_mdio_write(struct mii_dev *bus, int port_addr, int dev_addr,
54 int memac_mdio_read(struct mii_dev *bus, int port_addr, int dev_addr,
56 int memac_mdio_reset(struct mii_dev *bus);
A Dphy.h69 struct mii_dev { struct
73 int (*read)(struct mii_dev *bus, int addr, int devad, int reg); argument
74 int (*write)(struct mii_dev *bus, int addr, int devad, int reg, argument
76 int (*reset)(struct mii_dev *bus); argument
133 struct mii_dev *bus;
185 struct mii_dev *bus = phydev->bus; in phy_read()
206 struct mii_dev *bus = phydev->bus; in phy_write()
402 struct phy_device *phy_find_by_mask(struct mii_dev *bus, unsigned phy_mask,
450 struct phy_device *phy_connect(struct mii_dev *bus, int addr,
485 struct phy_device *phy_connect(struct mii_dev *bus, int addr,
[all …]
A Deth_phy.h14 int eth_phy_set_mdio_bus(struct udevice *eth_dev, struct mii_dev *mdio_bus);
15 struct mii_dev *eth_phy_get_mdio_bus(struct udevice *eth_dev);
/u-boot/common/
A Dmiiphyutil.c35 static struct mii_dev *current_mii;
43 struct mii_dev *dev; in miiphy_get_dev_by_name()
69 struct mii_dev *mdio_alloc(void) in mdio_alloc()
71 struct mii_dev *bus; in mdio_alloc()
85 void mdio_free(struct mii_dev *bus) in mdio_free()
143 struct mii_dev *bus = list_entry(entry, struct mii_dev, link); in mdio_list_devices()
164 struct mii_dev *dev; in miiphy_set_current_dev()
190 struct mii_dev *bus; in mdio_phydev_for_ethname()
244 struct mii_dev *bus; in miiphy_read()
272 struct mii_dev *bus; in miiphy_write()
[all …]
/u-boot/drivers/net/mscc_eswitch/
A Dmscc_miim.h13 struct mii_dev *bus;
16 int mscc_miim_read(struct mii_dev *bus, int addr, int devad, int reg);
17 int mscc_miim_write(struct mii_dev *bus, int addr, int devad, int reg, u16 val);
19 struct mii_dev *mscc_mdiobus_init(struct mscc_miim_dev *miim, int *miim_count,
A Dmscc_miim.c31 int mscc_miim_read(struct mii_dev *bus, int addr, int devad, int reg) in mscc_miim_read()
60 int mscc_miim_write(struct mii_dev *bus, int addr, int devad, int reg, in mscc_miim_write()
77 struct mii_dev *mscc_mdiobus_init(struct mscc_miim_dev *miim, int *miim_count, in mscc_mdiobus_init()
81 struct mii_dev *bus; in mscc_mdiobus_init()
A Dfelix_switch.c114 struct mii_dev imdio;
118 static int felix_mdio_read(struct mii_dev *bus, int addr, int devad, int reg) in felix_mdio_read()
126 static int felix_mdio_write(struct mii_dev *bus, int addr, int devad, int reg, in felix_mdio_write()
136 static void felix_init_sgmii(struct mii_dev *imdio, int pidx, bool an) in felix_init_sgmii()
173 static int felix_init_sxgmii(struct mii_dev *imdio, int pidx) in felix_init_sxgmii()
211 struct phy_device *phy, struct mii_dev *imdio) in felix_start_pcs()
300 struct mii_dev *mii_bus; in felix_probe()
/u-boot/drivers/net/ti/
A Dcpsw_mdio.h13 struct mii_dev *cpsw_mdio_init(const char *name, phys_addr_t mdio_base,
15 void cpsw_mdio_free(struct mii_dev *bus);
16 u32 cpsw_mdio_get_alive(struct mii_dev *bus);
A Dcpsw_mdio.c63 struct mii_dev *bus;
75 static int cpsw_mdio_read(struct mii_dev *bus, int phy_id, in cpsw_mdio_read()
101 static int cpsw_mdio_write(struct mii_dev *bus, int phy_id, int dev_addr, in cpsw_mdio_write()
123 u32 cpsw_mdio_get_alive(struct mii_dev *bus) in cpsw_mdio_get_alive()
132 struct mii_dev *cpsw_mdio_init(const char *name, phys_addr_t mdio_base, in cpsw_mdio_init()
194 void cpsw_mdio_free(struct mii_dev *bus) in cpsw_mdio_free()
/u-boot/board/freescale/ls1021aqds/
A Deth.c35 struct mii_dev *realbus;
69 static int ls1021a_mdio_read(struct mii_dev *bus, int addr, int devad, in ls1021a_mdio_read()
79 static int ls1021a_mdio_write(struct mii_dev *bus, int addr, int devad, in ls1021a_mdio_write()
89 static int ls1021a_mdio_reset(struct mii_dev *bus) in ls1021a_mdio_reset()
99 struct mii_dev *bus = mdio_alloc(); in ls1021a_mdio_init()
/u-boot/board/freescale/lx2160a/
A Deth_lx2160aqds.c56 struct mii_dev *realbus;
281 struct mii_dev *bus; in lx2160a_qds_mdio_init()
362 struct mii_dev *bus; in do_phy_config()
396 struct mii_dev *bus; in do_dpmac_config()
460 struct mii_dev *bus; in board_eth_init()
653 int fdt_get_ioslot_offset(void *fdt, struct mii_dev *mii_dev, int fpga_offset) in fdt_get_ioslot_offset() argument
667 priv = mii_dev->priv; in fdt_get_ioslot_offset()
776 struct mii_dev *mii_dev; in fdt_fixup_board_phy() local
801 mii_dev = list_entry(entry, struct mii_dev, link); in fdt_fixup_board_phy()
802 debug("mii_dev name : %s\n", mii_dev->name); in fdt_fixup_board_phy()
[all …]
A Deth_lx2162aqds.c56 struct mii_dev *realbus;
302 struct mii_dev *bus; in lx2162a_qds_mdio_init()
383 struct mii_dev *bus; in do_phy_config()
417 struct mii_dev *bus; in do_dpmac_config()
481 struct mii_dev *bus; in board_eth_init()
662 int fdt_get_ioslot_offset(void *fdt, struct mii_dev *mii_dev, int fpga_offset) in fdt_get_ioslot_offset() argument
676 priv = mii_dev->priv; in fdt_get_ioslot_offset()
788 struct mii_dev *mii_dev; in fdt_fixup_board_phy() local
813 mii_dev = list_entry(entry, struct mii_dev, link); in fdt_fixup_board_phy()
814 debug("mii_dev name : %s\n", mii_dev->name); in fdt_fixup_board_phy()
[all …]
/u-boot/drivers/net/fm/
A Dtgec_phy.c19 static int tgec_mdio_write(struct mii_dev *bus, int port_addr, int dev_addr, in tgec_mdio_write()
61 static int tgec_mdio_read(struct mii_dev *bus, int port_addr, int dev_addr, in tgec_mdio_read()
103 static int tgec_mdio_reset(struct mii_dev *bus) in tgec_mdio_reset()
110 struct mii_dev *bus = mdio_alloc(); in fm_tgec_mdio_init()
/u-boot/drivers/net/
A Dpic32_mdio.c17 static int pic32_mdio_write(struct mii_dev *bus, in pic32_mdio_write()
45 static int pic32_mdio_read(struct mii_dev *bus, int addr, int devaddr, int reg) in pic32_mdio_read()
77 static int pic32_mdio_reset(struct mii_dev *bus) in pic32_mdio_reset()
106 struct mii_dev *bus; in pic32_mdio_init()
A Deth-phy-uclass.c14 struct mii_dev *mdio_bus;
49 int eth_phy_set_mdio_bus(struct udevice *eth_dev, struct mii_dev *mdio_bus) in eth_phy_set_mdio_bus()
67 struct mii_dev *eth_phy_get_mdio_bus(struct udevice *eth_dev) in eth_phy_get_mdio_bus()
A Dbcm-sf2-eth.h52 int (*miiphy_read)(struct mii_dev *bus, int phyaddr, int devad,
54 int (*miiphy_write)(struct mii_dev *bus, int phyaddr, int devad,
/u-boot/board/gdsys/common/
A Dihs_mdio.c92 static int ihs_mdio_idle(struct mii_dev *bus) in ihs_mdio_idle()
108 static int ihs_mdio_reset(struct mii_dev *bus) in ihs_mdio_reset()
115 static int ihs_mdio_read(struct mii_dev *bus, int addr, int dev_addr, in ihs_mdio_read()
134 static int ihs_mdio_write(struct mii_dev *bus, int addr, int dev_addr, in ihs_mdio_write()
149 struct mii_dev *bus = mdio_alloc(); in ihs_mdio_init()
/u-boot/include/fsl-mc/
A Dldpaa_wriop.h50 struct mii_dev *bus;
60 int wriop_set_mdio(int dpmac_id, struct mii_dev *bus);
61 struct mii_dev *wriop_get_mdio(int dpmac_id);
/u-boot/drivers/net/pfe_eth/
A Dpfe_mdio.c19 static int pfe_write_addr(struct mii_dev *bus, int phy_addr, int dev_addr, in pfe_write_addr()
53 static int pfe_phy_read(struct mii_dev *bus, int phy_addr, int dev_addr, in pfe_phy_read()
108 static int pfe_phy_write(struct mii_dev *bus, int phy_addr, int dev_addr, in pfe_phy_write()
160 struct mii_dev bus; in pfe_configure_serdes()
249 struct mii_dev *pfe_mdio_init(struct pfe_mdio_info *mdio_info) in pfe_mdio_init()
251 struct mii_dev *bus; in pfe_mdio_init()
282 void pfe_set_mdio(int dev_id, struct mii_dev *bus) in pfe_set_mdio()
/u-boot/include/net/pfe_eth/
A Dpfe_eth.h77 struct mii_dev *bus;
97 struct mii_dev *pfe_mdio_init(struct pfe_mdio_info *mdio_info);
98 void pfe_set_mdio(int dev_id, struct mii_dev *bus);
/u-boot/board/freescale/ls1012aqds/
A Deth.c49 struct mii_dev *realbus;
64 static int ls1012aqds_mdio_read(struct mii_dev *bus, int addr, int devad, in ls1012aqds_mdio_read()
74 static int ls1012aqds_mdio_write(struct mii_dev *bus, int addr, int devad, in ls1012aqds_mdio_write()
84 static int ls1012aqds_mdio_reset(struct mii_dev *bus) in ls1012aqds_mdio_reset()
97 struct mii_dev *bus = mdio_alloc(); in ls1012aqds_mdio_init()
133 struct mii_dev *bus; in pfe_eth_board_init()
/u-boot/drivers/net/phy/
A Db53.c117 struct mii_dev *bus;
121 static int b53_mdio_op(struct mii_dev *bus, u8 page, u8 reg, u16 op) in b53_mdio_op()
157 static int b53_mdio_read8(struct mii_dev *bus, u8 page, u8 reg, u8 *val) in b53_mdio_read8()
171 static int b53_mdio_read16(struct mii_dev *bus, u8 page, u8 reg, u16 *val) in b53_mdio_read16()
185 static int b53_mdio_read32(struct mii_dev *bus, u8 page, u8 reg, u32 *val) in b53_mdio_read32()
255 static int b53_mdio_write16(struct mii_dev *bus, u8 page, u8 reg, in b53_mdio_write16()
268 static int b53_mdio_write32(struct mii_dev *bus, u8 page, u8 reg, in b53_mdio_write32()
286 static int b53_mdio_write48(struct mii_dev *bus, u8 page, u8 reg, in b53_mdio_write48()
304 static int b53_mdio_write64(struct mii_dev *bus, u8 page, u8 reg, in b53_mdio_write64()
636 struct mii_dev *bus; in do_b53_reg_read()
[all …]
/u-boot/board/freescale/corenet_ds/
A Deth_hydra.c114 struct mii_dev *realbus;
117 static int hydra_mdio_read(struct mii_dev *bus, int addr, int devad, in hydra_mdio_read()
127 static int hydra_mdio_write(struct mii_dev *bus, int addr, int devad, in hydra_mdio_write()
137 static int hydra_mdio_reset(struct mii_dev *bus) in hydra_mdio_reset()
146 struct mii_dev *bus = miiphy_get_dev_by_name(name); in hydra_mdio_set_mux()
156 struct mii_dev *bus = mdio_alloc(); in hydra_mdio_init()
376 struct mii_dev *bus; in board_eth_init()
A Deth_p4080.c74 struct mii_dev *mii_dev_for_muxval(u32 muxval) in mii_dev_for_muxval()
76 struct mii_dev *bus; in mii_dev_for_muxval()
148 struct mii_dev *realbus;
160 static int p4080ds_mdio_read(struct mii_dev *bus, int addr, int devad, in p4080ds_mdio_read()
170 static int p4080ds_mdio_write(struct mii_dev *bus, int addr, int devad, in p4080ds_mdio_write()
180 static int p4080ds_mdio_reset(struct mii_dev *bus) in p4080ds_mdio_reset()
190 struct mii_dev *bus = mdio_alloc(); in p4080ds_mdio_init()
298 struct mii_dev *bus; in board_eth_init()

Completed in 29 milliseconds

123456