Lines Matching refs:dip
880 static void pvr2_v4l2_dev_destroy(struct pvr2_v4l2_dev *dip) in pvr2_v4l2_dev_destroy() argument
882 struct pvr2_hdw *hdw = dip->v4lp->channel.mc_head->hdw; in pvr2_v4l2_dev_destroy()
883 enum pvr2_config cfg = dip->config; in pvr2_v4l2_dev_destroy()
892 video_device_node_name(&dip->devbase), in pvr2_v4l2_dev_destroy()
896 pvr2_hdw_v4l_store_minor_number(hdw,dip->minor_type,-1); in pvr2_v4l2_dev_destroy()
899 dip->v4lp = NULL; in pvr2_v4l2_dev_destroy()
900 dip->stream = NULL; in pvr2_v4l2_dev_destroy()
904 video_unregister_device(&dip->devbase); in pvr2_v4l2_dev_destroy()
911 static void pvr2_v4l2_dev_disassociate_parent(struct pvr2_v4l2_dev *dip) in pvr2_v4l2_dev_disassociate_parent() argument
913 if (!dip) return; in pvr2_v4l2_dev_disassociate_parent()
914 if (!dip->devbase.parent) return; in pvr2_v4l2_dev_disassociate_parent()
915 dip->devbase.parent = NULL; in pvr2_v4l2_dev_disassociate_parent()
916 device_move(&dip->devbase.dev, NULL, DPM_ORDER_NONE); in pvr2_v4l2_dev_disassociate_parent()
1015 struct pvr2_v4l2_dev *dip; /* Our own context pointer */ in pvr2_v4l2_open() local
1023 dip = container_of(video_devdata(file),struct pvr2_v4l2_dev,devbase); in pvr2_v4l2_open()
1025 vp = dip->v4lp; in pvr2_v4l2_open()
1042 fhp->pdi = dip; in pvr2_v4l2_open()
1047 if (dip->v4l_type == VFL_TYPE_RADIO) { in pvr2_v4l2_open()
1255 static void pvr2_v4l2_dev_init(struct pvr2_v4l2_dev *dip, in pvr2_v4l2_dev_init() argument
1263 dip->v4lp = vp; in pvr2_v4l2_dev_init()
1266 dip->v4l_type = v4l_type; in pvr2_v4l2_dev_init()
1269 dip->stream = &vp->channel.mc_head->video_stream; in pvr2_v4l2_dev_init()
1270 dip->config = pvr2_config_mpeg; in pvr2_v4l2_dev_init()
1271 dip->minor_type = pvr2_v4l_type_video; in pvr2_v4l2_dev_init()
1273 if (!dip->stream) { in pvr2_v4l2_dev_init()
1281 dip->config = pvr2_config_vbi; in pvr2_v4l2_dev_init()
1282 dip->minor_type = pvr2_v4l_type_vbi; in pvr2_v4l2_dev_init()
1286 dip->stream = &vp->channel.mc_head->video_stream; in pvr2_v4l2_dev_init()
1287 dip->config = pvr2_config_mpeg; in pvr2_v4l2_dev_init()
1288 dip->minor_type = pvr2_v4l_type_radio; in pvr2_v4l2_dev_init()
1298 memcpy(&dip->devbase,&vdev_template,sizeof(vdev_template)); in pvr2_v4l2_dev_init()
1299 dip->devbase.release = pvr2_video_device_release; in pvr2_v4l2_dev_init()
1306 dip->devbase.parent = &usbdev->dev; in pvr2_v4l2_dev_init()
1307 if ((video_register_device(&dip->devbase, in pvr2_v4l2_dev_init()
1308 dip->v4l_type, mindevnum) < 0) && in pvr2_v4l2_dev_init()
1309 (video_register_device(&dip->devbase, in pvr2_v4l2_dev_init()
1310 dip->v4l_type, -1) < 0)) { in pvr2_v4l2_dev_init()
1316 video_device_node_name(&dip->devbase), in pvr2_v4l2_dev_init()
1317 pvr2_config_get_name(dip->config)); in pvr2_v4l2_dev_init()
1320 dip->minor_type,dip->devbase.minor); in pvr2_v4l2_dev_init()