Lines Matching refs:mantis
59 struct mantis_pci *mantis; in hopper_irq_handler() local
62 mantis = (struct mantis_pci *) dev_id; in hopper_irq_handler()
63 if (unlikely(!mantis)) in hopper_irq_handler()
65 ca = mantis->mantis_ca; in hopper_irq_handler()
81 mantis->mantis_int_stat = stat; in hopper_irq_handler()
82 mantis->mantis_int_mask = mask; in hopper_irq_handler()
89 mantis->gpif_status = rst_stat; in hopper_irq_handler()
95 spin_lock(&mantis->intmask_lock); in hopper_irq_handler()
98 spin_unlock(&mantis->intmask_lock); in hopper_irq_handler()
99 schedule_work(&mantis->uart_work); in hopper_irq_handler()
118 mantis->busy_block = (stat & MANTIS_INT_RISCSTAT) >> 28; in hopper_irq_handler()
119 tasklet_schedule(&mantis->tasklet); in hopper_irq_handler()
123 wake_up(&mantis->i2c_wq); in hopper_irq_handler()
148 struct mantis_pci *mantis; in hopper_pci_probe() local
152 mantis = kzalloc(sizeof(*mantis), GFP_KERNEL); in hopper_pci_probe()
153 if (!mantis) { in hopper_pci_probe()
159 mantis->num = devs; in hopper_pci_probe()
160 mantis->verbose = verbose; in hopper_pci_probe()
161 mantis->pdev = pdev; in hopper_pci_probe()
164 mantis->hwconfig = config; in hopper_pci_probe()
165 mantis->rc_map_name = drvdata->rc_map_name; in hopper_pci_probe()
167 spin_lock_init(&mantis->intmask_lock); in hopper_pci_probe()
169 err = mantis_pci_init(mantis); in hopper_pci_probe()
175 err = mantis_stream_control(mantis, STREAM_TO_HIF); in hopper_pci_probe()
181 err = mantis_i2c_init(mantis); in hopper_pci_probe()
187 err = mantis_get_mac(mantis); in hopper_pci_probe()
193 err = mantis_dma_init(mantis); in hopper_pci_probe()
199 err = mantis_dvb_init(mantis); in hopper_pci_probe()
210 mantis_dma_exit(mantis); in hopper_pci_probe()
214 mantis_i2c_exit(mantis); in hopper_pci_probe()
218 mantis_pci_exit(mantis); in hopper_pci_probe()
222 kfree(mantis); in hopper_pci_probe()
230 struct mantis_pci *mantis = pci_get_drvdata(pdev); in hopper_pci_remove() local
232 if (mantis) { in hopper_pci_remove()
233 mantis_dvb_exit(mantis); in hopper_pci_remove()
234 mantis_dma_exit(mantis); in hopper_pci_remove()
235 mantis_i2c_exit(mantis); in hopper_pci_remove()
236 mantis_pci_exit(mantis); in hopper_pci_remove()
237 kfree(mantis); in hopper_pci_remove()