Lines Matching refs:hsit

26 static inline void vsp1_hsit_write(struct vsp1_hsit *hsit,  in vsp1_hsit_write()  argument
40 struct vsp1_hsit *hsit = to_hsit(subdev); in hsit_enum_mbus_code() local
45 if ((code->pad == HSIT_PAD_SINK && !hsit->inverse) | in hsit_enum_mbus_code()
46 (code->pad == HSIT_PAD_SOURCE && hsit->inverse)) in hsit_enum_mbus_code()
68 struct vsp1_hsit *hsit = to_hsit(subdev); in hsit_set_format() local
73 mutex_lock(&hsit->entity.lock); in hsit_set_format()
75 config = vsp1_entity_get_pad_config(&hsit->entity, sd_state, in hsit_set_format()
82 format = vsp1_entity_get_pad_format(&hsit->entity, config, fmt->pad); in hsit_set_format()
93 format->code = hsit->inverse ? MEDIA_BUS_FMT_AHSV8888_1X32 in hsit_set_format()
105 format = vsp1_entity_get_pad_format(&hsit->entity, config, in hsit_set_format()
108 format->code = hsit->inverse ? MEDIA_BUS_FMT_ARGB8888_1X32 in hsit_set_format()
112 mutex_unlock(&hsit->entity.lock); in hsit_set_format()
137 struct vsp1_hsit *hsit = to_hsit(&entity->subdev); in hsit_configure_stream() local
139 if (hsit->inverse) in hsit_configure_stream()
140 vsp1_hsit_write(hsit, dlb, VI6_HSI_CTRL, VI6_HSI_CTRL_EN); in hsit_configure_stream()
142 vsp1_hsit_write(hsit, dlb, VI6_HST_CTRL, VI6_HST_CTRL_EN); in hsit_configure_stream()
155 struct vsp1_hsit *hsit; in vsp1_hsit_create() local
158 hsit = devm_kzalloc(vsp1->dev, sizeof(*hsit), GFP_KERNEL); in vsp1_hsit_create()
159 if (hsit == NULL) in vsp1_hsit_create()
162 hsit->inverse = inverse; in vsp1_hsit_create()
164 hsit->entity.ops = &hsit_entity_ops; in vsp1_hsit_create()
167 hsit->entity.type = VSP1_ENTITY_HSI; in vsp1_hsit_create()
169 hsit->entity.type = VSP1_ENTITY_HST; in vsp1_hsit_create()
171 ret = vsp1_entity_init(vsp1, &hsit->entity, inverse ? "hsi" : "hst", in vsp1_hsit_create()
177 return hsit; in vsp1_hsit_create()