Lines Matching defs:ctrl

137 	struct serdes_ctrl	*ctrl;
205 macro->ctrl->regs, HSIO_SD_CFG(idx));
211 macro->ctrl->regs, HSIO_MPLL_CFG(idx));
215 macro->ctrl->regs, HSIO_SD_CFG(idx));
219 macro->ctrl->regs, HSIO_MPLL_CFG(idx));
225 macro->ctrl->regs, HSIO_SD_CFG(idx));
231 macro->ctrl->regs, HSIO_MPLL_CFG(idx));
235 value = readl(macro->ctrl->regs + lan_offset(HSIO_SD_STAT(idx)));
238 dev_err(macro->ctrl->dev,
246 macro->ctrl->regs, HSIO_SD_CFG(idx));
250 value = readl(macro->ctrl->regs + lan_offset(HSIO_SD_STAT(idx)));
253 dev_err(macro->ctrl->dev,
263 macro->ctrl->regs, HSIO_SD_CFG(idx));
268 value = readl(macro->ctrl->regs + lan_offset(HSIO_SD_STAT(idx)));
271 dev_err(macro->ctrl->dev,
278 value = readl(macro->ctrl->regs + lan_offset(HSIO_SD_STAT(idx)));
281 dev_err(macro->ctrl->dev,
291 macro->ctrl->regs, HSIO_SD_CFG(idx));
388 conf.refclk125M = macro->ctrl->ref125;
412 macro->ctrl->regs, HSIO_RGMII_CFG(idx));
427 macro->ctrl->regs, HSIO_DLL_CFG(idx == 0 ? 0x0 : 0x2));
431 macro->ctrl->regs, HSIO_DLL_CFG(idx == 0 ? 0x0 : 0x2));
437 macro->ctrl->regs, HSIO_DLL_CFG(idx == 0 ? 0x1 : 0x3));
441 macro->ctrl->regs, HSIO_DLL_CFG(idx == 0 ? 0x1 : 0x3));
488 val = readl(macro->ctrl->regs + lan_offset(HSIO_HW_CFG));
491 macro->ctrl->regs, HSIO_HW_CFG);
523 struct serdes_ctrl *ctrl = dev_get_drvdata(dev);
533 struct serdes_macro *macro = phy_get_drvdata(ctrl->phys[i]);
539 return ctrl->phys[i];
545 static int serdes_phy_create(struct serdes_ctrl *ctrl, u8 idx, struct phy **phy)
549 *phy = devm_phy_create(ctrl->dev, NULL, &serdes_ops);
553 macro = devm_kzalloc(ctrl->dev, sizeof(*macro), GFP_KERNEL);
558 macro->ctrl = ctrl;
569 struct serdes_ctrl *ctrl;
575 ctrl = devm_kzalloc(&pdev->dev, sizeof(*ctrl), GFP_KERNEL);
576 if (!ctrl)
579 ctrl->dev = &pdev->dev;
580 ctrl->regs = devm_platform_get_and_ioremap_resource(pdev, 0, NULL);
581 if (IS_ERR(ctrl->regs))
582 return PTR_ERR(ctrl->regs);
589 ret = serdes_phy_create(ctrl, i, &ctrl->phys[i]);
596 ctrl->ref125 = (val == PLL_CONF_125MHZ ||
599 dev_set_drvdata(&pdev->dev, ctrl);
601 provider = devm_of_phy_provider_register(ctrl->dev,