Home
last modified time | relevance | path

Searched full:crtc (Results 1 – 24 of 24) sorted by relevance

/freebsd/sys/dev/drm2/
H A Ddrm_crtc_helper.c5 * DRM core CRTC related functions
107 * callback for drivers that use the crtc helpers for output mode filtering and
230 * drm_helper_crtc_in_use - check if a given CRTC is in a mode_config
231 * @crtc: CRTC to check
236 * Walk @crtc's DRM device's mode_config and see if it's in use.
239 * True if @crtc is part of the mode_config, false otherwise.
241 bool drm_helper_crtc_in_use(struct drm_crtc *crtc) in drm_helper_crtc_in_use() argument
244 struct drm_device *dev = crtc->dev; in drm_helper_crtc_in_use()
247 if (encoder->crtc == crtc && drm_helper_encoder_in_use(encoder)) in drm_helper_crtc_in_use()
271 * If an connector or CRTC isn't part of @dev's mode_config, it can be disabled
[all …]
H A Ddrm_irq.c40 #define vblanktimestamp(dev, crtc, count) ( \ argument
41 (dev)->_vblank_time[(crtc) * DRM_VBLANKTIME_RBSIZE + \
82 * Clear vblank timestamp buffer for a crtc.
84 static void clear_vblank_timestamps(struct drm_device *dev, int crtc) in clear_vblank_timestamps() argument
86 memset(&dev->_vblank_time[crtc * DRM_VBLANKTIME_RBSIZE], 0, in clear_vblank_timestamps()
91 * Disable vblank irq's on crtc, make sure that last vblank count
96 static void vblank_disable_and_save(struct drm_device *dev, int crtc) in vblank_disable_and_save() argument
110 dev->driver->disable_vblank(dev, crtc); in vblank_disable_and_save()
111 dev->vblank_enabled[crtc] = 0; in vblank_disable_and_save()
126 dev->last_vblank[crtc] = dev->driver->get_vblank_counter(dev, crtc); in vblank_disable_and_save()
[all …]
H A Ddrm_crtc_helper.h46 * The helper operations are called by the mid-layer CRTC helper.
50 * Control power levels on the CRTC. If the mode passed in is
53 void (*dpms)(struct drm_crtc *crtc, int mode);
54 void (*prepare)(struct drm_crtc *crtc);
55 void (*commit)(struct drm_crtc *crtc);
58 bool (*mode_fixup)(struct drm_crtc *crtc,
62 int (*mode_set)(struct drm_crtc *crtc, struct drm_display_mode *mode,
66 /* Move the crtc on the current fb to the given position *optional* */
67 int (*mode_set_base)(struct drm_crtc *crtc, int x, int y,
69 int (*mode_set_base_atomic)(struct drm_crtc *crtc,
[all …]
H A Ddrm_fb_helper.c142 * mode setting driver. They can be used mostly independantely from the crtc
147 /* simple single crtc case helper function */
232 static void drm_fb_helper_save_lut_atomic(struct drm_crtc *crtc, struct drm_fb_helper *helper)
237 r_base = crtc->gamma_store;
238 g_base = r_base + crtc->gamma_size;
239 b_base = g_base + crtc->gamma_size;
241 for (i = 0; i < crtc->gamma_size; i++)
242 helper->funcs->gamma_get(crtc, &r_base[i], &g_base[i], &b_base[i], i);
245 static void drm_fb_helper_restore_lut_atomic(struct drm_crtc *crtc)
249 if (crtc->funcs->gamma_set == NULL)
[all …]
H A Ddrm_crtc.h64 * may span multiple monitors (and therefore multiple CRTC and connector
244 * for example some hw, disabling a CRTC/plane is asynchronous, and
301 * @save: save CRTC state
302 * @restore: restore CRTC state
303 * @reset: reset CRTC after state has been invalidate (e.g. resume)
306 * @gamma_set: specify color ramp for CRTC
309 * @set_config: apply a new CRTC configuration
312 * The drm_crtc_funcs structure is the central CRTC management structure
313 * in the DRM. Each CRTC controls one or more connectors (note that the name
314 * CRTC is simply historical, a CRTC may control LVDS, VGA, DVI, TV out, etc.
[all …]
H A Ddrm_crtc.c6 * DRM core CRTC related functions
370 struct drm_crtc *crtc; in drm_framebuffer_remove() local
375 /* remove from any CRTC */ in drm_framebuffer_remove()
376 list_for_each_entry(crtc, &dev->mode_config.crtc_list, head) { in drm_framebuffer_remove()
377 if (crtc->fb == fb) { in drm_framebuffer_remove()
378 /* should turn off the crtc */ in drm_framebuffer_remove()
380 set.crtc = crtc; in drm_framebuffer_remove()
382 ret = crtc->funcs->set_config(&set); in drm_framebuffer_remove()
384 DRM_ERROR("failed to reset crtc %p when fb was deleted\n", crtc); in drm_framebuffer_remove()
390 /* should turn off the crtc */ in drm_framebuffer_remove()
[all …]
H A DdrmP.h718 * @crtc: counter to fetch
720 * Driver callback for fetching a raw hardware vblank counter for @crtc.
732 u32 (*get_vblank_counter) (struct drm_device *dev, int crtc);
737 * @crtc: which irq to enable
739 * Enable vblank interrupts for @crtc. If the device doesn't have
744 * Zero on success, appropriate errno if the given @crtc's vblank
747 int (*enable_vblank) (struct drm_device *dev, int crtc);
752 * @crtc: which irq to enable
754 * Disable vblank interrupts for @crtc. If the device doesn't have
758 void (*disable_vblank) (struct drm_device *dev, int crtc);
[all …]
H A Ddrm_mode.h128 /* Planes blend with or override other bits on the CRTC */
173 __u32 crtc_id; /**< Id of crtc */
370 * crtc
376 * crtc
405 * Request a page flip on the specified crtc.
408 * crtc. Once any pending rendering targeting the specified fb (as of
409 * ioctl time) has completed, the crtc will be reprogrammed to display
H A Ddrm_fb_helper.h50 void (*gamma_set)(struct drm_crtc *crtc, u16 red, u16 green,
52 void (*gamma_get)(struct drm_crtc *crtc, u16 *red, u16 *green,
H A Ddrm_modes.c639 * drm_mode_set_crtcinfo - set CRTC modesetting parameters
646 * Setup the CRTC modesetting parameters for @p, adjusting if necessary.
H A Ddrm.h514 __u32 crtc; member
/freebsd/sys/arm/nvidia/drm2/
H A Dtegra_dc.c311 dc_setup_clk(struct dc_softc *sc, struct drm_crtc *crtc, in dc_setup_clk() argument
323 list_for_each_entry(encoder, &crtc->dev->mode_config.encoder_list, in dc_setup_clk()
325 if (encoder->crtc == crtc) { in dc_setup_clk()
507 struct tegra_crtc *crtc; in dc_plane_update() local
515 crtc = container_of(drm_crtc, struct tegra_crtc, drm_crtc); in dc_plane_update()
516 sc = device_get_softc(crtc->dev); in dc_plane_update()
547 struct tegra_crtc *crtc; in dc_plane_disable() local
551 if (drm_plane->crtc == NULL) in dc_plane_disable()
554 crtc = container_of(drm_plane->crtc, struct tegra_crtc, drm_crtc); in dc_plane_disable()
556 sc = device_get_softc(crtc->dev); in dc_plane_disable()
[all …]
H A Dtegra_host1x.c264 struct drm_crtc *crtc; in tegra_drm_preclose() local
266 list_for_each_entry(crtc, &drm->mode_config.crtc_list, head) in tegra_drm_preclose()
267 tegra_dc_cancel_page_flip(crtc, file); in tegra_drm_preclose()
284 struct drm_crtc *crtc; in host1x_drm_enable_vblank() local
286 list_for_each_entry(crtc, &drm_dev->mode_config.crtc_list, head) { in host1x_drm_enable_vblank()
287 if (pipe == tegra_dc_get_pipe(crtc)) { in host1x_drm_enable_vblank()
288 tegra_dc_enable_vblank(crtc); in host1x_drm_enable_vblank()
298 struct drm_crtc *crtc; in host1x_drm_disable_vblank() local
300 list_for_each_entry(crtc, &drm_dev->mode_config.crtc_list, head) { in host1x_drm_disable_vblank()
301 if (pipe == tegra_dc_get_pipe(crtc)) { in host1x_drm_disable_vblank()
[all …]
H A Dtegra_hdmi.c719 struct tegra_crtc *crtc; in hdmi_disable() local
724 if (sc->output.encoder.crtc != NULL) { in hdmi_disable()
725 crtc = container_of(sc->output.encoder.crtc, struct tegra_crtc, in hdmi_disable()
727 dc = crtc->dev; in hdmi_disable()
751 struct tegra_crtc *crtc; in hdmi_enable() local
757 mode = &sc->output.encoder.crtc->mode; in hdmi_enable()
758 crtc = container_of(sc->output.encoder.crtc, struct tegra_crtc, in hdmi_enable()
760 dc = crtc->dev; in hdmi_enable()
806 if (crtc->nvidia_head != 0) in hdmi_enable()
/freebsd/sys/contrib/device-tree/Bindings/display/armada/
H A Dmarvell,dove-lcd.txt1 Device Tree bindings for Armada DRM CRTC driver
/freebsd/sys/dev/video/
H A Dcrtc_if.m32 INTERFACE crtc;
/freebsd/sys/contrib/device-tree/Bindings/display/rockchip/
H A Drockchip-vop.yaml44 the CRTC gamma LUT address.
H A Drockchip-vop2.yaml31 Can optionally contain a second entry corresponding to the CRTC gamma
/freebsd/sys/arm/freescale/imx/
H A Dimx6_hdmi.c201 /* CRTC methods */
/freebsd/sys/dev/fb/
H A Dvga.c857 {0xff}, {0xff}, {0xff}, {0x7f}, {0xff}, /* CRTC */ in comp_adpregs()
1185 * bit means 9 wide after verifying that 9 is consistent with some CRTC in probe_adapters()
1216 * crtc I/O port address: *(u_int16_t *)BIOS_PADDRTOVADDR(0x463); in probe_adapters()
1261 if (mp[10 + 0x17] & 0x40) /* CRTC mode control reg */ in set_line_length()
2131 for (i = 0, j = 10; i < 25; i++) { /* crtc */ in vga_save_state()
2209 for (i = 0; i < 25; ++i) { /* program crtc */ in vga_load_state()
3019 printf("vga: CRTC:0x%x, video option:0x%02x, ", in vga_diag()
H A Dfb.c316 printf("%s%d: port:0x%lx-0x%lx, crtc:0x%lx, mem:0x%lx 0x%x\n", in fb_dump_adp_info()
/freebsd/usr.sbin/bhyve/amd64/
H A Dvga.c803 //printf("XXX VGA CRTC: inb 0x%04x at index %d\n", port, sc->vga_crtc.crtc_index); in vga_port_in_handler()
1039 //printf("XXX VGA CRTC: outb 0x%04x, 0x%02x at index %d\n", port, val, sc->vga_crtc.crtc_index); in vga_port_out_handler()
/freebsd/sys/arm/ti/am335x/
H A Dtda19988.c784 /* CRTC methods */
/freebsd/sys/dev/vt/hw/vga/
H A Dvt_vga.c1105 /* Unprotect CRTC registers 0-7. */ in vga_initialize()