Searched refs:uds (Results 1 - 6 of 6) sorted by relevance

/linux-4.1.27/drivers/media/platform/vsp1/
H A Dvsp1_uds.c32 static inline u32 vsp1_uds_read(struct vsp1_uds *uds, u32 reg) vsp1_uds_read() argument
34 return vsp1_read(uds->entity.vsp1, vsp1_uds_read()
35 reg + uds->entity.index * VI6_UDS_OFFSET); vsp1_uds_read()
38 static inline void vsp1_uds_write(struct vsp1_uds *uds, u32 reg, u32 data) vsp1_uds_write() argument
40 vsp1_write(uds->entity.vsp1, vsp1_uds_write()
41 reg + uds->entity.index * VI6_UDS_OFFSET, data); vsp1_uds_write()
48 void vsp1_uds_set_alpha(struct vsp1_uds *uds, unsigned int alpha) vsp1_uds_set_alpha() argument
50 vsp1_uds_write(uds, VI6_UDS_ALPVAL, alpha << VI6_UDS_ALPVAL_VAL0_SHIFT); vsp1_uds_set_alpha()
119 struct vsp1_uds *uds = to_uds(subdev); uds_s_stream() local
129 input = &uds->entity.formats[UDS_PAD_SINK]; uds_s_stream()
130 output = &uds->entity.formats[UDS_PAD_SOURCE]; uds_s_stream()
135 dev_dbg(uds->entity.vsp1->dev, "hscale %u vscale %u\n", hscale, vscale); uds_s_stream()
141 if (uds->scale_alpha && (hscale >= 8192 || vscale >= 8192)) uds_s_stream()
146 vsp1_uds_write(uds, VI6_UDS_CTRL, uds_s_stream()
147 (uds->scale_alpha ? VI6_UDS_CTRL_AON : 0) | uds_s_stream()
150 vsp1_uds_write(uds, VI6_UDS_PASS_BWIDTH, uds_s_stream()
157 vsp1_uds_write(uds, VI6_UDS_SCALE, uds_s_stream()
160 vsp1_uds_write(uds, VI6_UDS_CLIP_SIZE, uds_s_stream()
179 struct vsp1_uds *uds = to_uds(subdev); uds_enum_mbus_code() local
195 format = vsp1_entity_get_pad_format(&uds->entity, cfg, uds_enum_mbus_code()
207 struct vsp1_uds *uds = to_uds(subdev); uds_enum_frame_size() local
210 format = vsp1_entity_get_pad_format(&uds->entity, cfg, uds_enum_frame_size()
234 struct vsp1_uds *uds = to_uds(subdev); uds_get_format() local
236 fmt->format = *vsp1_entity_get_pad_format(&uds->entity, cfg, fmt->pad, uds_get_format()
242 static void uds_try_format(struct vsp1_uds *uds, struct v4l2_subdev_pad_config *cfg, uds_try_format() argument
263 format = vsp1_entity_get_pad_format(&uds->entity, cfg, uds_try_format()
281 struct vsp1_uds *uds = to_uds(subdev); uds_set_format() local
284 uds_try_format(uds, cfg, fmt->pad, &fmt->format, fmt->which); uds_set_format()
286 format = vsp1_entity_get_pad_format(&uds->entity, cfg, fmt->pad, uds_set_format()
292 format = vsp1_entity_get_pad_format(&uds->entity, cfg, uds_set_format()
296 uds_try_format(uds, cfg, UDS_PAD_SOURCE, format, fmt->which); uds_set_format()
329 struct vsp1_uds *uds; vsp1_uds_create() local
332 uds = devm_kzalloc(vsp1->dev, sizeof(*uds), GFP_KERNEL); vsp1_uds_create()
333 if (uds == NULL) vsp1_uds_create()
336 uds->entity.type = VSP1_ENTITY_UDS; vsp1_uds_create()
337 uds->entity.index = index; vsp1_uds_create()
339 ret = vsp1_entity_init(vsp1, &uds->entity, 2); vsp1_uds_create()
344 subdev = &uds->entity.subdev; vsp1_uds_create()
349 snprintf(subdev->name, sizeof(subdev->name), "%s uds.%u", vsp1_uds_create()
351 v4l2_set_subdevdata(subdev, uds); vsp1_uds_create()
356 return uds; vsp1_uds_create()
H A Dvsp1_uds.h38 void vsp1_uds_set_alpha(struct vsp1_uds *uds, unsigned int alpha);
H A Dvsp1_drv.c228 struct vsp1_uds *uds; vsp1_create_entities() local
230 uds = vsp1_uds_create(vsp1, i); vsp1_create_entities()
231 if (IS_ERR(uds)) { vsp1_create_entities()
232 ret = PTR_ERR(uds); vsp1_create_entities()
236 vsp1->uds[i] = uds; vsp1_create_entities()
237 list_add_tail(&uds->entity.list_dev, &vsp1->entities); vsp1_create_entities()
444 of_property_read_u32(np, "renesas,#uds", &pdata->uds_count); vsp1_parse_dt()
H A Dvsp1.h70 struct vsp1_uds *uds[VSP1_MAX_UDS]; member in struct:vsp1_device
H A Dvsp1_video.c362 if (pipe->uds) vsp1_pipeline_validate_branch()
365 pipe->uds = entity; vsp1_pipeline_validate_branch()
404 pipe->uds = NULL; __vsp1_pipeline_cleanup()
695 struct vsp1_uds *uds = to_uds(&entity->subdev); vsp1_pipeline_propagate_alpha() local
697 vsp1_uds_set_alpha(uds, alpha); vsp1_pipeline_propagate_alpha()
813 if (pipe->uds) { vsp1_video_start_streaming()
814 struct vsp1_uds *uds = to_uds(&pipe->uds->subdev); vsp1_video_start_streaming() local
823 uds->scale_alpha = false; vsp1_video_start_streaming()
828 uds->scale_alpha = rpf->video.fmtinfo->alpha; vsp1_video_start_streaming()
H A Dvsp1_video.h82 struct vsp1_entity *uds; member in struct:vsp1_pipeline

Completed in 178 milliseconds