dvbnet 78 drivers/media/common/b2c2/flexcop-common.h struct dvb_net dvbnet; dvbnet 121 drivers/media/common/b2c2/flexcop.c ret = dvb_net_init(&fc->dvb_adapter, &fc->dvbnet, &fc->demux.dmx); dvbnet 148 drivers/media/common/b2c2/flexcop.c dvb_net_release(&fc->dvbnet); dvbnet 1328 drivers/media/dvb-core/dvb_net.c static int get_if(struct dvb_net *dvbnet) dvbnet 1333 drivers/media/dvb-core/dvb_net.c if (!dvbnet->state[i]) dvbnet 1339 drivers/media/dvb-core/dvb_net.c dvbnet->state[i]=1; dvbnet 1343 drivers/media/dvb-core/dvb_net.c static int dvb_net_add_if(struct dvb_net *dvbnet, u16 pid, u8 feedtype) dvbnet 1352 drivers/media/dvb-core/dvb_net.c if ((if_num = get_if(dvbnet)) < 0) dvbnet 1360 drivers/media/dvb-core/dvb_net.c if (dvbnet->dvbdev->id) dvbnet 1362 drivers/media/dvb-core/dvb_net.c dvbnet->dvbdev->adapter->num, dvbnet->dvbdev->id, if_num); dvbnet 1366 drivers/media/dvb-core/dvb_net.c dvbnet->dvbdev->adapter->num, if_num); dvbnet 1369 drivers/media/dvb-core/dvb_net.c memcpy(net->dev_addr, dvbnet->dvbdev->adapter->proposed_mac, 6); dvbnet 1371 drivers/media/dvb-core/dvb_net.c dvbnet->device[if_num] = net; dvbnet 1375 drivers/media/dvb-core/dvb_net.c priv->demux = dvbnet->demux; dvbnet 1390 drivers/media/dvb-core/dvb_net.c dvbnet->device[if_num] = NULL; dvbnet 1399 drivers/media/dvb-core/dvb_net.c static int dvb_net_remove_if(struct dvb_net *dvbnet, unsigned long num) dvbnet 1401 drivers/media/dvb-core/dvb_net.c struct net_device *net = dvbnet->device[num]; dvbnet 1404 drivers/media/dvb-core/dvb_net.c if (!dvbnet->state[num]) dvbnet 1415 drivers/media/dvb-core/dvb_net.c dvbnet->state[num]=0; dvbnet 1416 drivers/media/dvb-core/dvb_net.c dvbnet->device[num] = NULL; dvbnet 1426 drivers/media/dvb-core/dvb_net.c struct dvb_net *dvbnet = dvbdev->priv; dvbnet 1432 drivers/media/dvb-core/dvb_net.c if (mutex_lock_interruptible(&dvbnet->ioctl_mutex)) dvbnet 1451 drivers/media/dvb-core/dvb_net.c result=dvb_net_add_if(dvbnet, dvbnetif->pid, dvbnetif->feedtype); dvbnet 1467 drivers/media/dvb-core/dvb_net.c !dvbnet->state[dvbnetif->if_num]) { dvbnet 1472 drivers/media/dvb-core/dvb_net.c netdev = dvbnet->device[dvbnetif->if_num]; dvbnet 1489 drivers/media/dvb-core/dvb_net.c ret = dvb_net_remove_if(dvbnet, (unsigned long) parg); dvbnet 1511 drivers/media/dvb-core/dvb_net.c result=dvb_net_add_if(dvbnet, dvbnetif->pid, DVB_NET_FEEDTYPE_MPE); dvbnet 1527 drivers/media/dvb-core/dvb_net.c !dvbnet->state[dvbnetif->if_num]) { dvbnet 1532 drivers/media/dvb-core/dvb_net.c netdev = dvbnet->device[dvbnetif->if_num]; dvbnet 1544 drivers/media/dvb-core/dvb_net.c mutex_unlock(&dvbnet->ioctl_mutex); dvbnet 1557 drivers/media/dvb-core/dvb_net.c struct dvb_net *dvbnet = dvbdev->priv; dvbnet 1561 drivers/media/dvb-core/dvb_net.c if(dvbdev->users == 1 && dvbnet->exit == 1) dvbnet 1585 drivers/media/dvb-core/dvb_net.c void dvb_net_release (struct dvb_net *dvbnet) dvbnet 1589 drivers/media/dvb-core/dvb_net.c dvbnet->exit = 1; dvbnet 1590 drivers/media/dvb-core/dvb_net.c if (dvbnet->dvbdev->users < 1) dvbnet 1591 drivers/media/dvb-core/dvb_net.c wait_event(dvbnet->dvbdev->wait_queue, dvbnet 1592 drivers/media/dvb-core/dvb_net.c dvbnet->dvbdev->users==1); dvbnet 1594 drivers/media/dvb-core/dvb_net.c dvb_unregister_device(dvbnet->dvbdev); dvbnet 1597 drivers/media/dvb-core/dvb_net.c if (!dvbnet->state[i]) dvbnet 1599 drivers/media/dvb-core/dvb_net.c dvb_net_remove_if(dvbnet, i); dvbnet 1605 drivers/media/dvb-core/dvb_net.c int dvb_net_init (struct dvb_adapter *adap, struct dvb_net *dvbnet, dvbnet 1610 drivers/media/dvb-core/dvb_net.c mutex_init(&dvbnet->ioctl_mutex); dvbnet 1611 drivers/media/dvb-core/dvb_net.c dvbnet->demux = dmx; dvbnet 1614 drivers/media/dvb-core/dvb_net.c dvbnet->state[i] = 0; dvbnet 1616 drivers/media/dvb-core/dvb_net.c return dvb_register_device(adap, &dvbnet->dvbdev, &dvbdev_net, dvbnet 1617 drivers/media/dvb-core/dvb_net.c dvbnet, DVB_DEVICE_NET, 0); dvbnet 202 drivers/media/firewire/firedtv-dvb.c err = dvb_net_init(&fdtv->adapter, &fdtv->dvbnet, &fdtv->demux.dmx); dvbnet 218 drivers/media/firewire/firedtv-dvb.c dvb_net_release(&fdtv->dvbnet); dvbnet 238 drivers/media/firewire/firedtv-dvb.c dvb_net_release(&fdtv->dvbnet); dvbnet 80 drivers/media/firewire/firedtv.h struct dvb_net dvbnet; dvbnet 774 drivers/media/pci/bt8xx/dvb-bt8xx.c result = dvb_net_init(&card->dvb_adapter, &card->dvbnet, &card->demux.dmx); dvbnet 921 drivers/media/pci/bt8xx/dvb-bt8xx.c dvb_net_release(&card->dvbnet); dvbnet 44 drivers/media/pci/bt8xx/dvb-bt8xx.h struct dvb_net dvbnet; dvbnet 327 drivers/media/pci/cx18/cx18-driver.h struct dvb_net dvbnet; dvbnet 395 drivers/media/pci/cx18/cx18-dvb.c dvb_net_init(dvb_adapter, &dvb->dvbnet, dmx); dvbnet 441 drivers/media/pci/cx18/cx18-dvb.c dvb_net_release(&dvb->dvbnet); dvbnet 1326 drivers/media/pci/ddbridge/ddbridge-core.c dvb_net_release(&dvb->dvbnet); dvbnet 1502 drivers/media/pci/ddbridge/ddbridge-core.c ret = dvb_net_init(adap, &dvb->dvbnet, dvb->dmxdev.demux); dvbnet 172 drivers/media/pci/ddbridge/ddbridge.h struct dvb_net dvbnet; dvbnet 333 drivers/media/pci/dm1105/dm1105.c struct dvb_net dvbnet; dvbnet 1117 drivers/media/pci/dm1105/dm1105.c ret = dvb_net_init(dvb_adapter, &dev->dvbnet, dmx); dvbnet 1145 drivers/media/pci/dm1105/dm1105.c dvb_net_release(&dev->dvbnet); dvbnet 1184 drivers/media/pci/dm1105/dm1105.c dvb_net_release(&dev->dvbnet); dvbnet 143 drivers/media/pci/mantis/mantis_common.h struct dvb_net dvbnet; dvbnet 207 drivers/media/pci/mantis/mantis_dvb.c dvb_net_init(&mantis->dvb_adapter, &mantis->dvbnet, &mantis->demux.dmx); dvbnet 239 drivers/media/pci/mantis/mantis_dvb.c dvb_net_release(&mantis->dvbnet); dvbnet 277 drivers/media/pci/mantis/mantis_dvb.c dvb_net_release(&mantis->dvbnet); dvbnet 1422 drivers/media/pci/ngene/ngene-core.c dvb_net_release(&chan->dvbnet); dvbnet 1525 drivers/media/pci/ngene/ngene-core.c ret = dvb_net_init(adapter, &chan->dvbnet, &chan->demux.dmx); dvbnet 653 drivers/media/pci/ngene/ngene.h struct dvb_net dvbnet; dvbnet 96 drivers/media/pci/pluto2/pluto2.c struct dvb_net dvbnet; dvbnet 696 drivers/media/pci/pluto2/pluto2.c dvb_net_init(dvb_adapter, &pluto->dvbnet, dmx); dvbnet 737 drivers/media/pci/pluto2/pluto2.c dvb_net_release(&pluto->dvbnet); dvbnet 870 drivers/media/pci/smipcie/smipcie-main.c ret = dvb_net_init(adap, &port->dvbnet, port->dmxdev.demux); dvbnet 890 drivers/media/pci/smipcie/smipcie-main.c dvb_net_release(&port->dvbnet); dvbnet 268 drivers/media/pci/smipcie/smipcie.h struct dvb_net dvbnet; dvbnet 82 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c struct dvb_net dvbnet; dvbnet 1731 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c if (dvb_net_init(&ttusb->adapter, &ttusb->dvbnet, &ttusb->dvb_demux.dmx)) { dvbnet 1767 drivers/media/usb/ttusb-budget/dvb-ttusb-budget.c dvb_net_release(&ttusb->dvbnet); dvbnet 65 include/media/dvb_net.h int dvb_net_init(struct dvb_adapter *adap, struct dvb_net *dvbnet, dvbnet 73 include/media/dvb_net.h void dvb_net_release(struct dvb_net *dvbnet); dvbnet 81 include/media/dvb_net.h static inline void dvb_net_release(struct dvb_net *dvbnet) dvbnet 86 include/media/dvb_net.h struct dvb_net *dvbnet, struct dmx_demux *dmx)