Lines Matching refs:layer
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()
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()