Lines Matching refs:ec

58 	struct expansion_card	*ec;  member
70 powertecscsi_irqenable(struct expansion_card *ec, int irqnr) in powertecscsi_irqenable() argument
72 struct powertec_info *info = ec->irq_data; in powertecscsi_irqenable()
82 powertecscsi_irqdisable(struct expansion_card *ec, int irqnr) in powertecscsi_irqdisable() argument
84 struct powertec_info *info = ec->irq_data; in powertecscsi_irqdisable()
188 host->hostt->name, info->info.scsi.type, info->ec->slot_no, in powertecscsi_info()
255 struct expansion_card *ec = ECARD_DEV(dev); in powertecscsi_show_term() local
256 struct Scsi_Host *host = ecard_get_drvdata(ec); in powertecscsi_show_term()
265 struct expansion_card *ec = ECARD_DEV(dev); in powertecscsi_store_term() local
266 struct Scsi_Host *host = ecard_get_drvdata(ec); in powertecscsi_store_term()
297 static int powertecscsi_probe(struct expansion_card *ec, in powertecscsi_probe() argument
305 ret = ecard_request_resources(ec); in powertecscsi_probe()
309 base = ecardm_iomap(ec, ECARD_RES_IOCFAST, 0, 0); in powertecscsi_probe()
322 ecard_set_drvdata(ec, host); in powertecscsi_probe()
326 powertecscsi_terminator_ctl(host, term[ec->slot_no]); in powertecscsi_probe()
328 info->ec = ec; in powertecscsi_probe()
331 info->info.scsi.irq = ec->irq; in powertecscsi_probe()
332 info->info.scsi.dma = ec->dma; in powertecscsi_probe()
345 ec->irqaddr = base + POWERTEC_INTR_STATUS; in powertecscsi_probe()
346 ec->irqmask = POWERTEC_INTR_BIT; in powertecscsi_probe()
348 ecard_setirq(ec, &powertecscsi_ops, info); in powertecscsi_probe()
350 device_create_file(&ec->dev, &dev_attr_bus_term); in powertecscsi_probe()
356 ret = request_irq(ec->irq, powertecscsi_intr, in powertecscsi_probe()
360 host->host_no, ec->irq, ret); in powertecscsi_probe()
375 ret = fas216_add(host, &ec->dev); in powertecscsi_probe()
381 free_irq(ec->irq, host); in powertecscsi_probe()
387 device_remove_file(&ec->dev, &dev_attr_bus_term); in powertecscsi_probe()
391 ecard_release_resources(ec); in powertecscsi_probe()
397 static void powertecscsi_remove(struct expansion_card *ec) in powertecscsi_remove() argument
399 struct Scsi_Host *host = ecard_get_drvdata(ec); in powertecscsi_remove()
402 ecard_set_drvdata(ec, NULL); in powertecscsi_remove()
405 device_remove_file(&ec->dev, &dev_attr_bus_term); in powertecscsi_remove()
409 free_irq(ec->irq, info); in powertecscsi_remove()
413 ecard_release_resources(ec); in powertecscsi_remove()