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