Lines Matching full:stride
546 /* Stride that is accepted by MDP HW */
551 u32 stride; in mdp_fmt_get_stride() local
553 stride = (bytesperline * MDP_COLOR_BITS_PER_PIXEL(c)) in mdp_fmt_get_stride()
556 return stride; in mdp_fmt_get_stride()
559 stride = stride / 2; in mdp_fmt_get_stride()
560 return stride; in mdp_fmt_get_stride()
565 /* Stride that is accepted by MDP HW of format with contiguous planes */
570 u32 stride = pix_stride; in mdp_fmt_get_stride_contig() local
573 return stride; in mdp_fmt_get_stride_contig()
575 stride = stride >> MDP_COLOR_GET_H_SUBSAMPLE(c); in mdp_fmt_get_stride_contig()
577 stride = stride * 2; in mdp_fmt_get_stride_contig()
578 return stride; in mdp_fmt_get_stride_contig()
585 u32 stride, u32 height, unsigned int plane) in mdp_fmt_get_plane_size() argument
590 bytesperline = (stride * fmt->row_depth[0]) in mdp_fmt_get_plane_size()
612 u32 stride = mdp_fmt_get_stride(frame->mdp_fmt, in mdp_prepare_buffer() local
615 b->format.plane_fmt[i].stride = stride; in mdp_prepare_buffer()
617 mdp_fmt_get_plane_size(frame->mdp_fmt, stride, in mdp_prepare_buffer()
622 u32 stride = mdp_fmt_get_stride_contig(frame->mdp_fmt, in mdp_prepare_buffer() local
623 b->format.plane_fmt[0].stride, i); in mdp_prepare_buffer()
625 b->format.plane_fmt[i].stride = stride; in mdp_prepare_buffer()
627 mdp_fmt_get_plane_size(frame->mdp_fmt, stride, in mdp_prepare_buffer()