Home
last modified time | relevance | path

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

12345

/external/u-boot/common/
Dmiiphyutil.c33 static struct mii_dev *current_mii;
38 struct mii_dev *miiphy_get_dev_by_name(const char *devname) in miiphy_get_dev_by_name()
41 struct mii_dev *dev; in miiphy_get_dev_by_name()
49 dev = list_entry(entry, struct mii_dev, link); in miiphy_get_dev_by_name()
67 struct mii_dev *mdio_alloc(void) in mdio_alloc()
69 struct mii_dev *bus; in mdio_alloc()
83 void mdio_free(struct mii_dev *bus) in mdio_free()
88 int mdio_register(struct mii_dev *bus) in mdio_register()
109 int mdio_register_seq(struct mii_dev *bus, int seq) in mdio_register_seq()
121 int mdio_unregister(struct mii_dev *bus) in mdio_unregister()
[all …]
/external/u-boot/include/
Dmiiphy.h41 struct mii_dev *mdio_get_current_dev(void);
42 struct mii_dev *miiphy_get_dev_by_name(const char *devname);
47 struct mii_dev *mdio_alloc(void);
48 void mdio_free(struct mii_dev *bus);
49 int mdio_register(struct mii_dev *bus);
58 int mdio_register_seq(struct mii_dev *bus, int seq);
59 int mdio_unregister(struct mii_dev *bus);
84 int bb_miiphy_read(struct mii_dev *miidev, int addr, int devad, int reg);
85 int bb_miiphy_write(struct mii_dev *miidev, int addr, int devad, int reg,
Dphy.h109 struct mii_dev { struct
113 int (*read)(struct mii_dev *bus, int addr, int devad, int reg); argument
114 int (*write)(struct mii_dev *bus, int addr, int devad, int reg, argument
116 int (*reset)(struct mii_dev *bus); argument
162 struct mii_dev *bus;
205 struct mii_dev *bus = phydev->bus; in phy_read()
213 struct mii_dev *bus = phydev->bus; in phy_write()
231 struct phy_device *phy_find_by_mask(struct mii_dev *bus, unsigned phy_mask,
235 struct phy_device *phy_connect(struct mii_dev *bus, int addr,
240 struct phy_device *phy_connect(struct mii_dev *bus, int addr,
[all …]
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,
/external/u-boot/drivers/net/pfe_eth/
Dpfe_mdio.c16 static int pfe_write_addr(struct mii_dev *bus, int phy_addr, int dev_addr, in pfe_write_addr()
50 static int pfe_phy_read(struct mii_dev *bus, int phy_addr, int dev_addr, in pfe_phy_read()
105 static int pfe_phy_write(struct mii_dev *bus, int phy_addr, int dev_addr, in pfe_phy_write()
158 struct mii_dev bus; in pfe_configure_serdes()
248 struct mii_dev *pfe_mdio_init(struct pfe_mdio_info *mdio_info) in pfe_mdio_init()
250 struct mii_dev *bus; in pfe_mdio_init()
281 void pfe_set_mdio(int dev_id, struct mii_dev *bus) in pfe_set_mdio()
/external/u-boot/drivers/net/phy/
Db53.c114 struct mii_dev *bus;
118 static int b53_mdio_op(struct mii_dev *bus, u8 page, u8 reg, u16 op) in b53_mdio_op()
154 static int b53_mdio_read8(struct mii_dev *bus, u8 page, u8 reg, u8 *val) in b53_mdio_read8()
168 static int b53_mdio_read16(struct mii_dev *bus, u8 page, u8 reg, u16 *val) in b53_mdio_read16()
182 static int b53_mdio_read32(struct mii_dev *bus, u8 page, u8 reg, u32 *val) in b53_mdio_read32()
198 static int b53_mdio_read48(struct mii_dev *bus, u8 page, u8 reg, u64 *val) in b53_mdio_read48()
219 static int b53_mdio_read64(struct mii_dev *bus, u8 page, u8 reg, u64 *val) in b53_mdio_read64()
240 static int b53_mdio_write8(struct mii_dev *bus, u8 page, u8 reg, u8 value) in b53_mdio_write8()
252 static int b53_mdio_write16(struct mii_dev *bus, u8 page, u8 reg, in b53_mdio_write16()
265 static int b53_mdio_write32(struct mii_dev *bus, u8 page, u8 reg, in b53_mdio_write32()
[all …]
Dphy.c624 static struct phy_device *phy_device_create(struct mii_dev *bus, int addr, in phy_device_create()
671 int __weak get_phy_id(struct mii_dev *bus, int addr, int devad, u32 *phy_id) in get_phy_id()
697 static struct phy_device *create_phy_by_mask(struct mii_dev *bus, in create_phy_by_mask()
714 static struct phy_device *search_for_existing_phy(struct mii_dev *bus, in search_for_existing_phy()
731 static struct phy_device *get_phy_device_by_mask(struct mii_dev *bus, in get_phy_device_by_mask()
773 static struct phy_device *get_phy_device(struct mii_dev *bus, int addr, in get_phy_device()
832 struct mii_dev *bus = miiphy_get_dev_by_name(devname); in miiphy_reset()
845 struct phy_device *phy_find_by_mask(struct mii_dev *bus, uint phy_mask, in phy_find_by_mask()
877 struct phy_device *phy_connect(struct mii_dev *bus, int addr, in phy_connect()
881 struct phy_device *phy_connect(struct mii_dev *bus, int addr, in phy_connect()
/external/u-boot/board/freescale/ls1021aqds/
Deth.c34 struct mii_dev *realbus;
68 static int ls1021a_mdio_read(struct mii_dev *bus, int addr, int devad, in ls1021a_mdio_read()
78 static int ls1021a_mdio_write(struct mii_dev *bus, int addr, int devad, in ls1021a_mdio_write()
88 static int ls1021a_mdio_reset(struct mii_dev *bus) in ls1021a_mdio_reset()
98 struct mii_dev *bus = mdio_alloc(); in ls1021a_mdio_init()
/external/u-boot/board/freescale/ls1088a/
Deth_ls1088aqds.c80 struct mii_dev *realbus;
85 struct mii_dev *bus; in sgmii_configure_repeater()
302 struct mii_dev *mii_dev_for_muxval(u8 muxval) in mii_dev_for_muxval()
304 struct mii_dev *bus; in mii_dev_for_muxval()
344 static int ls1088a_qds_mdio_read(struct mii_dev *bus, int addr, in ls1088a_qds_mdio_read()
354 static int ls1088a_qds_mdio_write(struct mii_dev *bus, int addr, int devad, in ls1088a_qds_mdio_write()
364 static int ls1088a_qds_mdio_reset(struct mii_dev *bus) in ls1088a_qds_mdio_reset()
374 struct mii_dev *bus = mdio_alloc(); in ls1088a_qds_mdio_init()
466 struct mii_dev *bus; in ls1088a_handle_phy_interface_sgmii()
518 struct mii_dev *bus; in ls1088a_handle_phy_interface_qsgmii()
[all …]
/external/u-boot/board/gdsys/common/
Dihs_mdio.c90 static int ihs_mdio_idle(struct mii_dev *bus) in ihs_mdio_idle()
106 static int ihs_mdio_reset(struct mii_dev *bus) in ihs_mdio_reset()
113 static int ihs_mdio_read(struct mii_dev *bus, int addr, int dev_addr, in ihs_mdio_read()
132 static int ihs_mdio_write(struct mii_dev *bus, int addr, int dev_addr, in ihs_mdio_write()
147 struct mii_dev *bus = mdio_alloc(); in ihs_mdio_init()
/external/u-boot/board/freescale/ls1012aqds/
Deth.c48 struct mii_dev *realbus;
63 static int ls1012aqds_mdio_read(struct mii_dev *bus, int addr, int devad, in ls1012aqds_mdio_read()
73 static int ls1012aqds_mdio_write(struct mii_dev *bus, int addr, int devad, in ls1012aqds_mdio_write()
83 static int ls1012aqds_mdio_reset(struct mii_dev *bus) in ls1012aqds_mdio_reset()
96 struct mii_dev *bus = mdio_alloc(); in ls1012aqds_mdio_init()
132 struct mii_dev *bus; in pfe_eth_board_init()
/external/u-boot/drivers/net/
Dfsl_mdio.c59 static int fsl_pq_mdio_reset(struct mii_dev *bus) in fsl_pq_mdio_reset()
75 int tsec_phy_read(struct mii_dev *bus, int addr, int dev_addr, int regnum) in tsec_phy_read()
83 int tsec_phy_write(struct mii_dev *bus, int addr, int dev_addr, int regnum, in tsec_phy_write()
96 struct mii_dev *bus = mdio_alloc(); in fsl_pq_mdio_init()
Dpic32_mdio.c16 static int pic32_mdio_write(struct mii_dev *bus, in pic32_mdio_write()
44 static int pic32_mdio_read(struct mii_dev *bus, int addr, int devaddr, int reg) in pic32_mdio_read()
76 static int pic32_mdio_reset(struct mii_dev *bus) in pic32_mdio_reset()
105 struct mii_dev *bus; in pic32_mdio_init()
/external/u-boot/drivers/net/fm/
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()
Dmemac_phy.c39 int memac_mdio_write(struct mii_dev *bus, int port_addr, int dev_addr, in memac_mdio_write()
84 int memac_mdio_read(struct mii_dev *bus, int port_addr, int dev_addr, in memac_mdio_read()
131 int memac_mdio_reset(struct mii_dev *bus) in memac_mdio_reset()
138 struct mii_dev *bus = mdio_alloc(); in fm_memac_mdio_init()
/external/u-boot/board/freescale/t1040qds/
Deth.c78 struct mii_dev *realbus;
86 struct mii_dev *mii_dev_for_muxval(u8 muxval) in mii_dev_for_muxval()
88 struct mii_dev *bus; in mii_dev_for_muxval()
117 static int t1040_qds_mdio_read(struct mii_dev *bus, int addr, int devad, in t1040_qds_mdio_read()
127 static int t1040_qds_mdio_write(struct mii_dev *bus, int addr, int devad, in t1040_qds_mdio_write()
137 static int t1040_qds_mdio_reset(struct mii_dev *bus) in t1040_qds_mdio_reset()
147 struct mii_dev *bus = mdio_alloc(); in t1040_qds_mdio_init()
446 struct mii_dev *bus; in board_eth_init()
/external/u-boot/board/freescale/corenet_ds/
Deth_p4080.c71 struct mii_dev *mii_dev_for_muxval(u32 muxval) in mii_dev_for_muxval()
73 struct mii_dev *bus; in mii_dev_for_muxval()
145 struct mii_dev *realbus;
157 static int p4080ds_mdio_read(struct mii_dev *bus, int addr, int devad, in p4080ds_mdio_read()
167 static int p4080ds_mdio_write(struct mii_dev *bus, int addr, int devad, in p4080ds_mdio_write()
177 static int p4080ds_mdio_reset(struct mii_dev *bus) in p4080ds_mdio_reset()
187 struct mii_dev *bus = mdio_alloc(); in p4080ds_mdio_init()
295 struct mii_dev *bus; in board_eth_init()
Deth_hydra.c113 struct mii_dev *realbus;
116 static int hydra_mdio_read(struct mii_dev *bus, int addr, int devad, in hydra_mdio_read()
126 static int hydra_mdio_write(struct mii_dev *bus, int addr, int devad, in hydra_mdio_write()
136 static int hydra_mdio_reset(struct mii_dev *bus) in hydra_mdio_reset()
145 struct mii_dev *bus = miiphy_get_dev_by_name(name); in hydra_mdio_set_mux()
155 struct mii_dev *bus = mdio_alloc(); in hydra_mdio_init()
372 struct mii_dev *bus; in board_eth_init()
Deth_superhydra.c118 struct mii_dev *realbus;
121 static int super_hydra_mdio_read(struct mii_dev *bus, int addr, int devad, in super_hydra_mdio_read()
131 static int super_hydra_mdio_write(struct mii_dev *bus, int addr, int devad, in super_hydra_mdio_write()
141 static int super_hydra_mdio_reset(struct mii_dev *bus) in super_hydra_mdio_reset()
150 struct mii_dev *bus = miiphy_get_dev_by_name(name); in super_hydra_mdio_set_mux()
160 struct mii_dev *bus = mdio_alloc(); in super_hydra_mdio_init()
423 struct mii_dev *bus; in board_eth_init()
/external/u-boot/board/freescale/ls1046aqds/
Deth.c46 struct mii_dev *mii_dev_for_muxval(u8 muxval) in mii_dev_for_muxval()
48 struct mii_dev *bus; in mii_dev_for_muxval()
73 struct mii_dev *realbus;
88 static int ls1046aqds_mdio_read(struct mii_dev *bus, int addr, int devad, in ls1046aqds_mdio_read()
98 static int ls1046aqds_mdio_write(struct mii_dev *bus, int addr, int devad, in ls1046aqds_mdio_write()
109 static int ls1046aqds_mdio_reset(struct mii_dev *bus) in ls1046aqds_mdio_reset()
119 struct mii_dev *bus = mdio_alloc(); in ls1046aqds_mdio_init()
/external/u-boot/board/freescale/t102xqds/
Deth_t102xqds.c61 struct mii_dev *mii_dev_for_muxval(u8 muxval) in mii_dev_for_muxval()
63 struct mii_dev *bus; in mii_dev_for_muxval()
88 struct mii_dev *realbus;
103 static int t1024qds_mdio_read(struct mii_dev *bus, int addr, int devad, in t1024qds_mdio_read()
113 static int t1024qds_mdio_write(struct mii_dev *bus, int addr, int devad, in t1024qds_mdio_write()
123 static int t1024qds_mdio_reset(struct mii_dev *bus) in t1024qds_mdio_reset()
133 struct mii_dev *bus = mdio_alloc(); in t1024qds_mdio_init()
/external/u-boot/include/fsl-mc/
Dldpaa_wriop.h47 struct mii_dev *bus;
59 void wriop_set_mdio(int, struct mii_dev *);
60 struct mii_dev *wriop_get_mdio(int);
/external/u-boot/board/freescale/ls1043aqds/
Deth.c50 struct mii_dev *mii_dev_for_muxval(u8 muxval) in mii_dev_for_muxval()
52 struct mii_dev *bus; in mii_dev_for_muxval()
77 struct mii_dev *realbus;
92 static int ls1043aqds_mdio_read(struct mii_dev *bus, int addr, int devad, in ls1043aqds_mdio_read()
102 static int ls1043aqds_mdio_write(struct mii_dev *bus, int addr, int devad, in ls1043aqds_mdio_write()
113 static int ls1043aqds_mdio_reset(struct mii_dev *bus) in ls1043aqds_mdio_reset()
123 struct mii_dev *bus = mdio_alloc(); in ls1043aqds_mdio_init()
/external/u-boot/board/freescale/ls2080aqds/
Deth.c89 struct mii_dev *realbus;
94 struct mii_dev *bus; in sgmii_configure_repeater()
330 struct mii_dev *mii_dev_for_muxval(u8 muxval) in mii_dev_for_muxval()
332 struct mii_dev *bus; in mii_dev_for_muxval()
372 static int ls2080a_qds_mdio_read(struct mii_dev *bus, int addr, in ls2080a_qds_mdio_read()
382 static int ls2080a_qds_mdio_write(struct mii_dev *bus, int addr, int devad, in ls2080a_qds_mdio_write()
392 static int ls2080a_qds_mdio_reset(struct mii_dev *bus) in ls2080a_qds_mdio_reset()
402 struct mii_dev *bus = mdio_alloc(); in ls2080a_qds_mdio_init()
595 struct mii_dev *bus; in ls2080a_handle_phy_interface_sgmii()
738 struct mii_dev *bus; in ls2080a_handle_phy_interface_qsgmii()
/external/u-boot/include/net/pfe_eth/
Dpfe_eth.h76 struct mii_dev *bus;
96 struct mii_dev *pfe_mdio_init(struct pfe_mdio_info *mdio_info);
97 void pfe_set_mdio(int dev_id, struct mii_dev *bus);

12345