Lines Matching refs:fh
20 #include <media/v4l2-fh.h>
39 struct v4l2_fh fh;
111 struct pvr2_v4l2_fh *fh = file->private_data;
112 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
126 struct pvr2_v4l2_fh *fh = file->private_data;
127 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
139 struct pvr2_v4l2_fh *fh = file->private_data;
140 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
151 struct pvr2_v4l2_fh *fh = file->private_data;
152 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
164 struct pvr2_v4l2_fh *fh = file->private_data;
165 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
175 if (vi->index >= fh->input_cnt)
177 val = fh->input_map[vi->index];
212 struct pvr2_v4l2_fh *fh = file->private_data;
213 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
223 for (idx = 0; idx < fh->input_cnt; idx++) {
224 if (fh->input_map[idx] == val) {
234 struct pvr2_v4l2_fh *fh = file->private_data;
235 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
238 if (inp >= fh->input_cnt)
242 fh->input_map[inp]);
289 struct pvr2_v4l2_fh *fh = file->private_data;
290 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
301 struct pvr2_v4l2_fh *fh = file->private_data;
302 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
317 struct pvr2_v4l2_fh *fh = file->private_data;
318 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
352 struct pvr2_v4l2_fh *fh = file->private_data;
353 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
394 struct pvr2_v4l2_fh *fh = file->private_data;
395 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
414 struct pvr2_v4l2_fh *fh = file->private_data;
415 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
452 struct pvr2_v4l2_fh *fh = file->private_data;
453 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
455 int ret = pvr2_try_fmt_vid_cap(file, fh, vf);
469 struct pvr2_v4l2_fh *fh = file->private_data;
470 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
471 struct pvr2_v4l2_dev *pdi = fh->pdi;
474 if (!fh->pdi->stream) {
488 struct pvr2_v4l2_fh *fh = file->private_data;
489 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
491 if (!fh->pdi->stream) {
503 struct pvr2_v4l2_fh *fh = file->private_data;
504 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
564 struct pvr2_v4l2_fh *fh = file->private_data;
565 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
580 struct pvr2_v4l2_fh *fh = file->private_data;
581 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
615 struct pvr2_v4l2_fh *fh = file->private_data;
616 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
640 struct pvr2_v4l2_fh *fh = file->private_data;
641 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
662 struct pvr2_v4l2_fh *fh = file->private_data;
663 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
678 struct pvr2_v4l2_fh *fh = file->private_data;
679 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
729 struct pvr2_v4l2_fh *fh = file->private_data;
730 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
761 struct pvr2_v4l2_fh *fh = file->private_data;
762 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
900 v4l2_fh_del(&fhp->fh);
901 v4l2_fh_exit(&fhp->fh);
950 v4l2_fh_init(&fhp->fh, &dip->devbase);
975 v4l2_fh_exit(&fhp->fh);
992 v4l2_fh_exit(&fhp->fh);
1006 v4l2_fh_add(&fhp->fh);
1019 static int pvr2_v4l2_iosetup(struct pvr2_v4l2_fh *fh)
1024 if (fh->rhp) return 0;
1026 if (!fh->pdi->stream) {
1034 if ((ret = pvr2_channel_claim_stream(&fh->channel,
1035 fh->pdi->stream)) != 0) {
1040 fh->rhp = pvr2_channel_create_mpeg_stream(fh->pdi->stream);
1041 if (!fh->rhp) {
1042 pvr2_channel_claim_stream(&fh->channel,NULL);
1046 hdw = fh->channel.mc_head->hdw;
1047 sp = fh->pdi->stream->stream;
1048 pvr2_stream_set_callback(sp, pvr2_v4l2_notify, fh);
1049 pvr2_hdw_set_stream_type(hdw,fh->pdi->config);
1051 return pvr2_ioread_set_enabled(fh->rhp,!0);
1058 struct pvr2_v4l2_fh *fh = file->private_data;
1061 if (fh->fw_mode_flag) {
1062 struct pvr2_hdw *hdw = fh->channel.mc_head->hdw;
1094 if (!fh->rhp) {
1095 ret = pvr2_v4l2_iosetup(fh);
1102 ret = pvr2_ioread_read(fh->rhp,buff,count);
1108 fh->wait_data,
1109 pvr2_ioread_avail(fh->rhp) >= 0);
1120 struct pvr2_v4l2_fh *fh = file->private_data;
1123 if (fh->fw_mode_flag) {
1128 if (!fh->rhp) {
1129 ret = pvr2_v4l2_iosetup(fh);
1133 poll_wait(file,&fh->wait_data,wait);
1135 if (pvr2_ioread_avail(fh->rhp) >= 0) {