Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/hisilicon/
H A 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()
220 struct hns_mdio_device *mdio_dev = bus->priv; in hns_mdio_write_c22() local
227 bus->id, mdio_dev->vbase); in hns_mdio_write_c22()
241 MDIO_SET_REG_FIELD(mdio_dev, MDIO_WDATA_REG, MDIO_WDATA_DATA_M, in hns_mdio_write_c22()
[all …]
/linux/drivers/base/regmap/
H A Dregmap-mdio.c15 struct mdio_device *mdio_dev = context; in regmap_mdio_c22_read() local
21 ret = mdiodev_read(mdio_dev, reg); in regmap_mdio_c22_read()
32 struct mdio_device *mdio_dev = context; in regmap_mdio_c22_write() local
37 return mdiodev_write(mdio_dev, reg, val); in regmap_mdio_c22_write()
47 struct mdio_device *mdio_dev = context; in regmap_mdio_c45_read() local
57 ret = mdiodev_c45_read(mdio_dev, devad, reg); in regmap_mdio_c45_read()
68 struct mdio_device *mdio_dev = context; in regmap_mdio_c45_write() local
77 return mdiodev_c45_write(mdio_dev, devad, reg, val); in regmap_mdio_c45_write()
85 struct regmap *__regmap_init_mdio(struct mdio_device *mdio_dev, in __regmap_init_mdio() argument
98 return __regmap_init(&mdio_dev->dev, bus, mdio_dev, config, lock_key, lock_name); in __regmap_init_mdio()
[all …]
/linux/include/linux/
H A Dregmap.h612 struct regmap *__regmap_init_mdio(struct mdio_device *mdio_dev,
676 struct regmap *__devm_regmap_init_mdio(struct mdio_device *mdio_dev,
797 #define regmap_init_mdio(mdio_dev, config) \ argument
799 mdio_dev, config)
1015 #define devm_regmap_init_mdio(mdio_dev, config) \ argument
1017 mdio_dev, config)
/linux/drivers/net/ethernet/ti/
H A Dam65-cpsw-nuss.h143 struct device *mdio_dev; member
H A Dam65-cpsw-nuss.c3587 common->mdio_dev = &mdio_pdev->dev; in am65_cpsw_nuss_probe()
3648 if (common->mdio_dev) in am65_cpsw_nuss_probe()
3649 of_platform_device_destroy(common->mdio_dev, NULL); in am65_cpsw_nuss_probe()
3685 if (common->mdio_dev) in am65_cpsw_nuss_remove()
3686 of_platform_device_destroy(common->mdio_dev, NULL); in am65_cpsw_nuss_remove()
/linux/drivers/net/ethernet/ibm/emac/
H A Dcore.h187 struct platform_device *mdio_dev; member
H A Dcore.c2382 platform_device_put(dev->mdio_dev); in emac_put_deps()
2413 dev->mdio_dev = deps[EMAC_DEP_MDIO_IDX].ofdev; in emac_wait_deps()
3067 if (dev->mdio_dev != NULL) in emac_probe()
3068 dev->mdio_instance = platform_get_drvdata(dev->mdio_dev); in emac_probe()