Lines Matching refs:dip
824 static void pvr2_v4l2_dev_destroy(struct pvr2_v4l2_dev *dip) in pvr2_v4l2_dev_destroy() argument
826 struct pvr2_hdw *hdw = dip->v4lp->channel.mc_head->hdw; in pvr2_v4l2_dev_destroy()
827 enum pvr2_config cfg = dip->config; in pvr2_v4l2_dev_destroy()
836 video_device_node_name(&dip->devbase), in pvr2_v4l2_dev_destroy()
840 pvr2_hdw_v4l_store_minor_number(hdw,dip->minor_type,-1); in pvr2_v4l2_dev_destroy()
843 dip->v4lp = NULL; in pvr2_v4l2_dev_destroy()
844 dip->stream = NULL; in pvr2_v4l2_dev_destroy()
848 video_unregister_device(&dip->devbase); in pvr2_v4l2_dev_destroy()
855 static void pvr2_v4l2_dev_disassociate_parent(struct pvr2_v4l2_dev *dip) in pvr2_v4l2_dev_disassociate_parent() argument
857 if (!dip) return; in pvr2_v4l2_dev_disassociate_parent()
858 if (!dip->devbase.v4l2_dev->dev) return; in pvr2_v4l2_dev_disassociate_parent()
859 dip->devbase.v4l2_dev->dev = NULL; in pvr2_v4l2_dev_disassociate_parent()
860 device_move(&dip->devbase.dev, NULL, DPM_ORDER_NONE); in pvr2_v4l2_dev_disassociate_parent()
948 struct pvr2_v4l2_dev *dip; /* Our own context pointer */ in pvr2_v4l2_open() local
956 dip = container_of(video_devdata(file),struct pvr2_v4l2_dev,devbase); in pvr2_v4l2_open()
958 vp = dip->v4lp; in pvr2_v4l2_open()
974 v4l2_fh_init(&fhp->fh, &dip->devbase); in pvr2_v4l2_open()
976 fhp->pdi = dip; in pvr2_v4l2_open()
981 if (dip->v4l_type == VFL_TYPE_RADIO) { in pvr2_v4l2_open()
1182 static void pvr2_v4l2_dev_init(struct pvr2_v4l2_dev *dip, in pvr2_v4l2_dev_init() argument
1192 dip->v4lp = vp; in pvr2_v4l2_dev_init()
1195 dip->v4l_type = v4l_type; in pvr2_v4l2_dev_init()
1198 dip->stream = &vp->channel.mc_head->video_stream; in pvr2_v4l2_dev_init()
1199 dip->config = pvr2_config_mpeg; in pvr2_v4l2_dev_init()
1200 dip->minor_type = pvr2_v4l_type_video; in pvr2_v4l2_dev_init()
1205 dip->config = pvr2_config_vbi; in pvr2_v4l2_dev_init()
1206 dip->minor_type = pvr2_v4l_type_vbi; in pvr2_v4l2_dev_init()
1211 dip->stream = &vp->channel.mc_head->video_stream; in pvr2_v4l2_dev_init()
1212 dip->config = pvr2_config_mpeg; in pvr2_v4l2_dev_init()
1213 dip->minor_type = pvr2_v4l_type_radio; in pvr2_v4l2_dev_init()
1223 dip->devbase = vdev_template; in pvr2_v4l2_dev_init()
1224 dip->devbase.release = pvr2_video_device_release; in pvr2_v4l2_dev_init()
1225 dip->devbase.ioctl_ops = &pvr2_ioctl_ops; in pvr2_v4l2_dev_init()
1226 dip->devbase.device_caps = caps; in pvr2_v4l2_dev_init()
1232 dip->devbase.tvnorms = (v4l2_std_id)val; in pvr2_v4l2_dev_init()
1240 pvr2_hdw_set_v4l2_dev(hdw, &dip->devbase); in pvr2_v4l2_dev_init()
1241 if ((video_register_device(&dip->devbase, in pvr2_v4l2_dev_init()
1242 dip->v4l_type, mindevnum) < 0) && in pvr2_v4l2_dev_init()
1243 (video_register_device(&dip->devbase, in pvr2_v4l2_dev_init()
1244 dip->v4l_type, -1) < 0)) { in pvr2_v4l2_dev_init()
1250 video_device_node_name(&dip->devbase), in pvr2_v4l2_dev_init()
1251 pvr2_config_get_name(dip->config)); in pvr2_v4l2_dev_init()
1254 dip->minor_type,dip->devbase.minor); in pvr2_v4l2_dev_init()