Home
last modified time | relevance | path

Searched full:modeset (Results 1 – 25 of 99) sorted by relevance

1234

/linux/drivers/gpu/drm/
H A Ddrm_client_modeset.c42 struct drm_mode_set *modeset; in drm_client_modeset_create() local
60 for (modeset = client->modesets; modeset->crtc; modeset++) { in drm_client_modeset_create()
61 modeset->connectors = kzalloc_objs(*modeset->connectors, in drm_client_modeset_create()
63 if (!modeset->connectors) in drm_client_modeset_create()
77 struct drm_mode_set *modeset; in drm_client_modeset_release() local
79 drm_client_for_each_modeset(modeset, client) { in drm_client_modeset_release()
82 drm_mode_destroy(client->dev, modeset->mode); in drm_client_modeset_release()
83 modeset->mode = NULL; in drm_client_modeset_release()
84 modeset->fb = NULL; in drm_client_modeset_release()
86 for (i = 0; i < modeset->num_connectors; i++) { in drm_client_modeset_release()
[all …]
H A Ddrm_modeset_lock.c65 * where all modeset locks need to be taken through drm_modeset_lock_all_ctx().
67 * If all that is needed is a single modeset lock, then the &struct
131 * drm_modeset_lock_all - take all modeset locks
134 * This function takes all modeset locks, suitable where a more fine-grained
186 * drm_modeset_unlock_all - drop all modeset locks
189 * This function drops all modeset locks taken by a previous call to the
218 * drm_warn_on_modeset_not_all_locked - check that all modeset locks are locked
377 * drm_modeset_lock - take modeset lock
406 * drm_modeset_lock_single_interruptible - take a single modeset lock
421 * drm_modeset_unlock - drop modeset lock
[all …]
H A Ddrm_fb_helper.c100 * same time, drivers should initialize all modeset objects such as CRTCs,
679 struct drm_mode_set *modeset; in setcmap_legacy() local
685 drm_client_for_each_modeset(modeset, &fb_helper->client) { in setcmap_legacy()
686 crtc = modeset->crtc; in setcmap_legacy()
767 struct drm_mode_set *modeset; in setcmap_atomic() local
783 drm_client_for_each_modeset(modeset, &fb_helper->client) { in setcmap_atomic()
784 crtc = modeset->crtc; in setcmap_atomic()
817 drm_client_for_each_modeset(modeset, &fb_helper->client) { in setcmap_atomic()
818 crtc = modeset->crtc; in setcmap_atomic()
1208 struct drm_mode_set *modeset; in pan_display_legacy() local
[all …]
H A Ddrm_atomic_helper.c56 * top of the CRTC modeset helper callbacks and the plane helper callbacks. It
65 * together with a driver private modeset implementation.
606 * drm_atomic_helper_check_modeset - validate state object for modeset changes
617 * 3. If it's determined a modeset is needed then all connectors on the affected
640 * without a full modeset) _must_ call this function after that change. It is
785 * has been called on them when a modeset is forced. in drm_atomic_helper_check_modeset()
1083 * This just wraps the two parts of the state checking for planes and modeset
1101 * without a full modeset) _must_ call drm_atomic_helper_check_modeset()
1264 /* Shut down everything that needs a full modeset. */ in drm_atomic_helper_commit_crtc_disable()
1380 * drm_atomic_helper_update_legacy_modeset_state - update legacy modeset state
[all …]
H A Ddrm_crtc_helper.c68 * The CRTC modeset helper library provides a default set_config implementation
70 * the same callbacks which drivers can use to e.g. restore the modeset
78 * The driver callbacks are mostly compatible with the atomic modeset helpers,
90 * These legacy modeset helpers use the same function table structures as
224 * This function is part of the legacy modeset helper library and will cause
545 * This function is deprecated. New drivers must implement atomic modeset
833 drm_err(dev, "failed to restore config after modeset failure\n"); in drm_crtc_helper_set_config()
903 * This function is deprecated. New drivers must implement atomic modeset
1036 * unlit and the GPU is in a consistent, low power state. Takes modeset locks.
H A Ddrm_encoder.c49 * Otherwise encoders aren't used in the uapi at all (any modeset request from
51 * free to use them however they wish. Modeset helper libraries make strong use
312 * protected by modeset locks, so check those first. */ in drm_encoder_get_crtc()
H A Ddrm_fbdev_ttm.c117 * fail. The modeset has to be serialized by acquiring the reservation in drm_fbdev_ttm_damage_blit()
120 * For fbdev emulation, we only have to protect against fbdev modeset in drm_fbdev_ttm_damage_blit()
H A Ddrm_lease.c490 /* Can't lease without MODESET */ in drm_mode_create_lease_ioctl()
601 /* Can't lease without MODESET */ in drm_mode_list_lessees_ioctl()
652 /* Can't lease without MODESET */ in drm_mode_get_lease_ioctl()
704 /* Can't lease without MODESET */ in drm_mode_revoke_lease_ioctl()
H A Ddrm_debugfs_crc.c74 * may result in a commit (even a full modeset).
76 * CRC results must be reliable across non-full-modeset atomic commits, so if a
78 * CRC generation, then the driver must mark that commit as a full modeset
/linux/include/drm/
H A Ddrm_modeset_lock.h78 * struct drm_modeset_lock - used for locking modeset resources.
83 * Used for locking CRTCs and other modeset resources.
87 * modeset lock
152 * DRM_MODESET_LOCK_ALL_BEGIN - Helper to acquire modeset locks
154 * @ctx: local modeset acquire context, will be dereferenced
158 * Use these macros to simplify grabbing all modeset locks using a local
162 * Any code run between BEGIN and END will be holding the modeset locks.
167 * Drivers can acquire additional modeset locks. If any lock acquisition
185 * DRM_MODESET_LOCK_ALL_END - Helper to release and cleanup modeset locks
187 * @ctx: local modeset acquire context, will be dereferenced
H A Ddrm_module.h62 drm_pci_register_driver_if_modeset(struct pci_driver *pci_drv, int modeset) in drm_pci_register_driver_if_modeset() argument
64 if (drm_firmware_drivers_only() && modeset == -1) in drm_pci_register_driver_if_modeset()
66 if (modeset == 0) in drm_pci_register_driver_if_modeset()
73 drm_pci_unregister_driver_if_modeset(struct pci_driver *pci_drv, int modeset) in drm_pci_unregister_driver_if_modeset() argument
H A Ddrm_atomic.h35 * struct drm_crtc_commit - track modeset commits on a CRTC
37 * This structure is used to track pending modeset changes and atomic commit on
65 * and modeset state change.
366 * @lock: Modeset lock to protect the state object.
496 * Allow full modeset. This is used by the ATOMIC IOCTL handler to
514 * which requires a modeset, and a less optimal configuration which
515 * can be committed without a modeset. An example would be suboptimal
626 * @acquire_ctx: acquire context for this atomic modeset state update
1264 * drm_atomic_crtc_needs_modeset - compute combined modeset need
1268 * whether the state CRTC changed enough to need a full modeset cycle:
[all …]
H A Ddrm_ioctl.h92 * This must be set for any ioctl which can change the modeset or
96 * Note that read-only modeset ioctl can also be called by
/linux/drivers/gpu/drm/i915/display/
H A Dintel_atomic.c25 * DOC: atomic modeset support
28 * dispatch required by the atomic modeset infrastructure.
136 * up in a modeset. in intel_digital_connector_atomic_check()
174 * intel_connector_needs_modeset - check if connector needs a modeset
175 * @state: the atomic state corresponding to this modeset
194 * intel_any_crtc_needs_modeset - check if any CRTC needs a modeset
195 * @state: the atomic state corresponding to this modeset
197 * Returns true if any CRTC in @state needs a modeset.
354 state->dpll_set = state->modeset = false; in intel_atomic_state_clear()
H A Dintel_encoder.c71 * TODO: check and remove holding the modeset locks if none of in intel_encoder_suspend_all()
93 * TODO: check and remove holding the modeset locks if none of in intel_encoder_shutdown_all()
H A Dintel_display.c1245 * If we're doing a modeset we don't need to do any in intel_pre_plane_update()
2983 * - During modeset the pipe is still disabled and must remain so in i9xx_set_pipeconf()
3182 * - During modeset the pipe is still disabled and must remain so in ilk_set_pipeconf()
3245 * - During modeset the pipe is still disabled and must remain so in hsw_set_transconf()
5362 * (A_ONOFF vs. A_ON) requires a full modeset. in intel_pipe_config_compare()
5541 drm_dbg_kms(display->drm, "[CRTC:%d:%s] Full modeset due to %s\n", in intel_modeset_pipe()
5567 * intel_modeset_pipes_in_mask_early - force a full modeset on a set of pipes
5569 * @reason: the reason for the full modeset
5570 * @mask: mask of pipes to modeset
5572 * Add pipes in @mask to @state and force a full modeset on the enabled ones
[all …]
/linux/drivers/gpu/drm/loongson/
H A Dloongson_module.c13 MODULE_PARM_DESC(modeset, "Disable/Enable modesetting");
14 module_param_named(modeset, loongson_modeset, int, 0400);
/linux/drivers/gpu/drm/msm/disp/mdp5/
H A Dmdp5_mixer.c87 * without requiring a full modeset if we had already in mdp5_mixer_assign()
91 * result in the CRTC requiring a full modeset, even in mdp5_mixer_assign()
95 * a full modeset. in mdp5_mixer_assign()
H A Dmdp5_encoder.c146 * the settings changes for the new modeset (like new in mdp5_vid_encoder_disable()
231 * modeset case, this is done from crtc->atomic_flush(), but that in mdp5_encoder_atomic_check()
232 * is too early in the case of full modeset, in which case we in mdp5_encoder_atomic_check()
/linux/drivers/gpu/drm/nouveau/dispnv50/
H A Dwndw.c275 nv50_wndw_atomic_check_acquire(struct nv50_wndw *wndw, bool modeset, in nv50_wndw_atomic_check_acquire() argument
288 if (fb != armw->state.fb || !armw->visible || modeset) { in nv50_wndw_atomic_check_acquire()
389 * that do a modeset before providing a gamma table. in nv50_wndw_atomic_check_lut()
453 bool modeset = false; in nv50_wndw_atomic_check() local
465 modeset = drm_atomic_crtc_needs_modeset(&asyh->state); in nv50_wndw_atomic_check()
491 ret = nv50_wndw_atomic_check_acquire(wndw, modeset, in nv50_wndw_atomic_check()
507 * when performing certain modeset operations. in nv50_wndw_atomic_check()
509 if (!asyw->visible || modeset) { in nv50_wndw_atomic_check()
/linux/drivers/gpu/drm/vboxvideo/
H A Dvbox_drv.c30 MODULE_PARM_DESC(modeset, "Disable/Enable modesetting");
31 module_param_named(modeset, vbox_modeset, int, 0400);
H A Dvbox_drv.h66 struct mutex hw_mutex; /* protects modeset and accel/vbva accesses */
106 * This means that sometimes we must do a modeset on other crtc-s then
/linux/drivers/gpu/drm/nouveau/dispnv04/
H A Ddisp.c107 /* meh.. modeset apparently doesn't setup all the regs and depends in nv04_display_init()
109 * nouveau was loaded, and then do a modeset. in nv04_display_init()
155 /* Force CLUT to get re-loaded during modeset. */ in nv04_display_init()
/linux/drivers/gpu/drm/virtio/
H A Dvirtgpu_display.c137 * virtio-gpu can't do modeset and plane update operations in virtio_gpu_crtc_atomic_flush()
138 * independent from each other. So the actual modeset happens in virtio_gpu_crtc_atomic_flush()
140 * whenever we must force the modeset. in virtio_gpu_crtc_atomic_flush()
/linux/rust/kernel/drm/
H A Dioctl.rs46 /// This must be set for any ioctl which can change the modeset or display state. Userspace must
49 /// Note that read-only modeset ioctl can also be called by unauthenticated clients, or when a

1234