/linux/drivers/media/platform/renesas/vsp1/ |
H A 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() 54 struct vsp1_dl_body *dlb) in rpf_configure_stream() argument 81 vsp1_rpf_write(rpf, dlb, VI6_RPF_SRCM_PSTRIDE, pstride); in rpf_configure_stream() 98 vsp1_rpf_write(rpf, dlb, VI6_RPF_INFMT, infmt); in rpf_configure_stream() 99 vsp1_rpf_write(rpf, dlb, VI6_RPF_DSWAP, fmtinfo->swap); in rpf_configure_stream() 148 vsp1_rpf_write(rpf, dlb, VI6_RPF_EXT_INFMT0, ext_infmt0); in rpf_configure_stream() 149 vsp1_rpf_write(rpf, dlb, VI6_RPF_EXT_INFMT1, ext_infmt1); in rpf_configure_stream() 150 vsp1_rpf_write(rpf, dlb, VI6_RPF_EXT_INFMT2, ext_infmt2); in rpf_configure_stream() 166 vsp1_rpf_write(rpf, dlb, VI6_RPF_LOC, in rpf_configure_stream() [all …]
|
H A 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 …]
|
H A 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() 176 struct vsp1_dl_body *dlb) in clu_configure_stream() argument [all …]
|
H A 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() 215 struct vsp1_dl_body *dlb; in wpf_configure_writeback_chain() local 224 dlb = vsp1_dl_list_get_body0(dl_next); in wpf_configure_writeback_chain() 225 vsp1_dl_body_write(dlb, VI6_WPF_WRBCK_CTRL(index), 0); in wpf_configure_writeback_chain() 235 struct vsp1_dl_body *dlb) in wpf_configure_stream() argument 268 vsp1_wpf_write(wpf, dlb, VI6_WPF_DSTM_STRIDE_Y, in wpf_configure_stream() 271 vsp1_wpf_write(wpf, dlb, VI6_WPF_DSTM_STRIDE_C, in wpf_configure_stream() 274 vsp1_wpf_write(wpf, dlb, VI6_WPF_DSWAP, fmtinfo->swap); in wpf_configure_stream() 277 vsp1_wpf_write(wpf, dlb, VI6_WPF_ROT_CTRL, in wpf_configure_stream() [all …]
|
H A 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() 152 struct vsp1_dl_body *dlb) in lut_configure_stream() argument 156 vsp1_lut_write(lut, dlb, VI6_LUT_CTRL, VI6_LUT_CTRL_EN); in lut_configure_stream() [all …]
|
H A 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() 132 struct vsp1_dl_body *dlb) in hgt_configure_stream() argument 146 vsp1_hgt_write(hgt, dlb, VI6_HGT_REGRST, VI6_HGT_REGRST_RCLEA); in hgt_configure_stream() 148 vsp1_hgt_write(hgt, dlb, VI6_HGT_OFFSET, in hgt_configure_stream() 151 vsp1_hgt_write(hgt, dlb, VI6_HGT_SIZE, in hgt_configure_stream() 159 vsp1_hgt_write(hgt, dlb, VI6_HGT_HUE_AREA(i), in hgt_configure_stream() 167 vsp1_hgt_write(hgt, dlb, VI6_HGT_MODE, in hgt_configure_stream()
|
H A D | vsp1_entity.h | 85 struct vsp1_dl_body *dlb); 89 struct vsp1_dl_body *dlb); 94 struct vsp1_dl_body *dlb); 154 struct vsp1_dl_body *dlb); 160 struct vsp1_dl_body *dlb); 165 struct vsp1_dl_body *dlb); 171 struct vsp1_dl_body *dlb);
|
H A 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() 258 struct vsp1_dl_body *dlb) in uds_configure_stream() argument 285 vsp1_uds_write(uds, dlb, VI6_UDS_CTRL, in uds_configure_stream() 289 vsp1_uds_write(uds, dlb, VI6_UDS_PASS_BWIDTH, in uds_configure_stream() 296 vsp1_uds_write(uds, dlb, VI6_UDS_SCALE, in uds_configure_stream() 305 struct vsp1_dl_body *dlb) in uds_configure_partition() argument 310 vsp1_uds_write(uds, dlb, VI6_UDS_HSZCLIP, VI6_UDS_HSZCLIP_HCEN | in uds_configure_partition() [all …]
|
H A 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() 194 struct vsp1_dl_body *dlb) in uif_configure_stream() argument 201 vsp1_uif_write(uif, dlb, VI6_UIF_DISCOM_DOCMPMR, in uif_configure_stream() 215 vsp1_uif_write(uif, dlb, VI6_UIF_DISCOM_DOCMSPXR, left); in uif_configure_stream() 216 vsp1_uif_write(uif, dlb, VI6_UIF_DISCOM_DOCMSPYR, crop->top); in uif_configure_stream() 217 vsp1_uif_write(uif, dlb, VI6_UIF_DISCOM_DOCMSZXR, width); in uif_configure_stream() 218 vsp1_uif_write(uif, dlb, VI6_UIF_DISCOM_DOCMSZYR, crop->height); in uif_configure_stream() 220 vsp1_uif_write(uif, dlb, VI6_UIF_DISCOM_DOCMCR, in uif_configure_stream()
|
H A 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() 89 struct vsp1_dl_body *dlb) in lif_configure_stream() argument 124 vsp1_lif_write(lif, dlb, VI6_LIF_CSBTH, in lif_configure_stream() 128 vsp1_lif_write(lif, dlb, VI6_LIF_CTRL, in lif_configure_stream() 140 vsp1_lif_write(lif, dlb, VI6_LIF_LBA, in lif_configure_stream()
|
H A 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() 278 struct vsp1_dl_body *dlb) in brx_configure_stream() argument 299 vsp1_brx_write(brx, dlb, VI6_BRU_INCTRL, in brx_configure_stream() 307 vsp1_brx_write(brx, dlb, VI6_BRU_VIRRPF_SIZE, in brx_configure_stream() 310 vsp1_brx_write(brx, dlb, VI6_BRU_VIRRPF_LOC, 0); in brx_configure_stream() 312 vsp1_brx_write(brx, dlb, VI6_BRU_VIRRPF_COL, brx->bgcolor | in brx_configure_stream() 322 vsp1_brx_write(brx, dlb, VI6_BRU_ROP, in brx_configure_stream() 364 vsp1_brx_write(brx, dlb, VI6_BRU_CTRL(i), ctrl); in brx_configure_stream() 379 vsp1_brx_write(brx, dlb, VI6_BRU_BLD(i), in brx_configure_stream()
|
H A 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() 136 struct vsp1_dl_body *dlb) in hgo_configure_stream() argument 147 vsp1_hgo_write(hgo, dlb, VI6_HGO_REGRST, VI6_HGO_REGRST_RCLEA); in hgo_configure_stream() 149 vsp1_hgo_write(hgo, dlb, VI6_HGO_OFFSET, in hgo_configure_stream() 152 vsp1_hgo_write(hgo, dlb, VI6_HGO_SIZE, in hgo_configure_stream() 164 vsp1_hgo_write(hgo, dlb, VI6_HGO_MODE, in hgo_configure_stream()
|
H A 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() 133 struct vsp1_dl_body *dlb) in hsit_configure_stream() argument 138 vsp1_hsit_write(hsit, dlb, VI6_HSI_CTRL, VI6_HSI_CTRL_EN); in hsit_configure_stream() 140 vsp1_hsit_write(hsit, dlb, VI6_HST_CTRL, VI6_HST_CTRL_EN); in hsit_configure_stream()
|
H A 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() 76 struct vsp1_dl_body *dlb) in vsp1_entity_configure_stream() argument 79 entity->ops->configure_stream(entity, state, pipe, dl, dlb); in vsp1_entity_configure_stream() 85 struct vsp1_dl_body *dlb) in vsp1_entity_configure_frame() argument 88 entity->ops->configure_frame(entity, pipe, dl, dlb); in vsp1_entity_configure_frame() 95 struct vsp1_dl_body *dlb) in vsp1_entity_configure_partition() argument 99 dl, dlb); in vsp1_entity_configure_partition()
|
H A D | vsp1_dl.h | 73 void vsp1_dl_body_put(struct vsp1_dl_body *dlb); 75 void vsp1_dl_body_write(struct vsp1_dl_body *dlb, u32 reg, u32 data); 76 int vsp1_dl_list_add_body(struct vsp1_dl_list *dl, struct vsp1_dl_body *dlb);
|
H A 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() 271 struct vsp1_dl_body *dlb) in sru_configure_stream() argument 295 vsp1_sru_write(sru, dlb, VI6_SRU_CTRL0, ctrl0); in sru_configure_stream() 296 vsp1_sru_write(sru, dlb, VI6_SRU_CTRL1, VI6_SRU_CTRL1_PARAM5); in sru_configure_stream() 297 vsp1_sru_write(sru, dlb, VI6_SRU_CTRL2, param->ctrl2); in sru_configure_stream()
|
H A D | vsp1_drm.c | 550 struct vsp1_dl_body *dlb; in vsp1_du_pipeline_configure() local 562 dlb = vsp1_dl_list_get_body0(dl); in vsp1_du_pipeline_configure() 567 vsp1_dl_body_write(dlb, entity->route->reg, in vsp1_du_pipeline_configure() 576 vsp1_entity_route_setup(entity, pipe, dlb); in vsp1_du_pipeline_configure() 578 dl, dlb); in vsp1_du_pipeline_configure() 579 vsp1_entity_configure_frame(entity, pipe, dl, dlb); in vsp1_du_pipeline_configure() 581 &pipe->part_table[0], dl, dlb); in vsp1_du_pipeline_configure()
|
H A D | vsp1_uds.h | 34 void vsp1_uds_set_alpha(struct vsp1_entity *uds, struct vsp1_dl_body *dlb,
|
H A D | vsp1_pipe.h | 172 struct vsp1_dl_body *dlb,
|
H A D | vsp1_video.c | 250 struct vsp1_dl_body *dlb = vsp1_dl_list_get_body0(dl); in vsp1_video_pipeline_run_partition() local 254 vsp1_entity_configure_partition(entity, pipe, part, dl, dlb); in vsp1_video_pipeline_run_partition() 261 struct vsp1_dl_body *dlb; in vsp1_video_pipeline_run() local 276 dlb = vsp1_dl_list_get_body0(dl); in vsp1_video_pipeline_run() 279 vsp1_entity_configure_frame(entity, pipe, dl, dlb); in vsp1_video_pipeline_run()
|
H A D | vsp1_pipe.c | 453 struct vsp1_dl_body *dlb, unsigned int alpha) in vsp1_pipeline_propagate_alpha() argument 466 vsp1_uds_set_alpha(pipe->uds, dlb, alpha); in vsp1_pipeline_propagate_alpha()
|
/linux/drivers/net/ethernet/mscc/ |
H A D | ocelot_police.h | 25 bool dlb; /* Enable DLB (dual leaky bucket mode */ member
|
H A D | ocelot_police.c | 45 if (conf->dlb) { in qos_policer_conf_set()
|