Lines Matching refs:uclass
12 static int bind_by_class_index(const char *uclass, int index, in bind_by_class_index() argument
27 uclass_id = uclass_get_by_name(uclass); in bind_by_class_index()
29 printf("%s is not a valid uclass\n", uclass); in bind_by_class_index()
35 printf("Cannot find device %d of class %s\n", index, uclass); in bind_by_class_index()
49 static int find_dev(const char *uclass, int index, struct udevice **devp) in find_dev() argument
54 uclass_id = uclass_get_by_name(uclass); in find_dev()
56 printf("%s is not a valid uclass\n", uclass); in find_dev()
62 printf("Cannot find device %d of class %s\n", index, uclass); in find_dev()
69 static int unbind_by_class_index(const char *uclass, int index) in unbind_by_class_index() argument
74 ret = find_dev(uclass, index, &dev); in unbind_by_class_index()
93 static int unbind_child_by_class_index(const char *uclass, int index, in unbind_child_by_class_index() argument
106 ret = find_dev(uclass, index, &parent); in unbind_child_by_class_index()