Lines Matching refs:ec

75 	struct expansion_card	*ec;  member
90 cumanascsi_2_irqenable(struct expansion_card *ec, int irqnr) in cumanascsi_2_irqenable() argument
92 struct cumanascsi2_info *info = ec->irq_data; in cumanascsi_2_irqenable()
102 cumanascsi_2_irqdisable(struct expansion_card *ec, int irqnr) in cumanascsi_2_irqdisable() argument
104 struct cumanascsi2_info *info = ec->irq_data; in cumanascsi_2_irqdisable()
301 host->hostt->name, info->info.scsi.type, info->ec->slot_no, in cumanascsi_2_info()
374 static int cumanascsi2_probe(struct expansion_card *ec, in cumanascsi2_probe() argument
382 ret = ecard_request_resources(ec); in cumanascsi2_probe()
386 base = ecardm_iomap(ec, ECARD_RES_MEMC, 0, 0); in cumanascsi2_probe()
399 ecard_set_drvdata(ec, host); in cumanascsi2_probe()
402 info->ec = ec; in cumanascsi2_probe()
405 cumanascsi_2_terminator_ctl(host, term[ec->slot_no]); in cumanascsi2_probe()
409 info->info.scsi.irq = ec->irq; in cumanascsi2_probe()
410 info->info.scsi.dma = ec->dma; in cumanascsi2_probe()
423 ec->irqaddr = info->base + CUMANASCSI2_STATUS; in cumanascsi2_probe()
424 ec->irqmask = STATUS_INT; in cumanascsi2_probe()
426 ecard_setirq(ec, &cumanascsi_2_ops, info); in cumanascsi2_probe()
432 ret = request_irq(ec->irq, cumanascsi_2_intr, in cumanascsi2_probe()
436 host->host_no, ec->irq, ret); in cumanascsi2_probe()
451 ret = fas216_add(host, &ec->dev); in cumanascsi2_probe()
457 free_irq(ec->irq, info); in cumanascsi2_probe()
466 ecard_release_resources(ec); in cumanascsi2_probe()
472 static void cumanascsi2_remove(struct expansion_card *ec) in cumanascsi2_remove() argument
474 struct Scsi_Host *host = ecard_get_drvdata(ec); in cumanascsi2_remove()
477 ecard_set_drvdata(ec, NULL); in cumanascsi2_remove()
482 free_irq(ec->irq, info); in cumanascsi2_remove()
486 ecard_release_resources(ec); in cumanascsi2_remove()