Lines Matching refs:card

3  * Module for AVM B1 PCI-card.
40 MODULE_DESCRIPTION("CAPI4Linux: Driver for AVM B1 PCI card");
55 cinfo->card ? cinfo->card->port : 0x0,
56 cinfo->card ? cinfo->card->irq : 0,
57 cinfo->card ? cinfo->card->revision : 0
66 avmcard *card;
70 card = b1_alloc_card(1);
71 if (!card) {
77 cinfo = card->ctrlinfo;
78 sprintf(card->name, "b1pci-%x", p->port);
79 card->port = p->port;
80 card->irq = p->irq;
81 card->cardtype = avm_b1pci;
83 if (!request_region(card->port, AVMB1_PORTLEN, card->name)) {
85 card->port, card->port + AVMB1_PORTLEN);
89 b1_reset(card->port);
90 retval = b1_detect(card->port, card->cardtype);
92 printk(KERN_NOTICE "b1pci: NO card at 0x%x (%d)\n",
93 card->port, retval);
97 b1_reset(card->port);
98 b1_getrevision(card);
100 retval = request_irq(card->irq, b1_interrupt, IRQF_SHARED, card->name, card);
102 printk(KERN_ERR "b1pci: unable to get IRQ %d.\n", card->irq);
116 strcpy(cinfo->capi_ctrl.name, card->name);
125 if (card->revision >= 4) {
127 card->port, card->irq, card->revision);
130 card->port, card->irq, card->revision);
133 pci_set_drvdata(pdev, card);
137 free_irq(card->irq, card);
139 release_region(card->port, AVMB1_PORTLEN);
141 b1_free_card(card);
148 avmcard *card = pci_get_drvdata(pdev);
149 avmctrl_info *cinfo = card->ctrlinfo;
150 unsigned int port = card->port;
156 free_irq(card->irq, card);
157 release_region(card->port, AVMB1_PORTLEN);
158 b1_free_card(card);
173 cinfo->card ? cinfo->card->port : 0x0,
174 cinfo->card ? cinfo->card->irq : 0,
175 cinfo->card ? cinfo->card->membase : 0,
176 cinfo->card ? cinfo->card->revision : 0
185 avmcard *card;
189 card = b1_alloc_card(1);
190 if (!card) {
196 card->dma = avmcard_dma_alloc("b1pci", pdev, 2048 + 128, 2048 + 128);
197 if (!card->dma) {
203 cinfo = card->ctrlinfo;
204 sprintf(card->name, "b1pciv4-%x", p->port);
205 card->port = p->port;
206 card->irq = p->irq;
207 card->membase = p->membase;
208 card->cardtype = avm_b1pci;
210 if (!request_region(card->port, AVMB1_PORTLEN, card->name)) {
212 card->port, card->port + AVMB1_PORTLEN);
217 card->mbase = ioremap(card->membase, 64);
218 if (!card->mbase) {
220 card->membase);
225 b1dma_reset(card);
227 retval = b1pciv4_detect(card);
229 printk(KERN_NOTICE "b1pci: NO card at 0x%x (%d)\n",
230 card->port, retval);
234 b1dma_reset(card);
235 b1_getrevision(card);
237 retval = request_irq(card->irq, b1dma_interrupt, IRQF_SHARED, card->name, card);
240 card->irq);
255 strcpy(cinfo->capi_ctrl.name, card->name);
262 card->cardnr = cinfo->capi_ctrl.cnr;
265 card->port, card->irq, card->membase, card->revision);
267 pci_set_drvdata(pdev, card);
271 free_irq(card->irq, card);
273 iounmap(card->mbase);
275 release_region(card->port, AVMB1_PORTLEN);
277 avmcard_dma_free(card->dma);
279 b1_free_card(card);
287 avmcard *card = pci_get_drvdata(pdev);
288 avmctrl_info *cinfo = card->ctrlinfo;
290 b1dma_reset(card);
293 free_irq(card->irq, card);
294 iounmap(card->mbase);
295 release_region(card->port, AVMB1_PORTLEN);
296 avmcard_dma_free(card->dma);
297 b1_free_card(card);
350 avmcard *card = pci_get_drvdata(pdev);
352 if (card->dma)