Lines Matching refs:psi
31 struct ps_internal *psi;
33 list_for_each_entry(psi, &_path_selectors, list) {
34 if (!strcmp(name, psi->pst.name))
35 return psi;
43 struct ps_internal *psi;
46 psi = __find_path_selector_type(name);
47 if (psi && !try_module_get(psi->pst.module))
48 psi = NULL;
51 return psi;
56 struct ps_internal *psi;
61 psi = get_path_selector(name);
62 if (!psi) {
64 psi = get_path_selector(name);
67 return psi ? &psi->pst : NULL;
72 struct ps_internal *psi;
78 psi = __find_path_selector_type(pst->name);
79 if (!psi)
82 module_put(psi->pst.module);
89 struct ps_internal *psi = kzalloc(sizeof(*psi), GFP_KERNEL);
91 if (psi)
92 psi->pst = *pst;
94 return psi;
100 struct ps_internal *psi = _alloc_path_selector(pst);
102 if (!psi)
108 kfree(psi);
111 list_add(&psi->list, &_path_selectors);
120 struct ps_internal *psi;
124 psi = __find_path_selector_type(pst->name);
125 if (!psi) {
130 list_del(&psi->list);
134 kfree(psi);