Lines Matching full:change
458 * pipeline_pm_power_one - Apply power change to an entity
460 * @change: Use count change
462 * Change the entity use count by @change. If the entity is a subdev update its
468 static int pipeline_pm_power_one(struct media_entity *entity, int change) in pipeline_pm_power_one() argument
476 if (entity->use_count == 0 && change > 0 && subdev != NULL) { in pipeline_pm_power_one()
482 entity->use_count += change; in pipeline_pm_power_one()
485 if (entity->use_count == 0 && change < 0 && subdev != NULL) in pipeline_pm_power_one()
492 * pipeline_pm_power - Apply power change to all entities in a pipeline
494 * @change: Use count change
501 static int pipeline_pm_power(struct media_entity *entity, int change, in pipeline_pm_power() argument
507 if (!change) in pipeline_pm_power()
514 ret = pipeline_pm_power_one(entity, change); in pipeline_pm_power()
524 pipeline_pm_power_one(first, -change); in pipeline_pm_power()
532 int change = use ? 1 : -1; in v4l2_pipeline_pm_use() local
538 entity->use_count += change; in v4l2_pipeline_pm_use()
541 /* Apply power change to connected non-nodes. */ in v4l2_pipeline_pm_use()
542 ret = pipeline_pm_power(entity, change, &mdev->pm_count_walk); in v4l2_pipeline_pm_use()
544 entity->use_count -= change; in v4l2_pipeline_pm_use()