Lines Matching refs:psi
32 struct ps_internal *psi;
34 list_for_each_entry(psi, &_path_selectors, list) {
35 if (!strcmp(name, psi->pst.name))
36 return psi;
44 struct ps_internal *psi;
47 psi = __find_path_selector_type(name);
48 if (psi && !try_module_get(psi->pst.module))
49 psi = NULL;
52 return psi;
57 struct ps_internal *psi;
62 psi = get_path_selector(name);
63 if (!psi) {
65 psi = get_path_selector(name);
68 return psi ? &psi->pst : NULL;
73 struct ps_internal *psi;
79 psi = __find_path_selector_type(pst->name);
80 if (!psi)
83 module_put(psi->pst.module);
90 struct ps_internal *psi = kzalloc(sizeof(*psi), GFP_KERNEL);
92 if (psi)
93 psi->pst = *pst;
95 return psi;
101 struct ps_internal *psi = _alloc_path_selector(pst);
103 if (!psi)
109 kfree(psi);
112 list_add(&psi->list, &_path_selectors);
122 struct ps_internal *psi;
126 psi = __find_path_selector_type(pst->name);
127 if (!psi) {
132 list_del(&psi->list);
136 kfree(psi);