/linux-6.1.9/drivers/net/ |
D | mdio.c | 26 int mdio45_probe(struct mdio_if_info *mdio, int prtad) in mdio45_probe() argument 34 stat2 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_STAT2); in mdio45_probe() 40 devs1 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_DEVS1); in mdio45_probe() 41 devs2 = mdio->mdio_read(mdio->dev, prtad, mmd, MDIO_DEVS2); in mdio45_probe() 45 mdio->prtad = prtad; in mdio45_probe() 46 mdio->mmds = devs1 | (devs2 << 16); in mdio45_probe() 66 int mdio_set_flag(const struct mdio_if_info *mdio, in mdio_set_flag() argument 70 int old_val = mdio->mdio_read(mdio->dev, prtad, devad, addr); in mdio_set_flag() 81 return mdio->mdio_write(mdio->dev, prtad, devad, addr, new_val); in mdio_set_flag() 94 int mdio45_links_ok(const struct mdio_if_info *mdio, u32 mmd_mask) in mdio45_links_ok() argument [all …]
|
/linux-6.1.9/drivers/net/mdio/ |
D | Makefile | 8 obj-$(CONFIG_MDIO_ASPEED) += mdio-aspeed.o 9 obj-$(CONFIG_MDIO_BCM_IPROC) += mdio-bcm-iproc.o 10 obj-$(CONFIG_MDIO_BCM_UNIMAC) += mdio-bcm-unimac.o 11 obj-$(CONFIG_MDIO_BITBANG) += mdio-bitbang.o 12 obj-$(CONFIG_MDIO_CAVIUM) += mdio-cavium.o 13 obj-$(CONFIG_MDIO_GPIO) += mdio-gpio.o 14 obj-$(CONFIG_MDIO_HISI_FEMAC) += mdio-hisi-femac.o 15 obj-$(CONFIG_MDIO_I2C) += mdio-i2c.o 16 obj-$(CONFIG_MDIO_IPQ4019) += mdio-ipq4019.o 17 obj-$(CONFIG_MDIO_IPQ8064) += mdio-ipq8064.o [all …]
|
D | mdio-mvusb.c | 27 struct mii_bus *mdio; member 32 static int mvusb_mdio_read(struct mii_bus *mdio, int dev, int reg) in mvusb_mdio_read() argument 34 struct mvusb_mdio *mvusb = mdio->priv; in mvusb_mdio_read() 55 static int mvusb_mdio_write(struct mii_bus *mdio, int dev, int reg, u16 val) in mvusb_mdio_write() argument 57 struct mvusb_mdio *mvusb = mdio->priv; in mvusb_mdio_write() 75 struct mii_bus *mdio; in mvusb_mdio_probe() local 77 mdio = devm_mdiobus_alloc_size(dev, sizeof(*mvusb)); in mvusb_mdio_probe() 78 if (!mdio) in mvusb_mdio_probe() 81 mvusb = mdio->priv; in mvusb_mdio_probe() 82 mvusb->mdio = mdio; in mvusb_mdio_probe() [all …]
|
D | of_mdio.c | 36 int of_mdiobus_phy_device_register(struct mii_bus *mdio, struct phy_device *phy, in of_mdiobus_phy_device_register() argument 39 return fwnode_mdiobus_phy_device_register(mdio, phy, in of_mdiobus_phy_device_register() 45 static int of_mdiobus_register_phy(struct mii_bus *mdio, in of_mdiobus_register_phy() argument 48 return fwnode_mdiobus_register_phy(mdio, of_fwnode_handle(child), addr); in of_mdiobus_register_phy() 51 static int of_mdiobus_register_device(struct mii_bus *mdio, in of_mdiobus_register_device() argument 58 mdiodev = mdio_device_create(mdio, addr); in of_mdiobus_register_device() 77 dev_dbg(&mdio->dev, "registered mdio device %pOFn at address %i\n", in of_mdiobus_register_device() 149 int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np) in of_mdiobus_register() argument 156 return mdiobus_register(mdio); in of_mdiobus_register() 164 mdio->phy_mask = ~0; in of_mdiobus_register() [all …]
|
D | fwnode_mdio.c | 60 int fwnode_mdiobus_phy_device_register(struct mii_bus *mdio, in fwnode_mdiobus_phy_device_register() argument 71 rc = driver_deferred_probe_check_state(&phy->mdio.dev); in fwnode_mdiobus_phy_device_register() 77 mdio->irq[addr] = rc; in fwnode_mdiobus_phy_device_register() 79 phy->irq = mdio->irq[addr]; in fwnode_mdiobus_phy_device_register() 83 mdio->phy_ignore_ta_mask |= 1 << addr; in fwnode_mdiobus_phy_device_register() 86 &phy->mdio.reset_assert_delay); in fwnode_mdiobus_phy_device_register() 88 &phy->mdio.reset_deassert_delay); in fwnode_mdiobus_phy_device_register() 94 device_set_node(&phy->mdio.dev, child); in fwnode_mdiobus_phy_device_register() 101 device_set_node(&phy->mdio.dev, NULL); in fwnode_mdiobus_phy_device_register() 106 dev_dbg(&mdio->dev, "registered phy %p fwnode at address %i\n", in fwnode_mdiobus_phy_device_register() [all …]
|
D | acpi_mdio.c | 30 int acpi_mdiobus_register(struct mii_bus *mdio, struct fwnode_handle *fwnode) in acpi_mdiobus_register() argument 37 mdio->phy_mask = GENMASK(31, 0); in acpi_mdiobus_register() 38 ret = mdiobus_register(mdio); in acpi_mdiobus_register() 42 ACPI_COMPANION_SET(&mdio->dev, to_acpi_device_node(fwnode)); in acpi_mdiobus_register() 50 ret = fwnode_mdiobus_register_phy(mdio, child, addr); in acpi_mdiobus_register() 52 dev_err(&mdio->dev, in acpi_mdiobus_register()
|
/linux-6.1.9/Documentation/devicetree/bindings/net/ |
D | allwinner,sun8i-a83t-emac.yaml | 124 mdio-mux: 130 const: allwinner,sun8i-h3-mdio-mux 132 mdio-parent-bus: 143 mdio@1: 144 $ref: mdio.yaml# 150 const: allwinner,sun8i-h3-mdio-internal 173 mdio@2: 174 $ref: mdio.yaml# 184 - mdio-parent-bus 185 - mdio@1 [all …]
|
D | brcm,unimac-mdio.yaml | 4 $id: http://devicetree.org/schemas/net/brcm,unimac-mdio.yaml# 15 - $ref: mdio.yaml# 20 - brcm,genet-mdio-v1 21 - brcm,genet-mdio-v2 22 - brcm,genet-mdio-v3 23 - brcm,genet-mdio-v4 24 - brcm,genet-mdio-v5 25 - brcm,unimac-mdio 36 - const: mdio 46 "mdio done" interrupt [all …]
|
D | mdio-mux-multiplexer.yaml | 4 $id: http://devicetree.org/schemas/net/mdio-mux-multiplexer.yaml# 19 - $ref: /schemas/net/mdio-mux.yaml# 23 const: mdio-mux-multiplexer 43 mdio-mux-1 { // Mux consumer 44 compatible = "mdio-mux-multiplexer"; 46 mdio-parent-bus = <&emdio1>; 50 mdio@0 { 56 mdio@8 { 63 mdio-mux-2 { // Mux consumer 64 compatible = "mdio-mux-multiplexer"; [all …]
|
D | mdio-mux-mmioreg.yaml | 4 $id: http://devicetree.org/schemas/net/mdio-mux-mmioreg.yaml# 14 like an FPGA, is used to control which child bus is connected. The mdio-mux 19 - $ref: /schemas/net/mdio-mux.yaml# 24 - const: mdio-mux-mmioreg 25 - const: mdio-mux 37 child mdio-mux node must be constrained by this mask. 48 mdio-mux@9 { 49 compatible = "mdio-mux-mmioreg", "mdio-mux"; 50 mdio-parent-bus = <&xmdio0>; 56 mdio@0 { // Slot 1 XAUI (FM2) [all …]
|
D | mdio-gpio.yaml | 4 $id: http://devicetree.org/schemas/net/mdio-gpio.yaml# 15 - $ref: "mdio.yaml#" 20 - virtual,mdio-gpio 21 - microchip,mdio-smi0 36 #Note: Each gpio-mdio bus should have an alias correctly numbered in "aliases" 44 mdio-gpio0 = &mdio0; 47 mdio0: mdio { 48 compatible = "virtual,mdio-gpio";
|
D | cavium-mdio.txt | 6 "cavium,octeon-3860-mdio": Compatibility with all cn3XXX, cn5XXX 9 "cavium,thunder-8890-mdio": Compatibility with all cn8XXX SOCs. 20 mdio@1180000001800 { 21 compatible = "cavium,octeon-3860-mdio"; 35 Several mdio buses may be gathered as children of a single PCI 40 - compatible: "cavium,thunder-8890-mdio-nexus"; 54 mdio-nexus@1,3 { 55 compatible = "cavium,thunder-8890-mdio-nexus"; 63 compatible = "cavium,thunder-8890-mdio"; 74 compatible = "cavium,thunder-8890-mdio";
|
D | hisilicon-hns-mdio.txt | 5 "hisilicon,hns-mdio" 6 "hisilicon,mdio" 7 "hisilicon,hns-mdio" is recommended to be used for hip05 and later SOCs, 8 while "hisilicon,mdio" is optional for backwards compatibility only on 17 mdio@803c0000 { 20 compatible = "hisilicon,hns-mdio","hisilicon,mdio";
|
D | apm-xgene-mdio.txt | 6 - compatible: Must be "apm,xgene-mdio-rgmii" or "apm,xgene-mdio-xfi" 12 For the phys on the mdio bus, there must be a node with the following fields: 18 mdio: mdio@17020000 { 19 compatible = "apm,xgene-mdio-rgmii"; 27 &mdio {
|
D | brcm,bcm6368-mdio-mux.yaml | 4 $id: http://devicetree.org/schemas/net/brcm,bcm6368-mdio-mux.yaml# 18 - $ref: mdio-mux.yaml# 22 const: brcm,bcm6368-mdio-mux 35 mdio0: mdio@10e000b0 { 38 compatible = "brcm,bcm6368-mdio-mux"; 41 mdio_int: mdio@0 { 47 mdio_ext: mdio@1 {
|
D | brcm,mdio-mux-iproc.yaml | 4 $id: http://devicetree.org/schemas/net/brcm,mdio-mux-iproc.yaml# 19 - $ref: /schemas/net/mdio-mux.yaml# 23 const: brcm,mdio-mux-iproc 41 mdio_mux_iproc: mdio-mux@66020000 { 42 compatible = "brcm,mdio-mux-iproc"; 47 mdio@0 { 59 mdio@7 { 71 mdio@10 {
|
/linux-6.1.9/arch/arm64/boot/dts/freescale/ |
D | fsl-lx2160a-qds.dts | 35 mdio-mux-1 { 36 compatible = "mdio-mux-multiplexer"; 38 mdio-parent-bus = <&emdio1>; 42 mdio@0 { /* On-board PHY #1 RGMI1*/ 48 mdio@8 { /* On-board PHY #2 RGMI2*/ 54 mdio@18 { /* Slot #1 */ 60 mdio@19 { /* Slot #2 */ 66 mdio@1a { /* Slot #3 */ 72 mdio@1b { /* Slot #4 */ 78 mdio@1c { /* Slot #5 */ [all …]
|
D | fsl-lx2162a-qds.dts | 33 mdio-mux-1 { 34 compatible = "mdio-mux-multiplexer"; 36 mdio-parent-bus = <&emdio1>; 40 mdio@0 { /* On-board RTL8211F PHY #1 RGMII1 */ 52 mdio@8 { /* On-board RTL8211F PHY #2 RGMII2 */ 64 mdio@18 { /* Slot #1 */ 70 mdio@19 { /* Slot #2 */ 76 mdio@1a { /* Slot #3 */ 82 mdio@1b { /* Slot #4 */ 88 mdio@1c { /* Slot #5 */ [all …]
|
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb/ |
D | cphy.h | 96 struct mdio_if_info mdio; member 104 int rc = cphy->mdio.mdio_read(cphy->mdio.dev, cphy->mdio.prtad, mmd, in cphy_mdio_read() 113 return cphy->mdio.mdio_write(cphy->mdio.dev, cphy->mdio.prtad, mmd, in cphy_mdio_write() 138 phy->mdio.prtad = phy_addr; in cphy_init() 139 phy->mdio.mmds = phy_ops->mmds; in cphy_init() 140 phy->mdio.mode_support = mdio_ops->mode_support; in cphy_init() 141 phy->mdio.mdio_read = mdio_ops->read; in cphy_init() 142 phy->mdio.mdio_write = mdio_ops->write; in cphy_init() 144 phy->mdio.dev = dev; in cphy_init()
|
/linux-6.1.9/drivers/net/pcs/ |
D | pcs-lynx.c | 27 struct mdio_device *mdio; member 44 return lynx->mdio; in lynx_get_mdio_device() 102 phylink_mii_c22_pcs_get_state(lynx->mdio, state); in lynx_pcs_get_state() 105 lynx_pcs_get_state_2500basex(lynx->mdio, state); in lynx_pcs_get_state() 108 lynx_pcs_get_state_usxgmii(lynx->mdio, state); in lynx_pcs_get_state() 111 phylink_mii_c45_pcs_get_state(lynx->mdio, state); in lynx_pcs_get_state() 117 dev_dbg(&lynx->mdio->dev, in lynx_pcs_get_state() 189 return lynx_pcs_config_giga(lynx->mdio, mode, ifmode, in lynx_pcs_config() 193 dev_err(&lynx->mdio->dev, in lynx_pcs_config() 199 return lynx_pcs_config_usxgmii(lynx->mdio, mode, advertising); in lynx_pcs_config() [all …]
|
/linux-6.1.9/include/linux/ |
D | of_mdio.h | 17 int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np); 18 int devm_of_mdiobus_register(struct device *dev, struct mii_bus *mdio, 34 int of_mdiobus_phy_device_register(struct mii_bus *mdio, struct phy_device *phy, 65 static inline int of_mdiobus_register(struct mii_bus *mdio, struct device_node *np) in of_mdiobus_register() argument 72 return mdiobus_register(mdio); in of_mdiobus_register() 76 struct mii_bus *mdio, in devm_of_mdiobus_register() argument 79 return devm_mdiobus_register(dev, mdio); in devm_of_mdiobus_register() 129 static inline int of_mdiobus_phy_device_register(struct mii_bus *mdio, in of_mdiobus_phy_device_register() argument
|
/linux-6.1.9/Documentation/devicetree/bindings/mux/ |
D | reg-mux.yaml | 58 mdio-mux-1 { 59 compatible = "mdio-mux-multiplexer"; 61 mdio-parent-bus = <&emdio1>; 65 mdio@0 { 71 mdio@8 { 78 mdio-mux-2 { 79 compatible = "mdio-mux-multiplexer"; 81 mdio-parent-bus = <&emdio2>; 85 mdio@0 { 91 mdio@1 {
|
/linux-6.1.9/drivers/net/usb/ |
D | ax88172a.c | 19 struct mii_bus *mdio; member 66 priv->mdio = mdiobus_alloc(); in ax88172a_init_mdio() 67 if (!priv->mdio) { in ax88172a_init_mdio() 72 priv->mdio->priv = (void *)dev; in ax88172a_init_mdio() 73 priv->mdio->read = &asix_mdio_bus_read; in ax88172a_init_mdio() 74 priv->mdio->write = &asix_mdio_bus_write; in ax88172a_init_mdio() 75 priv->mdio->name = "Asix MDIO Bus"; in ax88172a_init_mdio() 77 snprintf(priv->mdio->id, MII_BUS_ID_SIZE, "usb-%03d:%03d", in ax88172a_init_mdio() 80 ret = mdiobus_register(priv->mdio); in ax88172a_init_mdio() 86 netdev_info(dev->net, "registered mdio bus %s\n", priv->mdio->id); in ax88172a_init_mdio() [all …]
|
/linux-6.1.9/Documentation/devicetree/bindings/net/dsa/ |
D | realtek.yaml | 27 The realtek-mdio driver is an MDIO driver and it must be inserted inside 54 mdio-gpios: 98 mdio: 99 $ref: /schemas/net/mdio.yaml# 104 const: realtek,smi-mdio 115 - mdio-gpios 116 - mdio 120 mdio-gpios: false 121 mdio: false 126 - mdio-gpios [all …]
|
/linux-6.1.9/drivers/net/phy/ |
D | xilinx_gmii2rgmii.c | 27 struct mdio_device *mdio; member 32 struct mii_bus *bus = priv->mdio->bus; in xgmiitorgmii_configure() 33 int addr = priv->mdio->addr; in xgmiitorgmii_configure() 51 struct gmii2rgmii *priv = mdiodev_get_drvdata(&phydev->mdio); in xgmiitorgmii_read_status() 68 struct gmii2rgmii *priv = mdiodev_get_drvdata(&phydev->mdio); in xgmiitorgmii_set_loopback() 108 put_device(&priv->phy_dev->mdio.dev); in xgmiitorgmii_probe() 112 priv->mdio = mdiodev; in xgmiitorgmii_probe() 118 mdiodev_set_drvdata(&priv->phy_dev->mdio, priv); in xgmiitorgmii_probe()
|