Lines Matching refs:args
19 struct ofnode_phandle_args *args) in generic_phy_xlate_offs_flags() argument
23 if (args->args_count > 1) { in generic_phy_xlate_offs_flags()
24 debug("Invaild args_count: %d\n", args->args_count); in generic_phy_xlate_offs_flags()
28 if (args->args_count) in generic_phy_xlate_offs_flags()
29 phy->id = args->args[0]; in generic_phy_xlate_offs_flags()
38 struct ofnode_phandle_args args; in generic_phy_get_by_index_nodev() local
49 index, &args); in generic_phy_get_by_index_nodev()
56 ret = uclass_get_device_by_ofnode(UCLASS_PHY, args.node, &phydev); in generic_phy_get_by_index_nodev()
63 ofnode_get_parent(args.node), in generic_phy_get_by_index_nodev()
69 for (i = args.args_count; i >= 1 ; i--) in generic_phy_get_by_index_nodev()
70 args.args[i] = args.args[i - 1]; in generic_phy_get_by_index_nodev()
72 args.args_count++; in generic_phy_get_by_index_nodev()
73 args.args[0] = ofnode_read_u32_default(args.node, "reg", -1); in generic_phy_get_by_index_nodev()
81 ret = ops->of_xlate(phy, &args); in generic_phy_get_by_index_nodev()
83 ret = generic_phy_xlate_offs_flags(phy, &args); in generic_phy_get_by_index_nodev()