dvbdev 323 drivers/media/common/videobuf2/videobuf2-dvb.c if (fe->dvb.net.dvbdev) { dvbdev 128 drivers/media/dvb-core/dmxdev.c struct dvb_device *dvbdev = file->private_data; dvbdev 129 drivers/media/dvb-core/dmxdev.c struct dmxdev *dmxdev = dvbdev->priv; dvbdev 172 drivers/media/dvb-core/dmxdev.c if (!dvbdev->readers) { dvbdev 185 drivers/media/dvb-core/dmxdev.c dvbdev->readers--; dvbdev 205 drivers/media/dvb-core/dmxdev.c dvbdev->users++; dvbdev 212 drivers/media/dvb-core/dmxdev.c struct dvb_device *dvbdev = file->private_data; dvbdev 213 drivers/media/dvb-core/dmxdev.c struct dmxdev *dmxdev = dvbdev->priv; dvbdev 230 drivers/media/dvb-core/dmxdev.c dvbdev->readers++; dvbdev 242 drivers/media/dvb-core/dmxdev.c dvbdev->users--; dvbdev 243 drivers/media/dvb-core/dmxdev.c if (dvbdev->users == 1 && dmxdev->exit == 1) { dvbdev 245 drivers/media/dvb-core/dmxdev.c wake_up(&dvbdev->wait_queue); dvbdev 255 drivers/media/dvb-core/dmxdev.c struct dvb_device *dvbdev = file->private_data; dvbdev 256 drivers/media/dvb-core/dmxdev.c struct dmxdev *dmxdev = dvbdev->priv; dvbdev 278 drivers/media/dvb-core/dmxdev.c struct dvb_device *dvbdev = file->private_data; dvbdev 279 drivers/media/dvb-core/dmxdev.c struct dmxdev *dmxdev = dvbdev->priv; dvbdev 792 drivers/media/dvb-core/dmxdev.c struct dvb_device *dvbdev = file->private_data; dvbdev 793 drivers/media/dvb-core/dmxdev.c struct dmxdev *dmxdev = dvbdev->priv; dvbdev 829 drivers/media/dvb-core/dmxdev.c dvbdev->users++; dvbdev 1254 drivers/media/dvb-core/dmxdev.c dmxdev->dvbdev->users--; dvbdev 1255 drivers/media/dvb-core/dmxdev.c if (dmxdev->dvbdev->users == 1 && dmxdev->exit == 1) { dvbdev 1257 drivers/media/dvb-core/dmxdev.c wake_up(&dmxdev->dvbdev->wait_queue); dvbdev 1291 drivers/media/dvb-core/dmxdev.c struct dvb_device *dvbdev = file->private_data; dvbdev 1292 drivers/media/dvb-core/dmxdev.c struct dmxdev *dmxdev = dvbdev->priv; dvbdev 1343 drivers/media/dvb-core/dmxdev.c struct dvb_device *dvbdev = file->private_data; dvbdev 1344 drivers/media/dvb-core/dmxdev.c struct dmxdev *dmxdev = dvbdev->priv; dvbdev 1372 drivers/media/dvb-core/dmxdev.c struct dvb_device *dvbdev = file->private_data; dvbdev 1373 drivers/media/dvb-core/dmxdev.c struct dmxdev *dmxdev = dvbdev->priv; dvbdev 1435 drivers/media/dvb-core/dmxdev.c dvb_register_device(dvb_adapter, &dmxdev->dvbdev, &dvbdev_demux, dmxdev, dvbdev 1450 drivers/media/dvb-core/dmxdev.c if (dmxdev->dvbdev->users > 1) { dvbdev 1451 drivers/media/dvb-core/dmxdev.c wait_event(dmxdev->dvbdev->wait_queue, dvbdev 1452 drivers/media/dvb-core/dmxdev.c dmxdev->dvbdev->users == 1); dvbdev 1459 drivers/media/dvb-core/dmxdev.c dvb_unregister_device(dmxdev->dvbdev); dvbdev 120 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_device *dvbdev; dvbdev 160 drivers/media/dvb-core/dvb_ca_en50221.c dvb_free_device(ca->dvbdev); dvbdev 531 drivers/media/dvb-core/dvb_ca_en50221.c ca->dvbdev->adapter->num, dvb_str[8], dvb_str[9], dvbdev 699 drivers/media/dvb-core/dvb_ca_en50221.c ca->dvbdev->adapter->num, bytes_read, dvbdev 707 drivers/media/dvb-core/dvb_ca_en50221.c ca->dvbdev->adapter->num); dvbdev 715 drivers/media/dvb-core/dvb_ca_en50221.c ca->dvbdev->adapter->num); dvbdev 1158 drivers/media/dvb-core/dvb_ca_en50221.c ca->dvbdev->adapter->num); dvbdev 1175 drivers/media/dvb-core/dvb_ca_en50221.c ca->dvbdev->adapter->num); dvbdev 1182 drivers/media/dvb-core/dvb_ca_en50221.c ca->dvbdev->adapter->num); dvbdev 1191 drivers/media/dvb-core/dvb_ca_en50221.c ca->dvbdev->adapter->num); dvbdev 1206 drivers/media/dvb-core/dvb_ca_en50221.c ca->dvbdev->adapter->num); dvbdev 1225 drivers/media/dvb-core/dvb_ca_en50221.c ca->dvbdev->adapter->num); dvbdev 1235 drivers/media/dvb-core/dvb_ca_en50221.c ca->dvbdev->adapter->num); dvbdev 1248 drivers/media/dvb-core/dvb_ca_en50221.c ca->dvbdev->adapter->num); dvbdev 1339 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_device *dvbdev = file->private_data; dvbdev 1340 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_ca_private *ca = dvbdev->priv; dvbdev 1439 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_device *dvbdev = file->private_data; dvbdev 1440 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_ca_private *ca = dvbdev->priv; dvbdev 1594 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_device *dvbdev = file->private_data; dvbdev 1595 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_ca_private *ca = dvbdev->priv; dvbdev 1641 drivers/media/dvb-core/dvb_ca_en50221.c ca->dvbdev->adapter->num); dvbdev 1702 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_device *dvbdev = file->private_data; dvbdev 1703 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_ca_private *ca = dvbdev->priv; dvbdev 1752 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_device *dvbdev = file->private_data; dvbdev 1753 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_ca_private *ca = dvbdev->priv; dvbdev 1781 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_device *dvbdev = file->private_data; dvbdev 1782 drivers/media/dvb-core/dvb_ca_en50221.c struct dvb_ca_private *ca = dvbdev->priv; dvbdev 1874 drivers/media/dvb-core/dvb_ca_en50221.c ret = dvb_register_device(dvb_adapter, &ca->dvbdev, &dvbdev_ca, ca, dvbdev 1900 drivers/media/dvb-core/dvb_ca_en50221.c ca->dvbdev->adapter->num, ca->dvbdev->id); dvbdev 1910 drivers/media/dvb-core/dvb_ca_en50221.c dvb_unregister_device(ca->dvbdev); dvbdev 1939 drivers/media/dvb-core/dvb_ca_en50221.c dvb_remove_device(ca->dvbdev); dvbdev 94 drivers/media/dvb-core/dvb_frontend.c struct dvb_device *dvbdev; dvbdev 138 drivers/media/dvb-core/dvb_frontend.c dvb_free_device(fepriv->dvbdev); dvbdev 354 drivers/media/dvb-core/dvb_frontend.c struct dvb_frontend *fe = fepriv->dvbdev->priv; dvbdev 618 drivers/media/dvb-core/dvb_frontend.c if (fepriv->dvbdev->writers == 1) dvbdev 1990 drivers/media/dvb-core/dvb_frontend.c struct dvb_device *dvbdev = file->private_data; dvbdev 1991 drivers/media/dvb-core/dvb_frontend.c struct dvb_frontend *fe = dvbdev->priv; dvbdev 2034 drivers/media/dvb-core/dvb_frontend.c struct dvb_device *dvbdev = file->private_data; dvbdev 2036 drivers/media/dvb-core/dvb_frontend.c if (!dvbdev) dvbdev 2070 drivers/media/dvb-core/dvb_frontend.c struct dvb_device *dvbdev = file->private_data; dvbdev 2071 drivers/media/dvb-core/dvb_frontend.c struct dvb_frontend *fe = dvbdev->priv; dvbdev 2162 drivers/media/dvb-core/dvb_frontend.c struct dvb_device *dvbdev = file->private_data; dvbdev 2163 drivers/media/dvb-core/dvb_frontend.c struct dvb_frontend *fe = dvbdev->priv; dvbdev 2392 drivers/media/dvb-core/dvb_frontend.c struct dvb_device *dvbdev = file->private_data; dvbdev 2393 drivers/media/dvb-core/dvb_frontend.c struct dvb_frontend *fe = dvbdev->priv; dvbdev 2710 drivers/media/dvb-core/dvb_frontend.c struct dvb_device *dvbdev = file->private_data; dvbdev 2711 drivers/media/dvb-core/dvb_frontend.c struct dvb_frontend *fe = dvbdev->priv; dvbdev 2726 drivers/media/dvb-core/dvb_frontend.c struct dvb_device *dvbdev = file->private_data; dvbdev 2727 drivers/media/dvb-core/dvb_frontend.c struct dvb_frontend *fe = dvbdev->priv; dvbdev 2740 drivers/media/dvb-core/dvb_frontend.c adapter->mfe_dvbdev = dvbdev; dvbdev 2742 drivers/media/dvb-core/dvb_frontend.c else if (adapter->mfe_dvbdev != dvbdev) { dvbdev 2761 drivers/media/dvb-core/dvb_frontend.c if (adapter->mfe_dvbdev != dvbdev) { dvbdev 2770 drivers/media/dvb-core/dvb_frontend.c adapter->mfe_dvbdev = dvbdev; dvbdev 2775 drivers/media/dvb-core/dvb_frontend.c if (dvbdev->users == -1 && fe->ops.ts_bus_ctrl) { dvbdev 2803 drivers/media/dvb-core/dvb_frontend.c dvbdev->entity, dvbdev 2835 drivers/media/dvb-core/dvb_frontend.c fe->dvb->mdev->disable_source(dvbdev->entity); dvbdev 2843 drivers/media/dvb-core/dvb_frontend.c if (dvbdev->users == -1 && fe->ops.ts_bus_ctrl) dvbdev 2853 drivers/media/dvb-core/dvb_frontend.c struct dvb_device *dvbdev = file->private_data; dvbdev 2854 drivers/media/dvb-core/dvb_frontend.c struct dvb_frontend *fe = dvbdev->priv; dvbdev 2867 drivers/media/dvb-core/dvb_frontend.c if (dvbdev->users == -1) { dvbdev 2874 drivers/media/dvb-core/dvb_frontend.c fe->dvb->mdev->disable_source(dvbdev->entity); dvbdev 2880 drivers/media/dvb-core/dvb_frontend.c wake_up(&dvbdev->wait_queue); dvbdev 2997 drivers/media/dvb-core/dvb_frontend.c dvb_register_device(fe->dvb, &fepriv->dvbdev, &dvbdev_template, dvbdev 3021 drivers/media/dvb-core/dvb_frontend.c dvb_remove_device(fepriv->dvbdev); dvbdev 1360 drivers/media/dvb-core/dvb_net.c if (dvbnet->dvbdev->id) dvbdev 1362 drivers/media/dvb-core/dvb_net.c dvbnet->dvbdev->adapter->num, dvbnet->dvbdev->id, if_num); dvbdev 1366 drivers/media/dvb-core/dvb_net.c dvbnet->dvbdev->adapter->num, if_num); dvbdev 1369 drivers/media/dvb-core/dvb_net.c memcpy(net->dev_addr, dvbnet->dvbdev->adapter->proposed_mac, 6); dvbdev 1425 drivers/media/dvb-core/dvb_net.c struct dvb_device *dvbdev = file->private_data; dvbdev 1426 drivers/media/dvb-core/dvb_net.c struct dvb_net *dvbnet = dvbdev->priv; dvbdev 1446 drivers/media/dvb-core/dvb_net.c if (!try_module_get(dvbdev->adapter->module)) { dvbdev 1453 drivers/media/dvb-core/dvb_net.c module_put(dvbdev->adapter->module); dvbdev 1491 drivers/media/dvb-core/dvb_net.c module_put(dvbdev->adapter->module); dvbdev 1506 drivers/media/dvb-core/dvb_net.c if (!try_module_get(dvbdev->adapter->module)) { dvbdev 1513 drivers/media/dvb-core/dvb_net.c module_put(dvbdev->adapter->module); dvbdev 1556 drivers/media/dvb-core/dvb_net.c struct dvb_device *dvbdev = file->private_data; dvbdev 1557 drivers/media/dvb-core/dvb_net.c struct dvb_net *dvbnet = dvbdev->priv; dvbdev 1561 drivers/media/dvb-core/dvb_net.c if(dvbdev->users == 1 && dvbnet->exit == 1) dvbdev 1562 drivers/media/dvb-core/dvb_net.c wake_up(&dvbdev->wait_queue); dvbdev 1590 drivers/media/dvb-core/dvb_net.c if (dvbnet->dvbdev->users < 1) dvbdev 1591 drivers/media/dvb-core/dvb_net.c wait_event(dvbnet->dvbdev->wait_queue, dvbdev 1592 drivers/media/dvb-core/dvb_net.c dvbnet->dvbdev->users==1); dvbdev 1594 drivers/media/dvb-core/dvb_net.c dvb_unregister_device(dvbnet->dvbdev); dvbdev 1616 drivers/media/dvb-core/dvb_net.c return dvb_register_device(adap, &dvbnet->dvbdev, &dvbdev_net, dvbdev 97 drivers/media/dvb-core/dvbdev.c struct dvb_device *dvbdev; dvbdev 101 drivers/media/dvb-core/dvbdev.c dvbdev = dvb_minors[iminor(inode)]; dvbdev 103 drivers/media/dvb-core/dvbdev.c if (dvbdev && dvbdev->fops) { dvbdev 107 drivers/media/dvb-core/dvbdev.c new_fops = fops_get(dvbdev->fops); dvbdev 110 drivers/media/dvb-core/dvbdev.c file->private_data = dvbdev; dvbdev 136 drivers/media/dvb-core/dvbdev.c struct dvb_device *dvbdev = file->private_data; dvbdev 138 drivers/media/dvb-core/dvbdev.c if (!dvbdev) dvbdev 141 drivers/media/dvb-core/dvbdev.c if (!dvbdev->users) dvbdev 145 drivers/media/dvb-core/dvbdev.c if (!dvbdev->readers) dvbdev 147 drivers/media/dvb-core/dvbdev.c dvbdev->readers--; dvbdev 149 drivers/media/dvb-core/dvbdev.c if (!dvbdev->writers) dvbdev 151 drivers/media/dvb-core/dvbdev.c dvbdev->writers--; dvbdev 154 drivers/media/dvb-core/dvbdev.c dvbdev->users--; dvbdev 162 drivers/media/dvb-core/dvbdev.c struct dvb_device *dvbdev = file->private_data; dvbdev 164 drivers/media/dvb-core/dvbdev.c if (!dvbdev) dvbdev 168 drivers/media/dvb-core/dvbdev.c dvbdev->readers++; dvbdev 170 drivers/media/dvb-core/dvbdev.c dvbdev->writers++; dvbdev 173 drivers/media/dvb-core/dvbdev.c dvbdev->users++; dvbdev 182 drivers/media/dvb-core/dvbdev.c struct dvb_device *dvbdev = file->private_data; dvbdev 184 drivers/media/dvb-core/dvbdev.c if (!dvbdev) dvbdev 187 drivers/media/dvb-core/dvbdev.c if (!dvbdev->kernel_ioctl) dvbdev 190 drivers/media/dvb-core/dvbdev.c return dvb_usercopy(file, cmd, arg, dvbdev->kernel_ioctl); dvbdev 211 drivers/media/dvb-core/dvbdev.c static void dvb_media_device_free(struct dvb_device *dvbdev) dvbdev 214 drivers/media/dvb-core/dvbdev.c if (dvbdev->entity) { dvbdev 215 drivers/media/dvb-core/dvbdev.c media_device_unregister_entity(dvbdev->entity); dvbdev 216 drivers/media/dvb-core/dvbdev.c kfree(dvbdev->entity); dvbdev 217 drivers/media/dvb-core/dvbdev.c kfree(dvbdev->pads); dvbdev 218 drivers/media/dvb-core/dvbdev.c dvbdev->entity = NULL; dvbdev 219 drivers/media/dvb-core/dvbdev.c dvbdev->pads = NULL; dvbdev 222 drivers/media/dvb-core/dvbdev.c if (dvbdev->tsout_entity) { dvbdev 225 drivers/media/dvb-core/dvbdev.c for (i = 0; i < dvbdev->tsout_num_entities; i++) { dvbdev 226 drivers/media/dvb-core/dvbdev.c media_device_unregister_entity(&dvbdev->tsout_entity[i]); dvbdev 227 drivers/media/dvb-core/dvbdev.c kfree(dvbdev->tsout_entity[i].name); dvbdev 229 drivers/media/dvb-core/dvbdev.c kfree(dvbdev->tsout_entity); dvbdev 230 drivers/media/dvb-core/dvbdev.c kfree(dvbdev->tsout_pads); dvbdev 231 drivers/media/dvb-core/dvbdev.c dvbdev->tsout_entity = NULL; dvbdev 232 drivers/media/dvb-core/dvbdev.c dvbdev->tsout_pads = NULL; dvbdev 234 drivers/media/dvb-core/dvbdev.c dvbdev->tsout_num_entities = 0; dvbdev 237 drivers/media/dvb-core/dvbdev.c if (dvbdev->intf_devnode) { dvbdev 238 drivers/media/dvb-core/dvbdev.c media_devnode_remove(dvbdev->intf_devnode); dvbdev 239 drivers/media/dvb-core/dvbdev.c dvbdev->intf_devnode = NULL; dvbdev 242 drivers/media/dvb-core/dvbdev.c if (dvbdev->adapter->conn) { dvbdev 243 drivers/media/dvb-core/dvbdev.c media_device_unregister_entity(dvbdev->adapter->conn); dvbdev 244 drivers/media/dvb-core/dvbdev.c dvbdev->adapter->conn = NULL; dvbdev 245 drivers/media/dvb-core/dvbdev.c kfree(dvbdev->adapter->conn_pads); dvbdev 246 drivers/media/dvb-core/dvbdev.c dvbdev->adapter->conn_pads = NULL; dvbdev 252 drivers/media/dvb-core/dvbdev.c static int dvb_create_tsout_entity(struct dvb_device *dvbdev, dvbdev 257 drivers/media/dvb-core/dvbdev.c dvbdev->tsout_pads = kcalloc(npads, sizeof(*dvbdev->tsout_pads), dvbdev 259 drivers/media/dvb-core/dvbdev.c if (!dvbdev->tsout_pads) dvbdev 262 drivers/media/dvb-core/dvbdev.c dvbdev->tsout_entity = kcalloc(npads, sizeof(*dvbdev->tsout_entity), dvbdev 264 drivers/media/dvb-core/dvbdev.c if (!dvbdev->tsout_entity) dvbdev 267 drivers/media/dvb-core/dvbdev.c dvbdev->tsout_num_entities = npads; dvbdev 270 drivers/media/dvb-core/dvbdev.c struct media_pad *pads = &dvbdev->tsout_pads[i]; dvbdev 271 drivers/media/dvb-core/dvbdev.c struct media_entity *entity = &dvbdev->tsout_entity[i]; dvbdev 284 drivers/media/dvb-core/dvbdev.c ret = media_device_register_entity(dvbdev->adapter->mdev, dvbdev 295 drivers/media/dvb-core/dvbdev.c static int dvb_create_media_entity(struct dvb_device *dvbdev, dvbdev 305 drivers/media/dvb-core/dvbdev.c ret = dvb_create_tsout_entity(dvbdev, DVR_TSOUT, dvbdev 310 drivers/media/dvb-core/dvbdev.c ret = dvb_create_tsout_entity(dvbdev, DEMUX_TSOUT, dvbdev 333 drivers/media/dvb-core/dvbdev.c dvbdev->entity = kzalloc(sizeof(*dvbdev->entity), GFP_KERNEL); dvbdev 334 drivers/media/dvb-core/dvbdev.c if (!dvbdev->entity) dvbdev 337 drivers/media/dvb-core/dvbdev.c dvbdev->entity->name = dvbdev->name; dvbdev 340 drivers/media/dvb-core/dvbdev.c dvbdev->pads = kcalloc(npads, sizeof(*dvbdev->pads), dvbdev 342 drivers/media/dvb-core/dvbdev.c if (!dvbdev->pads) { dvbdev 343 drivers/media/dvb-core/dvbdev.c kfree(dvbdev->entity); dvbdev 350 drivers/media/dvb-core/dvbdev.c dvbdev->entity->function = MEDIA_ENT_F_DTV_DEMOD; dvbdev 351 drivers/media/dvb-core/dvbdev.c dvbdev->pads[0].flags = MEDIA_PAD_FL_SINK; dvbdev 352 drivers/media/dvb-core/dvbdev.c dvbdev->pads[1].flags = MEDIA_PAD_FL_SOURCE; dvbdev 355 drivers/media/dvb-core/dvbdev.c dvbdev->entity->function = MEDIA_ENT_F_TS_DEMUX; dvbdev 356 drivers/media/dvb-core/dvbdev.c dvbdev->pads[0].flags = MEDIA_PAD_FL_SINK; dvbdev 358 drivers/media/dvb-core/dvbdev.c dvbdev->pads[i].flags = MEDIA_PAD_FL_SOURCE; dvbdev 361 drivers/media/dvb-core/dvbdev.c dvbdev->entity->function = MEDIA_ENT_F_DTV_CA; dvbdev 362 drivers/media/dvb-core/dvbdev.c dvbdev->pads[0].flags = MEDIA_PAD_FL_SINK; dvbdev 363 drivers/media/dvb-core/dvbdev.c dvbdev->pads[1].flags = MEDIA_PAD_FL_SOURCE; dvbdev 367 drivers/media/dvb-core/dvbdev.c kfree(dvbdev->entity); dvbdev 368 drivers/media/dvb-core/dvbdev.c kfree(dvbdev->pads); dvbdev 369 drivers/media/dvb-core/dvbdev.c dvbdev->entity = NULL; dvbdev 370 drivers/media/dvb-core/dvbdev.c dvbdev->pads = NULL; dvbdev 375 drivers/media/dvb-core/dvbdev.c ret = media_entity_pads_init(dvbdev->entity, npads, dvbdev->pads); dvbdev 379 drivers/media/dvb-core/dvbdev.c ret = media_device_register_entity(dvbdev->adapter->mdev, dvbdev 380 drivers/media/dvb-core/dvbdev.c dvbdev->entity); dvbdev 385 drivers/media/dvb-core/dvbdev.c __func__, dvbdev->entity->name); dvbdev 391 drivers/media/dvb-core/dvbdev.c static int dvb_register_media_device(struct dvb_device *dvbdev, dvbdev 400 drivers/media/dvb-core/dvbdev.c if (!dvbdev->adapter->mdev) dvbdev 403 drivers/media/dvb-core/dvbdev.c ret = dvb_create_media_entity(dvbdev, type, demux_sink_pads); dvbdev 427 drivers/media/dvb-core/dvbdev.c dvbdev->intf_devnode = media_devnode_create(dvbdev->adapter->mdev, dvbdev 431 drivers/media/dvb-core/dvbdev.c if (!dvbdev->intf_devnode) dvbdev 442 drivers/media/dvb-core/dvbdev.c if (!dvbdev->entity) dvbdev 445 drivers/media/dvb-core/dvbdev.c link = media_create_intf_link(dvbdev->entity, dvbdev 446 drivers/media/dvb-core/dvbdev.c &dvbdev->intf_devnode->intf, dvbdev 459 drivers/media/dvb-core/dvbdev.c struct dvb_device *dvbdev; dvbdev 474 drivers/media/dvb-core/dvbdev.c *pdvbdev = dvbdev = kzalloc(sizeof(*dvbdev), GFP_KERNEL); dvbdev 476 drivers/media/dvb-core/dvbdev.c if (!dvbdev){ dvbdev 484 drivers/media/dvb-core/dvbdev.c kfree (dvbdev); dvbdev 489 drivers/media/dvb-core/dvbdev.c memcpy(dvbdev, template, sizeof(struct dvb_device)); dvbdev 490 drivers/media/dvb-core/dvbdev.c dvbdev->type = type; dvbdev 491 drivers/media/dvb-core/dvbdev.c dvbdev->id = id; dvbdev 492 drivers/media/dvb-core/dvbdev.c dvbdev->adapter = adap; dvbdev 493 drivers/media/dvb-core/dvbdev.c dvbdev->priv = priv; dvbdev 494 drivers/media/dvb-core/dvbdev.c dvbdev->fops = dvbdevfops; dvbdev 495 drivers/media/dvb-core/dvbdev.c init_waitqueue_head (&dvbdev->wait_queue); dvbdev 499 drivers/media/dvb-core/dvbdev.c list_add_tail (&dvbdev->list_head, &adap->device_list); dvbdev 509 drivers/media/dvb-core/dvbdev.c kfree(dvbdev); dvbdev 518 drivers/media/dvb-core/dvbdev.c dvbdev->minor = minor; dvbdev 519 drivers/media/dvb-core/dvbdev.c dvb_minors[minor] = dvbdev; dvbdev 522 drivers/media/dvb-core/dvbdev.c ret = dvb_register_media_device(dvbdev, type, minor, demux_sink_pads); dvbdev 527 drivers/media/dvb-core/dvbdev.c dvb_media_device_free(dvbdev); dvbdev 529 drivers/media/dvb-core/dvbdev.c kfree(dvbdev); dvbdev 538 drivers/media/dvb-core/dvbdev.c dvbdev, "dvb%d.%s%d", adap->num, dnames[type], id); dvbdev 552 drivers/media/dvb-core/dvbdev.c void dvb_remove_device(struct dvb_device *dvbdev) dvbdev 554 drivers/media/dvb-core/dvbdev.c if (!dvbdev) dvbdev 558 drivers/media/dvb-core/dvbdev.c dvb_minors[dvbdev->minor] = NULL; dvbdev 561 drivers/media/dvb-core/dvbdev.c dvb_media_device_free(dvbdev); dvbdev 563 drivers/media/dvb-core/dvbdev.c device_destroy(dvb_class, MKDEV(DVB_MAJOR, dvbdev->minor)); dvbdev 565 drivers/media/dvb-core/dvbdev.c list_del (&dvbdev->list_head); dvbdev 570 drivers/media/dvb-core/dvbdev.c void dvb_free_device(struct dvb_device *dvbdev) dvbdev 572 drivers/media/dvb-core/dvbdev.c if (!dvbdev) dvbdev 575 drivers/media/dvb-core/dvbdev.c kfree (dvbdev->fops); dvbdev 576 drivers/media/dvb-core/dvbdev.c kfree (dvbdev); dvbdev 581 drivers/media/dvb-core/dvbdev.c void dvb_unregister_device(struct dvb_device *dvbdev) dvbdev 583 drivers/media/dvb-core/dvbdev.c dvb_remove_device(dvbdev); dvbdev 584 drivers/media/dvb-core/dvbdev.c dvb_free_device(dvbdev); dvbdev 1015 drivers/media/dvb-core/dvbdev.c struct dvb_device *dvbdev = dev_get_drvdata(dev); dvbdev 1017 drivers/media/dvb-core/dvbdev.c add_uevent_var(env, "DVB_ADAPTER_NUM=%d", dvbdev->adapter->num); dvbdev 1018 drivers/media/dvb-core/dvbdev.c add_uevent_var(env, "DVB_DEVICE_TYPE=%s", dnames[dvbdev->type]); dvbdev 1019 drivers/media/dvb-core/dvbdev.c add_uevent_var(env, "DVB_DEVICE_NUM=%d", dvbdev->id); dvbdev 1025 drivers/media/dvb-core/dvbdev.c struct dvb_device *dvbdev = dev_get_drvdata(dev); dvbdev 1028 drivers/media/dvb-core/dvbdev.c dvbdev->adapter->num, dnames[dvbdev->type], dvbdev->id); dvbdev 174 drivers/media/firewire/firedtv-ci.c struct dvb_device *dvbdev = file->private_data; dvbdev 175 drivers/media/firewire/firedtv-ci.c struct firedtv *fdtv = dvbdev->priv; dvbdev 527 drivers/media/pci/bt8xx/dst_ca.c struct dvb_device *dvbdev; dvbdev 536 drivers/media/pci/bt8xx/dst_ca.c dvbdev = file->private_data; dvbdev 537 drivers/media/pci/bt8xx/dst_ca.c state = (struct dst_state *)dvbdev->priv; dvbdev 659 drivers/media/pci/bt8xx/dst_ca.c struct dvb_device *dvbdev; dvbdev 662 drivers/media/pci/bt8xx/dst_ca.c if (dvb_register_device(dvb_adapter, &dvbdev, &dvbdev_ca, dst, dvbdev 664 drivers/media/pci/bt8xx/dst_ca.c dst->dst_ca = dvbdev; dvbdev 42 drivers/media/pci/bt8xx/dst_ca.h struct dvb_device *dvbdev; dvbdev 1156 drivers/media/pci/cx88/cx88-blackbird.c struct cx8802_dev *dev = core->dvbdev; dvbdev 1222 drivers/media/pci/cx88/cx88-blackbird.c struct cx8802_dev *dev = core->dvbdev; dvbdev 1225 drivers/media/pci/cx88/cx88-blackbird.c blackbird_unregister_video(drv->core->dvbdev); dvbdev 883 drivers/media/pci/cx88/cx88-core.c if (core->dvbdev && vb2_is_busy(&core->dvbdev->vb2_mpegq)) dvbdev 196 drivers/media/pci/cx88/cx88-dvb.c if (!core->dvbdev) dvbdev 199 drivers/media/pci/cx88/cx88-dvb.c f = &core->dvbdev->frontends; dvbdev 1680 drivers/media/pci/cx88/cx88-dvb.c switch (core->dvbdev->frontends.active_fe_id) { dvbdev 1686 drivers/media/pci/cx88/cx88-dvb.c core->dvbdev->ts_gen_cntrl = 0x02; /* Parallel IO */ dvbdev 1693 drivers/media/pci/cx88/cx88-dvb.c core->dvbdev->ts_gen_cntrl = 0x0c; /* Serial IO */ dvbdev 1734 drivers/media/pci/cx88/cx88-dvb.c struct cx8802_dev *dev = drv->core->dvbdev; dvbdev 1766 drivers/media/pci/cx88/cx88-dvb.c fe = vb2_dvb_get_frontend(&core->dvbdev->frontends, i); dvbdev 1800 drivers/media/pci/cx88/cx88-dvb.c vb2_dvb_dealloc_frontends(&core->dvbdev->frontends); dvbdev 1808 drivers/media/pci/cx88/cx88-dvb.c struct cx8802_dev *dev = drv->core->dvbdev; dvbdev 723 drivers/media/pci/cx88/cx88-mpeg.c core->dvbdev = dev; dvbdev 741 drivers/media/pci/cx88/cx88-mpeg.c core->dvbdev = NULL; dvbdev 778 drivers/media/pci/cx88/cx88-mpeg.c dev->core->dvbdev = NULL; dvbdev 781 drivers/media/pci/cx88/cx88-video.c if (core->dvbdev && vb2_is_busy(&core->dvbdev->vb2_mpegq)) dvbdev 403 drivers/media/pci/cx88/cx88.h struct cx8802_dev *dvbdev; dvbdev 718 drivers/media/pci/ddbridge/ddbridge-core.c struct dvb_device *dvbdev = file->private_data; dvbdev 719 drivers/media/pci/ddbridge/ddbridge-core.c struct ddb_output *output = dvbdev->priv; dvbdev 747 drivers/media/pci/ddbridge/ddbridge-core.c struct dvb_device *dvbdev = file->private_data; dvbdev 748 drivers/media/pci/ddbridge/ddbridge-core.c struct ddb_output *output = dvbdev->priv; dvbdev 776 drivers/media/pci/ddbridge/ddbridge-core.c struct dvb_device *dvbdev = file->private_data; dvbdev 777 drivers/media/pci/ddbridge/ddbridge-core.c struct ddb_output *output = dvbdev->priv; dvbdev 793 drivers/media/pci/ddbridge/ddbridge-core.c struct dvb_device *dvbdev = file->private_data; dvbdev 797 drivers/media/pci/ddbridge/ddbridge-core.c if (dvbdev) { dvbdev 798 drivers/media/pci/ddbridge/ddbridge-core.c output = dvbdev->priv; dvbdev 817 drivers/media/pci/ddbridge/ddbridge-core.c struct dvb_device *dvbdev = file->private_data; dvbdev 821 drivers/media/pci/ddbridge/ddbridge-core.c if (dvbdev) { dvbdev 822 drivers/media/pci/ddbridge/ddbridge-core.c output = dvbdev->priv; dvbdev 39 drivers/media/pci/ngene/ngene-dvb.c struct dvb_device *dvbdev = file->private_data; dvbdev 40 drivers/media/pci/ngene/ngene-dvb.c struct ngene_channel *chan = dvbdev->priv; dvbdev 56 drivers/media/pci/ngene/ngene-dvb.c struct dvb_device *dvbdev = file->private_data; dvbdev 57 drivers/media/pci/ngene/ngene-dvb.c struct ngene_channel *chan = dvbdev->priv; dvbdev 79 drivers/media/pci/ngene/ngene-dvb.c struct dvb_device *dvbdev = file->private_data; dvbdev 80 drivers/media/pci/ngene/ngene-dvb.c struct ngene_channel *chan = dvbdev->priv; dvbdev 464 drivers/media/pci/pt3/pt3.c adap->dvb_adap.num, adap->dmxdev.dvbdev->id); dvbdev 471 drivers/media/pci/pt3/pt3.c adap->dvb_adap.num, adap->dmxdev.dvbdev->id); dvbdev 681 drivers/media/pci/ttpci/av7110.c struct dvb_device *dvbdev = file->private_data; dvbdev 682 drivers/media/pci/ttpci/av7110.c struct av7110 *av7110 = dvbdev->priv; dvbdev 927 drivers/media/pci/ttpci/av7110_av.c struct dvb_device *dvbdev = file->private_data; dvbdev 928 drivers/media/pci/ttpci/av7110_av.c struct av7110 *av7110 = dvbdev->priv; dvbdev 957 drivers/media/pci/ttpci/av7110_av.c struct dvb_device *dvbdev = file->private_data; dvbdev 958 drivers/media/pci/ttpci/av7110_av.c struct av7110 *av7110 = dvbdev->priv; dvbdev 979 drivers/media/pci/ttpci/av7110_av.c struct dvb_device *dvbdev = file->private_data; dvbdev 980 drivers/media/pci/ttpci/av7110_av.c struct av7110 *av7110 = dvbdev->priv; dvbdev 999 drivers/media/pci/ttpci/av7110_av.c struct dvb_device *dvbdev = file->private_data; dvbdev 1000 drivers/media/pci/ttpci/av7110_av.c struct av7110 *av7110 = dvbdev->priv; dvbdev 1123 drivers/media/pci/ttpci/av7110_av.c struct dvb_device *dvbdev = file->private_data; dvbdev 1124 drivers/media/pci/ttpci/av7110_av.c struct av7110 *av7110 = dvbdev->priv; dvbdev 1354 drivers/media/pci/ttpci/av7110_av.c struct dvb_device *dvbdev = file->private_data; dvbdev 1355 drivers/media/pci/ttpci/av7110_av.c struct av7110 *av7110 = dvbdev->priv; dvbdev 1503 drivers/media/pci/ttpci/av7110_av.c struct dvb_device *dvbdev = file->private_data; dvbdev 1504 drivers/media/pci/ttpci/av7110_av.c struct av7110 *av7110 = dvbdev->priv; dvbdev 1528 drivers/media/pci/ttpci/av7110_av.c struct dvb_device *dvbdev = file->private_data; dvbdev 1529 drivers/media/pci/ttpci/av7110_av.c struct av7110 *av7110 = dvbdev->priv; dvbdev 1542 drivers/media/pci/ttpci/av7110_av.c struct dvb_device *dvbdev = file->private_data; dvbdev 1543 drivers/media/pci/ttpci/av7110_av.c struct av7110 *av7110 = dvbdev->priv; dvbdev 1557 drivers/media/pci/ttpci/av7110_av.c struct dvb_device *dvbdev = file->private_data; dvbdev 1558 drivers/media/pci/ttpci/av7110_av.c struct av7110 *av7110 = dvbdev->priv; dvbdev 200 drivers/media/pci/ttpci/av7110_ca.c struct dvb_device *dvbdev = file->private_data; dvbdev 201 drivers/media/pci/ttpci/av7110_ca.c struct av7110 *av7110 = dvbdev->priv; dvbdev 214 drivers/media/pci/ttpci/av7110_ca.c struct dvb_device *dvbdev = file->private_data; dvbdev 215 drivers/media/pci/ttpci/av7110_ca.c struct av7110 *av7110 = dvbdev->priv; dvbdev 236 drivers/media/pci/ttpci/av7110_ca.c struct dvb_device *dvbdev = file->private_data; dvbdev 237 drivers/media/pci/ttpci/av7110_ca.c struct av7110 *av7110 = dvbdev->priv; dvbdev 324 drivers/media/pci/ttpci/av7110_ca.c struct dvb_device *dvbdev = file->private_data; dvbdev 325 drivers/media/pci/ttpci/av7110_ca.c struct av7110 *av7110 = dvbdev->priv; dvbdev 334 drivers/media/pci/ttpci/av7110_ca.c struct dvb_device *dvbdev = file->private_data; dvbdev 335 drivers/media/pci/ttpci/av7110_ca.c struct av7110 *av7110 = dvbdev->priv; dvbdev 45 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = vb2_get_drv_priv(q); dvbdev 46 drivers/media/usb/dvb-usb/cxusb-analog.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 65 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = vb2_get_drv_priv(vb->vb2_queue); dvbdev 66 drivers/media/usb/dvb-usb/cxusb-analog.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 68 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, OPS, "buffer init\n"); dvbdev 73 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, OPS, "buffer OK\n"); dvbdev 78 drivers/media/usb/dvb-usb/cxusb-analog.c static void cxusb_auxbuf_init(struct dvb_usb_device *dvbdev, dvbdev 82 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, AUXB, "initializing auxbuf of len %u\n", len); dvbdev 89 drivers/media/usb/dvb-usb/cxusb-analog.c static void cxusb_auxbuf_head_trim(struct dvb_usb_device *dvbdev, dvbdev 99 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, AUXB, dvbdev 112 drivers/media/usb/dvb-usb/cxusb-analog.c static bool cxusb_auxbuf_make_space(struct dvb_usb_device *dvbdev, dvbdev 123 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, AUXB, "freespace is %u\n", freespace); dvbdev 130 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, AUXB, "will overwrite %u bytes of buffer\n", dvbdev 133 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_auxbuf_head_trim(dvbdev, auxbuf, howmuch); dvbdev 139 drivers/media/usb/dvb-usb/cxusb-analog.c static bool cxusb_auxbuf_append_urb(struct dvb_usb_device *dvbdev, dvbdev 150 drivers/media/usb/dvb-usb/cxusb-analog.c ret = cxusb_auxbuf_make_space(dvbdev, auxbuf, len); dvbdev 178 drivers/media/usb/dvb-usb/cxusb-analog.c static bool cxusb_medion_cf_refc_fld_chg(struct dvb_usb_device *dvbdev, dvbdev 196 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, BT656, dvbdev 204 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, BT656, dvbdev 219 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, BT656, dvbdev 228 drivers/media/usb/dvb-usb/cxusb-analog.c static void cxusb_medion_cf_refc_start_sch(struct dvb_usb_device *dvbdev, dvbdev 244 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, BT656, "line start @ pos %u\n", dvbdev 250 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, BT656, "VBI start @ pos %u\n", dvbdev 257 drivers/media/usb/dvb-usb/cxusb-analog.c static void cxusb_medion_cf_refc_line_smpl(struct dvb_usb_device *dvbdev, dvbdev 268 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, BT656, dvbdev 277 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, BT656, dvbdev 287 drivers/media/usb/dvb-usb/cxusb-analog.c static void cxusb_medion_cf_refc_vbi_smpl(struct dvb_usb_device *dvbdev, dvbdev 295 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, BT656, "SAV in VBI samples @ pos %u\n", dvbdev 302 drivers/media/usb/dvb-usb/cxusb-analog.c static bool cxusb_medion_cf_ref_code(struct dvb_usb_device *dvbdev, dvbdev 310 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_medion_cf_refc_start_sch(dvbdev, bt656, firstfield, buf); dvbdev 312 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_medion_cf_refc_line_smpl(dvbdev, bt656, firstfield, dvbdev 316 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_medion_cf_refc_vbi_smpl(dvbdev, bt656, buf); dvbdev 323 drivers/media/usb/dvb-usb/cxusb-analog.c static bool cxusb_medion_cs_start_sch(struct dvb_usb_device *dvbdev, dvbdev 342 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, BT656, "line %u early start, pos %u\n", dvbdev 367 drivers/media/usb/dvb-usb/cxusb-analog.c static bool cxusb_medion_copy_samples(struct dvb_usb_device *dvbdev, dvbdev 374 drivers/media/usb/dvb-usb/cxusb-analog.c return cxusb_medion_cs_start_sch(dvbdev, auxbuf, bt656, dvbdev 384 drivers/media/usb/dvb-usb/cxusb-analog.c static bool cxusb_medion_copy_field(struct dvb_usb_device *dvbdev, dvbdev 411 drivers/media/usb/dvb-usb/cxusb-analog.c if (cxusb_medion_cf_refc_fld_chg(dvbdev, dvbdev 419 drivers/media/usb/dvb-usb/cxusb-analog.c if (cxusb_medion_cf_ref_code(dvbdev, bt656, dvbdev 430 drivers/media/usb/dvb-usb/cxusb-analog.c if (!cxusb_medion_copy_samples(dvbdev, auxbuf, bt656, dvbdev 436 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, BT656, dvbdev 448 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = cxdev->dvbdev; dvbdev 463 drivers/media/usb/dvb-usb/cxusb-analog.c dev_warn(&dvbdev->udev->dev, "no free buffers\n"); dvbdev 468 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, URB, "will copy field 1\n"); dvbdev 482 drivers/media/usb/dvb-usb/cxusb-analog.c if (!cxusb_medion_copy_field(dvbdev, &cxdev->auxbuf, bt656, dvbdev 492 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, URB, "will copy field 2\n"); dvbdev 499 drivers/media/usb/dvb-usb/cxusb-analog.c if (!cxusb_medion_copy_field(dvbdev, &cxdev->auxbuf, bt656, dvbdev 504 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_auxbuf_head_trim(dvbdev, &cxdev->auxbuf, bt656->pos); dvbdev 521 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, URB, "frame done\n"); dvbdev 523 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, URB, "frame skipped\n"); dvbdev 534 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = cxdev->dvbdev; dvbdev 554 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, URB, "URB %u status = %d\n", urbn, urb->status); dvbdev 563 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, URB, "URB %u data len = %lu\n", urbn, dvbdev 567 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, URB, "appending URB\n"); dvbdev 580 drivers/media/usb/dvb-usb/cxusb-analog.c !cxusb_auxbuf_append_urb(dvbdev, dvbdev 586 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, URB, "URB %u resubmit\n", urbn); dvbdev 590 drivers/media/usb/dvb-usb/cxusb-analog.c dev_err(&dvbdev->udev->dev, dvbdev 603 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = cxdev->dvbdev; dvbdev 609 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, URB, "worker called, stop_streaming = %d\n", dvbdev 622 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, URB, "rescheduling worker\n"); dvbdev 632 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = u->context; dvbdev 633 drivers/media/usb/dvb-usb/cxusb-analog.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 641 drivers/media/usb/dvb-usb/cxusb-analog.c dev_err(&dvbdev->udev->dev, dvbdev 646 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, URB, "URB %u complete\n", i); dvbdev 690 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = cxdev->dvbdev; dvbdev 708 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, URB, dvbdev 719 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_auxbuf_init(dvbdev, &cxdev->auxbuf, buf, auxbuflen); dvbdev 743 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = cxdev->dvbdev; dvbdev 758 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, OPS, dvbdev 767 drivers/media/usb/dvb-usb/cxusb-analog.c dev_warn(&dvbdev->udev->dev, dvbdev 775 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = vb2_get_drv_priv(q); dvbdev 776 drivers/media/usb/dvb-usb/cxusb-analog.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 781 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, OPS, "should start streaming\n"); dvbdev 793 drivers/media/usb/dvb-usb/cxusb-analog.c dev_err(&dvbdev->udev->dev, dvbdev 798 drivers/media/usb/dvb-usb/cxusb-analog.c ret = cxusb_ctrl_msg(dvbdev, CMD_STREAMING_ON, streamon_params, 2, dvbdev 801 drivers/media/usb/dvb-usb/cxusb-analog.c dev_err(&dvbdev->udev->dev, dvbdev 838 drivers/media/usb/dvb-usb/cxusb-analog.c surb->dev = dvbdev->udev; dvbdev 839 drivers/media/usb/dvb-usb/cxusb-analog.c surb->context = dvbdev; dvbdev 840 drivers/media/usb/dvb-usb/cxusb-analog.c surb->pipe = usb_rcvisocpipe(dvbdev->udev, 2); dvbdev 873 drivers/media/usb/dvb-usb/cxusb-analog.c dev_err(&dvbdev->udev->dev, dvbdev 887 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_ctrl_msg(dvbdev, CMD_STREAMING_OFF, NULL, 0, NULL, 0); dvbdev 900 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = vb2_get_drv_priv(q); dvbdev 901 drivers/media/usb/dvb-usb/cxusb-analog.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 905 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, OPS, "should stop streaming\n"); dvbdev 912 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_ctrl_msg(dvbdev, CMD_STREAMING_OFF, NULL, 0, NULL, 0); dvbdev 916 drivers/media/usb/dvb-usb/cxusb-analog.c dev_err(&dvbdev->udev->dev, "unable to stop stream (%d)\n", dvbdev 945 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = vb2_get_drv_priv(vb->vb2_queue); dvbdev 946 drivers/media/usb/dvb-usb/cxusb-analog.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 970 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = video_drvdata(file); dvbdev 972 drivers/media/usb/dvb-usb/cxusb-analog.c strscpy(cap->driver, dvbdev->udev->dev.driver->name, dvbdev 975 drivers/media/usb/dvb-usb/cxusb-analog.c usb_make_path(dvbdev->udev, cap->bus_info, sizeof(cap->bus_info)); dvbdev 996 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = video_drvdata(file); dvbdev 997 drivers/media/usb/dvb-usb/cxusb-analog.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 1015 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = video_drvdata(file); dvbdev 1016 drivers/media/usb/dvb-usb/cxusb-analog.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 1090 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = video_drvdata(file); dvbdev 1091 drivers/media/usb/dvb-usb/cxusb-analog.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 1108 drivers/media/usb/dvb-usb/cxusb-analog.c dev_warn(&dvbdev->udev->dev, dvbdev 1121 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = video_drvdata(file); dvbdev 1122 drivers/media/usb/dvb-usb/cxusb-analog.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 1132 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = cxdev->dvbdev; dvbdev 1135 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, OPS, dvbdev 1159 drivers/media/usb/dvb-usb/cxusb-analog.c dev_err(&dvbdev->udev->dev, dvbdev 1167 drivers/media/usb/dvb-usb/cxusb-analog.c dev_err(&dvbdev->udev->dev, dvbdev 1175 drivers/media/usb/dvb-usb/cxusb-analog.c dev_err(&dvbdev->udev->dev, dvbdev 1190 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = video_drvdata(file); dvbdev 1191 drivers/media/usb/dvb-usb/cxusb-analog.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 1218 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = video_drvdata(file); dvbdev 1219 drivers/media/usb/dvb-usb/cxusb-analog.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 1275 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = video_drvdata(file); dvbdev 1276 drivers/media/usb/dvb-usb/cxusb-analog.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 1306 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = video_drvdata(file); dvbdev 1307 drivers/media/usb/dvb-usb/cxusb-analog.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 1318 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = video_drvdata(file); dvbdev 1319 drivers/media/usb/dvb-usb/cxusb-analog.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 1349 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = video_drvdata(file); dvbdev 1350 drivers/media/usb/dvb-usb/cxusb-analog.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 1363 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = video_drvdata(file); dvbdev 1364 drivers/media/usb/dvb-usb/cxusb-analog.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 1372 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = video_drvdata(file); dvbdev 1373 drivers/media/usb/dvb-usb/cxusb-analog.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 1388 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, OPS, dvbdev 1394 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, OPS, "input %u detected standard is %lx\n", dvbdev 1403 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = video_drvdata(file); dvbdev 1404 drivers/media/usb/dvb-usb/cxusb-analog.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 1459 drivers/media/usb/dvb-usb/cxusb-analog.c int cxusb_medion_analog_init(struct dvb_usb_device *dvbdev) dvbdev 1461 drivers/media/usb/dvb-usb/cxusb-analog.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 1471 drivers/media/usb/dvb-usb/cxusb-analog.c ret = i2c_transfer(&dvbdev->i2c_adap, &tuner_analog_msg, 1); dvbdev 1473 drivers/media/usb/dvb-usb/cxusb-analog.c dev_warn(&dvbdev->udev->dev, dvbdev 1482 drivers/media/usb/dvb-usb/cxusb-analog.c dev_warn(&dvbdev->udev->dev, dvbdev 1488 drivers/media/usb/dvb-usb/cxusb-analog.c dev_warn(&dvbdev->udev->dev, dvbdev 1502 drivers/media/usb/dvb-usb/cxusb-analog.c dev_warn(&dvbdev->udev->dev, dvbdev 1520 drivers/media/usb/dvb-usb/cxusb-analog.c dev_warn(&dvbdev->udev->dev, dvbdev 1533 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = video_drvdata(f); dvbdev 1541 drivers/media/usb/dvb-usb/cxusb-analog.c ret = cxusb_medion_get(dvbdev, CXUSB_OPEN_ANALOG); dvbdev 1549 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, OPS, "got open\n"); dvbdev 1554 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_medion_put(dvbdev); dvbdev 1562 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = video_drvdata(f); dvbdev 1565 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, OPS, "got release\n"); dvbdev 1572 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_medion_put(dvbdev); dvbdev 1598 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = cxdev->dvbdev; dvbdev 1600 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, OPS, "v4l2 device release\n"); dvbdev 1614 drivers/media/usb/dvb-usb/cxusb-analog.c struct dvb_usb_device *dvbdev = video_get_drvdata(vdev); dvbdev 1616 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, OPS, "video device release\n"); dvbdev 1623 drivers/media/usb/dvb-usb/cxusb-analog.c static int cxusb_medion_register_analog_video(struct dvb_usb_device *dvbdev) dvbdev 1625 drivers/media/usb/dvb-usb/cxusb-analog.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 1633 drivers/media/usb/dvb-usb/cxusb-analog.c cxdev->videoqueue.drv_priv = dvbdev; dvbdev 1642 drivers/media/usb/dvb-usb/cxusb-analog.c dev_err(&dvbdev->udev->dev, dvbdev 1649 drivers/media/usb/dvb-usb/cxusb-analog.c dev_err(&dvbdev->udev->dev, "video device alloc failed\n"); dvbdev 1664 drivers/media/usb/dvb-usb/cxusb-analog.c video_set_drvdata(cxdev->videodev, dvbdev); dvbdev 1668 drivers/media/usb/dvb-usb/cxusb-analog.c dev_err(&dvbdev->udev->dev, dvbdev 1684 drivers/media/usb/dvb-usb/cxusb-analog.c static int cxusb_medion_register_analog_radio(struct dvb_usb_device *dvbdev) dvbdev 1686 drivers/media/usb/dvb-usb/cxusb-analog.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 1691 drivers/media/usb/dvb-usb/cxusb-analog.c dev_err(&dvbdev->udev->dev, "radio device alloc failed\n"); dvbdev 1703 drivers/media/usb/dvb-usb/cxusb-analog.c video_set_drvdata(cxdev->radiodev, dvbdev); dvbdev 1707 drivers/media/usb/dvb-usb/cxusb-analog.c dev_err(&dvbdev->udev->dev, dvbdev 1716 drivers/media/usb/dvb-usb/cxusb-analog.c static int cxusb_medion_register_analog_subdevs(struct dvb_usb_device *dvbdev) dvbdev 1718 drivers/media/usb/dvb-usb/cxusb-analog.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 1724 drivers/media/usb/dvb-usb/cxusb-analog.c &dvbdev->i2c_adap, dvbdev 1727 drivers/media/usb/dvb-usb/cxusb-analog.c dev_err(&dvbdev->udev->dev, "cx25840 not found\n"); dvbdev 1750 drivers/media/usb/dvb-usb/cxusb-analog.c dev_err(&dvbdev->udev->dev, dvbdev 1757 drivers/media/usb/dvb-usb/cxusb-analog.c &dvbdev->i2c_adap, dvbdev 1760 drivers/media/usb/dvb-usb/cxusb-analog.c dev_err(&dvbdev->udev->dev, "tuner not found\n"); dvbdev 1773 drivers/media/usb/dvb-usb/cxusb-analog.c &dvbdev->i2c_adap, dvbdev 1776 drivers/media/usb/dvb-usb/cxusb-analog.c dev_err(&dvbdev->udev->dev, "tda9887 not found\n"); dvbdev 1783 drivers/media/usb/dvb-usb/cxusb-analog.c int cxusb_medion_register_analog(struct dvb_usb_device *dvbdev) dvbdev 1785 drivers/media/usb/dvb-usb/cxusb-analog.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 1794 drivers/media/usb/dvb-usb/cxusb-analog.c ret = v4l2_device_register(&dvbdev->udev->dev, &cxdev->v4l2dev); dvbdev 1796 drivers/media/usb/dvb-usb/cxusb-analog.c dev_err(&dvbdev->udev->dev, dvbdev 1802 drivers/media/usb/dvb-usb/cxusb-analog.c ret = cxusb_medion_register_analog_subdevs(dvbdev); dvbdev 1812 drivers/media/usb/dvb-usb/cxusb-analog.c ret = cxusb_medion_register_analog_video(dvbdev); dvbdev 1816 drivers/media/usb/dvb-usb/cxusb-analog.c ret = cxusb_medion_register_analog_radio(dvbdev); dvbdev 1832 drivers/media/usb/dvb-usb/cxusb-analog.c void cxusb_medion_unregister_analog(struct dvb_usb_device *dvbdev) dvbdev 1834 drivers/media/usb/dvb-usb/cxusb-analog.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 1836 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, OPS, "unregistering analog\n"); dvbdev 1844 drivers/media/usb/dvb-usb/cxusb-analog.c cxusb_vprintk(dvbdev, OPS, "analog unregistered\n"); dvbdev 424 drivers/media/usb/dvb-usb/cxusb.c struct dvb_usb_device *dvbdev = adap->dev; dvbdev 425 drivers/media/usb/dvb-usb/cxusb.c bool is_medion = dvbdev->props.devices[0].warm_ids[0] == dvbdev 432 drivers/media/usb/dvb-usb/cxusb.c ret = cxusb_medion_get(dvbdev, CXUSB_OPEN_DIGITAL); dvbdev 438 drivers/media/usb/dvb-usb/cxusb.c cxusb_ctrl_msg(dvbdev, CMD_STREAMING_ON, buf, 2, NULL, 0); dvbdev 440 drivers/media/usb/dvb-usb/cxusb.c cxusb_ctrl_msg(dvbdev, CMD_STREAMING_OFF, NULL, 0, NULL, 0); dvbdev 443 drivers/media/usb/dvb-usb/cxusb.c cxusb_medion_put(dvbdev); dvbdev 703 drivers/media/usb/dvb-usb/cxusb.c struct dvb_usb_device *dvbdev = adap->dev; dvbdev 704 drivers/media/usb/dvb-usb/cxusb.c bool is_medion = dvbdev->props.devices[0].warm_ids[0] == dvbdev 708 drivers/media/usb/dvb-usb/cxusb.c &dvbdev->i2c_adap, 0x61, dvbdev 827 drivers/media/usb/dvb-usb/cxusb.c struct dvb_usb_device *dvbdev = adap->dev; dvbdev 830 drivers/media/usb/dvb-usb/cxusb.c return cxusb_medion_get(dvbdev, CXUSB_OPEN_DIGITAL); dvbdev 832 drivers/media/usb/dvb-usb/cxusb.c cxusb_medion_put(dvbdev); dvbdev 837 drivers/media/usb/dvb-usb/cxusb.c static int cxusb_medion_set_mode(struct dvb_usb_device *dvbdev, bool digital) dvbdev 839 drivers/media/usb/dvb-usb/cxusb.c struct cxusb_state *st = dvbdev->priv; dvbdev 848 drivers/media/usb/dvb-usb/cxusb.c mutex_lock(&dvbdev->i2c_mutex); dvbdev 851 drivers/media/usb/dvb-usb/cxusb.c ret = usb_set_interface(dvbdev->udev, 0, 6); dvbdev 853 drivers/media/usb/dvb-usb/cxusb.c dev_err(&dvbdev->udev->dev, dvbdev 859 drivers/media/usb/dvb-usb/cxusb.c ret = usb_set_interface(dvbdev->udev, 0, 1); dvbdev 861 drivers/media/usb/dvb-usb/cxusb.c dev_err(&dvbdev->udev->dev, dvbdev 869 drivers/media/usb/dvb-usb/cxusb.c ret = usb_clear_halt(dvbdev->udev, usb_rcvbulkpipe(dvbdev->udev, 1)); dvbdev 871 drivers/media/usb/dvb-usb/cxusb.c dev_warn(&dvbdev->udev->dev, dvbdev 875 drivers/media/usb/dvb-usb/cxusb.c ret = usb_clear_halt(dvbdev->udev, usb_sndbulkpipe(dvbdev->udev, 1)); dvbdev 877 drivers/media/usb/dvb-usb/cxusb.c dev_warn(&dvbdev->udev->dev, dvbdev 881 drivers/media/usb/dvb-usb/cxusb.c ret = cxusb_ctrl_msg(dvbdev, digital ? CMD_DIGITAL : CMD_ANALOG, dvbdev 884 drivers/media/usb/dvb-usb/cxusb.c dev_err(&dvbdev->udev->dev, "mode switch failed (%d)\n", dvbdev 894 drivers/media/usb/dvb-usb/cxusb.c mutex_unlock(&dvbdev->i2c_mutex); dvbdev 901 drivers/media/usb/dvb-usb/cxusb.c struct dvb_usb_device *dvbdev = adap->dev; dvbdev 902 drivers/media/usb/dvb-usb/cxusb.c bool is_medion = dvbdev->props.devices[0].warm_ids[0] == dvbdev 908 drivers/media/usb/dvb-usb/cxusb.c ret = cxusb_medion_set_mode(dvbdev, true); dvbdev 914 drivers/media/usb/dvb-usb/cxusb.c &dvbdev->i2c_adap); dvbdev 1425 drivers/media/usb/dvb-usb/cxusb.c int cxusb_medion_get(struct dvb_usb_device *dvbdev, dvbdev 1428 drivers/media/usb/dvb-usb/cxusb.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 1452 drivers/media/usb/dvb-usb/cxusb.c ret = _cxusb_power_ctrl(dvbdev, 1); dvbdev 1454 drivers/media/usb/dvb-usb/cxusb.c dev_warn(&dvbdev->udev->dev, dvbdev 1458 drivers/media/usb/dvb-usb/cxusb.c ret = cxusb_medion_set_mode(dvbdev, false); dvbdev 1462 drivers/media/usb/dvb-usb/cxusb.c ret = cxusb_medion_analog_init(dvbdev); dvbdev 1466 drivers/media/usb/dvb-usb/cxusb.c ret = _cxusb_power_ctrl(dvbdev, 1); dvbdev 1468 drivers/media/usb/dvb-usb/cxusb.c dev_warn(&dvbdev->udev->dev, dvbdev 1472 drivers/media/usb/dvb-usb/cxusb.c ret = cxusb_medion_set_mode(dvbdev, true); dvbdev 1499 drivers/media/usb/dvb-usb/cxusb.c void cxusb_medion_put(struct dvb_usb_device *dvbdev) dvbdev 1501 drivers/media/usb/dvb-usb/cxusb.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 1537 drivers/media/usb/dvb-usb/cxusb.c static int cxusb_medion_priv_init(struct dvb_usb_device *dvbdev) dvbdev 1539 drivers/media/usb/dvb-usb/cxusb.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 1541 drivers/media/usb/dvb-usb/cxusb.c cxdev->dvbdev = dvbdev; dvbdev 1548 drivers/media/usb/dvb-usb/cxusb.c static void cxusb_medion_priv_destroy(struct dvb_usb_device *dvbdev) dvbdev 1550 drivers/media/usb/dvb-usb/cxusb.c struct cxusb_medion_dev *cxdev = dvbdev->priv; dvbdev 1603 drivers/media/usb/dvb-usb/cxusb.c struct dvb_usb_device *dvbdev; dvbdev 1608 drivers/media/usb/dvb-usb/cxusb.c THIS_MODULE, &dvbdev, adapter_nr)) { dvbdev 1614 drivers/media/usb/dvb-usb/cxusb.c _cxusb_power_ctrl(dvbdev, 1); dvbdev 1615 drivers/media/usb/dvb-usb/cxusb.c ret = cxusb_medion_set_mode(dvbdev, false); dvbdev 1619 drivers/media/usb/dvb-usb/cxusb.c ret = cxusb_medion_register_analog(dvbdev); dvbdev 1621 drivers/media/usb/dvb-usb/cxusb.c cxusb_medion_set_mode(dvbdev, true); dvbdev 1622 drivers/media/usb/dvb-usb/cxusb.c _cxusb_power_ctrl(dvbdev, 0); dvbdev 1628 drivers/media/usb/dvb-usb/cxusb.c cxusb_medion_put(dvbdev); dvbdev 117 drivers/media/usb/dvb-usb/cxusb.h struct dvb_usb_device *dvbdev; dvbdev 170 drivers/media/usb/dvb-usb/cxusb.h #define cxusb_vprintk(dvbdev, lvl, ...) do { \ dvbdev 171 drivers/media/usb/dvb-usb/cxusb.h struct cxusb_medion_dev *_cxdev = (dvbdev)->priv; \ dvbdev 181 drivers/media/usb/dvb-usb/cxusb.h int cxusb_medion_analog_init(struct dvb_usb_device *dvbdev); dvbdev 182 drivers/media/usb/dvb-usb/cxusb.h int cxusb_medion_register_analog(struct dvb_usb_device *dvbdev); dvbdev 183 drivers/media/usb/dvb-usb/cxusb.h void cxusb_medion_unregister_analog(struct dvb_usb_device *dvbdev); dvbdev 185 drivers/media/usb/dvb-usb/cxusb.h static inline int cxusb_medion_analog_init(struct dvb_usb_device *dvbdev) dvbdev 190 drivers/media/usb/dvb-usb/cxusb.h static inline int cxusb_medion_register_analog(struct dvb_usb_device *dvbdev) dvbdev 195 drivers/media/usb/dvb-usb/cxusb.h static inline void cxusb_medion_unregister_analog(struct dvb_usb_device *dvbdev) dvbdev 200 drivers/media/usb/dvb-usb/cxusb.h int cxusb_medion_get(struct dvb_usb_device *dvbdev, dvbdev 202 drivers/media/usb/dvb-usb/cxusb.h void cxusb_medion_put(struct dvb_usb_device *dvbdev); dvbdev 175 include/media/dmxdev.h struct dvb_device *dvbdev; dvbdev 50 include/media/dvb_net.h struct dvb_device *dvbdev; dvbdev 78 include/media/dvb_net.h struct dvb_device *dvbdev; dvbdev 238 include/media/dvbdev.h void dvb_remove_device(struct dvb_device *dvbdev); dvbdev 247 include/media/dvbdev.h void dvb_free_device(struct dvb_device *dvbdev); dvbdev 259 include/media/dvbdev.h void dvb_unregister_device(struct dvb_device *dvbdev);