Lines Matching refs:tep
443 load_plugin(struct tep_handle *tep, const char *path, in load_plugin() argument
501 func(tep); in load_plugin()
509 load_plugins_dir(struct tep_handle *tep, const char *suffix, in load_plugins_dir() argument
511 void (*load_plugin)(struct tep_handle *tep, in load_plugins_dir() argument
544 load_plugin(tep, path, name, data); in load_plugins_dir()
566 void tep_load_plugins_hook(struct tep_handle *tep, const char *suffix, in tep_load_plugins_hook() argument
567 void (*load_plugin)(struct tep_handle *tep, in tep_load_plugins_hook() argument
579 if (tep && tep->flags & TEP_DISABLE_PLUGINS) in tep_load_plugins_hook()
582 if (tep) in tep_load_plugins_hook()
583 dir = tep->plugins_dir; in tep_load_plugins_hook()
586 load_plugins_dir(tep, suffix, dir->path, in tep_load_plugins_hook()
596 if (!tep || !(tep->flags & TEP_DISABLE_SYS_PLUGINS)) in tep_load_plugins_hook()
597 load_plugins_dir(tep, suffix, PLUGIN_DIR, in tep_load_plugins_hook()
607 load_plugins_dir(tep, suffix, envdir, load_plugin, data); in tep_load_plugins_hook()
623 load_plugins_dir(tep, suffix, path, load_plugin, data); in tep_load_plugins_hook()
625 if (tep) in tep_load_plugins_hook()
626 dir = tep->plugins_dir; in tep_load_plugins_hook()
629 load_plugins_dir(tep, suffix, dir->path, in tep_load_plugins_hook()
638 tep_load_plugins(struct tep_handle *tep) in tep_load_plugins() argument
642 tep_load_plugins_hook(tep, ".so", load_plugin, &list); in tep_load_plugins()
655 int tep_add_plugin_path(struct tep_handle *tep, char *path, in tep_add_plugin_path() argument
660 if (!tep || !path) in tep_add_plugin_path()
673 dir->next = tep->plugins_dir; in tep_add_plugin_path()
674 tep->plugins_dir = dir; in tep_add_plugin_path()
679 __hidden void free_tep_plugin_paths(struct tep_handle *tep) in free_tep_plugin_paths() argument
683 if (!tep) in free_tep_plugin_paths()
686 dir = tep->plugins_dir; in free_tep_plugin_paths()
688 tep->plugins_dir = tep->plugins_dir->next; in free_tep_plugin_paths()
691 dir = tep->plugins_dir; in free_tep_plugin_paths()
696 tep_unload_plugins(struct tep_plugin_list *plugin_list, struct tep_handle *tep) in tep_unload_plugins() argument
706 func(tep); in tep_unload_plugins()