Home
last modified time | relevance | path

Searched refs:src_width (Results 1 – 25 of 50) sorted by relevance

12

/linux-6.1.9/drivers/iio/buffer/
Dindustrialio-buffer-dmaengine.c166 unsigned int width, src_width, dest_width; in iio_dmaengine_buffer_alloc() local
187 src_width = __ffs(caps.src_addr_widths); in iio_dmaengine_buffer_alloc()
189 src_width = 1; in iio_dmaengine_buffer_alloc()
194 width = max(src_width, dest_width); in iio_dmaengine_buffer_alloc()
/linux-6.1.9/drivers/media/common/v4l2-tpg/
Dv4l2-tpg-core.c92 tpg->scaled_width = tpg->src_width = w; in tpg_init()
480 tpg->scaled_width = (tpg->src_width * tpg->compose.width + in tpg_s_crop_compose()
496 tpg->src_width = width; in tpg_reset_source()
1619 return bars[tpg->pattern][((x * 8) / tpg->src_width) % 8]; in tpg_get_color()
1621 return bars[1][(pat_line + (x * 8) / tpg->src_width) % 8]; in tpg_get_color()
1654 if (pat_line || (x % tpg->src_width) == tpg->src_width / 2) in tpg_get_color()
1658 if (pat_line || ((x % tpg->src_width) + 1) / 2 == tpg->src_width / 4) in tpg_get_color()
1662 if (pat_line || ((x % tpg->src_width) + 10) / 20 == tpg->src_width / 40) in tpg_get_color()
1666 return TPG_COLOR_RAMP + ((x % tpg->src_width) * 256) / tpg->src_width; in tpg_get_color()
1680 unsigned w = tpg->src_width; in tpg_calculate_square_border()
[all …]
/linux-6.1.9/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_plane.c144 int src_width, src_height, dst_height, fps; in _dpu_plane_calc_bw() local
156 src_width = drm_rect_width(&pipe_cfg->src_rect); in _dpu_plane_calc_bw()
168 src_width * mode->vtotal * fps * fmt->bpp * in _dpu_plane_calc_bw()
172 src_width * hw_latency_lines * fps * fmt->bpp * in _dpu_plane_calc_bw()
224 const struct dpu_format *fmt, u32 src_width) in _dpu_plane_calc_fill_level() argument
231 if (!fmt || !plane->state || !src_width || !fmt->bpp) { in _dpu_plane_calc_fill_level()
246 ((src_width + 32) * fmt->bpp); in _dpu_plane_calc_fill_level()
250 ((src_width + 32) * fmt->bpp); in _dpu_plane_calc_fill_level()
255 ((src_width + 32) * fmt->bpp); in _dpu_plane_calc_fill_level()
258 ((src_width + 32) * fmt->bpp); in _dpu_plane_calc_fill_level()
[all …]
Ddpu_hw_util.h120 u32 src_width[DPU_MAX_PLANES]; member
282 uint32_t src_width[DPU_MAX_PLANES]; member
Ddpu_hw_util.c297 src_y_rgb = (scaler3_cfg->src_width[0] & 0x1FFFF) | in dpu_hw_setup_scaler3()
300 src_uv = (scaler3_cfg->src_width[1] & 0x1FFFF) | in dpu_hw_setup_scaler3()
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/dcn20/
Ddcn20_dwb.c78 REG_UPDATE_2(CNV_SOURCE_SIZE, CNV_SOURCE_WIDTH, params->cnv_params.src_width, in dwb2_config_dwb_cnv()
104 if ((params->cnv_params.src_width != params->dest_width) || in dwb2_enable()
164 if ((params->cnv_params.src_width != params->dest_width) || in dwb2_update()
290 dwb_program_horz_scalar(dwbc20, params->cnv_params.src_width, in dwb2_set_scaler()
Ddcn20_dwb_scl.c720 uint32_t src_width, in dwb_program_horz_scalar() argument
743 src_width, dest_width); in dwb_program_horz_scalar()
/linux-6.1.9/drivers/gpu/drm/i915/display/
Dintel_overlay.c841 params->src_width); in intel_overlay_do_put_image()
843 tmp_width = params->src_width; in intel_overlay_do_put_image()
845 swidth = params->src_width; in intel_overlay_do_put_image()
856 swidth |= (params->src_width / uv_hscale) << 16; in intel_overlay_do_put_image()
860 params->src_width / uv_hscale); in intel_overlay_do_put_image()
862 params->src_width / uv_hscale); in intel_overlay_do_put_image()
1007 rec->src_width > IMAGE_MAX_WIDTH_LEGACY) in check_overlay_src()
1011 rec->src_width > IMAGE_MAX_WIDTH) in check_overlay_src()
1017 rec->src_width < N_HORIZ_Y_TAPS*4) in check_overlay_src()
1053 if (rec->src_width % uv_hscale) in check_overlay_src()
[all …]
/linux-6.1.9/include/uapi/linux/
Divtv.h58 __u32 src_width; member
/linux-6.1.9/drivers/clk/qcom/
Dclk-regmap-mux-div.h31 u32 src_width; member
Dclk-regmap-mux-div.c31 ((BIT(md->src_width) - 1) << md->src_shift); in mux_div_set_src_div()
74 s &= BIT(md->src_width) - 1; in mux_div_get_src_div()
Dapcs-sdx55.c78 a7cc->src_width = 3; in qcom_apcs_sdx55_clk_probe()
Dapcs-msm8916.c81 a53cc->src_width = 3; in qcom_apcs_msm8916_clk_probe()
/linux-6.1.9/include/linux/
Dsh_clk.h44 unsigned char src_width; /* configuration register */ member
185 .src_width = _src_width, \
/linux-6.1.9/drivers/sh/clk/
Dcpg.c204 if (!clk->src_width) { in sh_clk_init_parent()
210 val &= (1 << clk->src_width) - 1; in sh_clk_init_parent()
301 ~(((1 << clk->src_width) - 1) << clk->src_shift); in sh_clk_div6_set_parent()
/linux-6.1.9/drivers/media/platform/amphion/
Dvpu_codec.h17 u32 src_width; member
Dvenc.c241 venc->params.src_width = cur_fmt->width; in venc_s_fmt()
369 u32 src_width; in venc_valid_crop() local
375 src_width = venc->params.src_width; in venc_valid_crop()
380 if (rect->left > src_width - min_width || rect->top > src_height - min_height) in venc_valid_crop()
383 rect->width = min(rect->width, src_width - rect->left); in venc_valid_crop()
414 venc->params.crop.width = venc->params.src_width; in venc_s_selection()
1184 venc->params.src_width, in venc_get_debug_info()
/linux-6.1.9/drivers/dma/
Didma64.c237 u32 src_width, dst_width; in idma64_hw_desc_fill() local
244 src_width = __ffs(sar | hw->len | 4); in idma64_hw_desc_fill()
251 src_width = __ffs(config->src_addr_width); in idma64_hw_desc_fill()
263 IDMA64C_CTLL_SRC_WIDTH(src_width); in idma64_hw_desc_fill()
Ddma-axi-dmac.c130 unsigned int src_width; member
735 chan->address_align_mask = max(chan->dest_width, chan->src_width) - 1; in axi_dmac_adjust_chan_params()
783 chan->src_width = val / 8; in axi_dmac_parse_chan_dt()
848 chan->src_width = 1 << val; in axi_dmac_read_chan_config()
969 dma_dev->src_addr_widths = BIT(dmac->chan.src_width); in axi_dmac_probe()
Dat_hdmac.c299 u32 src_width = ATC_REG_TO_SRC_WIDTH(ctrla); in atc_calc_bytes_left() local
307 return current_len - (btsize << src_width); in atc_calc_bytes_left()
790 unsigned int src_width; in atc_prep_dma_memcpy() local
812 src_width = dst_width = atc_get_xfer_width(src, dest, len); in atc_prep_dma_memcpy()
814 ctrla = ATC_SRC_WIDTH(src_width) | in atc_prep_dma_memcpy()
817 for (offset = 0; offset < len; offset += xfer_count << src_width) { in atc_prep_dma_memcpy()
818 xfer_count = min_t(size_t, (len - offset) >> src_width, in atc_prep_dma_memcpy()
831 desc->len = xfer_count << src_width; in atc_prep_dma_memcpy()
Duniphier-xdmac.c134 u32 src_mode, src_width; in uniphier_xdmac_chan_start() local
156 src_width = FIELD_PREP(XDMAC_SADM_STW_MASK, __ffs(buswidth)); in uniphier_xdmac_chan_start()
179 src_mode |= src_width; in uniphier_xdmac_chan_start()
/linux-6.1.9/drivers/media/platform/nxp/
Dimx-pxp.c726 u32 src_width, src_height, src_stride, src_fourcc; in pxp_start() local
738 src_width = ctx->q_data[V4L2_M2M_SRC].width; in pxp_start()
807 decx = (src_width <= dst_width) ? 0 : ilog2(src_width / dst_width); in pxp_start()
842 xscale = (src_width >> decx) * 0x1000 / dst_width; in pxp_start()
859 xscale = (src_width - 2) * 0x1000 / (dst_width - 1); in pxp_start()
862 xscale = (src_width - 1) * 0x1000 / (dst_width - 1); in pxp_start()
/linux-6.1.9/drivers/gpu/drm/amd/display/dc/
Ddm_services_types.h128 uint32_t src_width; member
/linux-6.1.9/sound/core/oss/
Dpcm_plugin.h44 int src_width; /* sample width in bits */ member
/linux-6.1.9/include/media/tpg/
Dv4l2-tpg.h135 unsigned src_width, src_height; member
448 return (x * tpg->scaled_width) / tpg->src_width; in tpg_hscale()

12