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()
642 static int serdes_am654_clk_register(struct serdes_am654 *am654_phy, in serdes_am654_clk_register() argument
645 struct device_node *node = am654_phy->of_node; in serdes_am654_clk_register()
646 struct device *dev = am654_phy->dev; in serdes_am654_clk_register()
704 am654_phy->clks[clock_num] = clk; in serdes_am654_clk_register()
717 static int serdes_am654_regfield_init(struct serdes_am654 *am654_phy) in serdes_am654_regfield_init() argument
719 struct regmap *regmap = am654_phy->regmap; in serdes_am654_regfield_init()
720 struct device *dev = am654_phy->dev; in serdes_am654_regfield_init()
724 am654_phy->fields[i] = devm_regmap_field_alloc(dev, in serdes_am654_regfield_init()
727 if (IS_ERR(am654_phy->fields[i])) { in serdes_am654_regfield_init()
729 return PTR_ERR(am654_phy->fields[i]); in serdes_am654_regfield_init()
742 struct serdes_am654 *am654_phy; in serdes_am654_probe() local
751 am654_phy = devm_kzalloc(dev, sizeof(*am654_phy), GFP_KERNEL); in serdes_am654_probe()
752 if (!am654_phy) in serdes_am654_probe()
769 am654_phy->dev = dev; in serdes_am654_probe()
770 am654_phy->of_node = node; in serdes_am654_probe()
771 am654_phy->regmap = regmap; in serdes_am654_probe()
772 am654_phy->control = control; in serdes_am654_probe()
773 am654_phy->type = PHY_NONE; in serdes_am654_probe()
775 ret = serdes_am654_regfield_init(am654_phy); in serdes_am654_probe()
781 platform_set_drvdata(pdev, am654_phy); in serdes_am654_probe()
791 ret = serdes_am654_clk_register(am654_phy, clock_name, i); in serdes_am654_probe()
799 clk_data = &am654_phy->clk_data; in serdes_am654_probe()
800 clk_data->clks = am654_phy->clks; in serdes_am654_probe()
814 phy_set_drvdata(phy, am654_phy); in serdes_am654_probe()
831 struct serdes_am654 *am654_phy = platform_get_drvdata(pdev); in serdes_am654_remove() local
832 struct device_node *node = am654_phy->of_node; in serdes_am654_remove()