/kernel/linux/linux-5.10/drivers/gpu/drm/vc4/ |
H A D | vc4_validate.c | 163 uint32_t aligned_width, aligned_height, stride, size; in vc4_check_tex_size() local 182 aligned_width = round_up(width, utile_w); in vc4_check_tex_size() 186 aligned_width = round_up(width, utile_w * 8); in vc4_check_tex_size() 190 aligned_width = round_up(width, utile_w); in vc4_check_tex_size() 198 stride = aligned_width * cpp; in vc4_check_tex_size() 205 aligned_width, aligned_height, in vc4_check_tex_size() 689 uint32_t aligned_width, aligned_height; in reloc_tex() local 700 aligned_width = round_up(level_width, utile_w * 8); in reloc_tex() 704 aligned_width = round_up(level_width, utile_w); in reloc_tex() 708 aligned_width in reloc_tex() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/vc4/ |
H A D | vc4_validate.c | 168 uint32_t aligned_width, aligned_height, stride, size; in vc4_check_tex_size() local 190 aligned_width = round_up(width, utile_w); in vc4_check_tex_size() 194 aligned_width = round_up(width, utile_w * 8); in vc4_check_tex_size() 198 aligned_width = round_up(width, utile_w); in vc4_check_tex_size() 206 stride = aligned_width * cpp; in vc4_check_tex_size() 213 aligned_width, aligned_height, in vc4_check_tex_size() 701 uint32_t aligned_width, aligned_height; in reloc_tex() local 712 aligned_width = round_up(level_width, utile_w * 8); in reloc_tex() 716 aligned_width = round_up(level_width, utile_w); in reloc_tex() 720 aligned_width in reloc_tex() [all...] |
/kernel/linux/linux-5.10/drivers/media/v4l2-core/ |
H A D | v4l2-common.c | 377 unsigned int aligned_width; in v4l2_fill_pixfmt_mp() local 380 aligned_width = ALIGN(width, v4l2_format_block_width(info, i)); in v4l2_fill_pixfmt_mp() 384 DIV_ROUND_UP(aligned_width, hdiv) * in v4l2_fill_pixfmt_mp() 391 unsigned int aligned_width; in v4l2_fill_pixfmt_mp() local 394 aligned_width = ALIGN(width, v4l2_format_block_width(info, i)); in v4l2_fill_pixfmt_mp() 399 info->bpp[i] * DIV_ROUND_UP(aligned_width, hdiv); in v4l2_fill_pixfmt_mp() 431 unsigned int aligned_width; in v4l2_fill_pixfmt() local 434 aligned_width = ALIGN(width, v4l2_format_block_width(info, i)); in v4l2_fill_pixfmt() 438 DIV_ROUND_UP(aligned_width, hdiv) * in v4l2_fill_pixfmt()
|
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_2/ |
H A D | ia_css_sdis2.host.c | 41 unsigned int aligned_width = from->grid.aligned_width * in ia_css_sdis2_horicoef_vmem_encode() local 44 int padding = aligned_width - width; in ia_css_sdis2_horicoef_vmem_encode() 46 unsigned int total_bytes = aligned_width * IA_CSS_DVS2_NUM_COEF_TYPES * in ia_css_sdis2_horicoef_vmem_encode() 234 size_bytes = host_stats->grid.aligned_width * sizeof(*htemp_ptr); in ia_css_translate_dvs2_statistics() 266 dst_offset += host_stats->grid.aligned_width; in ia_css_translate_dvs2_statistics() 293 size = CEIL_MUL(sizeof(int) * grid->aligned_width, HIVE_ISP_DDR_WORD_BYTES) in ia_css_isp_dvs2_statistics_allocate()
|
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_2/ |
H A D | ia_css_sdis2.host.c | 41 unsigned int aligned_width = from->grid.aligned_width * in ia_css_sdis2_horicoef_vmem_encode() local 44 int padding = aligned_width - width; in ia_css_sdis2_horicoef_vmem_encode() 46 unsigned int total_bytes = aligned_width * IA_CSS_DVS2_NUM_COEF_TYPES * in ia_css_sdis2_horicoef_vmem_encode() 234 size_bytes = host_stats->grid.aligned_width * sizeof(*htemp_ptr); in ia_css_translate_dvs2_statistics() 266 dst_offset += host_stats->grid.aligned_width; in ia_css_translate_dvs2_statistics() 293 size = CEIL_MUL(sizeof(int) * grid->aligned_width, HIVE_ISP_DDR_WORD_BYTES) in ia_css_isp_dvs2_statistics_allocate()
|
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/isp/kernels/sdis/common/ |
H A D | ia_css_sdis_common_types.h | 59 u32 aligned_width; /** Stride of each grid line. member 87 u32 aligned_width; /** Stride of each grid line. member
|
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/isp/kernels/sdis/common/ |
H A D | ia_css_sdis_common_types.h | 59 u32 aligned_width; /** Stride of each grid line. member 87 u32 aligned_width; /** Stride of each grid line. member
|
/kernel/linux/linux-6.6/drivers/media/platform/qcom/venus/ |
H A D | hfi_plat_bufs_v6.c | 289 u32 aligned_width = ALIGN(width, 16); in h264d_scratch_size() local 294 size = size_h264d_hw_bin_buffer(aligned_width, aligned_height); in h264d_scratch_size() 319 u32 aligned_width = ALIGN(width, 16); in h265d_scratch_size() local 324 size = size_h265d_hw_bin_buffer(aligned_width, aligned_height); in h265d_scratch_size() 331 u32 aligned_width = ALIGN(width, 16); in vpxd_scratch_size() local 333 u32 size_yuv = aligned_width * aligned_height * 3 / 2; in vpxd_scratch_size() 363 u32 aligned_width, aligned_height; in calculate_enc_output_frame_size() local 374 aligned_width = ALIGN(width, 32); in calculate_enc_output_frame_size() 377 ALIGN(aligned_width, 16)) / 256; in calculate_enc_output_frame_size() 407 u32 aligned_width, aligned_heigh in calculate_enc_scratch_size() local 950 u32 aligned_width, aligned_height, chroma_height, ref_buf_height; enc_scratch2_size() local [all...] |
H A D | helpers.h | 72 int venus_helper_set_stride(struct venus_inst *inst, unsigned int aligned_width,
|
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/ |
H A D | ia_css_sdis.host.c | 45 unsigned int aligned_width = from->grid.aligned_width * in ia_css_sdis_horicoef_vmem_encode() local 48 int padding = aligned_width - width; in ia_css_sdis_horicoef_vmem_encode() 50 unsigned int total_bytes = aligned_width * IA_CSS_DVS_NUM_COEF_TYPES * sizeof( in ia_css_sdis_horicoef_vmem_encode() 287 ver_num_isp = host_stats->grid.aligned_width; in ia_css_translate_dvs_statistics() 330 grid->aligned_width, in ia_css_isp_dvs_statistics_allocate()
|
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/ |
H A D | ia_css_sdis.host.c | 45 unsigned int aligned_width = from->grid.aligned_width * in ia_css_sdis_horicoef_vmem_encode() local 48 int padding = aligned_width - width; in ia_css_sdis_horicoef_vmem_encode() 50 unsigned int total_bytes = aligned_width * IA_CSS_DVS_NUM_COEF_TYPES * sizeof( in ia_css_sdis_horicoef_vmem_encode() 287 ver_num_isp = host_stats->grid.aligned_width; in ia_css_translate_dvs_statistics() 330 grid->aligned_width, in ia_css_isp_dvs_statistics_allocate()
|
/kernel/linux/linux-6.6/drivers/media/v4l2-core/ |
H A D | v4l2-common.c | 394 unsigned int aligned_width; in v4l2_fill_pixfmt_mp() local 397 aligned_width = ALIGN(width, v4l2_format_block_width(info, i)); in v4l2_fill_pixfmt_mp() 401 DIV_ROUND_UP(aligned_width, hdiv) * in v4l2_fill_pixfmt_mp() 408 unsigned int aligned_width; in v4l2_fill_pixfmt_mp() local 411 aligned_width = ALIGN(width, v4l2_format_block_width(info, i)); in v4l2_fill_pixfmt_mp() 416 info->bpp[i] * DIV_ROUND_UP(aligned_width, hdiv) / info->bpp_div[i]; in v4l2_fill_pixfmt_mp() 448 unsigned int aligned_width; in v4l2_fill_pixfmt() local 451 aligned_width = ALIGN(width, v4l2_format_block_width(info, i)); in v4l2_fill_pixfmt() 455 DIV_ROUND_UP(aligned_width, hdiv) * in v4l2_fill_pixfmt()
|
/kernel/linux/linux-5.10/drivers/media/platform/coda/ |
H A D | coda-jpeg.c | 1076 u16 aligned_width, aligned_height; in coda9_jpeg_prepare_encode() local 1108 aligned_width = round_up(q_data_src->width, width_align[chroma_format]); in coda9_jpeg_prepare_encode() 1111 if (aligned_width != q_data_src->bytesperline) { in coda9_jpeg_prepare_encode() 1113 aligned_width, q_data_src->bytesperline); in coda9_jpeg_prepare_encode() 1159 aligned_width = aligned_height; in coda9_jpeg_prepare_encode() 1167 coda_write(dev, aligned_width << 16 | aligned_height, in coda9_jpeg_prepare_encode() 1188 coda_write(dev, aligned_width << 16 | aligned_height, in coda9_jpeg_prepare_encode() 1330 int aligned_width, aligned_height; in coda9_jpeg_prepare_decode() local 1369 aligned_width = round_up(q_data_src->width, width_align[chroma_format]); in coda9_jpeg_prepare_decode() 1371 if (aligned_width ! in coda9_jpeg_prepare_decode() [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/chips-media/ |
H A D | coda-jpeg.c | 1076 u16 aligned_width, aligned_height; in coda9_jpeg_prepare_encode() local 1108 aligned_width = round_up(q_data_src->width, width_align[chroma_format]); in coda9_jpeg_prepare_encode() 1111 if (aligned_width != q_data_src->bytesperline) { in coda9_jpeg_prepare_encode() 1113 aligned_width, q_data_src->bytesperline); in coda9_jpeg_prepare_encode() 1159 aligned_width = aligned_height; in coda9_jpeg_prepare_encode() 1167 coda_write(dev, aligned_width << 16 | aligned_height, in coda9_jpeg_prepare_encode() 1188 coda_write(dev, aligned_width << 16 | aligned_height, in coda9_jpeg_prepare_encode() 1330 int aligned_width, aligned_height; in coda9_jpeg_prepare_decode() local 1367 aligned_width = round_up(q_data_src->width, width_align[chroma_format]); in coda9_jpeg_prepare_decode() 1369 if (aligned_width ! in coda9_jpeg_prepare_decode() [all...] |
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/isp/kernels/s3a/s3a_1.0/ |
H A D | ia_css_s3a_types.h | 84 u32 aligned_width; /** Horizontal stride (for alloc).
|
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/isp/kernels/s3a/s3a_1.0/ |
H A D | ia_css_s3a_types.h | 84 u32 aligned_width; /** Horizontal stride (for alloc).
|
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/ |
H A D | sh_css_params.c | 1099 unsigned int i, j, aligned_width; in ia_css_params_alloc_convert_sctbl() local 1113 aligned_width = binary->sctbl_aligned_width_per_color; in ia_css_params_alloc_convert_sctbl() 1114 sctbl_size = shading_table->height * IA_CSS_SC_NUM_COLORS * aligned_width * in ia_css_params_alloc_convert_sctbl() 1132 ptr += aligned_width; in ia_css_params_alloc_convert_sctbl() 2252 grid->aligned_width * in ia_css_isp_3a_statistics_allocate() 3054 unsigned int aligned_width) in convert_allocate_morph_plane() 3066 if (width > aligned_width) { in convert_allocate_morph_plane() 3068 w = aligned_width; in convert_allocate_morph_plane() 3070 padding = aligned_width - width; in convert_allocate_morph_plane() 3103 unsigned int aligned_width) { in store_morph_plane() 3050 convert_allocate_morph_plane( unsigned short *data, unsigned int width, unsigned int height, unsigned int aligned_width) convert_allocate_morph_plane() argument 3098 store_morph_plane( unsigned short *data, unsigned int width, unsigned int height, ia_css_ptr dest, unsigned int aligned_width) store_morph_plane() argument [all...] |
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/ |
H A D | sh_css_params.c | 1083 unsigned int i, j, aligned_width; in ia_css_params_alloc_convert_sctbl() local 1097 aligned_width = binary->sctbl_aligned_width_per_color; in ia_css_params_alloc_convert_sctbl() 1098 sctbl_size = shading_table->height * IA_CSS_SC_NUM_COLORS * aligned_width * in ia_css_params_alloc_convert_sctbl() 1116 ptr += aligned_width; in ia_css_params_alloc_convert_sctbl() 2154 grid->aligned_width * in ia_css_isp_3a_statistics_allocate() 2891 unsigned int aligned_width) in convert_allocate_morph_plane() 2903 if (width > aligned_width) { in convert_allocate_morph_plane() 2905 w = aligned_width; in convert_allocate_morph_plane() 2907 padding = aligned_width - width; in convert_allocate_morph_plane() 2940 unsigned int aligned_width) in store_morph_plane() 2887 convert_allocate_morph_plane( unsigned short *data, unsigned int width, unsigned int height, unsigned int aligned_width) convert_allocate_morph_plane() argument 2935 store_morph_plane( unsigned short *data, unsigned int width, unsigned int height, ia_css_ptr dest, unsigned int aligned_width) store_morph_plane() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/sti/delta/ |
H A D | delta-debug.c | 43 f->aligned_width, f->aligned_height, in delta_frameinfo_str()
|
H A D | delta-v4l2.c | 251 frameinfo->aligned_width = ALIGN(frameinfo->width, in set_default_params() 255 frameinfo->size = frame_size(frameinfo->aligned_width, in set_default_params() 469 pix->width = frameinfo->aligned_width; in delta_g_fmt_frame() 472 pix->bytesperline = frame_stride(frameinfo->aligned_width, in delta_g_fmt_frame() 683 frameinfo.aligned_width = pix->width; in delta_s_fmt_frame() 708 pix->width = frameinfo.aligned_width; in delta_s_fmt_frame() 753 s->r.width = frameinfo->aligned_width; in delta_g_selection() 1189 frameinfo->aligned_width = ALIGN(streaminfo->width, in delta_get_frameinfo_default() 1193 frameinfo->size = frame_size(frameinfo->aligned_width, in delta_get_frameinfo_default()
|
/kernel/linux/linux-6.6/drivers/media/platform/st/sti/delta/ |
H A D | delta-debug.c | 43 f->aligned_width, f->aligned_height, in delta_frameinfo_str()
|
H A D | delta-v4l2.c | 251 frameinfo->aligned_width = ALIGN(frameinfo->width, in set_default_params() 255 frameinfo->size = frame_size(frameinfo->aligned_width, in set_default_params() 469 pix->width = frameinfo->aligned_width; in delta_g_fmt_frame() 472 pix->bytesperline = frame_stride(frameinfo->aligned_width, in delta_g_fmt_frame() 683 frameinfo.aligned_width = pix->width; in delta_s_fmt_frame() 708 pix->width = frameinfo.aligned_width; in delta_s_fmt_frame() 753 s->r.width = frameinfo->aligned_width; in delta_g_selection() 1186 frameinfo->aligned_width = ALIGN(streaminfo->width, in delta_get_frameinfo_default() 1190 frameinfo->size = frame_size(frameinfo->aligned_width, in delta_get_frameinfo_default()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
H A D | drm_gem_framebuffer_helper.c | 374 afbc_fb->aligned_width = ALIGN(mode_cmd->width, w_alignment); in drm_gem_afbc_min_size() 384 n_blocks = (afbc_fb->aligned_width * afbc_fb->aligned_height) in drm_gem_afbc_min_size()
|
/kernel/linux/linux-5.10/include/drm/ |
H A D | drm_framebuffer.h | 319 * @aligned_width: aligned frame buffer width 321 u32 aligned_width; member
|
/kernel/linux/linux-6.6/include/drm/ |
H A D | drm_framebuffer.h | 319 * @aligned_width: aligned frame buffer width 321 u32 aligned_width; member
|