• Home
  • Raw
  • Download

Lines Matching refs:entity

552 		pipe = to_isp_pipeline(&isp->isp_ccp2.subdev.entity);  in isp_isr_sbl()
558 pipe = to_isp_pipeline(&isp->isp_csi2a.subdev.entity); in isp_isr_sbl()
564 pipe = to_isp_pipeline(&isp->isp_ccdc.subdev.entity); in isp_isr_sbl()
570 pipe = to_isp_pipeline(&isp->isp_prev.subdev.entity); in isp_isr_sbl()
579 pipe = to_isp_pipeline(&isp->isp_res.subdev.entity); in isp_isr_sbl()
686 static int isp_pipeline_pm_use_count(struct media_entity *entity) in isp_pipeline_pm_use_count() argument
691 media_entity_graph_walk_start(&graph, entity); in isp_pipeline_pm_use_count()
693 while ((entity = media_entity_graph_walk_next(&graph))) { in isp_pipeline_pm_use_count()
694 if (media_entity_type(entity) == MEDIA_ENT_T_DEVNODE) in isp_pipeline_pm_use_count()
695 use += entity->use_count; in isp_pipeline_pm_use_count()
712 static int isp_pipeline_pm_power_one(struct media_entity *entity, int change) in isp_pipeline_pm_power_one() argument
717 subdev = media_entity_type(entity) == MEDIA_ENT_T_V4L2_SUBDEV in isp_pipeline_pm_power_one()
718 ? media_entity_to_v4l2_subdev(entity) : NULL; in isp_pipeline_pm_power_one()
720 if (entity->use_count == 0 && change > 0 && subdev != NULL) { in isp_pipeline_pm_power_one()
726 entity->use_count += change; in isp_pipeline_pm_power_one()
727 WARN_ON(entity->use_count < 0); in isp_pipeline_pm_power_one()
729 if (entity->use_count == 0 && change < 0 && subdev != NULL) in isp_pipeline_pm_power_one()
745 static int isp_pipeline_pm_power(struct media_entity *entity, int change) in isp_pipeline_pm_power() argument
748 struct media_entity *first = entity; in isp_pipeline_pm_power()
754 media_entity_graph_walk_start(&graph, entity); in isp_pipeline_pm_power()
756 while (!ret && (entity = media_entity_graph_walk_next(&graph))) in isp_pipeline_pm_power()
757 if (media_entity_type(entity) != MEDIA_ENT_T_DEVNODE) in isp_pipeline_pm_power()
758 ret = isp_pipeline_pm_power_one(entity, change); in isp_pipeline_pm_power()
766 && first != entity) in isp_pipeline_pm_power()
785 int omap3isp_pipeline_pm_use(struct media_entity *entity, int use) in omap3isp_pipeline_pm_use() argument
790 mutex_lock(&entity->parent->graph_mutex); in omap3isp_pipeline_pm_use()
793 entity->use_count += change; in omap3isp_pipeline_pm_use()
794 WARN_ON(entity->use_count < 0); in omap3isp_pipeline_pm_use()
797 ret = isp_pipeline_pm_power(entity, change); in omap3isp_pipeline_pm_use()
799 entity->use_count -= change; in omap3isp_pipeline_pm_use()
801 mutex_unlock(&entity->parent->graph_mutex); in omap3isp_pipeline_pm_use()
823 struct media_entity *source = link->source->entity; in isp_pipeline_link_notify()
824 struct media_entity *sink = link->sink->entity; in isp_pipeline_link_notify()
873 struct media_entity *entity; in isp_pipeline_enable() local
893 entity = &pipe->output->video.entity; in isp_pipeline_enable()
895 pad = &entity->pads[0]; in isp_pipeline_enable()
901 media_entity_type(pad->entity) != MEDIA_ENT_T_V4L2_SUBDEV) in isp_pipeline_enable()
904 entity = pad->entity; in isp_pipeline_enable()
905 subdev = media_entity_to_v4l2_subdev(entity); in isp_pipeline_enable()
977 struct media_entity *entity; in isp_pipeline_disable() local
987 entity = &pipe->output->video.entity; in isp_pipeline_disable()
989 pad = &entity->pads[0]; in isp_pipeline_disable()
995 media_entity_type(pad->entity) != MEDIA_ENT_T_V4L2_SUBDEV) in isp_pipeline_disable()
998 entity = pad->entity; in isp_pipeline_disable()
999 subdev = media_entity_to_v4l2_subdev(entity); in isp_pipeline_disable()
1035 isp->crashed |= 1U << subdev->entity.id; in isp_pipeline_disable()
1139 return pad->entity == me; in isp_pipeline_is_last()
1184 isp_suspend_module_pipeline(&isp->isp_res.subdev.entity); in isp_suspend_modules()
1185 isp_suspend_module_pipeline(&isp->isp_prev.subdev.entity); in isp_suspend_modules()
1186 isp_suspend_module_pipeline(&isp->isp_ccdc.subdev.entity); in isp_suspend_modules()
1187 isp_suspend_module_pipeline(&isp->isp_csi2a.subdev.entity); in isp_suspend_modules()
1188 isp_suspend_module_pipeline(&isp->isp_ccp2.subdev.entity); in isp_suspend_modules()
1216 isp_resume_module_pipeline(&isp->isp_res.subdev.entity); in isp_resume_modules()
1217 isp_resume_module_pipeline(&isp->isp_prev.subdev.entity); in isp_resume_modules()
1218 isp_resume_module_pipeline(&isp->isp_ccdc.subdev.entity); in isp_resume_modules()
1219 isp_resume_module_pipeline(&isp->isp_csi2a.subdev.entity); in isp_resume_modules()
1220 isp_resume_module_pipeline(&isp->isp_ccp2.subdev.entity); in isp_resume_modules()
1806 struct isp_device *isp, struct media_entity *entity, in isp_link_entity() argument
1821 input = &isp->isp_ccdc.subdev.entity; in isp_link_entity()
1827 input = &isp->isp_csi2a.subdev.entity; in isp_link_entity()
1834 input = &isp->isp_ccp2.subdev.entity; in isp_link_entity()
1840 input = &isp->isp_csi2c.subdev.entity; in isp_link_entity()
1858 dev_err(isp->dev, "%s: invalid input %u\n", entity->name, in isp_link_entity()
1863 for (i = 0; i < entity->num_pads; i++) { in isp_link_entity()
1864 if (entity->pads[i].flags & MEDIA_PAD_FL_SOURCE) in isp_link_entity()
1867 if (i == entity->num_pads) { in isp_link_entity()
1873 return media_entity_create_link(entity, i, input, pad, flags); in isp_link_entity()
2013 &isp->isp_csi2a.subdev.entity, CSI2_PAD_SOURCE, in isp_initialize_modules()
2014 &isp->isp_ccdc.subdev.entity, CCDC_PAD_SINK, 0); in isp_initialize_modules()
2019 &isp->isp_ccp2.subdev.entity, CCP2_PAD_SOURCE, in isp_initialize_modules()
2020 &isp->isp_ccdc.subdev.entity, CCDC_PAD_SINK, 0); in isp_initialize_modules()
2025 &isp->isp_ccdc.subdev.entity, CCDC_PAD_SOURCE_VP, in isp_initialize_modules()
2026 &isp->isp_prev.subdev.entity, PREV_PAD_SINK, 0); in isp_initialize_modules()
2031 &isp->isp_ccdc.subdev.entity, CCDC_PAD_SOURCE_OF, in isp_initialize_modules()
2032 &isp->isp_res.subdev.entity, RESZ_PAD_SINK, 0); in isp_initialize_modules()
2037 &isp->isp_prev.subdev.entity, PREV_PAD_SOURCE, in isp_initialize_modules()
2038 &isp->isp_res.subdev.entity, RESZ_PAD_SINK, 0); in isp_initialize_modules()
2043 &isp->isp_ccdc.subdev.entity, CCDC_PAD_SOURCE_VP, in isp_initialize_modules()
2044 &isp->isp_aewb.subdev.entity, 0, in isp_initialize_modules()
2050 &isp->isp_ccdc.subdev.entity, CCDC_PAD_SOURCE_VP, in isp_initialize_modules()
2051 &isp->isp_af.subdev.entity, 0, in isp_initialize_modules()
2057 &isp->isp_ccdc.subdev.entity, CCDC_PAD_SOURCE_VP, in isp_initialize_modules()
2058 &isp->isp_hist.subdev.entity, 0, in isp_initialize_modules()
2296 ret = isp_link_entity(isp, &subdev->entity, isd->bus.interface); in isp_subdev_notifier_bound()