Lines Matching refs:f

245 static int try_fmt(struct v4l2_vbi_format *f, const struct bttv_tvnorm *tvnorm,  in try_fmt()  argument
267 f->sampling_rate = tvnorm->Fsc; in try_fmt()
268 f->samples_per_line = VBI_BPL; in try_fmt()
269 f->sample_format = V4L2_PIX_FMT_GREY; in try_fmt()
270 f->offset = VBI_OFFSET; in try_fmt()
275 if (0 == f->count[i]) { in try_fmt()
283 start = clamp(f->start[i], min_start, max_start); in try_fmt()
285 count = (s64) f->start[i] + f->count[i] - start; in try_fmt()
286 f->start[i] = start; in try_fmt()
287 f->count[i] = clamp(count, (s64) 1, in try_fmt()
296 if (0 == (f->count[0] | f->count[1])) { in try_fmt()
298 f->start[0] = tvnorm->vbistart[0]; in try_fmt()
299 f->start[1] = tvnorm->vbistart[1]; in try_fmt()
300 f->count[0] = 1; in try_fmt()
301 f->count[1] = 1; in try_fmt()
304 f->flags = 0; in try_fmt()
306 f->reserved[0] = 0; in try_fmt()
307 f->reserved[1] = 0; in try_fmt()
312 int bttv_try_fmt_vbi_cap(struct file *file, void *f, struct v4l2_format *frt) in bttv_try_fmt_vbi_cap() argument
314 struct bttv_fh *fh = f; in bttv_try_fmt_vbi_cap()
330 int bttv_s_fmt_vbi_cap(struct file *file, void *f, struct v4l2_format *frt) in bttv_s_fmt_vbi_cap() argument
332 struct bttv_fh *fh = f; in bttv_s_fmt_vbi_cap()
378 int bttv_g_fmt_vbi_cap(struct file *file, void *f, struct v4l2_format *frt) in bttv_g_fmt_vbi_cap() argument
380 struct bttv_fh *fh = f; in bttv_g_fmt_vbi_cap()
419 void bttv_vbi_fmt_reset(struct bttv_vbi_fmt *f, unsigned int norm) in bttv_vbi_fmt_reset() argument
427 f->fmt.sampling_rate = tvnorm->Fsc; in bttv_vbi_fmt_reset()
428 f->fmt.samples_per_line = VBI_BPL; in bttv_vbi_fmt_reset()
429 f->fmt.sample_format = V4L2_PIX_FMT_GREY; in bttv_vbi_fmt_reset()
430 f->fmt.offset = VBI_OFFSET; in bttv_vbi_fmt_reset()
431 f->fmt.start[0] = tvnorm->vbistart[0]; in bttv_vbi_fmt_reset()
432 f->fmt.start[1] = tvnorm->vbistart[1]; in bttv_vbi_fmt_reset()
433 f->fmt.count[0] = VBI_DEFLINES; in bttv_vbi_fmt_reset()
434 f->fmt.count[1] = VBI_DEFLINES; in bttv_vbi_fmt_reset()
435 f->fmt.flags = 0; in bttv_vbi_fmt_reset()
436 f->fmt.reserved[0] = 0; in bttv_vbi_fmt_reset()
437 f->fmt.reserved[1] = 0; in bttv_vbi_fmt_reset()
448 f->tvnorm = tvnorm; in bttv_vbi_fmt_reset()
451 f->end = tvnorm->vbistart[0] * 2 + 2; in bttv_vbi_fmt_reset()