Lines Matching refs:am654_phy

500 	struct serdes_am654 *am654_phy;  in serdes_am654_xlate()  local
508 am654_phy = phy_get_drvdata(phy); in serdes_am654_xlate()
509 if (am654_phy->busy) in serdes_am654_xlate()
512 ret = mux_control_select(am654_phy->control, args->args[1]); in serdes_am654_xlate()
518 am654_phy->busy = true; in serdes_am654_xlate()
519 am654_phy->type = args->args[0]; in serdes_am654_xlate()
641 static int serdes_am654_clk_register(struct serdes_am654 *am654_phy, in serdes_am654_clk_register() argument
644 struct device_node *node = am654_phy->of_node; in serdes_am654_clk_register()
645 struct device *dev = am654_phy->dev; in serdes_am654_clk_register()
718 am654_phy->clks[clock_num] = clk; in serdes_am654_clk_register()
733 static int serdes_am654_regfield_init(struct serdes_am654 *am654_phy) in serdes_am654_regfield_init() argument
735 struct regmap *regmap = am654_phy->regmap; in serdes_am654_regfield_init()
736 struct device *dev = am654_phy->dev; in serdes_am654_regfield_init()
740 am654_phy->fields[i] = devm_regmap_field_alloc(dev, in serdes_am654_regfield_init()
743 if (IS_ERR(am654_phy->fields[i])) { in serdes_am654_regfield_init()
745 return PTR_ERR(am654_phy->fields[i]); in serdes_am654_regfield_init()
758 struct serdes_am654 *am654_phy; in serdes_am654_probe() local
767 am654_phy = devm_kzalloc(dev, sizeof(*am654_phy), GFP_KERNEL); in serdes_am654_probe()
768 if (!am654_phy) in serdes_am654_probe()
785 am654_phy->dev = dev; in serdes_am654_probe()
786 am654_phy->of_node = node; in serdes_am654_probe()
787 am654_phy->regmap = regmap; in serdes_am654_probe()
788 am654_phy->control = control; in serdes_am654_probe()
789 am654_phy->type = PHY_NONE; in serdes_am654_probe()
791 ret = serdes_am654_regfield_init(am654_phy); in serdes_am654_probe()
797 platform_set_drvdata(pdev, am654_phy); in serdes_am654_probe()
807 ret = serdes_am654_clk_register(am654_phy, clock_name, i); in serdes_am654_probe()
815 clk_data = &am654_phy->clk_data; in serdes_am654_probe()
816 clk_data->clks = am654_phy->clks; in serdes_am654_probe()
830 phy_set_drvdata(phy, am654_phy); in serdes_am654_probe()
847 struct serdes_am654 *am654_phy = platform_get_drvdata(pdev); in serdes_am654_remove() local
848 struct device_node *node = am654_phy->of_node; in serdes_am654_remove()