Lines Matching refs:ec
61 struct expansion_card *ec; member
73 powertecscsi_irqenable(struct expansion_card *ec, int irqnr) in powertecscsi_irqenable() argument
75 struct powertec_info *info = ec->irq_data; in powertecscsi_irqenable()
85 powertecscsi_irqdisable(struct expansion_card *ec, int irqnr) in powertecscsi_irqdisable() argument
87 struct powertec_info *info = ec->irq_data; in powertecscsi_irqdisable()
191 host->hostt->name, info->info.scsi.type, info->ec->slot_no, in powertecscsi_info()
258 struct expansion_card *ec = ECARD_DEV(dev); in powertecscsi_show_term() local
259 struct Scsi_Host *host = ecard_get_drvdata(ec); in powertecscsi_show_term()
268 struct expansion_card *ec = ECARD_DEV(dev); in powertecscsi_store_term() local
269 struct Scsi_Host *host = ecard_get_drvdata(ec); in powertecscsi_store_term()
301 static int powertecscsi_probe(struct expansion_card *ec, in powertecscsi_probe() argument
309 ret = ecard_request_resources(ec); in powertecscsi_probe()
313 base = ecardm_iomap(ec, ECARD_RES_IOCFAST, 0, 0); in powertecscsi_probe()
326 ecard_set_drvdata(ec, host); in powertecscsi_probe()
330 powertecscsi_terminator_ctl(host, term[ec->slot_no]); in powertecscsi_probe()
332 info->ec = ec; in powertecscsi_probe()
335 info->info.scsi.irq = ec->irq; in powertecscsi_probe()
336 info->info.scsi.dma = ec->dma; in powertecscsi_probe()
349 ec->irqaddr = base + POWERTEC_INTR_STATUS; in powertecscsi_probe()
350 ec->irqmask = POWERTEC_INTR_BIT; in powertecscsi_probe()
352 ecard_setirq(ec, &powertecscsi_ops, info); in powertecscsi_probe()
354 device_create_file(&ec->dev, &dev_attr_bus_term); in powertecscsi_probe()
360 ret = request_irq(ec->irq, powertecscsi_intr, in powertecscsi_probe()
364 host->host_no, ec->irq, ret); in powertecscsi_probe()
379 ret = fas216_add(host, &ec->dev); in powertecscsi_probe()
385 free_irq(ec->irq, host); in powertecscsi_probe()
391 device_remove_file(&ec->dev, &dev_attr_bus_term); in powertecscsi_probe()
395 ecard_release_resources(ec); in powertecscsi_probe()
401 static void powertecscsi_remove(struct expansion_card *ec) in powertecscsi_remove() argument
403 struct Scsi_Host *host = ecard_get_drvdata(ec); in powertecscsi_remove()
406 ecard_set_drvdata(ec, NULL); in powertecscsi_remove()
409 device_remove_file(&ec->dev, &dev_attr_bus_term); in powertecscsi_remove()
413 free_irq(ec->irq, info); in powertecscsi_remove()
417 ecard_release_resources(ec); in powertecscsi_remove()