Lines Matching refs:mod
78 void mod_tree_insert(struct module *mod) in mod_tree_insert() argument
80 mod->core_layout.mtn.mod = mod; in mod_tree_insert()
81 mod->init_layout.mtn.mod = mod; in mod_tree_insert()
83 __mod_tree_insert(&mod->core_layout.mtn, &mod_tree); in mod_tree_insert()
84 if (mod->init_layout.size) in mod_tree_insert()
85 __mod_tree_insert(&mod->init_layout.mtn, &mod_tree); in mod_tree_insert()
88 mod->data_layout.mtn.mod = mod; in mod_tree_insert()
89 __mod_tree_insert(&mod->data_layout.mtn, &mod_data_tree); in mod_tree_insert()
93 void mod_tree_remove_init(struct module *mod) in mod_tree_remove_init() argument
95 if (mod->init_layout.size) in mod_tree_remove_init()
96 __mod_tree_remove(&mod->init_layout.mtn, &mod_tree); in mod_tree_remove_init()
99 void mod_tree_remove(struct module *mod) in mod_tree_remove() argument
101 __mod_tree_remove(&mod->core_layout.mtn, &mod_tree); in mod_tree_remove()
102 mod_tree_remove_init(mod); in mod_tree_remove()
104 __mod_tree_remove(&mod->data_layout.mtn, &mod_data_tree); in mod_tree_remove()
116 return container_of(ltn, struct mod_tree_node, node)->mod; in mod_find()