Lines Matching full:core
49 printk(KERN_DEBUG "%s/2-mpeg: " fmt, dev->core->name, ## arg)
52 printk(KERN_DEBUG "%s/2-mpeg: " fmt, core->name, ## arg)
59 if (dev->core->board.mpeg & CX88_MPEG_DVB) in request_module_async()
61 if (dev->core->board.mpeg & CX88_MPEG_BLACKBIRD) in request_module_async()
89 struct cx88_core *core = dev->core; in cx8802_start_dma() local
95 cx88_sram_channel_setup(core, &cx88_sram_channels[SRAM_CH28], in cx8802_start_dma()
104 dprintk( 1, "core->active_type_id = 0x%08x\n", core->active_type_id); in cx8802_start_dma()
106 if ( (core->active_type_id == CX88_MPEG_DVB) && in cx8802_start_dma()
107 (core->board.mpeg & CX88_MPEG_DVB) ) { in cx8802_start_dma()
115 switch (core->boardnr) { in cx8802_start_dma()
151 } else if ( (core->active_type_id == CX88_MPEG_BLACKBIRD) && in cx8802_start_dma()
152 (core->board.mpeg & CX88_MPEG_BLACKBIRD) ) { in cx8802_start_dma()
166 core->board.mpeg ); in cx8802_start_dma()
176 cx_set(MO_PCI_INTMSK, core->pci_irqmask | PCI_INT_TSINT); in cx8802_start_dma()
187 struct cx88_core *core = dev->core; in cx8802_stop_dma() local
364 cx88_sram_channel_dump(dev->core, &cx88_sram_channels[SRAM_CH28]); in cx8802_timeout()
380 struct cx88_core *core = dev->core; in cx8802_mpeg_irq() local
392 cx88_print_irqbits(core->name, "irq mpeg ", in cx8802_mpeg_irq()
398 printk(KERN_WARNING "%s: mpeg risc op code error\n",core->name); in cx8802_mpeg_irq()
400 cx88_sram_channel_dump(dev->core, &cx88_sram_channels[SRAM_CH28]); in cx8802_mpeg_irq()
408 cx88_wakeup(dev->core, &dev->mpegq, count); in cx8802_mpeg_irq()
434 struct cx88_core *core = dev->core; in cx8802_irq() local
440 (core->pci_irqmask | PCI_INT_TSINT); in cx8802_irq()
449 if (status & core->pci_irqmask) in cx8802_irq()
450 cx88_core_irq(core,status); in cx8802_irq()
457 core->name); in cx8802_irq()
467 struct cx88_core *core = dev->core; in cx8802_init_common() local
475 printk("%s/2: Oops: no 32bit PCI DMA ???\n",dev->core->name); in cx8802_init_common()
482 "latency: %d, mmio: 0x%llx\n", dev->core->name, in cx8802_init_common()
500 IRQF_SHARED | IRQF_DISABLED, dev->core->name, dev); in cx8802_init_common()
503 dev->core->name, dev->pci->irq); in cx8802_init_common()
506 cx_set(MO_PCI_INTMSK, core->pci_irqmask); in cx8802_init_common()
532 struct cx88_core *core = dev->core; in cx8802_suspend_common() local
538 printk("%s: suspend mpeg\n", core->name); in cx8802_suspend_common()
545 cx88_shutdown(dev->core); in cx8802_suspend_common()
558 struct cx88_core *core = dev->core; in cx8802_resume_common() local
565 dev->core->name); in cx8802_resume_common()
573 dev->core->name); in cx8802_resume_common()
582 cx88_reset(dev->core); in cx8802_resume_common()
587 printk("%s: resume mpeg\n", core->name); in cx8802_resume_common()
609 struct cx88_core *core = drv->core; in cx8802_request_acquire() local
613 if (core->active_type_id != CX88_BOARD_NONE && in cx8802_request_acquire()
614 core->active_type_id != drv->type_id) in cx8802_request_acquire()
619 core->last_analog_input = core->input; in cx8802_request_acquire()
620 core->input = 0; in cx8802_request_acquire()
622 i < (sizeof(core->board.input) / sizeof(struct cx88_input)); in cx8802_request_acquire()
624 if (core->board.input[i].type == CX88_VMUX_DVB) { in cx8802_request_acquire()
625 core->input = i; in cx8802_request_acquire()
633 core->active_ref++; in cx8802_request_acquire()
634 if (core->active_type_id == CX88_BOARD_NONE) { in cx8802_request_acquire()
635 core->active_type_id = drv->type_id; in cx8802_request_acquire()
648 struct cx88_core *core = drv->core; in cx8802_request_release() local
650 if (drv->advise_release && --core->active_ref == 0) in cx8802_request_release()
655 core->input = core->last_analog_input; in cx8802_request_release()
659 core->active_type_id = CX88_BOARD_NONE; in cx8802_request_release()
709 dev->core->name, dev->pci->subsystem_vendor, in cx8802_register_driver()
710 dev->pci->subsystem_device, dev->core->board.name, in cx8802_register_driver()
711 dev->core->boardnr); in cx8802_register_driver()
721 drv->core = dev->core; in cx8802_register_driver()
728 mutex_lock(&drv->core->lock); in cx8802_register_driver()
736 dev->core->name, err); in cx8802_register_driver()
738 mutex_unlock(&drv->core->lock); in cx8802_register_driver()
763 dev->core->name, dev->pci->subsystem_vendor, in cx8802_unregister_driver()
764 dev->pci->subsystem_device, dev->core->board.name, in cx8802_unregister_driver()
765 dev->core->boardnr); in cx8802_unregister_driver()
767 mutex_lock(&dev->core->lock); in cx8802_unregister_driver()
780 "failed (%d)\n", dev->core->name, err); in cx8802_unregister_driver()
783 mutex_unlock(&dev->core->lock); in cx8802_unregister_driver()
796 struct cx88_core *core; in cx8802_probe() local
800 core = cx88_core_get(pci_dev); in cx8802_probe()
801 if (NULL == core) in cx8802_probe()
804 printk("%s/2: cx2388x 8802 Driver Manager\n", core->name); in cx8802_probe()
807 if (!core->board.mpeg) in cx8802_probe()
815 dev->core = core; in cx8802_probe()
818 core->dvbdev = dev; in cx8802_probe()
836 core->dvbdev = NULL; in cx8802_probe()
837 cx88_core_put(core,pci_dev); in cx8802_probe()
851 mutex_lock(&dev->core->lock); in cx8802_remove()
859 dev->core->name); in cx8802_remove()
867 "failed (%d)\n", dev->core->name, err); in cx8802_remove()
872 mutex_unlock(&dev->core->lock); in cx8802_remove()
875 dev->core->dvbdev = NULL; in cx8802_remove()
879 cx88_core_put(dev->core,dev->pci); in cx8802_remove()