Lines Matching full:struct

54 struct phy_device;
58 struct mii_dev {
59 struct list_head link;
62 int (*read)(struct mii_dev *bus, int addr, int devad, int reg);
63 int (*write)(struct mii_dev *bus, int addr, int devad, int reg,
65 int (*reset)(struct mii_dev *bus);
66 struct phy_device *phymap[PHY_MAX_ADDR];
70 /* struct phy_driver: a structure which defines PHY behavior
80 struct phy_driver {
90 int (*probe)(struct phy_device *phydev);
94 int (*config)(struct phy_device *phydev);
97 int (*startup)(struct phy_device *phydev);
100 int (*shutdown)(struct phy_device *phydev);
102 int (*readext)(struct phy_device *phydev, int addr, int devad, int reg);
103 int (*writeext)(struct phy_device *phydev, int addr, int devad, int reg,
105 struct list_head list;
108 struct phy_device {
111 struct mii_dev *bus;
112 struct phy_driver *drv;
116 struct udevice *dev;
119 struct eth_device *dev;
146 struct fixed_link {
154 static inline int phy_read(struct phy_device *phydev, int devad, int regnum) in phy_read()
156 struct mii_dev *bus = phydev->bus; in phy_read()
166 static inline int phy_write(struct phy_device *phydev, int devad, int regnum, in phy_write()
169 struct mii_dev *bus = phydev->bus; in phy_write()
180 extern struct phy_driver gen10g_driver;
191 int phy_reset(struct phy_device *phydev);
192 struct phy_device *phy_find_by_mask(struct mii_dev *bus, unsigned phy_mask,
195 void phy_connect_dev(struct phy_device *phydev, struct udevice *dev);
196 struct phy_device *phy_connect(struct mii_dev *bus, int addr,
197 struct udevice *dev,
199 static inline ofnode phy_get_ofnode(struct phy_device *phydev) in phy_get_ofnode()
207 void phy_connect_dev(struct phy_device *phydev, struct eth_device *dev);
208 struct phy_device *phy_connect(struct mii_dev *bus, int addr,
209 struct eth_device *dev,
211 static inline ofnode phy_get_ofnode(struct phy_device *phydev) in phy_get_ofnode()
216 int phy_startup(struct phy_device *phydev);
217 int phy_config(struct phy_device *phydev);
218 int phy_shutdown(struct phy_device *phydev);
219 int phy_register(struct phy_driver *drv);
220 int phy_set_supported(struct phy_device *phydev, u32 max_speed);
221 int genphy_config_aneg(struct phy_device *phydev);
222 int genphy_restart_aneg(struct phy_device *phydev);
223 int genphy_update_link(struct phy_device *phydev);
224 int genphy_parse_link(struct phy_device *phydev);
225 int genphy_config(struct phy_device *phydev);
226 int genphy_startup(struct phy_device *phydev);
227 int genphy_shutdown(struct phy_device *phydev);
228 int gen10g_config(struct phy_device *phydev);
229 int gen10g_startup(struct phy_device *phydev);
230 int gen10g_shutdown(struct phy_device *phydev);
231 int gen10g_discover_mmds(struct phy_device *phydev);
257 int board_phy_config(struct phy_device *phydev);
258 int get_phy_id(struct mii_dev *bus, int addr, int devad, u32 *phy_id);
271 * @phydev: the phy_device struct
273 static inline bool phy_interface_is_rgmii(struct phy_device *phydev) in phy_interface_is_rgmii()
282 * @phydev: the phy_device struct
284 static inline bool phy_interface_is_sgmii(struct phy_device *phydev) in phy_interface_is_sgmii()