Lines Matching defs:mod
144 static void add_module_to_shadow(struct cfi_shadow *s, struct module *mod,
148 unsigned long check = (unsigned long)mod->cfi_check;
152 pr_warn("cfi: not using shadow for module %s\n", mod->name);
172 static void remove_module_from_shadow(struct cfi_shadow *s, struct module *mod,
188 static void update_shadow(struct module *mod, unsigned long base_addr,
205 min_addr = (unsigned long)mod->core_layout.base;
206 max_addr = min_addr + mod->core_layout.text_size;
207 fn(next, mod, min_addr & PAGE_MASK, max_addr & PAGE_MASK);
222 void cfi_module_add(struct module *mod, unsigned long base_addr)
224 update_shadow(mod, base_addr, add_module_to_shadow);
227 void cfi_module_remove(struct module *mod, unsigned long base_addr)
229 update_shadow(mod, base_addr, remove_module_from_shadow);
270 struct module *mod;
273 mod = __module_address(ptr);
274 if (mod)
275 fn = mod->cfi_check;