Lines Matching refs:ec

79 	struct expansion_card	*ec;  member
94 cumanascsi_2_irqenable(struct expansion_card *ec, int irqnr) in cumanascsi_2_irqenable() argument
96 struct cumanascsi2_info *info = ec->irq_data; in cumanascsi_2_irqenable()
106 cumanascsi_2_irqdisable(struct expansion_card *ec, int irqnr) in cumanascsi_2_irqdisable() argument
108 struct cumanascsi2_info *info = ec->irq_data; in cumanascsi_2_irqdisable()
305 host->hostt->name, info->info.scsi.type, info->ec->slot_no, in cumanascsi_2_info()
378 static int cumanascsi2_probe(struct expansion_card *ec, in cumanascsi2_probe() argument
386 ret = ecard_request_resources(ec); in cumanascsi2_probe()
390 base = ecardm_iomap(ec, ECARD_RES_MEMC, 0, 0); in cumanascsi2_probe()
403 ecard_set_drvdata(ec, host); in cumanascsi2_probe()
406 info->ec = ec; in cumanascsi2_probe()
409 cumanascsi_2_terminator_ctl(host, term[ec->slot_no]); in cumanascsi2_probe()
413 info->info.scsi.irq = ec->irq; in cumanascsi2_probe()
414 info->info.scsi.dma = ec->dma; in cumanascsi2_probe()
427 ec->irqaddr = info->base + CUMANASCSI2_STATUS; in cumanascsi2_probe()
428 ec->irqmask = STATUS_INT; in cumanascsi2_probe()
430 ecard_setirq(ec, &cumanascsi_2_ops, info); in cumanascsi2_probe()
436 ret = request_irq(ec->irq, cumanascsi_2_intr, in cumanascsi2_probe()
440 host->host_no, ec->irq, ret); in cumanascsi2_probe()
455 ret = fas216_add(host, &ec->dev); in cumanascsi2_probe()
461 free_irq(ec->irq, info); in cumanascsi2_probe()
470 ecard_release_resources(ec); in cumanascsi2_probe()
476 static void cumanascsi2_remove(struct expansion_card *ec) in cumanascsi2_remove() argument
478 struct Scsi_Host *host = ecard_get_drvdata(ec); in cumanascsi2_remove()
481 ecard_set_drvdata(ec, NULL); in cumanascsi2_remove()
486 free_irq(ec->irq, info); in cumanascsi2_remove()
490 ecard_release_resources(ec); in cumanascsi2_remove()