Lines Matching refs:nls
162 int register_nls(struct nls_table * nls) in register_nls() argument
166 if (!nls) in register_nls()
168 if (nls->next) in register_nls()
173 if (nls == *tmp) { in register_nls()
179 nls->next = tables; in register_nls()
180 tables = nls; in register_nls()
185 int unregister_nls(struct nls_table * nls) in unregister_nls() argument
191 if (nls == *tmp) { in unregister_nls()
192 *tmp = nls->next; in unregister_nls()
204 struct nls_table *nls; in find_nls() local
206 for (nls = tables; nls; nls = nls->next) { in find_nls()
207 if (!strcmp(nls->charset, charset)) in find_nls()
209 if (nls->alias && !strcmp(nls->alias, charset)) in find_nls()
212 if (nls && !try_module_get(nls->owner)) in find_nls()
213 nls = NULL; in find_nls()
215 return nls; in find_nls()
220 struct nls_table *nls; in load_nls() local
225 nls = find_nls(charset); in load_nls()
226 if (nls) in load_nls()
227 return nls; in load_nls()
235 nls = find_nls(charset); in load_nls()
237 return nls; in load_nls()
240 void unload_nls(struct nls_table *nls) in unload_nls() argument
242 module_put(nls->owner); in unload_nls()