Lines Matching refs:cap

1547 		bttv_dma_free(&fh->cap,btv, old);  in bttv_switch_overlay()
2253 q = &fh->cap; in bttv_queue()
2319 f->fmt.pix.field = fh->cap.field; in bttv_g_fmt_vid_cap()
2455 fh->cap.field = f->fmt.pix.field; in bttv_s_fmt_vid_cap()
2456 fh->cap.last = V4L2_FIELD_NONE; in bttv_s_fmt_vid_cap()
2481 struct v4l2_capability *cap) in bttv_querycap() argument
2490 strlcpy(cap->driver, "bttv", sizeof(cap->driver)); in bttv_querycap()
2491 strlcpy(cap->card, btv->video_dev.name, sizeof(cap->card)); in bttv_querycap()
2492 snprintf(cap->bus_info, sizeof(cap->bus_info), in bttv_querycap()
2494 cap->capabilities = in bttv_querycap()
2500 cap->capabilities |= V4L2_CAP_VIDEO_OVERLAY; in bttv_querycap()
2502 cap->capabilities |= V4L2_CAP_VBI_CAPTURE; in bttv_querycap()
2504 cap->capabilities |= V4L2_CAP_RADIO; in bttv_querycap()
2511 cap->capabilities |= V4L2_CAP_RDS_CAPTURE; in bttv_querycap()
2513 cap->capabilities |= V4L2_CAP_TUNER; in bttv_querycap()
2515 cap->device_caps = cap->capabilities & in bttv_querycap()
2522 cap->device_caps = cap->capabilities & in bttv_querycap()
2528 cap->device_caps = V4L2_CAP_RADIO | V4L2_CAP_TUNER; in bttv_querycap()
2530 cap->device_caps |= V4L2_CAP_READWRITE | in bttv_querycap()
2533 cap->device_caps |= V4L2_CAP_HW_FREQ_SEEK; in bttv_querycap()
2811 struct v4l2_cropcap *cap) in bttv_cropcap() argument
2816 if (cap->type != V4L2_BUF_TYPE_VIDEO_CAPTURE && in bttv_cropcap()
2817 cap->type != V4L2_BUF_TYPE_VIDEO_OVERLAY) in bttv_cropcap()
2820 *cap = bttv_tvnorms[btv->tvnorm].cropcap; in bttv_cropcap()
2937 retval = videobuf_read_one(&fh->cap, data, count, ppos, in bttv_read()
2977 if (list_empty(&fh->cap.stream)) in bttv_poll()
2979 buf = list_entry(fh->cap.stream.next,struct bttv_buffer,vb.stream); in bttv_poll()
2982 if (NULL == fh->cap.read_buf) { in bttv_poll()
2986 fh->cap.read_buf = videobuf_sg_alloc(fh->cap.msize); in bttv_poll()
2987 if (NULL == fh->cap.read_buf) in bttv_poll()
2989 fh->cap.read_buf->memory = V4L2_MEMORY_USERPTR; in bttv_poll()
2990 field = videobuf_next_field(&fh->cap); in bttv_poll()
2991 if (0 != fh->cap.ops->buf_prepare(&fh->cap,fh->cap.read_buf,field)) { in bttv_poll()
2992 kfree (fh->cap.read_buf); in bttv_poll()
2993 fh->cap.read_buf = NULL; in bttv_poll()
2996 fh->cap.ops->buf_queue(&fh->cap,fh->cap.read_buf); in bttv_poll()
2997 fh->cap.read_off = 0; in bttv_poll()
2999 buf = (struct bttv_buffer*)fh->cap.read_buf; in bttv_poll()
3043 videobuf_queue_sg_init(&fh->cap, &bttv_video_qops, in bttv_open()
3091 videobuf_streamoff(&fh->cap); in bttv_release()
3094 if (fh->cap.read_buf) { in bttv_release()
3095 buffer_release(&fh->cap,fh->cap.read_buf); in bttv_release()
3096 kfree(fh->cap.read_buf); in bttv_release()
3110 videobuf_mmap_free(&fh->cap); in bttv_release()