Lines Matching refs:frm
321 struct g2d_frame *frm; in vidioc_g_fmt() local
326 frm = get_frame(ctx, f->type); in vidioc_g_fmt()
327 if (IS_ERR(frm)) in vidioc_g_fmt()
328 return PTR_ERR(frm); in vidioc_g_fmt()
330 f->fmt.pix.width = frm->width; in vidioc_g_fmt()
331 f->fmt.pix.height = frm->height; in vidioc_g_fmt()
333 f->fmt.pix.pixelformat = frm->fmt->fourcc; in vidioc_g_fmt()
334 f->fmt.pix.bytesperline = (frm->width * frm->fmt->depth) >> 3; in vidioc_g_fmt()
335 f->fmt.pix.sizeimage = frm->size; in vidioc_g_fmt()
374 struct g2d_frame *frm; in vidioc_s_fmt() local
388 frm = get_frame(ctx, f->type); in vidioc_s_fmt()
389 if (IS_ERR(frm)) in vidioc_s_fmt()
390 return PTR_ERR(frm); in vidioc_s_fmt()
394 frm->width = f->fmt.pix.width; in vidioc_s_fmt()
395 frm->height = f->fmt.pix.height; in vidioc_s_fmt()
396 frm->size = f->fmt.pix.sizeimage; in vidioc_s_fmt()
398 frm->o_width = 0; in vidioc_s_fmt()
399 frm->o_height = 0; in vidioc_s_fmt()
400 frm->c_width = frm->width; in vidioc_s_fmt()
401 frm->c_height = frm->height; in vidioc_s_fmt()
402 frm->right = frm->width; in vidioc_s_fmt()
403 frm->bottom = frm->height; in vidioc_s_fmt()
404 frm->fmt = fmt; in vidioc_s_fmt()
405 frm->stride = f->fmt.pix.bytesperline; in vidioc_s_fmt()