Lines Matching refs:pst
20 struct path_selector_type pst; member
24 #define pst_to_psi(__pst) container_of((__pst), struct ps_internal, pst)
34 if (!strcmp(name, psi->pst.name)) in __find_path_selector_type()
47 if (psi && !try_module_get(psi->pst.module)) in get_path_selector()
67 return psi ? &psi->pst : NULL; in dm_get_path_selector()
70 void dm_put_path_selector(struct path_selector_type *pst) in dm_put_path_selector() argument
74 if (!pst) in dm_put_path_selector()
78 psi = __find_path_selector_type(pst->name); in dm_put_path_selector()
82 module_put(psi->pst.module); in dm_put_path_selector()
87 static struct ps_internal *_alloc_path_selector(struct path_selector_type *pst) in _alloc_path_selector() argument
92 psi->pst = *pst; in _alloc_path_selector()
97 int dm_register_path_selector(struct path_selector_type *pst) in dm_register_path_selector() argument
100 struct ps_internal *psi = _alloc_path_selector(pst); in dm_register_path_selector()
107 if (__find_path_selector_type(pst->name)) { in dm_register_path_selector()
118 int dm_unregister_path_selector(struct path_selector_type *pst) in dm_unregister_path_selector() argument
124 psi = __find_path_selector_type(pst->name); in dm_unregister_path_selector()