Lines Matching refs:ec

74 	struct expansion_card	*ec;  member
87 eesoxscsi_irqenable(struct expansion_card *ec, int irqnr) in eesoxscsi_irqenable() argument
89 struct eesoxscsi_info *info = (struct eesoxscsi_info *)ec->irq_data; in eesoxscsi_irqenable()
102 eesoxscsi_irqdisable(struct expansion_card *ec, int irqnr) in eesoxscsi_irqdisable() argument
104 struct eesoxscsi_info *info = (struct eesoxscsi_info *)ec->irq_data; in eesoxscsi_irqdisable()
390 host->hostt->name, info->info.scsi.type, info->ec->slot_no, in eesoxscsi_info()
445 struct expansion_card *ec = ECARD_DEV(dev); in eesoxscsi_show_term() local
446 struct Scsi_Host *host = ecard_get_drvdata(ec); in eesoxscsi_show_term()
454 struct expansion_card *ec = ECARD_DEV(dev); in eesoxscsi_store_term() local
455 struct Scsi_Host *host = ecard_get_drvdata(ec); in eesoxscsi_store_term()
495 static int eesoxscsi_probe(struct expansion_card *ec, const struct ecard_id *id) in eesoxscsi_probe() argument
502 ret = ecard_request_resources(ec); in eesoxscsi_probe()
506 base = ecardm_iomap(ec, ECARD_RES_IOCFAST, 0, 0); in eesoxscsi_probe()
519 ecard_set_drvdata(ec, host); in eesoxscsi_probe()
522 info->ec = ec; in eesoxscsi_probe()
525 info->control = term[ec->slot_no] ? EESOX_TERM_ENABLE : 0; in eesoxscsi_probe()
530 info->info.scsi.irq = ec->irq; in eesoxscsi_probe()
531 info->info.scsi.dma = ec->dma; in eesoxscsi_probe()
544 ec->irqaddr = base + EESOX_DMASTAT; in eesoxscsi_probe()
545 ec->irqmask = EESOX_STAT_INTR; in eesoxscsi_probe()
547 ecard_setirq(ec, &eesoxscsi_ops, info); in eesoxscsi_probe()
549 device_create_file(&ec->dev, &dev_attr_bus_term); in eesoxscsi_probe()
555 ret = request_irq(ec->irq, eesoxscsi_intr, 0, "eesoxscsi", info); in eesoxscsi_probe()
558 host->host_no, ec->irq, ret); in eesoxscsi_probe()
574 ret = fas216_add(host, &ec->dev); in eesoxscsi_probe()
580 free_irq(ec->irq, info); in eesoxscsi_probe()
586 device_remove_file(&ec->dev, &dev_attr_bus_term); in eesoxscsi_probe()
590 ecard_release_resources(ec); in eesoxscsi_probe()
596 static void eesoxscsi_remove(struct expansion_card *ec) in eesoxscsi_remove() argument
598 struct Scsi_Host *host = ecard_get_drvdata(ec); in eesoxscsi_remove()
601 ecard_set_drvdata(ec, NULL); in eesoxscsi_remove()
606 free_irq(ec->irq, info); in eesoxscsi_remove()
608 device_remove_file(&ec->dev, &dev_attr_bus_term); in eesoxscsi_remove()
612 ecard_release_resources(ec); in eesoxscsi_remove()