/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H A D | power_budget.c | 118 entry->max_w = nvbios_rd32(bios, entry_offset + 0xa); in nvbios_power_budget_entry() 121 entry->max_w = nvbios_rd32(bios, entry_offset + 0x2); in nvbios_power_budget_entry() 122 entry->avg_w = entry->max_w; in nvbios_power_budget_entry()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
H 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()
|
/kernel/linux/linux-5.10/drivers/media/platform/mtk-mdp/ |
H A D | mtk_mdp_m2m.c | 180 u32 max_w, max_h, align_w, align_h; in mtk_mdp_try_fmt_mplane() local 204 max_w = variant->pix_max->target_rot_dis_w; in mtk_mdp_try_fmt_mplane() 226 align_w, align_h, max_w, max_h); in mtk_mdp_try_fmt_mplane() 234 mtk_mdp_bound_align_image(&pix_mp->width, min_w, max_w, align_w, in mtk_mdp_try_fmt_mplane() 285 u32 min_w, min_h, max_w, max_h; in mtk_mdp_try_crop() local 297 max_w = frame->width; in mtk_mdp_try_crop() 312 max_w = frame->height; in mtk_mdp_try_crop() 327 mtk_mdp_bound_align_image(&new_w, min_w, max_w, align_w, in mtk_mdp_try_crop() 340 if (r->left + new_w > max_w) in mtk_mdp_try_crop() 341 r->left = max_w in mtk_mdp_try_crop() [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/exynos-gsc/ |
H A D | gsc-core.c | 396 u32 max_w, max_h, mod_x, mod_y; in gsc_try_fmt_mplane() local 416 max_w = variant->pix_max->target_rot_dis_w; in gsc_try_fmt_mplane() 434 pr_debug("mod_x: %d, mod_y: %d, max_w: %d, max_h = %d", in gsc_try_fmt_mplane() 435 mod_x, mod_y, max_w, max_h); in gsc_try_fmt_mplane() 442 v4l_bound_align_image(&pix_mp->width, min_w, max_w, mod_x, in gsc_try_fmt_mplane() 524 u32 min_w, min_h, max_w, max_h; in gsc_try_selection() local 539 max_w = f->f_width; in gsc_try_selection() 562 max_w = f->f_height; in gsc_try_selection() 577 v4l_bound_align_image(&tmp_w, min_w, max_w, mod_x, in gsc_try_selection() 592 if (s->r.left + tmp_w > max_w) in gsc_try_selection() [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/samsung/exynos-gsc/ |
H 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() 432 pr_debug("mod_x: %d, mod_y: %d, max_w: %d, max_h = %d", 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() [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/mediatek/mdp/ |
H 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 in mtk_mdp_try_crop() [all...] |
/kernel/linux/linux-6.6/drivers/staging/sm750fb/ |
H A D | sm750_cursor.c | 99 offset = cursor->max_w * 2 / 8; in sm750_hw_cursor_setData() 149 offset = cursor->max_w * 2 / 8; in sm750_hw_cursor_setData2()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/ |
H A D | power_budget.h | 10 u32 max_w; member
|
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/include/nvkm/subdev/bios/ |
H A D | power_budget.h | 10 u32 max_w; member
|
/kernel/linux/linux-5.10/drivers/dma/ |
H A D | ste_dma40_ll.c | 195 u32 max_w = max(data_width1, data_width2); in d40_seg_size() local 197 u32 seg_max = ALIGN(STEDMA40_MAX_SEG_SIZE * min_w, max_w); in d40_seg_size() 200 seg_max -= max_w; in d40_seg_size() 206 return ALIGN(size / 2, max_w); in d40_seg_size()
|
/kernel/linux/linux-6.6/drivers/dma/ |
H 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()
|
/kernel/linux/linux-5.10/drivers/media/platform/coda/ |
H A D | coda-common.c | 122 #define CODA_CODEC(mode, src_fourcc, dst_fourcc, max_w, max_h) \ 123 { mode, src_fourcc, dst_fourcc, max_w, max_h } 339 int *max_w, int *max_h) in coda_get_max_dimensions() 347 w = codec->max_w; in coda_get_max_dimensions() 351 w = max(w, codecs[k].max_w); in coda_get_max_dimensions() 356 if (max_w) in coda_get_max_dimensions() 357 *max_w = w; in coda_get_max_dimensions() 590 unsigned int max_w, max_h; in coda_try_fmt() local 603 coda_get_max_dimensions(dev, codec, &max_w, &max_h); in coda_try_fmt() 604 v4l_bound_align_image(&f->fmt.pix.width, MIN_W, max_w, W_ALIG in coda_try_fmt() 337 coda_get_max_dimensions(struct coda_dev *dev, const struct coda_codec *codec, int *max_w, int *max_h) coda_get_max_dimensions() argument 1660 unsigned int max_w, max_h, usize, csize; set_default_params() local [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/chips-media/ |
H A D | coda-common.c | 122 #define CODA_CODEC(mode, src_fourcc, dst_fourcc, max_w, max_h) \ 123 { mode, src_fourcc, dst_fourcc, max_w, max_h } 340 int *max_w, int *max_h) in coda_get_max_dimensions() 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 604 coda_get_max_dimensions(dev, codec, &max_w, &max_h); in coda_try_fmt() 605 v4l_bound_align_image(&f->fmt.pix.width, MIN_W, max_w, W_ALIG in coda_try_fmt() 338 coda_get_max_dimensions(struct coda_dev *dev, const struct coda_codec *codec, int *max_w, int *max_h) coda_get_max_dimensions() argument 1654 unsigned int max_w, max_h, usize, csize; set_default_params() local [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/ti-vpe/ |
H A D | vpdma.h | 246 int max_w, int max_h, enum vpdma_channel chan, u32 flags); 250 int max_w, int max_h, int raw_vpdma_chan, u32 flags);
|
H A D | vpdma.c | 810 int max_w, int max_h, enum vpdma_channel chan, u32 flags) in vpdma_add_out_dtd() 813 max_w, max_h, chan_info[chan].num, flags); in vpdma_add_out_dtd() 820 int max_w, int max_h, int raw_vpdma_chan, u32 flags) in vpdma_rawchan_add_out_dtd() 857 dtd->max_width_height = dtd_max_width_height(max_w, max_h); in vpdma_rawchan_add_out_dtd() 807 vpdma_add_out_dtd(struct vpdma_desc_list *list, int width, int stride, const struct v4l2_rect *c_rect, const struct vpdma_data_format *fmt, dma_addr_t dma_addr, int max_w, int max_h, enum vpdma_channel chan, u32 flags) vpdma_add_out_dtd() argument 817 vpdma_rawchan_add_out_dtd(struct vpdma_desc_list *list, int width, int stride, const struct v4l2_rect *c_rect, const struct vpdma_data_format *fmt, dma_addr_t dma_addr, int max_w, int max_h, int raw_vpdma_chan, u32 flags) vpdma_rawchan_add_out_dtd() argument
|
/kernel/linux/linux-6.6/drivers/media/platform/ti/vpe/ |
H A D | vpdma.h | 246 int max_w, int max_h, enum vpdma_channel chan, u32 flags); 250 int max_w, int max_h, int raw_vpdma_chan, u32 flags);
|
H A D | vpdma.c | 810 int max_w, int max_h, enum vpdma_channel chan, u32 flags) in vpdma_add_out_dtd() 813 max_w, max_h, chan_info[chan].num, flags); in vpdma_add_out_dtd() 820 int max_w, int max_h, int raw_vpdma_chan, u32 flags) in vpdma_rawchan_add_out_dtd() 857 dtd->max_width_height = dtd_max_width_height(max_w, max_h); in vpdma_rawchan_add_out_dtd() 807 vpdma_add_out_dtd(struct vpdma_desc_list *list, int width, int stride, const struct v4l2_rect *c_rect, const struct vpdma_data_format *fmt, dma_addr_t dma_addr, int max_w, int max_h, enum vpdma_channel chan, u32 flags) vpdma_add_out_dtd() argument 817 vpdma_rawchan_add_out_dtd(struct vpdma_desc_list *list, int width, int stride, const struct v4l2_rect *c_rect, const struct vpdma_data_format *fmt, dma_addr_t dma_addr, int max_w, int max_h, int raw_vpdma_chan, u32 flags) vpdma_rawchan_add_out_dtd() argument
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
H A D | intel_fbc.c | 654 unsigned int effective_w, effective_h, max_w, max_h; in intel_fbc_hw_tracking_covers_screen() local 657 max_w = 5120; in intel_fbc_hw_tracking_covers_screen() 660 max_w = 4096; in intel_fbc_hw_tracking_covers_screen() 663 max_w = 4096; in intel_fbc_hw_tracking_covers_screen() 666 max_w = 2048; in intel_fbc_hw_tracking_covers_screen() 675 return effective_w <= max_w && effective_h <= max_h; in intel_fbc_hw_tracking_covers_screen()
|
/kernel/linux/linux-5.10/drivers/media/platform/exynos4-is/ |
H A D | fimc-capture.c | 571 u32 depth, min_w, max_w, min_h, align_h = 3; in fimc_capture_try_format() local 596 max_w = fimc_fmt_is_user_defined(ffmt->color) ? in fimc_capture_try_format() 599 v4l_bound_align_image(width, max_t(u32, *width, 32), max_w, 4, in fimc_capture_try_format() 614 max_w = rotation ? pl->out_rot_en_w : pl->out_rot_dis_w; in fimc_capture_try_format() 626 v4l_bound_align_image(width, min_w, max_w, in fimc_capture_try_format() 648 u32 max_w, max_h, min_w = 0, min_h = 0, min_sz; in fimc_capture_try_selection() local 684 max_w = min_t(u32, in fimc_capture_try_selection() 690 min_w = min_t(u32, max_w, sink->f_width / max_sc_h); in fimc_capture_try_selection() 697 v4l_bound_align_image(&r->width, min_w, max_w, ffs(min_sz) - 1, in fimc_capture_try_selection()
|
H A D | fimc-m2m.c | 270 u32 max_w, mod_x, mod_y; in fimc_try_fmt_mplane() local 286 max_w = variant->pix_limit->scaler_dis_w; in fimc_try_fmt_mplane() 289 max_w = variant->pix_limit->out_rot_dis_w; in fimc_try_fmt_mplane() 303 v4l_bound_align_image(&pix->width, 16, max_w, mod_x, in fimc_try_fmt_mplane()
|
/kernel/linux/linux-6.6/drivers/media/platform/samsung/exynos4-is/ |
H A D | fimc-capture.c | 571 u32 depth, min_w, max_w, min_h, align_h = 3; in fimc_capture_try_format() local 596 max_w = fimc_fmt_is_user_defined(ffmt->color) ? in fimc_capture_try_format() 599 v4l_bound_align_image(width, max_t(u32, *width, 32), max_w, 4, in fimc_capture_try_format() 614 max_w = rotation ? pl->out_rot_en_w : pl->out_rot_dis_w; in fimc_capture_try_format() 626 v4l_bound_align_image(width, min_w, max_w, in fimc_capture_try_format() 648 u32 max_w, max_h, min_w = 0, min_h = 0, min_sz; in fimc_capture_try_selection() local 684 max_w = min_t(u32, in fimc_capture_try_selection() 690 min_w = min_t(u32, max_w, sink->f_width / max_sc_h); in fimc_capture_try_selection() 697 v4l_bound_align_image(&r->width, min_w, max_w, ffs(min_sz) - 1, in fimc_capture_try_selection()
|
H A D | fimc-m2m.c | 270 u32 max_w, mod_x, mod_y; in fimc_try_fmt_mplane() local 286 max_w = variant->pix_limit->scaler_dis_w; in fimc_try_fmt_mplane() 289 max_w = variant->pix_limit->out_rot_dis_w; in fimc_try_fmt_mplane() 303 v4l_bound_align_image(&pix->width, 16, max_w, mod_x, in fimc_try_fmt_mplane()
|
/kernel/linux/linux-5.10/drivers/media/platform/vsp1/ |
H A D | vsp1_entity.h | 192 unsigned int max_w, unsigned int max_h);
|
/kernel/linux/linux-6.6/drivers/media/platform/renesas/vsp1/ |
H A D | vsp1_entity.h | 190 unsigned int max_w, unsigned int max_h);
|
/kernel/linux/linux-6.6/drivers/gpu/drm/ingenic/ |
H 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()
|