Lines Matching refs:args
109 struct ofnode_phandle_args *args) in generic_phy_xlate_offs_flags() argument
113 if (args->args_count > 1) { in generic_phy_xlate_offs_flags()
114 debug("Invalid args_count: %d\n", args->args_count); in generic_phy_xlate_offs_flags()
118 if (args->args_count) in generic_phy_xlate_offs_flags()
119 phy->id = args->args[0]; in generic_phy_xlate_offs_flags()
128 struct ofnode_phandle_args args; in generic_phy_get_by_index_nodev() local
139 index, &args); in generic_phy_get_by_index_nodev()
146 ret = uclass_get_device_by_ofnode(UCLASS_PHY, args.node, &phydev); in generic_phy_get_by_index_nodev()
153 ofnode_get_parent(args.node), in generic_phy_get_by_index_nodev()
159 for (i = args.args_count; i >= 1 ; i--) in generic_phy_get_by_index_nodev()
160 args.args[i] = args.args[i - 1]; in generic_phy_get_by_index_nodev()
162 args.args_count++; in generic_phy_get_by_index_nodev()
163 args.args[0] = ofnode_read_u32_default(args.node, "reg", -1); in generic_phy_get_by_index_nodev()
171 ret = ops->of_xlate(phy, &args); in generic_phy_get_by_index_nodev()
173 ret = generic_phy_xlate_offs_flags(phy, &args); in generic_phy_get_by_index_nodev()