Lines Matching refs:bytes_per_line
209 int bytes_per_line = soc_mbus_bytes_per_line(icd->user_width,
214 if (bytes_per_line < 0)
215 return bytes_per_line;
217 *size = bytes_per_line * icd->user_height;
259 int bytes_per_line = soc_mbus_bytes_per_line(icd->user_width,
265 if (bytes_per_line < 0)
266 return bytes_per_line;
284 vb->size = bytes_per_line * vb->height;
1130 static bool is_dma_aligned(s32 bytes_per_line, unsigned int height,
1133 int size = bytes_per_line * height;
1135 return IS_ALIGNED(bytes_per_line, DMA_ELEMENT_SIZE) &&
1143 s32 bytes_per_line = soc_mbus_bytes_per_line(*width, fmt);
1145 if (bytes_per_line < 0)
1146 return bytes_per_line;
1148 if (!is_dma_aligned(bytes_per_line, *height, vb_mode)) {
1149 unsigned int pxalign = __fls(bytes_per_line / *width);
1191 s32 bytes_per_line;
1204 bytes_per_line = soc_mbus_bytes_per_line(mf->width, xlate->host_fmt);
1205 if (bytes_per_line < 0) {
1208 return bytes_per_line;
1211 if (!is_dma_aligned(bytes_per_line, mf->height, pcdev->vb_mode)) {