Home
last modified time | relevance | path

Searched refs:max_w (Results 1 – 24 of 24) sorted by relevance

/linux/drivers/gpu/drm/nouveau/nvkm/subdev/bios/
H A Dpower_budget.c117 entry->max_w = nvbios_rd32(bios, entry_offset + 0xa); in nvbios_power_budget_entry()
120 entry->max_w = nvbios_rd32(bios, entry_offset + 0x2); in nvbios_power_budget_entry()
121 entry->avg_w = entry->max_w; in nvbios_power_budget_entry()
/linux/drivers/gpu/drm/i915/display/
H A Dskl_scaler.c98 int *max_w, int *max_h) in skl_scaler_max_src_size() argument
101 *max_w = 4096; in skl_scaler_max_src_size()
104 *max_w = 5120; in skl_scaler_max_src_size()
107 *max_w = 5120; in skl_scaler_max_src_size()
110 *max_w = 4096; in skl_scaler_max_src_size()
122 int *max_w, int *max_h) in skl_scaler_max_dst_size() argument
127 *max_w = 8192; in skl_scaler_max_dst_size()
130 *max_w = 5120; in skl_scaler_max_dst_size()
133 *max_w = 4096; in skl_scaler_max_dst_size()
144 int max_h, max_w; in skl_scaler_mode_valid() local
[all …]
H A Dintel_fbc.c1307 unsigned int effective_w, effective_h, max_w, max_h; in intel_fbc_surface_size_ok() local
1309 intel_fbc_max_surface_size(display, &max_w, &max_h); in intel_fbc_surface_size_ok()
1316 return effective_w <= max_w && effective_h <= max_h; in intel_fbc_surface_size_ok()
1340 unsigned int w, h, max_w, max_h; in intel_fbc_plane_size_valid() local
1342 intel_fbc_max_plane_size(display, &max_w, &max_h); in intel_fbc_plane_size_valid()
1347 return w <= max_w && h <= max_h; in intel_fbc_plane_size_valid()
/linux/drivers/media/platform/samsung/exynos-gsc/
H A Dgsc-core.c394 u32 max_w, max_h, mod_x, mod_y; in gsc_try_fmt_mplane() local
414 max_w = variant->pix_max->target_rot_dis_w; in gsc_try_fmt_mplane()
433 mod_x, mod_y, max_w, max_h); in gsc_try_fmt_mplane()
440 v4l_bound_align_image(&pix_mp->width, min_w, max_w, mod_x, in gsc_try_fmt_mplane()
522 u32 min_w, min_h, max_w, max_h; in gsc_try_selection() local
537 max_w = f->f_width; in gsc_try_selection()
560 max_w = f->f_height; in gsc_try_selection()
575 v4l_bound_align_image(&tmp_w, min_w, max_w, mod_x, in gsc_try_selection()
590 if (s->r.left + tmp_w > max_w) in gsc_try_selection()
591 s->r.left = max_w - tmp_w; in gsc_try_selection()
[all …]
/linux/drivers/media/platform/mediatek/mdp/
H A Dmtk_mdp_m2m.c180 u32 max_w, max_h, align_w, align_h; in mtk_mdp_try_fmt_mplane() local
203 max_w = variant->pix_max->target_rot_dis_w; in mtk_mdp_try_fmt_mplane()
225 align_w, align_h, max_w, max_h); in mtk_mdp_try_fmt_mplane()
233 mtk_mdp_bound_align_image(&pix_mp->width, min_w, max_w, align_w, in mtk_mdp_try_fmt_mplane()
282 u32 min_w, min_h, max_w, max_h; in mtk_mdp_try_crop() local
294 max_w = frame->width; in mtk_mdp_try_crop()
309 max_w = frame->height; in mtk_mdp_try_crop()
324 mtk_mdp_bound_align_image(&new_w, min_w, max_w, align_w, in mtk_mdp_try_crop()
337 if (r->left + new_w > max_w) in mtk_mdp_try_crop()
338 r->left = max_w - new_w; in mtk_mdp_try_crop()
[all …]
/linux/drivers/dma/
H A Dste_dma40_ll.c196 u32 max_w = max(data_width1, data_width2); in d40_seg_size() local
198 u32 seg_max = ALIGN(STEDMA40_MAX_SEG_SIZE * min_w, max_w); in d40_seg_size()
201 seg_max -= max_w; in d40_seg_size()
207 return ALIGN(size / 2, max_w); in d40_seg_size()
H A Dste_dma40.c1023 u32 max_w = max(data_width1, data_width2); in d40_size_2_dmalen() local
1025 u32 seg_max = ALIGN(STEDMA40_MAX_SEG_SIZE * min_w, max_w); in d40_size_2_dmalen()
1028 seg_max -= max_w; in d40_size_2_dmalen()
1030 if (!IS_ALIGNED(size, max_w)) in d40_size_2_dmalen()
/linux/drivers/media/platform/chips-media/coda/
H A Dcoda-common.c127 #define CODA_CODEC(mode, src_fourcc, dst_fourcc, max_w, max_h) \ argument
128 { mode, src_fourcc, dst_fourcc, max_w, max_h }
345 int *max_w, int *max_h) in coda_get_max_dimensions() argument
353 w = codec->max_w; in coda_get_max_dimensions()
357 w = max(w, codecs[k].max_w); in coda_get_max_dimensions()
362 if (max_w) in coda_get_max_dimensions()
363 *max_w = w; in coda_get_max_dimensions()
596 unsigned int max_w, max_h; in coda_try_fmt() local
609 coda_get_max_dimensions(dev, codec, &max_w, &max_h); in coda_try_fmt()
610 v4l_bound_align_image(&f->fmt.pix.width, MIN_W, max_w, W_ALIGN, in coda_try_fmt()
[all …]
H A Dcoda.h110 u32 max_w; member
H A Dcoda-jpeg.c295 header.frame.width > ctx->codec->max_w) { in coda_jpeg_decode_header()
/linux/drivers/staging/sm750fb/
H A Dsm750_cursor.c99 offset = cursor->max_w * 2 / 8; in sm750_hw_cursor_set_data()
149 offset = cursor->max_w * 2 / 8; in sm750_hw_cursor_set_data2()
H A Dsm750.h125 int max_w; member
H A Dsm750.c115 if (fbcursor->image.width > cursor->max_w || in lynxfb_ops_cursor()
772 crtc->cursor.max_w = 64; in lynxfb_set_fbinfo()
773 crtc->cursor.size = crtc->cursor.max_h * crtc->cursor.max_w * 2 / 8; in lynxfb_set_fbinfo()
/linux/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/
H A Dpower_budget.h10 u32 max_w; member
/linux/drivers/media/platform/samsung/exynos4-is/
H A Dfimc-m2m.c268 u32 max_w, mod_x, mod_y; in fimc_try_fmt_mplane() local
284 max_w = variant->pix_limit->scaler_dis_w; in fimc_try_fmt_mplane()
287 max_w = variant->pix_limit->out_rot_dis_w; in fimc_try_fmt_mplane()
301 v4l_bound_align_image(&pix->width, 16, max_w, mod_x, in fimc_try_fmt_mplane()
H A Dfimc-capture.c569 u32 depth, min_w, max_w, min_h, align_h = 3; in fimc_capture_try_format() local
594 max_w = fimc_fmt_is_user_defined(ffmt->color) ? in fimc_capture_try_format()
597 v4l_bound_align_image(width, max_t(u32, *width, 32), max_w, 4, in fimc_capture_try_format()
612 max_w = rotation ? pl->out_rot_en_w : pl->out_rot_dis_w; in fimc_capture_try_format()
624 v4l_bound_align_image(width, min_w, max_w, in fimc_capture_try_format()
646 u32 max_w, max_h, min_w = 0, min_h = 0, min_sz; in fimc_capture_try_selection() local
682 max_w = min_t(u32, in fimc_capture_try_selection()
688 min_w = min_t(u32, max_w, sink->f_width / max_sc_h); in fimc_capture_try_selection()
695 v4l_bound_align_image(&r->width, min_w, max_w, ffs(min_sz) - 1, in fimc_capture_try_selection()
/linux/drivers/gpu/drm/ingenic/
H A Dingenic-ipu.c574 unsigned int num_w, denom_w, num_h, denom_h, xres, yres, max_w, max_h; in ingenic_ipu_plane_atomic_check() local
628 max_w = crtc_state->mode.hdisplay * 102 / 100; in ingenic_ipu_plane_atomic_check()
631 for (denom_w = xres, num_w = new_plane_state->crtc_w; num_w <= max_w; num_w++) in ingenic_ipu_plane_atomic_check()
634 if (num_w > max_w) in ingenic_ipu_plane_atomic_check()
/linux/drivers/media/platform/renesas/vsp1/
H A Dvsp1_entity.h195 unsigned int max_w, unsigned int max_h);
/linux/drivers/media/i2c/
H A Drj54n1cb0c.c983 int output_w, output_h, max_w, max_h, in rj54n1_set_fmt() local
1094 max_w = mf->width * (16 * 1024 - 1) / 1024; in rj54n1_set_fmt()
1095 if (input_w > max_w) in rj54n1_set_fmt()
1096 input_w = max_w; in rj54n1_set_fmt()
/linux/drivers/media/common/v4l2-tpg/
H A Dv4l2-tpg-core.c112 int tpg_alloc(struct tpg_data *tpg, unsigned max_w) in tpg_alloc() argument
118 tpg->max_line_width = max_w; in tpg_alloc()
124 vzalloc(array3_size(max_w, 2, pixelsz)); in tpg_alloc()
132 vzalloc(array3_size(max_w, 2, pixelsz)); in tpg_alloc()
143 vzalloc(array_size(pixelsz, max_w)); in tpg_alloc()
149 vzalloc(array_size(pixelsz, max_w)); in tpg_alloc()
155 vzalloc(array3_size(max_w, 2, pixelsz)); in tpg_alloc()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/
H A Dbase.c234 iccsense->power_w_crit = entry.max_w; in nvkm_iccsense_oneinit()
/linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/
H A Dvdec_av1_req_lat_if.c941 u32 max_sb_w, max_sb_h, max_w, max_h, w, h; in vdec_av1_slice_alloc_working_buffer() local
954 max_w = VCODEC_DEC_4K_CODED_WIDTH; in vdec_av1_slice_alloc_working_buffer()
959 max_w = MTK_VDEC_MAX_W; in vdec_av1_slice_alloc_working_buffer()
969 max_sb_w = DIV_ROUND_UP(max_w, 128); in vdec_av1_slice_alloc_working_buffer()
H A Dvdec_vp9_req_lat_if.c549 unsigned int max_w; in vdec_vp9_slice_alloc_working_buffer() local
566 max_w = VCODEC_DEC_4K_CODED_WIDTH; in vdec_vp9_slice_alloc_working_buffer()
571 max_w = MTK_VDEC_MAX_W; in vdec_vp9_slice_alloc_working_buffer()
581 max_sb_w = DIV_ROUND_UP(max_w, 64); in vdec_vp9_slice_alloc_working_buffer()
/linux/include/media/tpg/
H A Dv4l2-tpg.h237 int tpg_alloc(struct tpg_data *tpg, unsigned max_w);