Lines Matching refs:mod

95 	stack->mod = NULL;  in modstack_init()
104 free(stack->mod); in modstack_free()
105 stack->mod = NULL; in modstack_free()
123 stack->mod = (struct module_func_block**)calloc((size_t) in modstack_config()
125 if(!stack->mod) { in modstack_config()
130 stack->mod[i] = module_factory(&module_conf); in modstack_config()
131 if(!stack->mod[i]) { in modstack_config()
247 if(stack->mod[i]->startup == NULL) in modstack_call_startup()
250 i, stack->mod[i]->name); in modstack_call_startup()
251 fptr_ok(fptr_whitelist_mod_startup(stack->mod[i]->startup)); in modstack_call_startup()
252 if(!(*stack->mod[i]->startup)(env, i)) { in modstack_call_startup()
254 stack->mod[i]->name); in modstack_call_startup()
270 if(strncmp(stack->mod[i]->name, module_conf, in modstack_call_init()
271 strlen(stack->mod[i]->name))) { in modstack_call_init()
272 if(stack->mod[i]->startup || stack->mod[i]->destartup) { in modstack_call_init()
279 module_conf += strlen(stack->mod[i]->name); in modstack_call_init()
290 i, stack->mod[i]->name); in modstack_call_init()
291 fptr_ok(fptr_whitelist_mod_init(stack->mod[i]->init)); in modstack_call_init()
292 if(!(*stack->mod[i]->init)(env, i)) { in modstack_call_init()
294 stack->mod[i]->name); in modstack_call_init()
306 fptr_ok(fptr_whitelist_mod_deinit(stack->mod[i]->deinit)); in modstack_call_deinit()
307 (*stack->mod[i]->deinit)(env, i); in modstack_call_deinit()
316 if(stack->mod[i]->destartup == NULL) in modstack_call_destartup()
318 fptr_ok(fptr_whitelist_mod_destartup(stack->mod[i]->destartup)); in modstack_call_destartup()
319 (*stack->mod[i]->destartup)(env, i); in modstack_call_destartup()
328 if(strcmp(stack->mod[i]->name, name) == 0) in modstack_find()
340 mods.mod[m]->get_mem)); in mod_get_mem()
341 return (*env->mesh->mods.mod[m]->get_mem)(env, m); in mod_get_mem()