/Linux-v4.19/drivers/media/platform/vsp1/ |
D | vsp1_rpf.c | 40 struct vsp1_dl_body *dlb, u32 reg, u32 data) in vsp1_rpf_write() argument 42 vsp1_dl_body_write(dlb, reg + rpf->entity.index * VI6_RPF_OFFSET, in vsp1_rpf_write() 60 struct vsp1_dl_body *dlb) in rpf_configure_stream() argument 87 vsp1_rpf_write(rpf, dlb, VI6_RPF_SRCM_PSTRIDE, pstride); in rpf_configure_stream() 108 vsp1_rpf_write(rpf, dlb, VI6_RPF_INFMT, infmt); in rpf_configure_stream() 109 vsp1_rpf_write(rpf, dlb, VI6_RPF_DSWAP, fmtinfo->swap); in rpf_configure_stream() 126 vsp1_rpf_write(rpf, dlb, VI6_RPF_LOC, in rpf_configure_stream() 153 vsp1_rpf_write(rpf, dlb, VI6_RPF_ALPH_SEL, VI6_RPF_ALPH_SEL_AEXT_EXT | in rpf_configure_stream() 190 vsp1_rpf_write(rpf, dlb, VI6_RPF_MSK_CTRL, 0); in rpf_configure_stream() 191 vsp1_rpf_write(rpf, dlb, VI6_RPF_CKEY_CTRL, 0); in rpf_configure_stream() [all …]
|
D | vsp1_dl.c | 288 struct vsp1_dl_body *dlb = &pool->bodies[i]; in vsp1_dl_body_pool_create() local 290 dlb->pool = pool; in vsp1_dl_body_pool_create() 291 dlb->max_entries = num_entries; in vsp1_dl_body_pool_create() 293 dlb->dma = pool->dma + i * dlb_size; in vsp1_dl_body_pool_create() 294 dlb->entries = pool->mem + i * dlb_size; in vsp1_dl_body_pool_create() 296 list_add_tail(&dlb->free, &pool->free); in vsp1_dl_body_pool_create() 331 struct vsp1_dl_body *dlb = NULL; in vsp1_dl_body_get() local 337 dlb = list_first_entry(&pool->free, struct vsp1_dl_body, free); in vsp1_dl_body_get() 338 list_del(&dlb->free); in vsp1_dl_body_get() 339 refcount_set(&dlb->refcnt, 1); in vsp1_dl_body_get() [all …]
|
D | vsp1_lut.c | 29 struct vsp1_dl_body *dlb, u32 reg, u32 data) in vsp1_lut_write() argument 31 vsp1_dl_body_write(dlb, reg, data); in vsp1_lut_write() 42 struct vsp1_dl_body *dlb; in lut_set_table() local 45 dlb = vsp1_dl_body_get(lut->pool); in lut_set_table() 46 if (!dlb) in lut_set_table() 50 vsp1_dl_body_write(dlb, VI6_LUT_TABLE + 4 * i, in lut_set_table() 54 swap(lut->lut, dlb); in lut_set_table() 57 vsp1_dl_body_put(dlb); in lut_set_table() 150 struct vsp1_dl_body *dlb) in lut_configure_stream() argument 154 vsp1_lut_write(lut, dlb, VI6_LUT_CTRL, VI6_LUT_CTRL_EN); in lut_configure_stream() [all …]
|
D | vsp1_clu.c | 29 struct vsp1_dl_body *dlb, u32 reg, u32 data) in vsp1_clu_write() argument 31 vsp1_dl_body_write(dlb, reg, data); in vsp1_clu_write() 45 struct vsp1_dl_body *dlb; in clu_set_table() local 48 dlb = vsp1_dl_body_get(clu->pool); in clu_set_table() 49 if (!dlb) in clu_set_table() 52 vsp1_dl_body_write(dlb, VI6_CLU_ADDR, 0); in clu_set_table() 54 vsp1_dl_body_write(dlb, VI6_CLU_DATA, ctrl->p_new.p_u32[i]); in clu_set_table() 57 swap(clu->clu, dlb); in clu_set_table() 60 vsp1_dl_body_put(dlb); in clu_set_table() 174 struct vsp1_dl_body *dlb) in clu_configure_stream() argument [all …]
|
D | vsp1_wpf.c | 30 struct vsp1_dl_body *dlb, u32 reg, u32 data) in vsp1_wpf_write() argument 32 vsp1_dl_body_write(dlb, reg + wpf->entity.index * VI6_WPF_OFFSET, data); in vsp1_wpf_write() 237 struct vsp1_dl_body *dlb) in wpf_configure_stream() argument 271 vsp1_wpf_write(wpf, dlb, VI6_WPF_DSTM_STRIDE_Y, in wpf_configure_stream() 274 vsp1_wpf_write(wpf, dlb, VI6_WPF_DSTM_STRIDE_C, in wpf_configure_stream() 277 vsp1_wpf_write(wpf, dlb, VI6_WPF_DSWAP, fmtinfo->swap); in wpf_configure_stream() 281 vsp1_wpf_write(wpf, dlb, VI6_WPF_ROT_CTRL, in wpf_configure_stream() 291 vsp1_dl_body_write(dlb, VI6_DPR_WPF_FPORCH(wpf->entity.index), in wpf_configure_stream() 294 vsp1_dl_body_write(dlb, VI6_WPF_WRBCK_CTRL, 0); in wpf_configure_stream() 318 vsp1_wpf_write(wpf, dlb, VI6_WPF_SRCRPF, srcrpf); in wpf_configure_stream() [all …]
|
D | vsp1_hgt.c | 32 struct vsp1_dl_body *dlb, u32 reg, u32 data) in vsp1_hgt_write() argument 34 vsp1_dl_body_write(dlb, reg, data); in vsp1_hgt_write() 130 struct vsp1_dl_body *dlb) in hgt_configure_stream() argument 147 vsp1_hgt_write(hgt, dlb, VI6_HGT_REGRST, VI6_HGT_REGRST_RCLEA); in hgt_configure_stream() 149 vsp1_hgt_write(hgt, dlb, VI6_HGT_OFFSET, in hgt_configure_stream() 152 vsp1_hgt_write(hgt, dlb, VI6_HGT_SIZE, in hgt_configure_stream() 160 vsp1_hgt_write(hgt, dlb, VI6_HGT_HUE_AREA(i), in hgt_configure_stream() 168 vsp1_hgt_write(hgt, dlb, VI6_HGT_MODE, in hgt_configure_stream()
|
D | vsp1_lif.c | 27 struct vsp1_dl_body *dlb, u32 reg, u32 data) in vsp1_lif_write() argument 29 vsp1_dl_body_write(dlb, reg + lif->entity.index * VI6_LIF_OFFSET, in vsp1_lif_write() 87 struct vsp1_dl_body *dlb) in lif_configure_stream() argument 100 vsp1_lif_write(lif, dlb, VI6_LIF_CSBTH, in lif_configure_stream() 104 vsp1_lif_write(lif, dlb, VI6_LIF_CTRL, in lif_configure_stream() 117 vsp1_lif_write(lif, dlb, VI6_LIF_LBA, in lif_configure_stream()
|
D | vsp1_uif.c | 36 struct vsp1_dl_body *dlb, u32 reg, u32 data) in vsp1_uif_write() argument 38 vsp1_dl_body_write(dlb, reg + uif->entity.index * VI6_UIF_OFFSET, data); in vsp1_uif_write() 195 struct vsp1_dl_body *dlb) in uif_configure_stream() argument 202 vsp1_uif_write(uif, dlb, VI6_UIF_DISCOM_DOCMPMR, in uif_configure_stream() 217 vsp1_uif_write(uif, dlb, VI6_UIF_DISCOM_DOCMSPXR, left); in uif_configure_stream() 218 vsp1_uif_write(uif, dlb, VI6_UIF_DISCOM_DOCMSPYR, crop->top); in uif_configure_stream() 219 vsp1_uif_write(uif, dlb, VI6_UIF_DISCOM_DOCMSZXR, width); in uif_configure_stream() 220 vsp1_uif_write(uif, dlb, VI6_UIF_DISCOM_DOCMSZYR, crop->height); in uif_configure_stream() 222 vsp1_uif_write(uif, dlb, VI6_UIF_DISCOM_DOCMCR, in uif_configure_stream()
|
D | vsp1_uds.c | 31 struct vsp1_dl_body *dlb, u32 reg, u32 data) in vsp1_uds_write() argument 33 vsp1_dl_body_write(dlb, reg + uds->entity.index * VI6_UDS_OFFSET, data); in vsp1_uds_write() 40 void vsp1_uds_set_alpha(struct vsp1_entity *entity, struct vsp1_dl_body *dlb, in vsp1_uds_set_alpha() argument 45 vsp1_uds_write(uds, dlb, VI6_UDS_ALPVAL, in vsp1_uds_set_alpha() 260 struct vsp1_dl_body *dlb) in uds_configure_stream() argument 289 vsp1_uds_write(uds, dlb, VI6_UDS_CTRL, in uds_configure_stream() 293 vsp1_uds_write(uds, dlb, VI6_UDS_PASS_BWIDTH, in uds_configure_stream() 300 vsp1_uds_write(uds, dlb, VI6_UDS_SCALE, in uds_configure_stream() 308 struct vsp1_dl_body *dlb) in uds_configure_partition() argument 318 vsp1_uds_write(uds, dlb, VI6_UDS_HSZCLIP, VI6_UDS_HSZCLIP_HCEN | in uds_configure_partition() [all …]
|
D | vsp1_brx.c | 30 struct vsp1_dl_body *dlb, u32 reg, u32 data) in vsp1_brx_write() argument 32 vsp1_dl_body_write(dlb, brx->base + reg, data); in vsp1_brx_write() 286 struct vsp1_dl_body *dlb) in brx_configure_stream() argument 308 vsp1_brx_write(brx, dlb, VI6_BRU_INCTRL, in brx_configure_stream() 316 vsp1_brx_write(brx, dlb, VI6_BRU_VIRRPF_SIZE, in brx_configure_stream() 319 vsp1_brx_write(brx, dlb, VI6_BRU_VIRRPF_LOC, 0); in brx_configure_stream() 321 vsp1_brx_write(brx, dlb, VI6_BRU_VIRRPF_COL, brx->bgcolor | in brx_configure_stream() 331 vsp1_brx_write(brx, dlb, VI6_BRU_ROP, in brx_configure_stream() 373 vsp1_brx_write(brx, dlb, VI6_BRU_CTRL(i), ctrl); in brx_configure_stream() 388 vsp1_brx_write(brx, dlb, VI6_BRU_BLD(i), in brx_configure_stream()
|
D | vsp1_hgo.c | 32 struct vsp1_dl_body *dlb, u32 reg, u32 data) in vsp1_hgo_write() argument 34 vsp1_dl_body_write(dlb, reg, data); in vsp1_hgo_write() 134 struct vsp1_dl_body *dlb) in hgo_configure_stream() argument 148 vsp1_hgo_write(hgo, dlb, VI6_HGO_REGRST, VI6_HGO_REGRST_RCLEA); in hgo_configure_stream() 150 vsp1_hgo_write(hgo, dlb, VI6_HGO_OFFSET, in hgo_configure_stream() 153 vsp1_hgo_write(hgo, dlb, VI6_HGO_SIZE, in hgo_configure_stream() 165 vsp1_hgo_write(hgo, dlb, VI6_HGO_MODE, in hgo_configure_stream()
|
D | vsp1_hsit.c | 27 struct vsp1_dl_body *dlb, u32 reg, u32 data) in vsp1_hsit_write() argument 29 vsp1_dl_body_write(dlb, reg, data); in vsp1_hsit_write() 132 struct vsp1_dl_body *dlb) in hsit_configure_stream() argument 137 vsp1_hsit_write(hsit, dlb, VI6_HSI_CTRL, VI6_HSI_CTRL_EN); in hsit_configure_stream() 139 vsp1_hsit_write(hsit, dlb, VI6_HST_CTRL, VI6_HST_CTRL_EN); in hsit_configure_stream()
|
D | vsp1_dl.h | 71 void vsp1_dl_body_put(struct vsp1_dl_body *dlb); 73 void vsp1_dl_body_write(struct vsp1_dl_body *dlb, u32 reg, u32 data); 74 int vsp1_dl_list_add_body(struct vsp1_dl_list *dl, struct vsp1_dl_body *dlb);
|
D | vsp1_entity.h | 154 struct vsp1_dl_body *dlb); 158 struct vsp1_dl_body *dlb); 163 struct vsp1_dl_body *dlb); 168 struct vsp1_dl_body *dlb);
|
D | vsp1_entity.c | 25 struct vsp1_dl_body *dlb) in vsp1_entity_route_setup() argument 41 vsp1_dl_body_write(dlb, VI6_DPR_HGO_SMPPT, smppt); in vsp1_entity_route_setup() 54 vsp1_dl_body_write(dlb, VI6_DPR_HGT_SMPPT, smppt); in vsp1_entity_route_setup() 69 vsp1_dl_body_write(dlb, source->route->reg, route); in vsp1_entity_route_setup() 74 struct vsp1_dl_body *dlb) in vsp1_entity_configure_stream() argument 77 entity->ops->configure_stream(entity, pipe, dlb); in vsp1_entity_configure_stream() 83 struct vsp1_dl_body *dlb) in vsp1_entity_configure_frame() argument 86 entity->ops->configure_frame(entity, pipe, dl, dlb); in vsp1_entity_configure_frame() 92 struct vsp1_dl_body *dlb) in vsp1_entity_configure_partition() argument 95 entity->ops->configure_partition(entity, pipe, dl, dlb); in vsp1_entity_configure_partition()
|
D | vsp1_sru.c | 28 struct vsp1_dl_body *dlb, u32 reg, u32 data) in vsp1_sru_write() argument 30 vsp1_dl_body_write(dlb, reg, data); in vsp1_sru_write() 272 struct vsp1_dl_body *dlb) in sru_configure_stream() argument 298 vsp1_sru_write(sru, dlb, VI6_SRU_CTRL0, ctrl0); in sru_configure_stream() 299 vsp1_sru_write(sru, dlb, VI6_SRU_CTRL1, VI6_SRU_CTRL1_PARAM5); in sru_configure_stream() 300 vsp1_sru_write(sru, dlb, VI6_SRU_CTRL2, param->ctrl2); in sru_configure_stream()
|
D | vsp1_uds.h | 34 void vsp1_uds_set_alpha(struct vsp1_entity *uds, struct vsp1_dl_body *dlb,
|
D | vsp1_drm.c | 539 struct vsp1_dl_body *dlb; in vsp1_du_pipeline_configure() local 542 dlb = vsp1_dl_list_get_body0(dl); in vsp1_du_pipeline_configure() 547 vsp1_dl_body_write(dlb, entity->route->reg, in vsp1_du_pipeline_configure() 556 vsp1_entity_route_setup(entity, pipe, dlb); in vsp1_du_pipeline_configure() 557 vsp1_entity_configure_stream(entity, pipe, dlb); in vsp1_du_pipeline_configure() 558 vsp1_entity_configure_frame(entity, pipe, dl, dlb); in vsp1_du_pipeline_configure() 559 vsp1_entity_configure_partition(entity, pipe, dl, dlb); in vsp1_du_pipeline_configure()
|
D | vsp1_pipe.h | 164 struct vsp1_dl_body *dlb,
|
D | vsp1_pipe.c | 351 struct vsp1_dl_body *dlb, unsigned int alpha) in vsp1_pipeline_propagate_alpha() argument 364 vsp1_uds_set_alpha(pipe->uds, dlb, alpha); in vsp1_pipeline_propagate_alpha()
|
D | vsp1_video.c | 381 struct vsp1_dl_body *dlb = vsp1_dl_list_get_body0(dl); in vsp1_video_pipeline_run_partition() local 387 vsp1_entity_configure_partition(entity, pipe, dl, dlb); in vsp1_video_pipeline_run_partition() 394 struct vsp1_dl_body *dlb; in vsp1_video_pipeline_run() local 409 dlb = vsp1_dl_list_get_body0(dl); in vsp1_video_pipeline_run() 412 vsp1_entity_configure_frame(entity, pipe, dl, dlb); in vsp1_video_pipeline_run()
|