Lines Matching refs:psi
30 struct ps_internal *psi;
32 list_for_each_entry(psi, &_path_selectors, list) {
33 if (!strcmp(name, psi->pst.name))
34 return psi;
42 struct ps_internal *psi;
45 psi = __find_path_selector_type(name);
46 if (psi && !try_module_get(psi->pst.module))
47 psi = NULL;
50 return psi;
55 struct ps_internal *psi;
60 psi = get_path_selector(name);
61 if (!psi) {
63 psi = get_path_selector(name);
66 return psi ? &psi->pst : NULL;
71 struct ps_internal *psi;
77 psi = __find_path_selector_type(pst->name);
78 if (!psi)
81 module_put(psi->pst.module);
88 struct ps_internal *psi = kzalloc(sizeof(*psi), GFP_KERNEL);
90 if (psi)
91 psi->pst = *pst;
93 return psi;
99 struct ps_internal *psi = _alloc_path_selector(pst);
101 if (!psi)
107 kfree(psi);
110 list_add(&psi->list, &_path_selectors);
119 struct ps_internal *psi;
123 psi = __find_path_selector_type(pst->name);
124 if (!psi) {
129 list_del(&psi->list);
133 kfree(psi);