Lines Matching refs:codec

59 	struct videocodec *codec;  member
64 const struct videocodec *codec; member
81 struct videocodec *codec; in videocodec_attach() local
103 if ((master->flags & h->codec->flags) == master->flags) { in videocodec_attach()
105 h->codec->name); in videocodec_attach()
107 if (!try_module_get(h->codec->owner)) in videocodec_attach()
110 codec = kmemdup(h->codec, sizeof(struct videocodec), in videocodec_attach()
112 if (!codec) { in videocodec_attach()
119 snprintf(codec->name, sizeof(codec->name), in videocodec_attach()
120 "%s[%d]", codec->name, h->attached); in videocodec_attach()
121 codec->master_data = master; in videocodec_attach()
122 res = codec->setup(codec); in videocodec_attach()
125 codec->name); in videocodec_attach()
133 ptr->codec = codec; in videocodec_attach()
146 h->codec->name); in videocodec_attach()
150 return codec; in videocodec_attach()
152 kfree(codec); in videocodec_attach()
162 module_put(h->codec->owner); in videocodec_attach()
164 kfree(codec); in videocodec_attach()
169 videocodec_detach (struct videocodec *codec) in videocodec_detach() argument
175 if (!codec) { in videocodec_detach()
182 codec->name, codec->type, codec->flags, codec->magic); in videocodec_detach()
194 if (codec == a->codec) { in videocodec_detach()
195 res = a->codec->unset(a->codec); in videocodec_detach()
199 a->codec->name); in videocodec_detach()
200 a->codec->master_data = NULL; in videocodec_detach()
205 a->codec->name); in videocodec_detach()
206 a->codec->master_data = NULL; in videocodec_detach()
217 module_put(a->codec->owner); in videocodec_detach()
218 kfree(a->codec); in videocodec_detach()
234 videocodec_register (const struct videocodec *codec) in videocodec_register() argument
238 if (!codec) { in videocodec_register()
245 codec->name, codec->type, codec->flags, codec->magic); in videocodec_register()
252 ptr->codec = codec; in videocodec_register()
262 h->codec->name); in videocodec_register()
269 videocodec_unregister (const struct videocodec *codec) in videocodec_unregister() argument
273 if (!codec) { in videocodec_unregister()
280 codec->name, codec->type, codec->flags, codec->magic); in videocodec_unregister()
290 if (codec == h->codec) { in videocodec_unregister()
295 h->codec->name); in videocodec_unregister()
299 h->codec->name); in videocodec_unregister()
334 h->codec->name, h->codec->type, in proc_videocodecs_show()
335 h->codec->flags, h->codec->magic); in proc_videocodecs_show()
339 a->codec->master_data->name, in proc_videocodecs_show()
340 a->codec->master_data->type, in proc_videocodecs_show()
341 a->codec->master_data->flags, in proc_videocodecs_show()
342 a->codec->master_data->magic, in proc_videocodecs_show()
343 a->codec->name); in proc_videocodecs_show()