Lines Matching refs:hsit
30 static inline void vsp1_hsit_write(struct vsp1_hsit *hsit, in vsp1_hsit_write() argument
44 struct vsp1_hsit *hsit = to_hsit(subdev); in hsit_enum_mbus_code() local
49 if ((code->pad == HSIT_PAD_SINK && !hsit->inverse) | in hsit_enum_mbus_code()
50 (code->pad == HSIT_PAD_SOURCE && hsit->inverse)) in hsit_enum_mbus_code()
71 struct vsp1_hsit *hsit = to_hsit(subdev); in hsit_set_format() local
76 mutex_lock(&hsit->entity.lock); in hsit_set_format()
78 config = vsp1_entity_get_pad_config(&hsit->entity, cfg, fmt->which); in hsit_set_format()
84 format = vsp1_entity_get_pad_format(&hsit->entity, config, fmt->pad); in hsit_set_format()
94 format->code = hsit->inverse ? MEDIA_BUS_FMT_AHSV8888_1X32 in hsit_set_format()
106 format = vsp1_entity_get_pad_format(&hsit->entity, config, in hsit_set_format()
109 format->code = hsit->inverse ? MEDIA_BUS_FMT_ARGB8888_1X32 in hsit_set_format()
113 mutex_unlock(&hsit->entity.lock); in hsit_set_format()
138 struct vsp1_hsit *hsit = to_hsit(&entity->subdev); in hsit_configure() local
143 if (hsit->inverse) in hsit_configure()
144 vsp1_hsit_write(hsit, dl, VI6_HSI_CTRL, VI6_HSI_CTRL_EN); in hsit_configure()
146 vsp1_hsit_write(hsit, dl, VI6_HST_CTRL, VI6_HST_CTRL_EN); in hsit_configure()
159 struct vsp1_hsit *hsit; in vsp1_hsit_create() local
162 hsit = devm_kzalloc(vsp1->dev, sizeof(*hsit), GFP_KERNEL); in vsp1_hsit_create()
163 if (hsit == NULL) in vsp1_hsit_create()
166 hsit->inverse = inverse; in vsp1_hsit_create()
168 hsit->entity.ops = &hsit_entity_ops; in vsp1_hsit_create()
171 hsit->entity.type = VSP1_ENTITY_HSI; in vsp1_hsit_create()
173 hsit->entity.type = VSP1_ENTITY_HST; in vsp1_hsit_create()
175 ret = vsp1_entity_init(vsp1, &hsit->entity, inverse ? "hsi" : "hst", in vsp1_hsit_create()
181 return hsit; in vsp1_hsit_create()