Lines Matching refs:fhp

909 	struct pvr2_v4l2_fh *fhp = file->private_data;  in pvr2_v4l2_release()  local
910 struct pvr2_v4l2 *vp = fhp->pdi->v4lp; in pvr2_v4l2_release()
911 struct pvr2_hdw *hdw = fhp->channel.mc_head->hdw; in pvr2_v4l2_release()
915 if (fhp->rhp) { in pvr2_v4l2_release()
918 sp = pvr2_ioread_get_stream(fhp->rhp); in pvr2_v4l2_release()
920 pvr2_ioread_destroy(fhp->rhp); in pvr2_v4l2_release()
921 fhp->rhp = NULL; in pvr2_v4l2_release()
924 v4l2_fh_del(&fhp->fh); in pvr2_v4l2_release()
925 v4l2_fh_exit(&fhp->fh); in pvr2_v4l2_release()
928 pvr2_channel_done(&fhp->channel); in pvr2_v4l2_release()
930 "Destroying pvr_v4l2_fh id=%p",fhp); in pvr2_v4l2_release()
931 if (fhp->input_map) { in pvr2_v4l2_release()
932 kfree(fhp->input_map); in pvr2_v4l2_release()
933 fhp->input_map = NULL; in pvr2_v4l2_release()
935 kfree(fhp); in pvr2_v4l2_release()
949 struct pvr2_v4l2_fh *fhp; in pvr2_v4l2_open() local
969 fhp = kzalloc(sizeof(*fhp),GFP_KERNEL); in pvr2_v4l2_open()
970 if (!fhp) { in pvr2_v4l2_open()
974 v4l2_fh_init(&fhp->fh, &dip->devbase); in pvr2_v4l2_open()
975 init_waitqueue_head(&fhp->wait_data); in pvr2_v4l2_open()
976 fhp->pdi = dip; in pvr2_v4l2_open()
978 pvr2_trace(PVR2_TRACE_STRUCT,"Creating pvr_v4l2_fh id=%p",fhp); in pvr2_v4l2_open()
979 pvr2_channel_init(&fhp->channel,vp->channel.mc_head); in pvr2_v4l2_open()
993 ret = pvr2_channel_limit_inputs(&fhp->channel,input_mask); in pvr2_v4l2_open()
995 pvr2_channel_done(&fhp->channel); in pvr2_v4l2_open()
998 fhp); in pvr2_v4l2_open()
999 v4l2_fh_exit(&fhp->fh); in pvr2_v4l2_open()
1000 kfree(fhp); in pvr2_v4l2_open()
1009 fhp->input_cnt = input_cnt; in pvr2_v4l2_open()
1010 fhp->input_map = kzalloc(input_cnt,GFP_KERNEL); in pvr2_v4l2_open()
1011 if (!fhp->input_map) { in pvr2_v4l2_open()
1012 pvr2_channel_done(&fhp->channel); in pvr2_v4l2_open()
1015 fhp); in pvr2_v4l2_open()
1016 v4l2_fh_exit(&fhp->fh); in pvr2_v4l2_open()
1017 kfree(fhp); in pvr2_v4l2_open()
1023 fhp->input_map[input_cnt++] = idx; in pvr2_v4l2_open()
1026 fhp->file = file; in pvr2_v4l2_open()
1027 file->private_data = fhp; in pvr2_v4l2_open()
1029 fhp->fw_mode_flag = pvr2_hdw_cpufw_get_enabled(hdw); in pvr2_v4l2_open()
1030 v4l2_fh_add(&fhp->fh); in pvr2_v4l2_open()
1036 static void pvr2_v4l2_notify(struct pvr2_v4l2_fh *fhp) in pvr2_v4l2_notify() argument
1038 wake_up(&fhp->wait_data); in pvr2_v4l2_notify()