Lines Matching full:stride
108 return simplefb_get_validated_int(dev, "stride", pd->stride); in simplefb_get_stride_pd()
167 u32 stride; in simplefb_get_stride_of() local
168 int ret = simplefb_read_u32_of(dev, of_node, "stride", &stride); in simplefb_get_stride_of()
172 return simplefb_get_validated_int(dev, "stride", stride); in simplefb_get_stride_of()
636 int width, height, stride; in simpledrm_device_create() local
672 stride = simplefb_get_stride_pd(dev, pd); in simpledrm_device_create()
673 if (stride < 0) in simpledrm_device_create()
674 return ERR_PTR(stride); in simpledrm_device_create()
685 stride = simplefb_get_stride_of(dev, of_node); in simpledrm_device_create()
686 if (stride < 0) in simpledrm_device_create()
687 return ERR_PTR(stride); in simpledrm_device_create()
695 if (!stride) { in simpledrm_device_create()
696 stride = drm_format_info_min_pitch(format, 0, width); in simpledrm_device_create()
697 if (drm_WARN_ON(dev, !stride)) in simpledrm_device_create()
703 sdev->pitch = stride; in simpledrm_device_create()
706 drm_dbg(dev, "framebuffer format=%p4cc, size=%dx%d, stride=%d byte\n", in simpledrm_device_create()
707 &format->format, width, height, stride); in simpledrm_device_create()