Searched refs:mdio_dev (Results 1 – 6 of 6) sorted by relevance
/drivers/net/ethernet/hisilicon/ |
D | hns_mdio.c | 145 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, ®_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 …]
|
/drivers/base/regmap/ |
D | regmap-mdio.c | 13 static int regmap_mdio_read(struct mdio_device *mdio_dev, u32 reg, unsigned int *val) in regmap_mdio_read() argument 17 ret = mdiobus_read(mdio_dev->bus, mdio_dev->addr, 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 mdiobus_write(mdio_dev->bus, mdio_dev->addr, 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 mdiobus_write(mdio_dev->bus, mdio_dev->addr, 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 …]
|
/drivers/net/ethernet/ti/ |
D | am65-cpsw-nuss.h | 106 struct device *mdio_dev; member
|
D | am65-cpsw-nuss.c | 2728 common->mdio_dev = &mdio_pdev->dev; in am65_cpsw_nuss_probe() 2789 if (common->mdio_dev) in am65_cpsw_nuss_probe() 2790 of_platform_device_destroy(common->mdio_dev, NULL); in am65_cpsw_nuss_probe() 2819 if (common->mdio_dev) in am65_cpsw_nuss_remove() 2820 of_platform_device_destroy(common->mdio_dev, NULL); in am65_cpsw_nuss_remove()
|
/drivers/net/ethernet/ibm/emac/ |
D | core.h | 188 struct platform_device *mdio_dev; member
|
D | core.c | 2397 platform_device_put(dev->mdio_dev); in emac_put_deps() 2446 dev->mdio_dev = deps[EMAC_DEP_MDIO_IDX].ofdev; in emac_wait_deps() 3105 if (dev->mdio_dev != NULL) in emac_probe() 3106 dev->mdio_instance = platform_get_drvdata(dev->mdio_dev); in emac_probe()
|