Lines Matching refs:frt
248 int bttv_try_fmt_vbi_cap(struct file *file, void *f, struct v4l2_format *frt) in bttv_try_fmt_vbi_cap() argument
261 return try_fmt(&frt->fmt.vbi, tvnorm, crop_start); in bttv_try_fmt_vbi_cap()
265 int bttv_s_fmt_vbi_cap(struct file *file, void *f, struct v4l2_format *frt) in bttv_s_fmt_vbi_cap() argument
280 rc = try_fmt(&frt->fmt.vbi, tvnorm, btv->crop_start); in bttv_s_fmt_vbi_cap()
284 start1 = frt->fmt.vbi.start[1] - tvnorm->vbistart[1] + in bttv_s_fmt_vbi_cap()
293 end = max(frt->fmt.vbi.start[0], start1) * 2 + 2; in bttv_s_fmt_vbi_cap()
295 btv->vbi_fmt.fmt = frt->fmt.vbi; in bttv_s_fmt_vbi_cap()
308 int bttv_g_fmt_vbi_cap(struct file *file, void *f, struct v4l2_format *frt) in bttv_g_fmt_vbi_cap() argument
313 frt->fmt.vbi = btv->vbi_fmt.fmt; in bttv_g_fmt_vbi_cap()
328 frt->fmt.vbi.sampling_rate = tvnorm->Fsc; in bttv_g_fmt_vbi_cap()
333 new_start = frt->fmt.vbi.start[i] + tvnorm->vbistart[i] in bttv_g_fmt_vbi_cap()
336 frt->fmt.vbi.start[i] = min(new_start, max_end - 1); in bttv_g_fmt_vbi_cap()
337 frt->fmt.vbi.count[i] = in bttv_g_fmt_vbi_cap()
338 min((__s32) frt->fmt.vbi.count[i], in bttv_g_fmt_vbi_cap()
339 max_end - frt->fmt.vbi.start[i]); in bttv_g_fmt_vbi_cap()