| /drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
| A D | power_budget.c | 117 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()
|
| /drivers/gpu/drm/i915/display/ |
| A D | skl_scaler.c | 95 int *max_w, int *max_h) in skl_scaler_max_src_size() argument 100 *max_w = 4096; in skl_scaler_max_src_size() 103 *max_w = 5120; in skl_scaler_max_src_size() 106 *max_w = 5120; in skl_scaler_max_src_size() 109 *max_w = 4096; in skl_scaler_max_src_size() 121 int *max_w, int *max_h) in skl_scaler_max_dst_size() argument 126 *max_w = 8192; in skl_scaler_max_dst_size() 129 *max_w = 5120; in skl_scaler_max_dst_size() 132 *max_w = 4096; in skl_scaler_max_dst_size()
|
| A D | intel_fbc.c | 1166 unsigned int effective_w, effective_h, max_w, max_h; in intel_fbc_surface_size_ok() local 1168 intel_fbc_max_surface_size(display, &max_w, &max_h); in intel_fbc_surface_size_ok() 1175 return effective_w <= max_w && effective_h <= max_h; in intel_fbc_surface_size_ok() 1199 unsigned int w, h, max_w, max_h; in intel_fbc_plane_size_valid() local 1201 intel_fbc_max_plane_size(display, &max_w, &max_h); in intel_fbc_plane_size_valid() 1206 return w <= max_w && h <= max_h; in intel_fbc_plane_size_valid()
|
| /drivers/media/platform/samsung/exynos-gsc/ |
| A D | gsc-core.c | 394 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 …]
|
| /drivers/media/platform/mediatek/mdp/ |
| A D | mtk_mdp_m2m.c | 180 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 …]
|
| /drivers/media/platform/chips-media/coda/ |
| A D | coda-common.c | 340 int *max_w, int *max_h) in coda_get_max_dimensions() argument 348 w = codec->max_w; in coda_get_max_dimensions() 352 w = max(w, codecs[k].max_w); in coda_get_max_dimensions() 357 if (max_w) in coda_get_max_dimensions() 358 *max_w = w; in coda_get_max_dimensions() 591 unsigned int max_w, max_h; in coda_try_fmt() local 1654 unsigned int max_w, max_h, usize, csize; in set_default_params() local 1658 max_w = min(ctx->codec->max_w, 1920U); in set_default_params() 1660 usize = max_w * max_h * 3 / 2; in set_default_params() 1681 ctx->q_data[V4L2_M2M_SRC].width = max_w; in set_default_params() [all …]
|
| A D | coda.h | 110 u32 max_w; member
|
| A D | coda-jpeg.c | 295 header.frame.width > ctx->codec->max_w) { in coda_jpeg_decode_header()
|
| /drivers/dma/ |
| A D | ste_dma40_ll.c | 196 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()
|
| A D | ste_dma40.c | 1023 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()
|
| /drivers/staging/sm750fb/ |
| A D | sm750_cursor.c | 99 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()
|
| A D | sm750.h | 125 int max_w; member
|
| A D | sm750.c | 115 if (fbcursor->image.width > cursor->max_w || in lynxfb_ops_cursor() 767 crtc->cursor.max_w = 64; in lynxfb_set_fbinfo() 768 crtc->cursor.size = crtc->cursor.max_h * crtc->cursor.max_w * 2 / 8; in lynxfb_set_fbinfo()
|
| /drivers/media/platform/ti/vpe/ |
| A D | vpdma.h | 243 int max_w, int max_h, enum vpdma_channel chan, u32 flags); 247 int max_w, int max_h, int raw_vpdma_chan, u32 flags);
|
| A D | vpdma.c | 778 int max_w, int max_h, enum vpdma_channel chan, u32 flags) in vpdma_add_out_dtd() argument 781 max_w, max_h, chan_info[chan].num, flags); in vpdma_add_out_dtd() 788 int max_w, int max_h, int raw_vpdma_chan, u32 flags) in vpdma_rawchan_add_out_dtd() argument 825 dtd->max_width_height = dtd_max_width_height(max_w, max_h); in vpdma_rawchan_add_out_dtd()
|
| /drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/ |
| A D | power_budget.h | 10 u32 max_w; member
|
| /drivers/media/platform/samsung/exynos4-is/ |
| A D | fimc-capture.c | 569 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()
|
| A D | fimc-m2m.c | 268 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()
|
| /drivers/gpu/drm/ingenic/ |
| A D | ingenic-ipu.c | 574 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()
|
| /drivers/media/i2c/ |
| A D | rj54n1cb0c.c | 983 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()
|
| /drivers/media/platform/renesas/vsp1/ |
| A D | vsp1_entity.h | 195 unsigned int max_w, unsigned int max_h);
|
| /drivers/media/common/v4l2-tpg/ |
| A D | v4l2-tpg-core.c | 112 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()
|
| /drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/ |
| A D | base.c | 234 iccsense->power_w_crit = entry.max_w; in nvkm_iccsense_oneinit()
|
| /drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
| A D | vdec_av1_req_lat_if.c | 941 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()
|
| A D | vdec_vp9_req_lat_if.c | 549 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()
|