Lines Matching refs:fh
276 struct cpia2_fh *fh = kmalloc(sizeof(*fh),GFP_KERNEL);
277 if(!fh) {
281 file->private_data = fh;
282 fh->prio = V4L2_PRIORITY_UNSET;
283 v4l2_prio_open(&cam->prio, &fh->prio);
284 fh->mmapped = 0;
305 struct cpia2_fh *fh = file->private_data;
311 || fh->prio == V4L2_PRIORITY_RECORD
325 if(fh->mmapped)
327 v4l2_prio_close(&cam->prio, fh->prio);
329 kfree(fh);
358 struct cpia2_fh *fh = file->private_data;
364 if(fh->prio != V4L2_PRIORITY_RECORD) {
380 struct cpia2_fh *fh = filp->private_data;
386 if(fh->prio != V4L2_PRIORITY_RECORD) {
533 struct cpia2_fh *fh)
547 err = v4l2_prio_change(&cam->prio, &fh->prio, V4L2_PRIORITY_RECORD);
605 struct cpia2_fh *fh)
621 err = v4l2_prio_change(&cam->prio, &fh->prio, V4L2_PRIORITY_RECORD);
873 static int ioctl_set_fmt(void *arg,struct camera_data *cam, struct cpia2_fh *fh)
883 err = v4l2_prio_change(&cam->prio, &fh->prio, V4L2_PRIORITY_RECORD);
1594 struct cpia2_fh *fh = file->private_data;
1595 retval = v4l2_prio_check(&cam->prio, fh->prio);
1605 struct cpia2_fh *fh = file->private_data;
1606 if(fh->prio != V4L2_PRIORITY_RECORD) {
1728 struct cpia2_fh *fh = file->private_data;
1729 *(enum v4l2_priority*)arg = fh->prio;
1734 struct cpia2_fh *fh = file->private_data;
1738 prio != fh->prio &&
1739 fh->prio == V4L2_PRIORITY_RECORD) {
1743 prio != fh->prio &&
1748 retval = v4l2_prio_change(&cam->prio, &fh->prio, prio);
1857 struct cpia2_fh *fh = file->private_data;
1858 if(fh->prio != V4L2_PRIORITY_RECORD) {
1865 fh->mmapped = 1;