Home
last modified time | relevance | path

Searched refs:mdio_device (Results 1 – 25 of 41) sorted by relevance

12

/linux-5.19.10/include/linux/
Dmdio.h36 struct mdio_device { struct
43 void (*device_free)(struct mdio_device *mdiodev); argument
44 void (*device_remove)(struct mdio_device *mdiodev); argument
55 static inline struct mdio_device *to_mdio_device(const struct device *dev) in to_mdio_device() argument
57 return container_of(dev, struct mdio_device, dev); in to_mdio_device()
81 int (*probe)(struct mdio_device *mdiodev);
84 void (*remove)(struct mdio_device *mdiodev);
87 void (*shutdown)(struct mdio_device *mdiodev);
98 static inline void mdiodev_set_drvdata(struct mdio_device *mdio, void *data) in mdiodev_set_drvdata()
103 static inline void *mdiodev_get_drvdata(struct mdio_device *mdio) in mdiodev_get_drvdata()
[all …]
Dpcs-lynx.h12 struct mdio_device *lynx_get_mdio_device(struct phylink_pcs *pcs);
14 struct phylink_pcs *lynx_pcs_create(struct mdio_device *mdio);
Dphylink.h580 void phylink_mii_c22_pcs_get_state(struct mdio_device *pcs,
584 int phylink_mii_c22_pcs_config(struct mdio_device *pcs, unsigned int mode,
587 void phylink_mii_c22_pcs_an_restart(struct mdio_device *pcs);
589 void phylink_mii_c45_pcs_get_state(struct mdio_device *pcs,
Dof_mdio.h20 struct mdio_device *of_mdio_find_device(struct device_node *np);
82 static inline struct mdio_device *of_mdio_find_device(struct device_node *np) in of_mdio_find_device()
Dphy_led_triggers.h17 sizeof_field(struct mdio_device, addr)+\
/linux-5.19.10/drivers/base/regmap/
Dregmap-mdio.c13 static int regmap_mdio_read(struct mdio_device *mdio_dev, u32 reg, unsigned int *val) in regmap_mdio_read()
25 static int regmap_mdio_write(struct mdio_device *mdio_dev, u32 reg, unsigned int val) in regmap_mdio_write()
32 struct mdio_device *mdio_dev = context; in regmap_mdio_c22_read()
42 struct mdio_device *mdio_dev = context; in regmap_mdio_c22_write()
57 struct mdio_device *mdio_dev = context; in regmap_mdio_c45_read()
67 struct mdio_device *mdio_dev = context; in regmap_mdio_c45_write()
80 struct regmap *__regmap_init_mdio(struct mdio_device *mdio_dev, in __regmap_init_mdio()
97 struct regmap *__devm_regmap_init_mdio(struct mdio_device *mdio_dev, in __devm_regmap_init_mdio()
/linux-5.19.10/drivers/net/phy/
Dmdio_device.c25 void mdio_device_free(struct mdio_device *mdiodev) in mdio_device_free()
38 struct mdio_device *mdiodev = to_mdio_device(dev); in mdio_device_bus_match()
47 struct mdio_device *mdio_device_create(struct mii_bus *bus, int addr) in mdio_device_create()
49 struct mdio_device *mdiodev; in mdio_device_create()
76 int mdio_device_register(struct mdio_device *mdiodev) in mdio_device_register()
109 void mdio_device_remove(struct mdio_device *mdiodev) in mdio_device_remove()
116 void mdio_device_reset(struct mdio_device *mdiodev, int value) in mdio_device_reset()
148 struct mdio_device *mdiodev = to_mdio_device(dev); in mdio_probe()
169 struct mdio_device *mdiodev = to_mdio_device(dev); in mdio_remove()
184 struct mdio_device *mdiodev = to_mdio_device(dev); in mdio_shutdown()
Dmdio_bus.c43 static int mdiobus_register_gpiod(struct mdio_device *mdiodev) in mdiobus_register_gpiod()
57 static int mdiobus_register_reset(struct mdio_device *mdiodev) in mdiobus_register_reset()
70 int mdiobus_register_device(struct mdio_device *mdiodev) in mdiobus_register_device()
96 int mdiobus_unregister_device(struct mdio_device *mdiodev) in mdiobus_unregister_device()
111 struct mdio_device *mdiodev = bus->mdio_map[addr]; in mdiobus_get_phy()
242 struct mdio_device *mdiodev = to_mdio_device(dev); in mdio_bus_device_stat_field_show()
448 struct mdio_device *mdiodev) in of_mdiobus_link_mdiodev()
474 struct mdio_device *mdiodev) in of_mdiobus_link_mdiodev()
490 struct mdio_device *mdiodev; in mdiobus_create_device()
525 struct mdio_device *mdiodev; in __mdiobus_register()
[all …]
Dxilinx_gmii2rgmii.c27 struct mdio_device *mdio;
83 static int xgmiitorgmii_probe(struct mdio_device *mdiodev) in xgmiitorgmii_probe()
DMakefile6 mdio-bus-y += mdio_bus.o mdio_device.o
/linux-5.19.10/drivers/net/pcs/
Dpcs-lynx.c27 struct mdio_device *mdio;
40 struct mdio_device *lynx_get_mdio_device(struct phylink_pcs *pcs) in lynx_get_mdio_device()
48 static void lynx_pcs_get_state_usxgmii(struct mdio_device *pcs, in lynx_pcs_get_state_usxgmii()
71 static void lynx_pcs_get_state_2500basex(struct mdio_device *pcs, in lynx_pcs_get_state_2500basex()
127 static int lynx_pcs_config_1000basex(struct mdio_device *pcs, in lynx_pcs_config_1000basex()
151 static int lynx_pcs_config_sgmii(struct mdio_device *pcs, unsigned int mode, in lynx_pcs_config_sgmii()
180 static int lynx_pcs_config_usxgmii(struct mdio_device *pcs, unsigned int mode, in lynx_pcs_config_usxgmii()
237 static void lynx_pcs_link_up_sgmii(struct mdio_device *pcs, unsigned int mode, in lynx_pcs_link_up_sgmii()
293 static void lynx_pcs_link_up_2500basex(struct mdio_device *pcs, in lynx_pcs_link_up_2500basex()
346 struct phylink_pcs *lynx_pcs_create(struct mdio_device *mdio) in lynx_pcs_create()
/linux-5.19.10/drivers/net/dsa/
Dlan9303_mdio.c21 struct mdio_device *device;
25 static void lan9303_mdio_real_write(struct mdio_device *mdio, int reg, u16 val) in lan9303_mdio_real_write()
43 static u16 lan9303_mdio_real_read(struct mdio_device *mdio, int reg) in lan9303_mdio_real_read()
99 static int lan9303_mdio_probe(struct mdio_device *mdiodev) in lan9303_mdio_probe()
133 static void lan9303_mdio_remove(struct mdio_device *mdiodev) in lan9303_mdio_remove()
145 static void lan9303_mdio_shutdown(struct mdio_device *mdiodev) in lan9303_mdio_shutdown()
Dmv88e6060.c257 static int mv88e6060_probe(struct mdio_device *mdiodev) in mv88e6060_probe()
292 static void mv88e6060_remove(struct mdio_device *mdiodev) in mv88e6060_remove()
304 static void mv88e6060_shutdown(struct mdio_device *mdiodev) in mv88e6060_shutdown()
Ddsa_loop.c300 static int dsa_loop_drv_probe(struct mdio_device *mdiodev) in dsa_loop_drv_probe()
342 static void dsa_loop_drv_remove(struct mdio_device *mdiodev) in dsa_loop_drv_remove()
358 static void dsa_loop_drv_shutdown(struct mdio_device *mdiodev) in dsa_loop_drv_shutdown()
/linux-5.19.10/drivers/net/dsa/xrs700x/
Dxrs700x_mdio.c27 struct mdio_device *mdiodev = context; in xrs700x_mdio_reg_read()
62 struct mdio_device *mdiodev = context; in xrs700x_mdio_reg_write()
107 static int xrs700x_mdio_probe(struct mdio_device *mdiodev) in xrs700x_mdio_probe()
135 static void xrs700x_mdio_remove(struct mdio_device *mdiodev) in xrs700x_mdio_remove()
147 static void xrs700x_mdio_shutdown(struct mdio_device *mdiodev) in xrs700x_mdio_shutdown()
/linux-5.19.10/drivers/net/dsa/microchip/
Dksz8863_smi.c26 struct mdio_device *mdev; in ksz8863_mdio_read()
57 struct mdio_device *mdev; in ksz8863_mdio_write()
141 static int ksz8863_smi_probe(struct mdio_device *mdiodev) in ksz8863_smi_probe()
188 static void ksz8863_smi_remove(struct mdio_device *mdiodev) in ksz8863_smi_remove()
198 static void ksz8863_smi_shutdown(struct mdio_device *mdiodev) in ksz8863_smi_shutdown()
/linux-5.19.10/include/linux/pcs/
Dpcs-xpcs.h24 struct mdio_device *mdiodev;
37 struct dw_xpcs *xpcs_create(struct mdio_device *mdiodev,
/linux-5.19.10/drivers/phy/broadcom/
Dphy-bcm-ns2-pcie.c28 struct mdio_device *mdiodev = phy_get_drvdata(p); in ns2_pci_phy_init()
53 static int ns2_pci_phy_probe(struct mdio_device *mdiodev) in ns2_pci_phy_probe()
Dphy-bcm-ns-usb3.c52 struct mdio_device *mdiodev;
184 struct mdio_device *mdiodev = usb3->mdiodev; in bcm_ns_usb3_mdio_phy_write()
189 static int bcm_ns_usb3_mdio_probe(struct mdio_device *mdiodev) in bcm_ns_usb3_mdio_probe()
/linux-5.19.10/drivers/net/dsa/ocelot/
Dseville_vsc9953.c1318 struct mdio_device *mdio_device; in vsc9953_mdio_bus_alloc() local
1327 mdio_device = mdio_device_create(felix->imdio, addr); in vsc9953_mdio_bus_alloc()
1328 if (IS_ERR(mdio_device)) in vsc9953_mdio_bus_alloc()
1331 phylink_pcs = lynx_pcs_create(mdio_device); in vsc9953_mdio_bus_alloc()
1333 mdio_device_free(mdio_device); in vsc9953_mdio_bus_alloc()
1352 struct mdio_device *mdio_device; in vsc9953_mdio_bus_free() local
1357 mdio_device = lynx_get_mdio_device(phylink_pcs); in vsc9953_mdio_bus_free()
1358 mdio_device_free(mdio_device); in vsc9953_mdio_bus_free()
Dfelix_vsc9959.c1369 struct mdio_device *mdio_device; in vsc9959_mdio_bus_alloc() local
1377 mdio_device = mdio_device_create(felix->imdio, port); in vsc9959_mdio_bus_alloc()
1378 if (IS_ERR(mdio_device)) in vsc9959_mdio_bus_alloc()
1381 phylink_pcs = lynx_pcs_create(mdio_device); in vsc9959_mdio_bus_alloc()
1383 mdio_device_free(mdio_device); in vsc9959_mdio_bus_alloc()
1402 struct mdio_device *mdio_device; in vsc9959_mdio_bus_free() local
1407 mdio_device = lynx_get_mdio_device(phylink_pcs); in vsc9959_mdio_bus_free()
1408 mdio_device_free(mdio_device); in vsc9959_mdio_bus_free()
/linux-5.19.10/drivers/net/dsa/realtek/
Drealtek-mdio.c142 static int realtek_mdio_probe(struct mdio_device *mdiodev) in realtek_mdio_probe()
236 static void realtek_mdio_remove(struct mdio_device *mdiodev) in realtek_mdio_remove()
252 static void realtek_mdio_shutdown(struct mdio_device *mdiodev) in realtek_mdio_shutdown()
/linux-5.19.10/drivers/net/ethernet/freescale/enetc/
Denetc_pf.c830 struct mdio_device *mdio_device; in enetc_imdio_create() local
854 mdio_device = mdio_device_create(bus, 0); in enetc_imdio_create()
855 if (IS_ERR(mdio_device)) { in enetc_imdio_create()
856 err = PTR_ERR(mdio_device); in enetc_imdio_create()
861 phylink_pcs = lynx_pcs_create(mdio_device); in enetc_imdio_create()
863 mdio_device_free(mdio_device); in enetc_imdio_create()
883 struct mdio_device *mdio_device; in enetc_imdio_remove() local
886 mdio_device = lynx_get_mdio_device(pf->pcs); in enetc_imdio_remove()
887 mdio_device_free(mdio_device); in enetc_imdio_remove()
/linux-5.19.10/drivers/net/dsa/b53/
Db53_mdio.c290 static int b53_mdio_probe(struct mdio_device *mdiodev) in b53_mdio_probe()
351 static void b53_mdio_remove(struct mdio_device *mdiodev) in b53_mdio_remove()
363 static void b53_mdio_shutdown(struct mdio_device *mdiodev) in b53_mdio_shutdown()
/linux-5.19.10/drivers/net/mdio/
Dof_mdio.c55 struct mdio_device *mdiodev; in of_mdiobus_register_device()
247 struct mdio_device *of_mdio_find_device(struct device_node *np) in of_mdio_find_device()

12