| /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_property.h | 55 * struct drm_property - modeset object property 57 * This structure represent a modeset object property. It combines both the name 65 * symbolic property will have the same modeset object ID on all modeset 76 * IOCTL. Everything that was set directly in structures in the legacy modeset 125 * Object properties are used to link modeset objects. This is used 155 * Set for properties which encode atomic modeset state. Such
|
| 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_atomic.h | 36 * struct drm_crtc_commit - track modeset commits on a CRTC 38 * This structure is used to track pending modeset changes and atomic commit on 66 * and modeset state change. 349 * @lock: Modeset lock to protect the state object. 479 * Allow full modeset. This is used by the ATOMIC IOCTL handler to 497 * which requires a modeset, and a less optimal configuration which 498 * can be committed without a modeset. An example would be suboptimal 609 * @acquire_ctx: acquire context for this atomic modeset state update 1269 * drm_atomic_crtc_needs_modeset - compute combined modeset need 1273 * whether the state CRTC changed enough to need a full modeset cycle: [all …]
|
| 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/ |
| H A D | drm_mode_object.c | 69 * drm_mode_object_add - allocate a new modeset identifier 96 * drm_mode_object_unregister - free a modeset identifier 103 * These modeset identifiers are _not_ reference counted. Hence don't use this 104 * for reference counted modeset objects like framebuffers. 173 * This function is used to look up a modeset object. It will acquire a 192 * This function decrements the object's refcount if it is a refcounted modeset 209 * This function increments the object's refcount if it is a refcounted modeset 223 * drm_object_attach_property - attach a property to a modeset object 224 * @obj: drm modeset object 228 * This attaches the given property to the modeset object with the given initial
|
| H A D | drm_fb_helper.c | 102 * same time, drivers should initialize all modeset objects such as CRTCs, 787 struct drm_mode_set *modeset; in setcmap_legacy() local 793 drm_client_for_each_modeset(modeset, &fb_helper->client) { in setcmap_legacy() 794 crtc = modeset->crtc; in setcmap_legacy() 875 struct drm_mode_set *modeset; in setcmap_atomic() local 891 drm_client_for_each_modeset(modeset, &fb_helper->client) { in setcmap_atomic() 892 crtc = modeset->crtc; in setcmap_atomic() 925 drm_client_for_each_modeset(modeset, &fb_helper->client) { in setcmap_atomic() 926 crtc = modeset->crtc; in setcmap_atomic() 1316 struct drm_mode_set *modeset; in pan_display_legacy() local [all …]
|
| H A D | drm_atomic_helper.c | 55 * top of the CRTC modeset helper callbacks and the plane helper callbacks. It 64 * together with a driver private modeset implementation. 605 * drm_atomic_helper_check_modeset - validate state object for modeset changes 616 * 3. If it's determined a modeset is needed then all connectors on the affected 639 * without a full modeset) _must_ call this function after that change. It is 784 * has been called on them when a modeset is forced. in drm_atomic_helper_check_modeset() 1082 * This just wraps the two parts of the state checking for planes and modeset 1100 * without a full modeset) _must_ call drm_atomic_helper_check_modeset() 1244 /* Shut down everything that needs a full modeset. */ in crtc_disable() 1350 * drm_atomic_helper_update_legacy_modeset_state - update legacy modeset state [all …]
|
| 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()
|
| H A D | drm_lease.c | 491 /* Can't lease without MODESET */ in drm_mode_create_lease_ioctl() 602 /* Can't lease without MODESET */ in drm_mode_list_lessees_ioctl() 653 /* Can't lease without MODESET */ in drm_mode_get_lease_ioctl() 705 /* Can't lease without MODESET */ in drm_mode_revoke_lease_ioctl()
|
| /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/i915/display/ |
| 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() 2932 * - During modeset the pipe is still disabled and must remain so in i9xx_set_pipeconf() 3131 * - During modeset the pipe is still disabled and must remain so in ilk_set_pipeconf() 3194 * - During modeset the pipe is still disabled and must remain so in hsw_set_transconf() 5351 * (A_ONOFF vs. A_ON) requires a full modeset. in intel_pipe_config_compare() 5529 drm_dbg_kms(display->drm, "[CRTC:%d:%s] Full modeset due to %s\n", in intel_modeset_pipe() 5555 * intel_modeset_pipes_in_mask_early - force a full modeset on a set of pipes 5557 * @reason: the reason for the full modeset 5558 * @mask: mask of pipes to modeset 5560 * Add pipes in @mask to @state and force a full modeset on the enabled ones [all …]
|
| H A D | intel_plane.c | 502 bool modeset, turn_on, turn_off; in i9xx_must_disable_cxsr() local 507 modeset = intel_crtc_needs_modeset(new_crtc_state); in i9xx_must_disable_cxsr() 508 turn_off = old_visible && (!new_visible || modeset); in i9xx_must_disable_cxsr() 509 turn_on = new_visible && (!old_visible || modeset); in i9xx_must_disable_cxsr() 541 bool modeset, turn_on; in ilk_must_disable_cxsr() local 546 modeset = intel_crtc_needs_modeset(new_crtc_state); in ilk_must_disable_cxsr() 547 turn_on = new_visible && (!old_visible || modeset); in ilk_must_disable_cxsr() 1265 * @_old_plane_state: the state from the previous modeset
|
| H A D | intel_display_types.h | 254 * All modeset locks are held while the hook is called. 258 * Called without the modeset locks held after the suspend() hook for 265 * All modeset locks are held while the hook is called. 269 * Called without the modeset locks held after the shutdown() hook for 502 * Transcoder attached to the connector could be changed at modeset. 614 bool dpll_set, modeset; member 1034 bool update_pipe; /* can a fast modeset be performed? */ 1833 /* connector directly attached - won't be use for modeset in mst world */
|
| /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()
|
| /linux/rust/kernel/drm/ |
| H A D | ioctl.rs | 46 /// 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
|