Home
last modified time | relevance | path

Searched refs:mdio_dev (Results 1 – 7 of 7) sorted by relevance

/linux-5.19.10/drivers/net/ethernet/hisilicon/
Dhns_mdio.c145 static int mdio_sc_cfg_reg_write(struct hns_mdio_device *mdio_dev, in mdio_sc_cfg_reg_write() argument
153 regmap_write(mdio_dev->subctrl_vbase, cfg_reg, set_val); in mdio_sc_cfg_reg_write()
156 ret = regmap_read(mdio_dev->subctrl_vbase, st_reg, &reg_value); in mdio_sc_cfg_reg_write()
173 struct hns_mdio_device *mdio_dev = bus->priv; in hns_mdio_wait_ready() local
180 cmd_reg_value = MDIO_GET_REG_BIT(mdio_dev, in hns_mdio_wait_ready()
192 static void hns_mdio_cmd_write(struct hns_mdio_device *mdio_dev, in hns_mdio_cmd_write() argument
205 MDIO_WRITE_REG(mdio_dev, MDIO_COMMAND_REG, cmd_reg_value); in hns_mdio_cmd_write()
221 struct hns_mdio_device *mdio_dev = (struct hns_mdio_device *)bus->priv; in hns_mdio_write() local
229 bus->id, mdio_dev->vbase); in hns_mdio_write()
245 MDIO_SET_REG_FIELD(mdio_dev, MDIO_ADDR_REG, MDIO_ADDR_DATA_M, in hns_mdio_write()
[all …]
/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() argument
17 ret = mdiodev_read(mdio_dev, reg); in regmap_mdio_read()
25 static int regmap_mdio_write(struct mdio_device *mdio_dev, u32 reg, unsigned int val) in regmap_mdio_write() argument
27 return mdiodev_write(mdio_dev, reg, val); in regmap_mdio_write()
32 struct mdio_device *mdio_dev = context; in regmap_mdio_c22_read() local
37 return regmap_mdio_read(mdio_dev, reg, val); in regmap_mdio_c22_read()
42 struct mdio_device *mdio_dev = context; in regmap_mdio_c22_write() local
47 return mdiodev_write(mdio_dev, reg, val); in regmap_mdio_c22_write()
57 struct mdio_device *mdio_dev = context; in regmap_mdio_c45_read() local
62 return regmap_mdio_read(mdio_dev, MII_ADDR_C45 | reg, val); in regmap_mdio_c45_read()
[all …]
/linux-5.19.10/include/linux/
Dregmap.h571 struct regmap *__regmap_init_mdio(struct mdio_device *mdio_dev,
631 struct regmap *__devm_regmap_init_mdio(struct mdio_device *mdio_dev,
747 #define regmap_init_mdio(mdio_dev, config) \ argument
749 mdio_dev, config)
952 #define devm_regmap_init_mdio(mdio_dev, config) \ argument
954 mdio_dev, config)
/linux-5.19.10/drivers/net/ethernet/ti/
Dam65-cpsw-nuss.h106 struct device *mdio_dev; member
Dam65-cpsw-nuss.c2712 common->mdio_dev = &mdio_pdev->dev; in am65_cpsw_nuss_probe()
2775 of_platform_device_destroy(common->mdio_dev, NULL); in am65_cpsw_nuss_probe()
2803 of_platform_device_destroy(common->mdio_dev, NULL); in am65_cpsw_nuss_remove()
/linux-5.19.10/drivers/net/ethernet/ibm/emac/
Dcore.h188 struct platform_device *mdio_dev; member
Dcore.c2400 platform_device_put(dev->mdio_dev); in emac_put_deps()
2449 dev->mdio_dev = deps[EMAC_DEP_MDIO_IDX].ofdev; in emac_wait_deps()
3106 if (dev->mdio_dev != NULL) in emac_probe()
3107 dev->mdio_instance = platform_get_drvdata(dev->mdio_dev); in emac_probe()