Lines Matching defs:encp
153 struct hfs_encoding *encp;
155 MALLOC(encp, struct hfs_encoding *, sizeof(struct hfs_encoding), M_TEMP, M_WAITOK);
159 encp->link.sle_next = NULL;
160 encp->refcount = 0;
161 encp->encoding = encoding;
162 encp->get_unicode_func = get_unicode;
163 encp->get_hfsname_func = get_hfsname;
164 encp->kmod_id = id;
165 SLIST_INSERT_HEAD(&hfs_encoding_list, encp, link);
186 struct hfs_encoding *encp;
189 SLIST_FOREACH(encp, &hfs_encoding_list, link) {
190 if (encp->encoding == encoding && encp->kmod_id == id) {
191 encp->refcount--;
194 if (encp->refcount <= 0 && encp->kmod_id != 0) {
195 SLIST_REMOVE(&hfs_encoding_list, encp, hfs_encoding, link);
197 FREE(encp, M_TEMP);
220 struct hfs_encoding *encp;
224 SLIST_FOREACH(encp, &hfs_encoding_list, link) {
225 if (encp->encoding == encoding) {
227 *get_unicode = encp->get_unicode_func;
228 *get_hfsname = encp->get_hfsname_func;
229 ++encp->refcount;
253 struct hfs_encoding *encp;
256 SLIST_FOREACH(encp, &hfs_encoding_list, link) {
257 if (encp->encoding == encoding) {
258 encp->refcount--;
261 if (encp->refcount <= 0 && encp->kmod_id != 0) {
262 uint32_t loadTag = (uint32_t)encp->kmod_id;
264 SLIST_REMOVE(&hfs_encoding_list, encp, hfs_encoding, link);
267 FREE(encp, M_TEMP);