Lines Matching refs:lif

29 static inline u32 vsp1_lif_read(struct vsp1_lif *lif, u32 reg)  in vsp1_lif_read()  argument
31 return vsp1_read(lif->entity.vsp1, reg); in vsp1_lif_read()
34 static inline void vsp1_lif_write(struct vsp1_lif *lif, u32 reg, u32 data) in vsp1_lif_write() argument
36 vsp1_write(lif->entity.vsp1, reg, data); in vsp1_lif_write()
46 struct vsp1_lif *lif = to_lif(subdev); in lif_s_stream() local
52 vsp1_lif_write(lif, VI6_LIF_CTRL, 0); in lif_s_stream()
56 format = &lif->entity.formats[LIF_PAD_SOURCE]; in lif_s_stream()
60 vsp1_lif_write(lif, VI6_LIF_CSBTH, in lif_s_stream()
64 vsp1_lif_write(lif, VI6_LIF_CTRL, in lif_s_stream()
84 struct vsp1_lif *lif = to_lif(subdev); in lif_enum_mbus_code() local
100 format = vsp1_entity_get_pad_format(&lif->entity, cfg, in lif_enum_mbus_code()
112 struct vsp1_lif *lif = to_lif(subdev); in lif_enum_frame_size() local
115 format = vsp1_entity_get_pad_format(&lif->entity, cfg, LIF_PAD_SINK, in lif_enum_frame_size()
139 struct vsp1_lif *lif = to_lif(subdev); in lif_get_format() local
141 fmt->format = *vsp1_entity_get_pad_format(&lif->entity, cfg, fmt->pad, in lif_get_format()
150 struct vsp1_lif *lif = to_lif(subdev); in lif_set_format() local
158 format = vsp1_entity_get_pad_format(&lif->entity, cfg, fmt->pad, in lif_set_format()
180 format = vsp1_entity_get_pad_format(&lif->entity, cfg, LIF_PAD_SOURCE, in lif_set_format()
214 struct vsp1_lif *lif; in vsp1_lif_create() local
217 lif = devm_kzalloc(vsp1->dev, sizeof(*lif), GFP_KERNEL); in vsp1_lif_create()
218 if (lif == NULL) in vsp1_lif_create()
221 lif->entity.type = VSP1_ENTITY_LIF; in vsp1_lif_create()
223 ret = vsp1_entity_init(vsp1, &lif->entity, 2); in vsp1_lif_create()
228 subdev = &lif->entity.subdev; in vsp1_lif_create()
235 v4l2_set_subdevdata(subdev, lif); in vsp1_lif_create()
240 return lif; in vsp1_lif_create()