Lines Matching refs:b
129 mod_tree_less(struct latch_tree_node *a, struct latch_tree_node *b) in mod_tree_less() argument
131 return __mod_tree_val(a) < __mod_tree_val(b); in mod_tree_less()
780 static int already_uses(struct module *a, struct module *b) in already_uses() argument
784 list_for_each_entry(use, &b->source_list, source_list) { in already_uses()
786 pr_debug("%s uses %s!\n", a->name, b->name); in already_uses()
790 pr_debug("%s does not use %s!\n", a->name, b->name); in already_uses()
801 static int add_module_usage(struct module *a, struct module *b) in add_module_usage() argument
811 use->target = b; in add_module_usage()
812 list_add(&use->source_list, &b->source_list); in add_module_usage()
818 static int ref_module(struct module *a, struct module *b) in ref_module() argument
822 if (b == NULL || already_uses(a, b)) in ref_module()
826 err = strong_try_module_get(b); in ref_module()
830 err = add_module_usage(a, b); in ref_module()
832 module_put(b); in ref_module()
1118 static int ref_module(struct module *a, struct module *b) in ref_module() argument
1120 return strong_try_module_get(b); in ref_module()