Lines Matching refs:mantis

68 	struct mantis_pci *mantis;  in mantis_irq_handler()  local
71 mantis = (struct mantis_pci *) dev_id; in mantis_irq_handler()
72 if (unlikely(!mantis)) in mantis_irq_handler()
74 ca = mantis->mantis_ca; in mantis_irq_handler()
90 mantis->mantis_int_stat = stat; in mantis_irq_handler()
91 mantis->mantis_int_mask = mask; in mantis_irq_handler()
98 mantis->gpif_status = rst_stat; in mantis_irq_handler()
104 spin_lock(&mantis->intmask_lock); in mantis_irq_handler()
107 spin_unlock(&mantis->intmask_lock); in mantis_irq_handler()
108 schedule_work(&mantis->uart_work); in mantis_irq_handler()
127 mantis->busy_block = (stat & MANTIS_INT_RISCSTAT) >> 28; in mantis_irq_handler()
128 queue_work(system_bh_wq, &mantis->bh_work); in mantis_irq_handler()
132 wake_up(&mantis->i2c_wq); in mantis_irq_handler()
157 struct mantis_pci *mantis; in mantis_pci_probe() local
161 mantis = kzalloc(sizeof(*mantis), GFP_KERNEL); in mantis_pci_probe()
162 if (!mantis) in mantis_pci_probe()
166 mantis->num = devs; in mantis_pci_probe()
167 mantis->verbose = verbose; in mantis_pci_probe()
168 mantis->pdev = pdev; in mantis_pci_probe()
171 mantis->hwconfig = config; in mantis_pci_probe()
172 mantis->rc_map_name = drvdata->rc_map_name; in mantis_pci_probe()
174 spin_lock_init(&mantis->intmask_lock); in mantis_pci_probe()
176 err = mantis_pci_init(mantis); in mantis_pci_probe()
182 err = mantis_stream_control(mantis, STREAM_TO_HIF); in mantis_pci_probe()
188 err = mantis_i2c_init(mantis); in mantis_pci_probe()
194 err = mantis_get_mac(mantis); in mantis_pci_probe()
200 err = mantis_dma_init(mantis); in mantis_pci_probe()
206 err = mantis_dvb_init(mantis); in mantis_pci_probe()
212 err = mantis_input_init(mantis); in mantis_pci_probe()
219 err = mantis_uart_init(mantis); in mantis_pci_probe()
230 mantis_input_exit(mantis); in mantis_pci_probe()
233 mantis_dvb_exit(mantis); in mantis_pci_probe()
236 mantis_dma_exit(mantis); in mantis_pci_probe()
239 mantis_i2c_exit(mantis); in mantis_pci_probe()
242 mantis_pci_exit(mantis); in mantis_pci_probe()
245 kfree(mantis); in mantis_pci_probe()
252 struct mantis_pci *mantis = pci_get_drvdata(pdev); in mantis_pci_remove() local
254 if (mantis) { in mantis_pci_remove()
256 mantis_uart_exit(mantis); in mantis_pci_remove()
257 mantis_input_exit(mantis); in mantis_pci_remove()
258 mantis_dvb_exit(mantis); in mantis_pci_remove()
259 mantis_dma_exit(mantis); in mantis_pci_remove()
260 mantis_i2c_exit(mantis); in mantis_pci_remove()
261 mantis_pci_exit(mantis); in mantis_pci_remove()
262 kfree(mantis); in mantis_pci_remove()