Lines Matching full:layer
132 * Atmel HLCDC Layer registers layout structure
134 * Each HLCDC layer has its own register organization and a given register
137 * This structure stores common registers layout for a given layer and is
138 * used by HLCDC layer code to choose the appropriate register to write to
153 * @general_config: general layer config register
202 * Atmel HLCDC layer types
215 * This structure list all the formats supported by a given layer.
226 * Atmel HLCDC Layer description structure
228 * This structure describes the capabilities provided by a given layer.
230 * @name: layer name
231 * @type: layer type
232 * @id: layer id
233 * @regs_offset: offset of the layer registers from the HLCDC registers base
234 * @cfgs_offset: CFGX registers offset from the layer registers base
237 * @max_width: maximum width supported by this layer (0 means unlimited)
238 * @max_height: maximum height supported by this layer (0 means unlimited)
254 * Atmel HLCDC Layer.
256 * A layer can be a DRM plane of a post processing layer used to render
259 * @desc: layer description
271 * @layer: HLCDC layer structure
276 struct atmel_hlcdc_layer layer; member
286 atmel_hlcdc_layer_to_plane(struct atmel_hlcdc_layer *layer) in atmel_hlcdc_layer_to_plane() argument
288 return container_of(layer, struct atmel_hlcdc_plane, layer); in atmel_hlcdc_layer_to_plane()
307 * @layers: a layer description table describing available layers
308 * @nlayers: layer description table size
351 static inline void atmel_hlcdc_layer_write_reg(struct atmel_hlcdc_layer *layer, in atmel_hlcdc_layer_write_reg() argument
354 regmap_write(layer->regmap, layer->desc->regs_offset + reg, val); in atmel_hlcdc_layer_write_reg()
357 static inline u32 atmel_hlcdc_layer_read_reg(struct atmel_hlcdc_layer *layer, in atmel_hlcdc_layer_read_reg() argument
362 regmap_read(layer->regmap, layer->desc->regs_offset + reg, &val); in atmel_hlcdc_layer_read_reg()
367 static inline void atmel_hlcdc_layer_write_cfg(struct atmel_hlcdc_layer *layer, in atmel_hlcdc_layer_write_cfg() argument
370 atmel_hlcdc_layer_write_reg(layer, in atmel_hlcdc_layer_write_cfg()
371 layer->desc->cfgs_offset + in atmel_hlcdc_layer_write_cfg()
375 static inline u32 atmel_hlcdc_layer_read_cfg(struct atmel_hlcdc_layer *layer, in atmel_hlcdc_layer_read_cfg() argument
378 return atmel_hlcdc_layer_read_reg(layer, in atmel_hlcdc_layer_read_cfg()
379 layer->desc->cfgs_offset + in atmel_hlcdc_layer_read_cfg()
383 static inline void atmel_hlcdc_layer_write_clut(struct atmel_hlcdc_layer *layer, in atmel_hlcdc_layer_write_clut() argument
386 regmap_write(layer->regmap, in atmel_hlcdc_layer_write_clut()
387 layer->desc->clut_offset + c * sizeof(u32), in atmel_hlcdc_layer_write_clut()
391 static inline void atmel_hlcdc_layer_init(struct atmel_hlcdc_layer *layer, in atmel_hlcdc_layer_init() argument
395 layer->desc = desc; in atmel_hlcdc_layer_init()
396 layer->regmap = regmap; in atmel_hlcdc_layer_init()