Lines Matching refs:frm
313 struct g2d_frame *frm; in vidioc_g_fmt() local
318 frm = get_frame(ctx, f->type); in vidioc_g_fmt()
319 if (IS_ERR(frm)) in vidioc_g_fmt()
320 return PTR_ERR(frm); in vidioc_g_fmt()
322 f->fmt.pix.width = frm->width; in vidioc_g_fmt()
323 f->fmt.pix.height = frm->height; in vidioc_g_fmt()
325 f->fmt.pix.pixelformat = frm->fmt->fourcc; in vidioc_g_fmt()
326 f->fmt.pix.bytesperline = (frm->width * frm->fmt->depth) >> 3; in vidioc_g_fmt()
327 f->fmt.pix.sizeimage = frm->size; in vidioc_g_fmt()
366 struct g2d_frame *frm; in vidioc_s_fmt() local
380 frm = get_frame(ctx, f->type); in vidioc_s_fmt()
381 if (IS_ERR(frm)) in vidioc_s_fmt()
382 return PTR_ERR(frm); in vidioc_s_fmt()
386 frm->width = f->fmt.pix.width; in vidioc_s_fmt()
387 frm->height = f->fmt.pix.height; in vidioc_s_fmt()
388 frm->size = f->fmt.pix.sizeimage; in vidioc_s_fmt()
390 frm->o_width = 0; in vidioc_s_fmt()
391 frm->o_height = 0; in vidioc_s_fmt()
392 frm->c_width = frm->width; in vidioc_s_fmt()
393 frm->c_height = frm->height; in vidioc_s_fmt()
394 frm->right = frm->width; in vidioc_s_fmt()
395 frm->bottom = frm->height; in vidioc_s_fmt()
396 frm->fmt = fmt; in vidioc_s_fmt()
397 frm->stride = f->fmt.pix.bytesperline; in vidioc_s_fmt()