Lines Matching refs:h
39 struct codec_list *h = codeclist_top; in videocodec_attach() local
55 if (!h) { in videocodec_attach()
60 while (h) { in videocodec_attach()
63 if ((master->flags & h->codec->flags) == master->flags) { in videocodec_attach()
64 zrdev_dbg(zr, "%s: try '%s'\n", __func__, h->codec->name); in videocodec_attach()
66 codec = kmemdup(h->codec, sizeof(struct videocodec), GFP_KERNEL); in videocodec_attach()
71 snprintf(codec->name + res, sizeof(codec->name) - res, "[%d]", h->attached); in videocodec_attach()
81 a = h->list; in videocodec_attach()
83 h->list = ptr; in videocodec_attach()
90 h->codec->name); in videocodec_attach()
93 h->attached += 1; in videocodec_attach()
98 h = h->next; in videocodec_attach()
111 struct codec_list *h = codeclist_top; in videocodec_detach() local
126 if (!h) { in videocodec_detach()
131 while (h) { in videocodec_detach()
132 a = h->list; in videocodec_detach()
146 h->list = a->next; in videocodec_detach()
154 h->attached -= 1; in videocodec_detach()
160 h = h->next; in videocodec_detach()
169 struct codec_list *ptr, *h = codeclist_top; in videocodec_register() local
188 if (!h) { in videocodec_register()
192 while (h->next) in videocodec_register()
193 h = h->next; // find the end in videocodec_register()
194 h->next = ptr; in videocodec_register()
196 h->codec->name); in videocodec_register()
204 struct codec_list *prev = NULL, *h = codeclist_top; in videocodec_unregister() local
218 if (!h) { in videocodec_unregister()
223 while (h) { in videocodec_unregister()
224 if (codec == h->codec) { in videocodec_unregister()
225 if (h->attached) { in videocodec_unregister()
227 h->codec->name); in videocodec_unregister()
231 h->codec->name); in videocodec_unregister()
233 codeclist_top = h->next; in videocodec_unregister()
237 prev->next = h->next; in videocodec_unregister()
241 kfree(h); in videocodec_unregister()
244 prev = h; in videocodec_unregister()
245 h = h->next; in videocodec_unregister()
254 struct codec_list *h = codeclist_top; in videocodec_debugfs_show() local
260 while (h) { in videocodec_debugfs_show()
262 h->codec->name, h->codec->type, in videocodec_debugfs_show()
263 h->codec->flags, h->codec->magic); in videocodec_debugfs_show()
264 a = h->list; in videocodec_debugfs_show()
274 h = h->next; in videocodec_debugfs_show()