/u-boot/include/ |
A D | miiphy.h | 41 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 D | fsl_mdio.h | 49 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 D | phy.h | 69 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 D | eth_phy.h | 14 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 D | miiphyutil.c | 35 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 D | mscc_miim.h | 13 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 D | mscc_miim.c | 31 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 D | felix_switch.c | 114 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 D | cpsw_mdio.h | 13 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 D | cpsw_mdio.c | 63 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 D | eth.c | 35 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 D | eth_lx2160aqds.c | 56 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 D | eth_lx2162aqds.c | 56 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 D | tgec_phy.c | 19 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 D | pic32_mdio.c | 17 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 D | eth-phy-uclass.c | 14 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 D | bcm-sf2-eth.h | 52 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 D | ihs_mdio.c | 92 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 D | ldpaa_wriop.h | 50 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 D | pfe_mdio.c | 19 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 D | pfe_eth.h | 77 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 D | eth.c | 49 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 D | b53.c | 117 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 D | eth_hydra.c | 114 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 D | eth_p4080.c | 74 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()
|