Lines Matching refs:pst
21 struct path_selector_type pst; member
25 #define pst_to_psi(__pst) container_of((__pst), struct ps_internal, pst)
35 if (!strcmp(name, psi->pst.name)) in __find_path_selector_type()
48 if (psi && !try_module_get(psi->pst.module)) in get_path_selector()
68 return psi ? &psi->pst : NULL; in dm_get_path_selector()
71 void dm_put_path_selector(struct path_selector_type *pst) in dm_put_path_selector() argument
75 if (!pst) in dm_put_path_selector()
79 psi = __find_path_selector_type(pst->name); in dm_put_path_selector()
83 module_put(psi->pst.module); in dm_put_path_selector()
88 static struct ps_internal *_alloc_path_selector(struct path_selector_type *pst) in _alloc_path_selector() argument
93 psi->pst = *pst; in _alloc_path_selector()
98 int dm_register_path_selector(struct path_selector_type *pst) in dm_register_path_selector() argument
101 struct ps_internal *psi = _alloc_path_selector(pst); in dm_register_path_selector()
108 if (__find_path_selector_type(pst->name)) { in dm_register_path_selector()
120 void dm_unregister_path_selector(struct path_selector_type *pst) in dm_unregister_path_selector() argument
126 psi = __find_path_selector_type(pst->name); in dm_unregister_path_selector()