Lines Matching refs:ent_devs
179 media_entity_remove_links(vimc->ent_devs[i]->ent); in vimc_rm_links()
192 vimc->ent_devs[link->src_ent]; in vimc_create_links()
194 vimc->ent_devs[link->sink_ent]; in vimc_create_links()
207 vimc->ent_devs[link->primary_ent]; in vimc_create_links()
209 vimc->ent_devs[link->ancillary_ent]; in vimc_create_links()
231 if (vimc->ent_devs[i]) in vimc_release_subdevs()
232 vimc->pipe_cfg->ents[i].type->release(vimc->ent_devs[i]); in vimc_release_subdevs()
240 if (vimc->ent_devs[i] && vimc->pipe_cfg->ents[i].type->unregister) in vimc_unregister_subdevs()
241 vimc->pipe_cfg->ents[i].type->unregister(vimc->ent_devs[i]); in vimc_unregister_subdevs()
251 vimc->ent_devs[i] = vimc->pipe_cfg->ents[i].type->add(vimc, in vimc_add_subdevs()
253 if (IS_ERR(vimc->ent_devs[i])) { in vimc_add_subdevs()
254 int err = PTR_ERR(vimc->ent_devs[i]); in vimc_add_subdevs()
258 vimc->ent_devs[i] = NULL; in vimc_add_subdevs()
274 kfree(vimc->ent_devs); in vimc_v4l2_dev_release()
290 vimc->ent_devs = kcalloc(vimc->pipe_cfg->num_ents, in vimc_register_devices()
291 sizeof(*vimc->ent_devs), GFP_KERNEL); in vimc_register_devices()
292 if (!vimc->ent_devs) { in vimc_register_devices()
332 kfree(vimc->ent_devs); in vimc_register_devices()