Lines Matching refs:change
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()
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()
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()