| /linux/drivers/gpu/drm/ |
| H A D | drm_client_modeset.c | 42 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 D | drm_modeset_lock.c | 65 * 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 D | drm_fb_helper.c | 99 * same time, drivers should initialize all modeset objects such as CRTCs, 693 struct drm_mode_set *modeset; in setcmap_legacy() local 699 drm_client_for_each_modeset(modeset, &fb_helper->client) { in setcmap_legacy() 700 crtc = modeset->crtc; in setcmap_legacy() 781 struct drm_mode_set *modeset; in setcmap_atomic() local 797 drm_client_for_each_modeset(modeset, &fb_helper->client) { in setcmap_atomic() 798 crtc = modeset->crtc; in setcmap_atomic() 831 drm_client_for_each_modeset(modeset, &fb_helper->client) { in setcmap_atomic() 832 crtc = modeset->crtc; in setcmap_atomic() 1222 struct drm_mode_set *modeset; in pan_display_legacy() local [all …]
|
| H A D | drm_atomic_helper.c | 56 * 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 D | drm_crtc_helper.c | 68 * 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 D | drm_encoder.c | 49 * 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 D | drm_fbdev_ttm.c | 117 * 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()
|
| /linux/include/drm/ |
| H A D | drm_modeset_lock.h | 78 * 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 D | drm_client.h | 212 bool drm_client_rotation(struct drm_mode_set *modeset, unsigned int *rotation); 221 * @modeset: &drm_mode_set loop cursor 224 #define drm_client_for_each_modeset(modeset, client) \ argument 226 modeset = (client)->modesets; modeset->crtc; modeset++)
|
| H A D | drm_module.h | 62 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 D | drm_mode_config.h | 115 * This is the only hook to validate an atomic modeset update. This 116 * function must reject any modeset and state changes which the hardware 149 * updates which require a full modeset (i.e. blanking the screen, or 162 * an atomic modeset update is described. 192 * This is the only hook to commit an atomic modeset update. The core 198 * an atomic modeset update is described. 212 * modeset this must be guaranteed. 266 * additional modeset locks). 364 * This is the big scary modeset BKL which protects everything that 497 * the display hardware or modeset software state, which the panic
|
| H A D | drm_ioctl.h | 92 * 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 D | intel_atomic.c | 25 * 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 D | intel_encoder.c | 71 * 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 D | intel_display.c | 1222 * If we're doing a modeset we don't need to do any in intel_pre_plane_update() 2961 * - During modeset the pipe is still disabled and must remain so in i9xx_set_pipeconf() 3160 * - During modeset the pipe is still disabled and must remain so in ilk_set_pipeconf() 3223 * - During modeset the pipe is still disabled and must remain so in hsw_set_transconf() 5347 * (A_ONOFF vs. A_ON) requires a full modeset. in intel_pipe_config_compare() 5530 drm_dbg_kms(display->drm, "[CRTC:%d:%s] Full modeset due to %s\n", in intel_modeset_pipe() 5556 * intel_modeset_pipes_in_mask_early - force a full modeset on a set of pipes 5558 * @reason: the reason for the full modeset 5559 * @mask: mask of pipes to modeset 5561 * Add pipes in @mask to @state and force a full modeset on the enabled ones [all …]
|
| H A D | intel_dp_mst.c | 835 * intel_dp_mst_atomic_check_link - check all modeset MST link configuration 839 * Check the link configuration for all modeset MST outputs. If the 889 * If one of the connectors in a MST stream needs a modeset, mark all CRTCs 895 * so if the master transcoder needs modeset, all other streams in the 896 * topology need a modeset. All platforms need to add the atomic state 897 * for all streams in the topology, since a modeset on one may require 1972 * intel_dp_mst_crtc_needs_modeset - check if changes in topology need to modeset the given CRTC 1974 * @crtc: CRTC for which to check the modeset requirement 1976 * Check if any change in a MST topology requires a forced modeset on @crtc in 1979 * the other @crtc in the same topology is still active, requiring a full modeset [all …]
|
| /linux/drivers/gpu/drm/loongson/ |
| H A D | loongson_module.c | 13 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 D | mdp5_mixer.c | 87 * 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 D | mdp5_encoder.c | 146 * 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 D | wndw.c | 275 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 D | vbox_drv.c | 30 MODULE_PARM_DESC(modeset, "Disable/Enable modesetting"); 31 module_param_named(modeset, vbox_modeset, int, 0400);
|
| H A D | vbox_drv.h | 66 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 D | disp.c | 107 /* 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 D | virtgpu_display.c | 137 * 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/drivers/gpu/drm/gma500/ |
| H A D | framebuffer.c | 213 dev_priv->modeset = true; in psb_modeset_init() 219 if (dev_priv->modeset) { in psb_modeset_cleanup()
|