Lines Matching refs:lut
30 static inline u32 vsp1_lut_read(struct vsp1_lut *lut, u32 reg) in vsp1_lut_read() argument
32 return vsp1_read(lut->entity.vsp1, reg); in vsp1_lut_read()
35 static inline void vsp1_lut_write(struct vsp1_lut *lut, u32 reg, u32 data) in vsp1_lut_write() argument
37 vsp1_write(lut->entity.vsp1, reg, data); in vsp1_lut_write()
44 static void lut_configure(struct vsp1_lut *lut, struct vsp1_lut_config *config) in lut_configure() argument
46 memcpy_toio(lut->entity.vsp1->mmio + VI6_LUT_TABLE, config->lut, in lut_configure()
47 sizeof(config->lut)); in lut_configure()
52 struct vsp1_lut *lut = to_lut(subdev); in lut_ioctl() local
56 lut_configure(lut, arg); in lut_ioctl()
70 struct vsp1_lut *lut = to_lut(subdev); in lut_s_stream() local
75 vsp1_lut_write(lut, VI6_LUT_CTRL, VI6_LUT_CTRL_EN); in lut_s_stream()
93 struct vsp1_lut *lut = to_lut(subdev); in lut_enum_mbus_code() local
108 format = vsp1_entity_get_pad_format(&lut->entity, cfg, in lut_enum_mbus_code()
120 struct vsp1_lut *lut = to_lut(subdev); in lut_enum_frame_size() local
123 format = vsp1_entity_get_pad_format(&lut->entity, cfg, in lut_enum_frame_size()
150 struct vsp1_lut *lut = to_lut(subdev); in lut_get_format() local
152 fmt->format = *vsp1_entity_get_pad_format(&lut->entity, cfg, fmt->pad, in lut_get_format()
161 struct vsp1_lut *lut = to_lut(subdev); in lut_set_format() local
170 format = vsp1_entity_get_pad_format(&lut->entity, cfg, fmt->pad, in lut_set_format()
189 format = vsp1_entity_get_pad_format(&lut->entity, cfg, LUT_PAD_SOURCE, in lut_set_format()
228 struct vsp1_lut *lut; in vsp1_lut_create() local
231 lut = devm_kzalloc(vsp1->dev, sizeof(*lut), GFP_KERNEL); in vsp1_lut_create()
232 if (lut == NULL) in vsp1_lut_create()
235 lut->entity.type = VSP1_ENTITY_LUT; in vsp1_lut_create()
237 ret = vsp1_entity_init(vsp1, &lut->entity, 2); in vsp1_lut_create()
242 subdev = &lut->entity.subdev; in vsp1_lut_create()
249 v4l2_set_subdevdata(subdev, lut); in vsp1_lut_create()
254 return lut; in vsp1_lut_create()