Lines Matching full:change
450 * pipeline_pm_power_one - Apply power change to an entity
452 * @change: Use count change
454 * Change the entity use count by @change. If the entity is a subdev update its
460 static int pipeline_pm_power_one(struct media_entity *entity, int change) in pipeline_pm_power_one() argument
468 if (entity->use_count == 0 && change > 0 && subdev != NULL) { in pipeline_pm_power_one()
474 entity->use_count += change; in pipeline_pm_power_one()
477 if (entity->use_count == 0 && change < 0 && subdev != NULL) in pipeline_pm_power_one()
484 * pipeline_pm_power - Apply power change to all entities in a pipeline
486 * @change: Use count change
493 static int pipeline_pm_power(struct media_entity *entity, int change, in pipeline_pm_power() argument
499 if (!change) in pipeline_pm_power()
506 ret = pipeline_pm_power_one(entity, change); in pipeline_pm_power()
516 pipeline_pm_power_one(first, -change); in pipeline_pm_power()
524 int change = use ? 1 : -1; in v4l2_pipeline_pm_use() local
530 entity->use_count += change; in v4l2_pipeline_pm_use()
533 /* Apply power change to connected non-nodes. */ in v4l2_pipeline_pm_use()
534 ret = pipeline_pm_power(entity, change, &mdev->pm_count_walk); in v4l2_pipeline_pm_use()
536 entity->use_count -= change; in v4l2_pipeline_pm_use()