Lines Matching full:change
473 * pipeline_pm_power_one - Apply power change to an entity
475 * @change: Use count change
477 * Change the entity use count by @change. If the entity is a subdev update its
483 static int pipeline_pm_power_one(struct media_entity *entity, int change) in pipeline_pm_power_one() argument
491 if (entity->use_count == 0 && change > 0 && subdev != NULL) { in pipeline_pm_power_one()
497 entity->use_count += change; in pipeline_pm_power_one()
500 if (entity->use_count == 0 && change < 0 && subdev != NULL) in pipeline_pm_power_one()
507 * pipeline_pm_power - Apply power change to all entities in a pipeline
509 * @change: Use count change
516 static int pipeline_pm_power(struct media_entity *entity, int change, in pipeline_pm_power() argument
522 if (!change) in pipeline_pm_power()
529 ret = pipeline_pm_power_one(entity, change); in pipeline_pm_power()
539 pipeline_pm_power_one(first, -change); in pipeline_pm_power()
547 int change = use ? 1 : -1; in v4l2_pipeline_pm_use() local
553 entity->use_count += change; in v4l2_pipeline_pm_use()
556 /* Apply power change to connected non-nodes. */ in v4l2_pipeline_pm_use()
557 ret = pipeline_pm_power(entity, change, &mdev->pm_count_walk); in v4l2_pipeline_pm_use()
559 entity->use_count -= change; in v4l2_pipeline_pm_use()