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