tilcdc_crtc 60 drivers/gpu/drm/tilcdc/tilcdc_crtc.c #define to_tilcdc_crtc(x) container_of(x, struct tilcdc_crtc, base) tilcdc_crtc 98 drivers/gpu/drm/tilcdc/tilcdc_crtc.c struct tilcdc_crtc *tilcdc_crtc = to_tilcdc_crtc(crtc); tilcdc_crtc 103 drivers/gpu/drm/tilcdc/tilcdc_crtc.c reinit_completion(&tilcdc_crtc->palette_loaded); tilcdc_crtc 107 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->palette_dma_handle); tilcdc_crtc 109 drivers/gpu/drm/tilcdc/tilcdc_crtc.c (u32) tilcdc_crtc->palette_dma_handle + tilcdc_crtc 127 drivers/gpu/drm/tilcdc/tilcdc_crtc.c ret = wait_for_completion_timeout(&tilcdc_crtc->palette_loaded, tilcdc_crtc 208 drivers/gpu/drm/tilcdc/tilcdc_crtc.c struct tilcdc_crtc *tilcdc_crtc = to_tilcdc_crtc(crtc); tilcdc_crtc 253 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->lcd_fck_rate = clk_rate; tilcdc_crtc 256 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->lcd_fck_rate, crtc->mode.clock, clkdiv); tilcdc_crtc 276 drivers/gpu/drm/tilcdc/tilcdc_crtc.c struct tilcdc_crtc *tilcdc_crtc = to_tilcdc_crtc(crtc); tilcdc_crtc 279 drivers/gpu/drm/tilcdc/tilcdc_crtc.c const struct tilcdc_panel_info *info = tilcdc_crtc->info; tilcdc_crtc 440 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->hvtotal_us = tilcdc_crtc 447 drivers/gpu/drm/tilcdc/tilcdc_crtc.c struct tilcdc_crtc *tilcdc_crtc = to_tilcdc_crtc(crtc); tilcdc_crtc 450 drivers/gpu/drm/tilcdc/tilcdc_crtc.c mutex_lock(&tilcdc_crtc->enable_lock); tilcdc_crtc 451 drivers/gpu/drm/tilcdc/tilcdc_crtc.c if (tilcdc_crtc->enabled || tilcdc_crtc->shutdown) { tilcdc_crtc 452 drivers/gpu/drm/tilcdc/tilcdc_crtc.c mutex_unlock(&tilcdc_crtc->enable_lock); tilcdc_crtc 475 drivers/gpu/drm/tilcdc/tilcdc_crtc.c spin_lock_irqsave(&tilcdc_crtc->irq_lock, flags); tilcdc_crtc 476 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->last_vblank = ktime_get(); tilcdc_crtc 478 drivers/gpu/drm/tilcdc/tilcdc_crtc.c spin_unlock_irqrestore(&tilcdc_crtc->irq_lock, flags); tilcdc_crtc 482 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->enabled = true; tilcdc_crtc 483 drivers/gpu/drm/tilcdc/tilcdc_crtc.c mutex_unlock(&tilcdc_crtc->enable_lock); tilcdc_crtc 494 drivers/gpu/drm/tilcdc/tilcdc_crtc.c struct tilcdc_crtc *tilcdc_crtc = to_tilcdc_crtc(crtc); tilcdc_crtc 498 drivers/gpu/drm/tilcdc/tilcdc_crtc.c mutex_lock(&tilcdc_crtc->enable_lock); tilcdc_crtc 500 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->shutdown = true; tilcdc_crtc 501 drivers/gpu/drm/tilcdc/tilcdc_crtc.c if (!tilcdc_crtc->enabled) { tilcdc_crtc 502 drivers/gpu/drm/tilcdc/tilcdc_crtc.c mutex_unlock(&tilcdc_crtc->enable_lock); tilcdc_crtc 505 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->frame_done = false; tilcdc_crtc 512 drivers/gpu/drm/tilcdc/tilcdc_crtc.c ret = wait_event_timeout(tilcdc_crtc->frame_done_wq, tilcdc_crtc 513 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->frame_done, tilcdc_crtc 525 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->enabled = false; tilcdc_crtc 526 drivers/gpu/drm/tilcdc/tilcdc_crtc.c mutex_unlock(&tilcdc_crtc->enable_lock); tilcdc_crtc 552 drivers/gpu/drm/tilcdc/tilcdc_crtc.c struct tilcdc_crtc *tilcdc_crtc = tilcdc_crtc 553 drivers/gpu/drm/tilcdc/tilcdc_crtc.c container_of(work, struct tilcdc_crtc, recover_work); tilcdc_crtc 554 drivers/gpu/drm/tilcdc/tilcdc_crtc.c struct drm_crtc *crtc = &tilcdc_crtc->base; tilcdc_crtc 585 drivers/gpu/drm/tilcdc/tilcdc_crtc.c struct tilcdc_crtc *tilcdc_crtc = to_tilcdc_crtc(crtc); tilcdc_crtc 588 drivers/gpu/drm/tilcdc/tilcdc_crtc.c if (tilcdc_crtc->event) { tilcdc_crtc 593 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->event = event; tilcdc_crtc 595 drivers/gpu/drm/tilcdc/tilcdc_crtc.c mutex_lock(&tilcdc_crtc->enable_lock); tilcdc_crtc 597 drivers/gpu/drm/tilcdc/tilcdc_crtc.c if (tilcdc_crtc->enabled) { tilcdc_crtc 602 drivers/gpu/drm/tilcdc/tilcdc_crtc.c spin_lock_irqsave(&tilcdc_crtc->irq_lock, flags); tilcdc_crtc 604 drivers/gpu/drm/tilcdc/tilcdc_crtc.c next_vblank = ktime_add_us(tilcdc_crtc->last_vblank, tilcdc_crtc 605 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->hvtotal_us); tilcdc_crtc 609 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->next_fb = fb; tilcdc_crtc 613 drivers/gpu/drm/tilcdc/tilcdc_crtc.c spin_unlock_irqrestore(&tilcdc_crtc->irq_lock, flags); tilcdc_crtc 616 drivers/gpu/drm/tilcdc/tilcdc_crtc.c mutex_unlock(&tilcdc_crtc->enable_lock); tilcdc_crtc 625 drivers/gpu/drm/tilcdc/tilcdc_crtc.c struct tilcdc_crtc *tilcdc_crtc = to_tilcdc_crtc(crtc); tilcdc_crtc 627 drivers/gpu/drm/tilcdc/tilcdc_crtc.c if (!tilcdc_crtc->simulate_vesa_sync) tilcdc_crtc 678 drivers/gpu/drm/tilcdc/tilcdc_crtc.c struct tilcdc_crtc *tilcdc_crtc = to_tilcdc_crtc(crtc); tilcdc_crtc 691 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->frame_done = false; tilcdc_crtc 694 drivers/gpu/drm/tilcdc/tilcdc_crtc.c ret = wait_event_timeout(tilcdc_crtc->frame_done_wq, tilcdc_crtc 695 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->frame_done, tilcdc_crtc 830 drivers/gpu/drm/tilcdc/tilcdc_crtc.c struct tilcdc_crtc *tilcdc_crtc = to_tilcdc_crtc(crtc); tilcdc_crtc 831 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->info = info; tilcdc_crtc 837 drivers/gpu/drm/tilcdc/tilcdc_crtc.c struct tilcdc_crtc *tilcdc_crtc = to_tilcdc_crtc(crtc); tilcdc_crtc 839 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->simulate_vesa_sync = simulate_vesa_sync; tilcdc_crtc 846 drivers/gpu/drm/tilcdc/tilcdc_crtc.c struct tilcdc_crtc *tilcdc_crtc = to_tilcdc_crtc(crtc); tilcdc_crtc 849 drivers/gpu/drm/tilcdc/tilcdc_crtc.c if (tilcdc_crtc->lcd_fck_rate != clk_get_rate(priv->clk)) { tilcdc_crtc 867 drivers/gpu/drm/tilcdc/tilcdc_crtc.c struct tilcdc_crtc *tilcdc_crtc = to_tilcdc_crtc(crtc); tilcdc_crtc 882 drivers/gpu/drm/tilcdc/tilcdc_crtc.c spin_lock_irqsave(&tilcdc_crtc->irq_lock, flags); tilcdc_crtc 884 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->last_vblank = now; tilcdc_crtc 886 drivers/gpu/drm/tilcdc/tilcdc_crtc.c if (tilcdc_crtc->next_fb) { tilcdc_crtc 887 drivers/gpu/drm/tilcdc/tilcdc_crtc.c set_scanout(crtc, tilcdc_crtc->next_fb); tilcdc_crtc 888 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->next_fb = NULL; tilcdc_crtc 892 drivers/gpu/drm/tilcdc/tilcdc_crtc.c spin_unlock_irqrestore(&tilcdc_crtc->irq_lock, flags); tilcdc_crtc 901 drivers/gpu/drm/tilcdc/tilcdc_crtc.c event = tilcdc_crtc->event; tilcdc_crtc 902 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->event = NULL; tilcdc_crtc 909 drivers/gpu/drm/tilcdc/tilcdc_crtc.c if (tilcdc_crtc->frame_intact) tilcdc_crtc 910 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->sync_lost_count = 0; tilcdc_crtc 912 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->frame_intact = true; tilcdc_crtc 920 drivers/gpu/drm/tilcdc/tilcdc_crtc.c complete(&tilcdc_crtc->palette_loaded); tilcdc_crtc 932 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->frame_intact = false; tilcdc_crtc 942 drivers/gpu/drm/tilcdc/tilcdc_crtc.c if (tilcdc_crtc->sync_lost_count++ > tilcdc_crtc 948 drivers/gpu/drm/tilcdc/tilcdc_crtc.c &tilcdc_crtc->recover_work); tilcdc_crtc 951 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->sync_lost_count = 0; tilcdc_crtc 957 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->frame_done = true; tilcdc_crtc 958 drivers/gpu/drm/tilcdc/tilcdc_crtc.c wake_up(&tilcdc_crtc->frame_done_wq); tilcdc_crtc 979 drivers/gpu/drm/tilcdc/tilcdc_crtc.c struct tilcdc_crtc *tilcdc_crtc; tilcdc_crtc 983 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc = devm_kzalloc(dev->dev, sizeof(*tilcdc_crtc), GFP_KERNEL); tilcdc_crtc 984 drivers/gpu/drm/tilcdc/tilcdc_crtc.c if (!tilcdc_crtc) tilcdc_crtc 987 drivers/gpu/drm/tilcdc/tilcdc_crtc.c init_completion(&tilcdc_crtc->palette_loaded); tilcdc_crtc 988 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->palette_base = dmam_alloc_coherent(dev->dev, tilcdc_crtc 990 drivers/gpu/drm/tilcdc/tilcdc_crtc.c &tilcdc_crtc->palette_dma_handle, tilcdc_crtc 992 drivers/gpu/drm/tilcdc/tilcdc_crtc.c if (!tilcdc_crtc->palette_base) tilcdc_crtc 994 drivers/gpu/drm/tilcdc/tilcdc_crtc.c *tilcdc_crtc->palette_base = TILCDC_PALETTE_FIRST_ENTRY; tilcdc_crtc 996 drivers/gpu/drm/tilcdc/tilcdc_crtc.c crtc = &tilcdc_crtc->base; tilcdc_crtc 998 drivers/gpu/drm/tilcdc/tilcdc_crtc.c ret = tilcdc_plane_init(dev, &tilcdc_crtc->primary); tilcdc_crtc 1002 drivers/gpu/drm/tilcdc/tilcdc_crtc.c mutex_init(&tilcdc_crtc->enable_lock); tilcdc_crtc 1004 drivers/gpu/drm/tilcdc/tilcdc_crtc.c init_waitqueue_head(&tilcdc_crtc->frame_done_wq); tilcdc_crtc 1006 drivers/gpu/drm/tilcdc/tilcdc_crtc.c spin_lock_init(&tilcdc_crtc->irq_lock); tilcdc_crtc 1007 drivers/gpu/drm/tilcdc/tilcdc_crtc.c INIT_WORK(&tilcdc_crtc->recover_work, tilcdc_crtc_recover_work); tilcdc_crtc 1010 drivers/gpu/drm/tilcdc/tilcdc_crtc.c &tilcdc_crtc->primary,