mdio_dev          145 drivers/net/ethernet/hisilicon/hns_mdio.c static int mdio_sc_cfg_reg_write(struct hns_mdio_device *mdio_dev,
mdio_dev          153 drivers/net/ethernet/hisilicon/hns_mdio.c 	regmap_write(mdio_dev->subctrl_vbase, cfg_reg, set_val);
mdio_dev          156 drivers/net/ethernet/hisilicon/hns_mdio.c 		ret = regmap_read(mdio_dev->subctrl_vbase, st_reg, &reg_value);
mdio_dev          173 drivers/net/ethernet/hisilicon/hns_mdio.c 	struct hns_mdio_device *mdio_dev = bus->priv;
mdio_dev          180 drivers/net/ethernet/hisilicon/hns_mdio.c 		cmd_reg_value = MDIO_GET_REG_BIT(mdio_dev,
mdio_dev          192 drivers/net/ethernet/hisilicon/hns_mdio.c static void hns_mdio_cmd_write(struct hns_mdio_device *mdio_dev,
mdio_dev          205 drivers/net/ethernet/hisilicon/hns_mdio.c 	MDIO_WRITE_REG(mdio_dev, MDIO_COMMAND_REG, cmd_reg_value);
mdio_dev          221 drivers/net/ethernet/hisilicon/hns_mdio.c 	struct hns_mdio_device *mdio_dev = (struct hns_mdio_device *)bus->priv;
mdio_dev          229 drivers/net/ethernet/hisilicon/hns_mdio.c 		bus->id, mdio_dev->vbase);
mdio_dev          245 drivers/net/ethernet/hisilicon/hns_mdio.c 		MDIO_SET_REG_FIELD(mdio_dev, MDIO_ADDR_REG, MDIO_ADDR_DATA_M,
mdio_dev          248 drivers/net/ethernet/hisilicon/hns_mdio.c 		hns_mdio_cmd_write(mdio_dev, is_c45,
mdio_dev          263 drivers/net/ethernet/hisilicon/hns_mdio.c 	MDIO_SET_REG_FIELD(mdio_dev, MDIO_WDATA_REG, MDIO_WDATA_DATA_M,
mdio_dev          266 drivers/net/ethernet/hisilicon/hns_mdio.c 	hns_mdio_cmd_write(mdio_dev, is_c45, op, phy_id, cmd_reg_cfg);
mdio_dev          287 drivers/net/ethernet/hisilicon/hns_mdio.c 	struct hns_mdio_device *mdio_dev = (struct hns_mdio_device *)bus->priv;
mdio_dev          290 drivers/net/ethernet/hisilicon/hns_mdio.c 		bus->id, mdio_dev->vbase);
mdio_dev          302 drivers/net/ethernet/hisilicon/hns_mdio.c 		hns_mdio_cmd_write(mdio_dev, is_c45,
mdio_dev          305 drivers/net/ethernet/hisilicon/hns_mdio.c 		MDIO_SET_REG_FIELD(mdio_dev, MDIO_ADDR_REG, MDIO_ADDR_DATA_M,
mdio_dev          309 drivers/net/ethernet/hisilicon/hns_mdio.c 		hns_mdio_cmd_write(mdio_dev, is_c45,
mdio_dev          319 drivers/net/ethernet/hisilicon/hns_mdio.c 		hns_mdio_cmd_write(mdio_dev, is_c45,
mdio_dev          331 drivers/net/ethernet/hisilicon/hns_mdio.c 	reg_val = MDIO_GET_REG_BIT(mdio_dev, MDIO_STA_REG, MDIO_STATE_STA_B);
mdio_dev          338 drivers/net/ethernet/hisilicon/hns_mdio.c 	reg_val = (u16)MDIO_GET_REG_FIELD(mdio_dev, MDIO_RDATA_REG,
mdio_dev          352 drivers/net/ethernet/hisilicon/hns_mdio.c 	struct hns_mdio_device *mdio_dev = (struct hns_mdio_device *)bus->priv;
mdio_dev          357 drivers/net/ethernet/hisilicon/hns_mdio.c 		if (!mdio_dev->subctrl_vbase) {
mdio_dev          362 drivers/net/ethernet/hisilicon/hns_mdio.c 		sc_reg = &mdio_dev->sc_reg;
mdio_dev          364 drivers/net/ethernet/hisilicon/hns_mdio.c 		ret = mdio_sc_cfg_reg_write(mdio_dev, sc_reg->mdio_reset_req,
mdio_dev          373 drivers/net/ethernet/hisilicon/hns_mdio.c 		ret = mdio_sc_cfg_reg_write(mdio_dev, sc_reg->mdio_clk_dis,
mdio_dev          382 drivers/net/ethernet/hisilicon/hns_mdio.c 		ret = mdio_sc_cfg_reg_write(mdio_dev, sc_reg->mdio_reset_dreq,
mdio_dev          391 drivers/net/ethernet/hisilicon/hns_mdio.c 		ret = mdio_sc_cfg_reg_write(mdio_dev, sc_reg->mdio_clk_en,
mdio_dev          422 drivers/net/ethernet/hisilicon/hns_mdio.c 	struct hns_mdio_device *mdio_dev;
mdio_dev          431 drivers/net/ethernet/hisilicon/hns_mdio.c 	mdio_dev = devm_kzalloc(&pdev->dev, sizeof(*mdio_dev), GFP_KERNEL);
mdio_dev          432 drivers/net/ethernet/hisilicon/hns_mdio.c 	if (!mdio_dev)
mdio_dev          445 drivers/net/ethernet/hisilicon/hns_mdio.c 	new_bus->priv = mdio_dev;
mdio_dev          448 drivers/net/ethernet/hisilicon/hns_mdio.c 	mdio_dev->vbase = devm_platform_ioremap_resource(pdev, 0);
mdio_dev          449 drivers/net/ethernet/hisilicon/hns_mdio.c 	if (IS_ERR(mdio_dev->vbase)) {
mdio_dev          450 drivers/net/ethernet/hisilicon/hns_mdio.c 		ret = PTR_ERR(mdio_dev->vbase);
mdio_dev          466 drivers/net/ethernet/hisilicon/hns_mdio.c 			mdio_dev->subctrl_vbase =
mdio_dev          468 drivers/net/ethernet/hisilicon/hns_mdio.c 			if (IS_ERR(mdio_dev->subctrl_vbase)) {
mdio_dev          470 drivers/net/ethernet/hisilicon/hns_mdio.c 				mdio_dev->subctrl_vbase = NULL;
mdio_dev          473 drivers/net/ethernet/hisilicon/hns_mdio.c 					mdio_dev->sc_reg.mdio_clk_en =
mdio_dev          475 drivers/net/ethernet/hisilicon/hns_mdio.c 					mdio_dev->sc_reg.mdio_clk_dis =
mdio_dev          477 drivers/net/ethernet/hisilicon/hns_mdio.c 					mdio_dev->sc_reg.mdio_reset_req =
mdio_dev          479 drivers/net/ethernet/hisilicon/hns_mdio.c 					mdio_dev->sc_reg.mdio_reset_dreq =
mdio_dev          481 drivers/net/ethernet/hisilicon/hns_mdio.c 					mdio_dev->sc_reg.mdio_clk_st =
mdio_dev          483 drivers/net/ethernet/hisilicon/hns_mdio.c 					mdio_dev->sc_reg.mdio_reset_st =
mdio_dev          487 drivers/net/ethernet/hisilicon/hns_mdio.c 					mdio_dev->sc_reg.mdio_clk_en =
mdio_dev          489 drivers/net/ethernet/hisilicon/hns_mdio.c 					mdio_dev->sc_reg.mdio_clk_dis =
mdio_dev          491 drivers/net/ethernet/hisilicon/hns_mdio.c 					mdio_dev->sc_reg.mdio_reset_req =
mdio_dev          493 drivers/net/ethernet/hisilicon/hns_mdio.c 					mdio_dev->sc_reg.mdio_reset_dreq =
mdio_dev          495 drivers/net/ethernet/hisilicon/hns_mdio.c 					mdio_dev->sc_reg.mdio_clk_st =
mdio_dev          497 drivers/net/ethernet/hisilicon/hns_mdio.c 					mdio_dev->sc_reg.mdio_reset_st =
mdio_dev          503 drivers/net/ethernet/hisilicon/hns_mdio.c 			mdio_dev->subctrl_vbase = NULL;
mdio_dev         2397 drivers/net/ethernet/ibm/emac/core.c 	of_dev_put(dev->mdio_dev);
mdio_dev         2446 drivers/net/ethernet/ibm/emac/core.c 		dev->mdio_dev = deps[EMAC_DEP_MDIO_IDX].ofdev;
mdio_dev         3104 drivers/net/ethernet/ibm/emac/core.c 	if (dev->mdio_dev != NULL)
mdio_dev         3105 drivers/net/ethernet/ibm/emac/core.c 		dev->mdio_instance = platform_get_drvdata(dev->mdio_dev);
mdio_dev          188 drivers/net/ethernet/ibm/emac/core.h 	struct platform_device		*mdio_dev;