Lines Matching refs:f

233 static int try_fmt(struct v4l2_vbi_format *f, const struct bttv_tvnorm *tvnorm,  in try_fmt()  argument
255 f->sampling_rate = tvnorm->Fsc; in try_fmt()
256 f->samples_per_line = VBI_BPL; in try_fmt()
257 f->sample_format = V4L2_PIX_FMT_GREY; in try_fmt()
258 f->offset = VBI_OFFSET; in try_fmt()
263 if (0 == f->count[i]) { in try_fmt()
271 start = clamp(f->start[i], min_start, max_start); in try_fmt()
273 count = (s64) f->start[i] + f->count[i] - start; in try_fmt()
274 f->start[i] = start; in try_fmt()
275 f->count[i] = clamp(count, (s64) 1, in try_fmt()
284 if (0 == (f->count[0] | f->count[1])) { in try_fmt()
286 f->start[0] = tvnorm->vbistart[0]; in try_fmt()
287 f->start[1] = tvnorm->vbistart[1]; in try_fmt()
288 f->count[0] = 1; in try_fmt()
289 f->count[1] = 1; in try_fmt()
292 f->flags = 0; in try_fmt()
294 f->reserved[0] = 0; in try_fmt()
295 f->reserved[1] = 0; in try_fmt()
300 int bttv_try_fmt_vbi_cap(struct file *file, void *f, struct v4l2_format *frt) in bttv_try_fmt_vbi_cap() argument
302 struct bttv_fh *fh = f; in bttv_try_fmt_vbi_cap()
318 int bttv_s_fmt_vbi_cap(struct file *file, void *f, struct v4l2_format *frt) in bttv_s_fmt_vbi_cap() argument
320 struct bttv_fh *fh = f; in bttv_s_fmt_vbi_cap()
366 int bttv_g_fmt_vbi_cap(struct file *file, void *f, struct v4l2_format *frt) in bttv_g_fmt_vbi_cap() argument
368 struct bttv_fh *fh = f; in bttv_g_fmt_vbi_cap()
407 void bttv_vbi_fmt_reset(struct bttv_vbi_fmt *f, unsigned int norm) in bttv_vbi_fmt_reset() argument
415 f->fmt.sampling_rate = tvnorm->Fsc; in bttv_vbi_fmt_reset()
416 f->fmt.samples_per_line = VBI_BPL; in bttv_vbi_fmt_reset()
417 f->fmt.sample_format = V4L2_PIX_FMT_GREY; in bttv_vbi_fmt_reset()
418 f->fmt.offset = VBI_OFFSET; in bttv_vbi_fmt_reset()
419 f->fmt.start[0] = tvnorm->vbistart[0]; in bttv_vbi_fmt_reset()
420 f->fmt.start[1] = tvnorm->vbistart[1]; in bttv_vbi_fmt_reset()
421 f->fmt.count[0] = VBI_DEFLINES; in bttv_vbi_fmt_reset()
422 f->fmt.count[1] = VBI_DEFLINES; in bttv_vbi_fmt_reset()
423 f->fmt.flags = 0; in bttv_vbi_fmt_reset()
424 f->fmt.reserved[0] = 0; in bttv_vbi_fmt_reset()
425 f->fmt.reserved[1] = 0; in bttv_vbi_fmt_reset()
436 f->tvnorm = tvnorm; in bttv_vbi_fmt_reset()
439 f->end = tvnorm->vbistart[0] * 2 + 2; in bttv_vbi_fmt_reset()