Lines Matching refs:hsit

29 static inline void vsp1_hsit_write(struct vsp1_hsit *hsit, u32 reg, u32 data)  in vsp1_hsit_write()  argument
31 vsp1_write(hsit->entity.vsp1, reg, data); in vsp1_hsit_write()
40 struct vsp1_hsit *hsit = to_hsit(subdev); in hsit_s_stream() local
45 if (hsit->inverse) in hsit_s_stream()
46 vsp1_hsit_write(hsit, VI6_HSI_CTRL, VI6_HSI_CTRL_EN); in hsit_s_stream()
48 vsp1_hsit_write(hsit, VI6_HST_CTRL, VI6_HST_CTRL_EN); in hsit_s_stream()
61 struct vsp1_hsit *hsit = to_hsit(subdev); in hsit_enum_mbus_code() local
66 if ((code->pad == HSIT_PAD_SINK && !hsit->inverse) | in hsit_enum_mbus_code()
67 (code->pad == HSIT_PAD_SOURCE && hsit->inverse)) in hsit_enum_mbus_code()
79 struct vsp1_hsit *hsit = to_hsit(subdev); in hsit_enum_frame_size() local
82 format = vsp1_entity_get_pad_format(&hsit->entity, cfg, fse->pad, in hsit_enum_frame_size()
110 struct vsp1_hsit *hsit = to_hsit(subdev); in hsit_get_format() local
112 fmt->format = *vsp1_entity_get_pad_format(&hsit->entity, cfg, fmt->pad, in hsit_get_format()
122 struct vsp1_hsit *hsit = to_hsit(subdev); in hsit_set_format() local
125 format = vsp1_entity_get_pad_format(&hsit->entity, cfg, fmt->pad, in hsit_set_format()
136 format->code = hsit->inverse ? MEDIA_BUS_FMT_AHSV8888_1X32 in hsit_set_format()
148 format = vsp1_entity_get_pad_format(&hsit->entity, cfg, HSIT_PAD_SOURCE, in hsit_set_format()
151 format->code = hsit->inverse ? MEDIA_BUS_FMT_ARGB8888_1X32 in hsit_set_format()
184 struct vsp1_hsit *hsit; in vsp1_hsit_create() local
187 hsit = devm_kzalloc(vsp1->dev, sizeof(*hsit), GFP_KERNEL); in vsp1_hsit_create()
188 if (hsit == NULL) in vsp1_hsit_create()
191 hsit->inverse = inverse; in vsp1_hsit_create()
194 hsit->entity.type = VSP1_ENTITY_HSI; in vsp1_hsit_create()
196 hsit->entity.type = VSP1_ENTITY_HST; in vsp1_hsit_create()
198 ret = vsp1_entity_init(vsp1, &hsit->entity, 2); in vsp1_hsit_create()
203 subdev = &hsit->entity.subdev; in vsp1_hsit_create()
210 v4l2_set_subdevdata(subdev, hsit); in vsp1_hsit_create()
215 return hsit; in vsp1_hsit_create()