Lines Matching refs:owner_info
376 static int cscfg_owner_get(struct cscfg_load_owner_info *owner_info) in cscfg_owner_get() argument
378 if ((owner_info->type == CSCFG_OWNER_MODULE) && in cscfg_owner_get()
379 (!try_module_get(owner_info->owner_handle))) in cscfg_owner_get()
385 static void cscfg_owner_put(struct cscfg_load_owner_info *owner_info) in cscfg_owner_put() argument
387 if (owner_info->type == CSCFG_OWNER_MODULE) in cscfg_owner_put()
388 module_put(owner_info->owner_handle); in cscfg_owner_put()
483 struct cscfg_load_owner_info *owner_info) in cscfg_load_owned_cfgs_feats() argument
498 feat_descs[i]->load_owner = owner_info; in cscfg_load_owned_cfgs_feats()
511 config_descs[i]->load_owner = owner_info; in cscfg_load_owned_cfgs_feats()
577 struct cscfg_load_owner_info *owner_info) in cscfg_load_config_sets() argument
589 err = cscfg_load_owned_cfgs_feats(config_descs, feat_descs, owner_info); in cscfg_load_config_sets()
594 list_add_tail(&owner_info->item, &cscfg_mgr->load_order_list); in cscfg_load_config_sets()
597 err = cscfg_owner_get(list_prev_entry(owner_info, item)); in cscfg_load_config_sets()
623 cscfg_fs_unregister_cfgs_feats(owner_info); in cscfg_load_config_sets()
626 cscfg_owner_put(list_prev_entry(owner_info, item)); in cscfg_load_config_sets()
629 list_del(&owner_info->item); in cscfg_load_config_sets()
632 cscfg_unload_owned_cfgs_feats(owner_info); in cscfg_load_config_sets()
657 int cscfg_unload_config_sets(struct cscfg_load_owner_info *owner_info) in cscfg_unload_config_sets() argument
681 if (load_list_item != owner_info) in cscfg_unload_config_sets()
692 cscfg_fs_unregister_cfgs_feats(owner_info); in cscfg_unload_config_sets()
696 cscfg_unload_owned_cfgs_feats(owner_info); in cscfg_unload_config_sets()
701 cscfg_owner_put(list_prev_entry(owner_info, item)); in cscfg_unload_config_sets()
703 list_del(&owner_info->item); in cscfg_unload_config_sets()
1208 struct cscfg_load_owner_info *owner_info = NULL; in cscfg_unload_cfgs_on_exit() local
1219 owner_info = list_last_entry(&cscfg_mgr->load_order_list, in cscfg_unload_cfgs_on_exit()
1223 switch (owner_info->type) { in cscfg_unload_cfgs_on_exit()
1247 cscfg_fs_unregister_cfgs_feats(owner_info); in cscfg_unload_cfgs_on_exit()
1251 cscfg_unload_owned_cfgs_feats(owner_info); in cscfg_unload_cfgs_on_exit()
1255 list_del(&owner_info->item); in cscfg_unload_cfgs_on_exit()