• Home
  • Raw
  • Download

Lines Matching +full:vga +full:- +full:dvi +full:- +full:encoder

35  * struct drm_encoder_funcs - encoder controls
43 * Reset encoder hardware and software state to off. This function isn't
47 void (*reset)(struct drm_encoder *encoder);
52 * Clean up encoder resources. This is only called at driver unload time
53 * through drm_mode_config_cleanup() since an encoder cannot be
56 void (*destroy)(struct drm_encoder *encoder);
62 * interfaces attached to the encoder like debugfs interfaces.
71 int (*late_register)(struct drm_encoder *encoder);
77 * userspace interfaces attached to the encoder from
82 void (*early_unregister)(struct drm_encoder *encoder);
86 * struct drm_encoder - central DRM encoder structure
91 * @bridge: bridge associated to the encoder
93 * @helper_private: mid-layer private data
108 * encoder types are defined thus far:
110 * - DRM_MODE_ENCODER_DAC for VGA and analog on DVI-I/DVI-A.
112 * - DRM_MODE_ENCODER_TMDS for DVI, HDMI and (embedded) DisplayPort.
114 * - DRM_MODE_ENCODER_LVDS for display panels, or in general any panel
117 * - DRM_MODE_ENCODER_TVDAC for TV output (Composite, S-Video,
120 * - DRM_MODE_ENCODER_VIRTUAL for virtual machine displays
122 * - DRM_MODE_ENCODER_DSI for panels connected using the DSI serial bus.
124 * - DRM_MODE_ENCODER_DPI for panels connected using the DPI parallel
127 * - DRM_MODE_ENCODER_DPMST for special fake encoders used to allow
128 * mutliple DP MST streams to share one physical encoder.
134 * index. It is invariant over the lifetime of the encoder.
141 * the bits for all &drm_crtc objects this encoder can be connected to
155 * &drm_crtc together with this encoder before calling
157 * encoder itself, too. Cloning bits should be set such that when two
163 * Note that since encoder objects can't be hotplugged the assigned indices
169 * @crtc: Currently bound CRTC, only really meaningful for non-atomic
183 struct drm_encoder *encoder,
188 * drm_encoder_index - find the index of a registered encoder
189 * @encoder: encoder to find index for
191 * Given a registered encoder, return the index of that encoder within a DRM
194 static inline unsigned int drm_encoder_index(const struct drm_encoder *encoder) in drm_encoder_index() argument
196 return encoder->index; in drm_encoder_index()
200 * drm_encoder_mask - find the mask of a registered ENCODER
201 * @encoder: encoder to find mask for
203 * Given a registered encoder, return the mask bit of that encoder for an
204 * encoder's possible_clones field.
206 static inline u32 drm_encoder_mask(const struct drm_encoder *encoder) in drm_encoder_mask() argument
208 return 1 << drm_encoder_index(encoder); in drm_encoder_mask()
212 * drm_encoder_crtc_ok - can a given crtc drive a given encoder?
213 * @encoder: encoder to test
216 * Returns false if @encoder can't be driven by @crtc, true otherwise.
218 static inline bool drm_encoder_crtc_ok(struct drm_encoder *encoder, in drm_encoder_crtc_ok() argument
221 return !!(encoder->possible_crtcs & drm_crtc_mask(crtc)); in drm_encoder_crtc_ok()
225 * drm_encoder_find - find a &drm_encoder
228 * @id: encoder id
230 * Returns the encoder with @id, NULL if it doesn't exist. Simple wrapper around
244 void drm_encoder_cleanup(struct drm_encoder *encoder);
247 * drm_for_each_encoder_mask - iterate over encoders specified by bitmask
248 * @encoder: the loop cursor
250 * @encoder_mask: bitmask of encoder indices
254 #define drm_for_each_encoder_mask(encoder, dev, encoder_mask) \ argument
255 list_for_each_entry((encoder), &(dev)->mode_config.encoder_list, head) \
256 for_each_if ((encoder_mask) & drm_encoder_mask(encoder))
259 * drm_for_each_encoder - iterate over all encoders
260 * @encoder: the loop cursor
265 #define drm_for_each_encoder(encoder, dev) \ argument
266 list_for_each_entry(encoder, &(dev)->mode_config.encoder_list, head)