Lines Matching refs:frm
312 struct g2d_frame *frm; in vidioc_g_fmt() local
317 frm = get_frame(ctx, f->type); in vidioc_g_fmt()
318 if (IS_ERR(frm)) in vidioc_g_fmt()
319 return PTR_ERR(frm); in vidioc_g_fmt()
321 f->fmt.pix.width = frm->width; in vidioc_g_fmt()
322 f->fmt.pix.height = frm->height; in vidioc_g_fmt()
324 f->fmt.pix.pixelformat = frm->fmt->fourcc; in vidioc_g_fmt()
325 f->fmt.pix.bytesperline = (frm->width * frm->fmt->depth) >> 3; in vidioc_g_fmt()
326 f->fmt.pix.sizeimage = frm->size; in vidioc_g_fmt()
365 struct g2d_frame *frm; in vidioc_s_fmt() local
379 frm = get_frame(ctx, f->type); in vidioc_s_fmt()
380 if (IS_ERR(frm)) in vidioc_s_fmt()
381 return PTR_ERR(frm); in vidioc_s_fmt()
385 frm->width = f->fmt.pix.width; in vidioc_s_fmt()
386 frm->height = f->fmt.pix.height; in vidioc_s_fmt()
387 frm->size = f->fmt.pix.sizeimage; in vidioc_s_fmt()
389 frm->o_width = 0; in vidioc_s_fmt()
390 frm->o_height = 0; in vidioc_s_fmt()
391 frm->c_width = frm->width; in vidioc_s_fmt()
392 frm->c_height = frm->height; in vidioc_s_fmt()
393 frm->right = frm->width; in vidioc_s_fmt()
394 frm->bottom = frm->height; in vidioc_s_fmt()
395 frm->fmt = fmt; in vidioc_s_fmt()
396 frm->stride = f->fmt.pix.bytesperline; in vidioc_s_fmt()