Lines Matching refs:fh
6 int saa7146_res_get(struct saa7146_fh *fh, unsigned int bit)
8 struct saa7146_dev *dev = fh->dev;
11 if (fh->resources & bit) {
26 fh->resources |= bit;
33 void saa7146_res_free(struct saa7146_fh *fh, unsigned int bits)
35 struct saa7146_dev *dev = fh->dev;
38 BUG_ON((fh->resources & bits) != bits);
41 fh->resources &= ~bits;
196 struct saa7146_fh *fh = NULL;
220 fh = kzalloc(sizeof(*fh),GFP_KERNEL);
221 if (NULL == fh) {
227 file->private_data = fh;
228 fh->dev = dev;
229 fh->type = type;
231 if( fh->type == V4L2_BUF_TYPE_VBI_CAPTURE) {
253 if (fh && result != 0) {
254 kfree(fh);
263 struct saa7146_fh *fh = file->private_data;
264 struct saa7146_dev *dev = fh->dev;
271 if( fh->type == V4L2_BUF_TYPE_VBI_CAPTURE) {
282 kfree(fh);
291 struct saa7146_fh *fh = file->private_data;
294 switch (fh->type) {
297 q = &fh->video_q;
302 q = &fh->vbi_q;
315 struct saa7146_fh *fh = file->private_data;
321 if (V4L2_BUF_TYPE_VBI_CAPTURE == fh->type) {
322 if( 0 == fh->vbi_q.streaming )
323 return videobuf_poll_stream(file, &fh->vbi_q, wait);
324 q = &fh->vbi_q;
327 q = &fh->video_q;
350 struct saa7146_fh *fh = file->private_data;
352 switch (fh->type) {
359 if (fh->dev->ext_vv_data->capabilities & V4L2_CAP_VBI_CAPTURE)
373 struct saa7146_fh *fh = file->private_data;
375 switch (fh->type) {
379 if (fh->dev->ext_vv_data->vbi_fops.write)
380 return fh->dev->ext_vv_data->vbi_fops.write(file, data, count, ppos);