Lines Matching refs:commit

567 atmel_hlcdc_dc_atomic_complete(struct atmel_hlcdc_dc_commit *commit)  in atmel_hlcdc_dc_atomic_complete()  argument
569 struct drm_device *dev = commit->dev; in atmel_hlcdc_dc_atomic_complete()
571 struct drm_atomic_state *old_state = commit->state; in atmel_hlcdc_dc_atomic_complete()
585 spin_lock(&dc->commit.wait.lock); in atmel_hlcdc_dc_atomic_complete()
586 dc->commit.pending = false; in atmel_hlcdc_dc_atomic_complete()
587 wake_up_all_locked(&dc->commit.wait); in atmel_hlcdc_dc_atomic_complete()
588 spin_unlock(&dc->commit.wait.lock); in atmel_hlcdc_dc_atomic_complete()
590 kfree(commit); in atmel_hlcdc_dc_atomic_complete()
595 struct atmel_hlcdc_dc_commit *commit = in atmel_hlcdc_dc_atomic_work() local
598 atmel_hlcdc_dc_atomic_complete(commit); in atmel_hlcdc_dc_atomic_work()
606 struct atmel_hlcdc_dc_commit *commit; in atmel_hlcdc_dc_atomic_commit() local
614 commit = kzalloc(sizeof(*commit), GFP_KERNEL); in atmel_hlcdc_dc_atomic_commit()
615 if (!commit) { in atmel_hlcdc_dc_atomic_commit()
620 INIT_WORK(&commit->work, atmel_hlcdc_dc_atomic_work); in atmel_hlcdc_dc_atomic_commit()
621 commit->dev = dev; in atmel_hlcdc_dc_atomic_commit()
622 commit->state = state; in atmel_hlcdc_dc_atomic_commit()
624 spin_lock(&dc->commit.wait.lock); in atmel_hlcdc_dc_atomic_commit()
625 ret = wait_event_interruptible_locked(dc->commit.wait, in atmel_hlcdc_dc_atomic_commit()
626 !dc->commit.pending); in atmel_hlcdc_dc_atomic_commit()
628 dc->commit.pending = true; in atmel_hlcdc_dc_atomic_commit()
629 spin_unlock(&dc->commit.wait.lock); in atmel_hlcdc_dc_atomic_commit()
640 queue_work(dc->wq, &commit->work); in atmel_hlcdc_dc_atomic_commit()
642 atmel_hlcdc_dc_atomic_complete(commit); in atmel_hlcdc_dc_atomic_commit()
647 kfree(commit); in atmel_hlcdc_dc_atomic_commit()
719 init_waitqueue_head(&dc->commit.wait); in atmel_hlcdc_dc_load()