Lines Matching defs:pdev
1627 static void xgene_phy_get_param(struct platform_device *pdev,
1634 if (!of_property_read_u32_array(pdev->dev.of_node, name, buffer,
1645 static int xgene_phy_probe(struct platform_device *pdev)
1659 ctx = devm_kzalloc(&pdev->dev, sizeof(*ctx), GFP_KERNEL);
1663 ctx->dev = &pdev->dev;
1665 ctx->sds_base = devm_platform_ioremap_resource(pdev, 0);
1670 ctx->clk = clk_get(&pdev->dev, NULL);
1673 xgene_phy_get_param(pdev, "apm,tx-eye-tuning",
1675 xgene_phy_get_param(pdev, "apm,tx-eye-direction",
1677 xgene_phy_get_param(pdev, "apm,tx-boost-gain",
1679 xgene_phy_get_param(pdev, "apm,tx-amplitude",
1681 xgene_phy_get_param(pdev, "apm,tx-pre-cursor1",
1683 xgene_phy_get_param(pdev, "apm,tx-pre-cursor2",
1685 xgene_phy_get_param(pdev, "apm,tx-post-cursor",
1687 xgene_phy_get_param(pdev, "apm,tx-speed",
1692 platform_set_drvdata(pdev, ctx);
1696 dev_dbg(&pdev->dev, "Failed to create PHY\n");